Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Actionscrips disappear for imported buttons

Status
Not open for further replies.

apatterno

Programmer
Nov 26, 2002
368
US
I have two SWFs... a parent swf which loads a child SWF.

In my parent SWF I have a button symbol which is exported for runtime sharing.

The child SWF imports the button, and specifies an on(release) handler for its instance.

When I test the movie (either the parent or the child) the button appears as it should, but clicking it has no effect. In fact, the button's actionscript is not even listed in the Debugger's drop-down list.

Also: If I turn off the "import for runtime sharing" option, everything works as it should. But I want to import it (because soon I will have several buttons that will be imported by lots of child SWF's).

How can I get these actionscripts to work, without turning off "import for runtime sharing"?
 
How are you setting the on(release) handler?

Have you tried a trace action(message) within the handler?
 
1. I set the on(release) handler by selecting the instance, and typing "on(release) { ... }" into the Actions panel.

2. Yes I have tried that, and it never shows itself.

In fact, I have tried to place a breakpoint in the debugger, but I can't find the button's actions at all.

I could send you my fla's if that would help.

I REALLY hope that helps.
Will
 
Mail away! You'll get my address if you hit my handle.

.flas should be zipped up and in MX only format!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top