Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Button Layering with on Over and Out

Status
Not open for further replies.

Spidy6123

Technical User
May 30, 2002
227
CA
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:
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top