PDA

View Full Version : attachMovie problem


fejomite
08-17-2006, 01:26 AM
This is probably easy (which is why I am here)..but I am trying to get a movie clip to load using the attachMovie method from the tutorial posted in the tutorial section, but it is not working.

this is the actionscript for the button:

on (release) {
main.attachMovie("binaryClip", "newname", 50);
}

the movie that I want to load has an instance name of binaryClip
and there is an empty clip on the stage with an instance name of main.

any help would be greatly appreciated.

themarkster
08-17-2006, 09:35 PM
I don't know if this would help, but try a different method. First clear all of the code from the button. Then give the button an instance name of something like "myBtn." Then add this code to the frame:


myBtn.onRelease = function() {
_root.main.attachMovie("binaryClip", "newname", 50);
}

fejomite
08-18-2006, 08:08 PM
thank you for the help...I appreciate it.

sickscripts
08-19-2006, 03:55 PM
that helped me too. Thanks alot