| Language Version : | ActionScript 3.0 |
| Product Version : | Portfolio 10.0 |
| Runtime Versions : | Flash Player 10.1, AIR 2.0 |
The CardDistributor class implements an algorithm for placing Cards pseudo-randomly in the layout.
protected var autoListen:AutoListenprotected var autoPositionCardSize:Numberprotected var autoPositionCardSizeDiameter:NumbercardAngle:Number Implementation public function get cardAngle():Number public function set cardAngle(value:Number):voidprotected var cardProperties:ICardPropertiesprotected var cardsChangedMap:Dictionaryprotected var gridPoints:Arraypublic function CardDistributor(cardProperties:ICardProperties) Parameters public function ensureAllPositionsAreValid(collection:IList):void Parameters
protected function getCardPositions(collection:IList, setPositions:Array, unsetPositions:Array):void
Parameters
| collection:IList — an Array that is filled with the attachments that have their position set
|
| |
| setPositions:Array — an Array that is filled with the attachments that have NOT had their position set
|
| |
| unsetPositions:Array |
protected static function getCardSize(sizeName:String):Number Parameters
Returns protected function initAutoPositionCardSize():BooleanReturns protected function onCollectionChange(event:CollectionEvent):void An event listener to respond to events from the current collection.
Parameters
Thu Oct 14 2010, 03:29 PM -07:00