Mouse events are permitted only for button instances

I’m trying to add this action to a button so I can get openx to track this flash banner. Can anyone clue me into what this means. I must be tired-but I have looked at this everyway and don’t see what I’m doing wrong.

Made a button-added keyframe to each poition, went back to the main time line inserted an instance of the button onto its own layer-added the following action

on (release) {
if (clickTAG.substr(0,5) == “http:”) {
getURL(clickTAG, “_blank”);

and it gives me the error message = Mouse events are permitted only for button instances

Please ??? Any ideas???

Ive attached a zip file incase that helps solve it

Make sure that your code is in fact on a button and not on a frame.

Did you look at my file? From what I can see they are? Any help would be appreciated!

Did you check what i said?

Yeah!-Take it easy on us newbies :slight_smile:

I click the button, right click actions, and there is the code. What am I missing?

I’ll pay you to fix it…what do you charge?

I got it-it toggles the actions title depending what you are clicking.

Thanks much for pointing that out!

Its working now-

Well done you!:slight_smile:
We’re all still newb’s:lol: