all groups > flash actionscript > january 2006 >
You're in the

flash actionscript

group:

send an on(release) to a button


send an on(release) to a button Leeburstroghm
1/3/2006 11:26:22 PM
flash actionscript:
I have a navigation that I need to open to the correct category with each page.
What I would like to do is just send a mouse click event to my button and let
the script do the rest..

I have a button who has code for

on(release){
stuff to do ...
}

it is nested down to _root.navMenu.A.button
I have many others all the way to F such as
_root.navMenu.F.button

How do I send the release event as if the button was clicked using AS?

Simple?;)

Thanx for your help
Leeburstroghm
Re: send an on(release) to a button kglad
1/4/2006 1:59:48 AM
on(release){
path.doStuffFunction(); //<-- put your code in this function
}

you can then call the doStuffFunction() from any timeline by using the path to
the timeline that contains the function's definition.
Re: send an on(release) to a button Leeburstroghm
1/4/2006 12:58:27 PM
No, This would mean I would need to make a unique set for each button because
of what needs to happen for each button. I understand makeing a function for
each button would work, I thought you could just send the release event to the
button and it would work. ??
Re: send an on(release) to a button kglad
1/4/2006 6:10:33 PM
AddThis Social Bookmark Button