i have an AS3 for photo gallery that loads photo from folder, i want to modify the code so it will load photos from my library.
heres the code.
var imageNumber:Number=1;
function checkNumber():void {
next_btn.visible=true;
previous_btn.visible=true;
if (imageNumber==10) {
next_btn.visible=false;
}
if (imageNumber==1) {
previous_btn.visible=false;
}
}
checkNumber();
next_btn.addEventListener(MouseEvent.CLICK, nextImage);
function nextImage(evtObj:MouseEvent):void {
imageNumber++;
imageGallery.source="images/Picture_t"+imageNumber+".jpg";
checkNumber();
}
previous_btn.addEventListener(MouseEvent.CLICK, previousImage);
function previousImage(evtObj:MouseEvent):void {
imageNumber--;
imageGallery.source="images/Picture_t"+imageNumber+".jpg";
checkNumber();
}
import fl.transitions.Tween;
import fl.transitions.TweenEvent;
import fl.transitions.easing.*;
imageGallery.addEventListener(Event.COMPLETE, imageLoaded);
function imageLoaded(event:Event){
new Tween(imageGallery, "rotationX", Elastic.easeOut, 90, 0, 2, true);
}
pls help. thanks.