Hey guys and girls,
I have come across a problem and Im sure its quite simple to fix but I cannot seem to figure it out…
import fl.transitions.Tween;
import fl.transitions.easing.*;
import fl.transitions.TweenEvent;
back_btn.visible = false;
album5Large_mc.z = 0;
var picZoomZ:Tween = new Tween(album5Large_mc, "z", Strong.easeOut, album5Large_mc.z, -358, 4, true);
picZoomZ.addEventListener(TweenEvent.MOTION_FINISH, changePic);
function changePic(e:TweenEvent):void {
back_btn.visible = true;
back_btn.addEventListener(MouseEvent.CLICK, goBack);
function goBack(event:MouseEvent):void {
trace("GPFOD");
//unloadMovieNum(0);
//loadMovieNum("iTunesAlbumArt.swf", 0);
}
Now i get an error 1120 saying i cannot change the button visible or not… i have set it to a button so i do not understand why this is not working
So my code is basicly enlargining a picture by the use of a tween
Once the tween is finished changes to a picture… runs the function changePic
then the button is made visible and when they click on it takes it back to another movie
anyone know how to load another movie in AS3 thats the As2 way
ok so to summarise
- Why isnt my button changing visibility?
- Once the button is clicked how do I import another swf?
Thanks,
Caleb