Hey guys,
Is there a way to call for button actions a few layers up?
Allow me to explain:
Here is how my scene layout is composed
root.layer1.layer2.button
now I want on(rollOver) to do an animation at root.layer1 for layer order reasons.
Something like this:
Now obviously this is wrong, I don't know the proper method of doing this..
TIA any help is appreciated.
Is there a way to call for button actions a few layers up?
Allow me to explain:
Here is how my scene layout is composed
root.layer1.layer2.button
now I want on(rollOver) to do an animation at root.layer1 for layer order reasons.
Something like this:
Code:
on(rollOver){
_root.ani.gotoAndPlay("Over");
}
on (releaseOutside, rollOut) {
_root.ani.gotoAndPlay("Out");
}
Now obviously this is wrong, I don't know the proper method of doing this..
TIA any help is appreciated.