need a little help with flash
- Started
- Last post
- 2 Responses
- Blueman
Ok I created a pull out menu in flash. The problem that i have with it is that when it pulls out and i move the mouse off it it closes.. which is ok that what it's supposed to do. But when i scroll back on the button that it originated from it pulls out again. I don't want it to pull out once it's already pulled out.
I know that i probably have to have an "if" statement. but i don't know how to write it.
here's the site:
http://www.bluemandp.com/sharkthanks. If you would like to help me i can send the .fla file.
- Anarchitect0
you should create an 'active' variable on the _root to hold the 'active section'.
function activate(status){
this.useHandCursor = this.enabled = status;
if(status){
_root.active = this;
loadSection();
}
}this.onPress = function(){
_root.active.activate(false);
this.activate(true);
}
- Blueman0
hmm.. where do i put all of that code?