Function from a button

I have a function that is in the “action” layer of my .fla. Now I have a button in another layer. How do I call that function from a on (release) or something. This is what my function is called function next()

I know this is a bonehead question…Sorry Peeps. I am going to be lurking this forum cause I am working on a big flash project. So please dont tar and feather me.

::b.u.m.p::

bump again…no one loves me :frowning: :frowning:

Okay I kinda got it working when I use one of the default component button and change the clik handler to “next” which is the name of my function it works. But in my homemade button I have this code


on (release)  {

    _root.next();
}


Shouldn;t that fire my function…Pleez help!!!

Okay I finally got help on this matter:

For what it is worth to call a function from a embedded movie using a button you have to:



on(release)  {

     _level0.mcinstancename.functionName();
}


What I was forgetting was the movie clip instance name. This just in case someone else had or has the problem I had doing it.

*Originally posted by 3d-iva *
**This just in case someone else had or has the problem I had doing it. **

thanks 3d-iva :slight_smile:

thanks! :slight_smile:

[SIZE=1]sen: I´m stunnedt to find that you didn´t know about that :crazy: , I really am[/SIZE] :hangover:

I didnt say I didnt know, I was just thanking him for posting the answer after finding it. That helps others who might have found this post in a search :slight_smile:

I bet that works on everything just like other object langs.

Im like a novice when it come to AS…I got the design portion pretty good but AS eludes me (I try not to ask the same question 2x). Yeah if I ever have a problem and find out the answer outside of this board I always put the answer up. Just as a F.Y.I