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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to handle instances from imported movies?

Status
Not open for further replies.

realizer

Programmer
Apr 25, 2002
1
GB
hi everyone!
I have a swf file wich contains 7 buttons, each one with a specific behavior. I've been trying to import this movie and access each button through actionscript.

_root.createEmptyMovieClip("MyButtons", 0);
MyButtons.LoadMovie("Buttons.swf");

//MyButton_1 ... MyButton_7 are the button instances names from swf
MyButton_1.onRelease = function() {
trace("button 1 pressed");
};
MyButton_2.onRelease = function() {
trace("button 2 pressed");
};
...

I've already tried to give each button an instance name and even a linkage name in the library, but none of those worked. Im sure it is possible to handle each individually, so, I would appreciate any help.
regards
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top