Graphics Reference
In-Depth Information
_imageLoader.x = _targetX;
_imageLoader.y = _targetY;
_imageLoader = null;
}
private function pointIndex(loader:Loader):int {
return
int(loader.name.substring(_imageNamePrefix.length));
}
private function
imageLoadError(e:IOErrorEvent):void{
trace( " !!! There was an error loading an image
!!! " );
trace(e.text);
}
// END PRIVATE FUNCTIONS
// START READ-ONLY GETTERS
public function get numberOfImages():int {
return _numberOfImages;
}
public function get galleryPath():String{
return _galleryPath;
}
public function get imageArray():Array{
return _imageArray;
}
// END READ-ONLY GETTERS
}
}
SimpleGallery Breakdown
The SimpleGallery class package and imports:
package com.flashadbook.display {
import flash.display.DisplayObjectContainer;
import flash.display.Loader;
import flash.display.Sprite;
import flash.events.MouseEvent;
import flash.geom.Point;
import flash.net.URLRequest;
import flash.events.Event;
import flash.events.IOErrorEvent;
s take a look at the variables for
this class because there are indeed a lot of them. All of them are
private, and only one of them has a public
Now with that out of the way, let
'
getter
at the end of the
Search WWH ::




Custom Search