Hiya,
Basically im looking to have a button have an action on a instance in a different level,
If the instance “Info” is in the same movieclip, the code im using is,
stop();
import gs.TweenLite;
import fl.motion.easing.*;
import gs.easing.*
aqua3.buttonMode = true;
aqua3.addEventListener(MouseEvent.MOUSE_DOWN,onDown5,false,0,true);
function onDown5(evt:MouseEvent):void {
TweenLite.to(info,1,{y:"-400",ease:Back.easeOut,delay:.2});
}
“Info” is the instance im looking at.
could I not do something like this?
stop();
import gs.TweenLite;
import fl.motion.easing.*;
import gs.easing.*
aqua3.buttonMode = true;
aqua3.addEventListener(MouseEvent.MOUSE_DOWN,onDown5,false,0,true);
function onDown5(evt:MouseEvent):void {
TweenLite.to(info "Scene 1",1,{y:"-400",ease:Back.easeOut,delay:.2});
}
bascially what i think im asking is how do i get actionscript to work on an instance in a different level
So the actionscript is in Level, “Background”
Scene 1/background
The button i want the actionscript to work with “aqua3” is in:
Scene 1/background
and the instance i want the actionscript to apply to “Info” is in:
Scene 1
kind regards, Phil