Help! Movieclip inside Button

Subscribe to Help! Movieclip inside Button 6 posts, 4 voices

 
avatar for SalsaJoe13 SalsaJoe13 391 posts

Okay so I have a movieclip instance inside of a button in the main timeline, the movieclip’s code is this:

onClipEvent (enterFrame) {
    trace("stuff")
}

But it won’t trace stuff… probably something simple I’m missing but a can’t find anything on google. ):}D> P.S. just made that smiley up.

 
avatar for SalsaJoe13 SalsaJoe13 391 posts

Anybody?

 
avatar for BigCheese BigCheese 363 posts

Hmmmm…. I’m not sure. Trace works fine on the first frame inside the movieclip.

 
avatar for SalsaJoe13 SalsaJoe13 391 posts

Okay i managed to squeeze out of that, but now I really need to know why this isn’t working. I have a button, inside the button is a movie clip with

onClipEvent(enterFrame){
trace("stuff")}

but it won’t trace…WHY?

 
avatar for Mailesmyth Mailesmyth 8 posts

In my experience (using AS2, and Macromedia Flash 8), most (if not all) actionscript WILL NOT WORK in a movieclip that is within a button.

Rather than placing the movie clip in the button, keep them separate, and place BOTH of them into a third movieclip.

OR dont use a button symbol. A movieclip can do anything a button can and more.

 
avatar for Script_Goo_Roo Script_Goo_Roo 12 posts

I ran into the same issue today. I resolve it by going to publish settings and clicking on the “Flash” tab and then i noticed that my Omit trace actions radio button was checked. By simply making sure it is not checked resolved my issue. That might be able to resolve “your” issue.

Hope it helps