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
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