ryanbutler
07-28-2005, 07:48 PM
Say for instance I have a main movie. Inside this, I have one movie clip which houses a button. How do I reference that button? B/C in other areas I've used:
nameofmovieclip.nameofbutton.enabled=true;
for one part of functionality and it works. But I can't open up a file with a similar approach:
nameofmovieclip.nameofbutton.onRelease=function(){
variable="some string here";
//call my function which loads the appropriate swf file
}
I ran trace on the movie clip itself to get the path and it came back:
/nameofmovieclip
Is that considered the root in flash?? Obviously flash isn't picking up a variable, which I've declared _global just for debugging. Are there suggestions?
nameofmovieclip.nameofbutton.enabled=true;
for one part of functionality and it works. But I can't open up a file with a similar approach:
nameofmovieclip.nameofbutton.onRelease=function(){
variable="some string here";
//call my function which loads the appropriate swf file
}
I ran trace on the movie clip itself to get the path and it came back:
/nameofmovieclip
Is that considered the root in flash?? Obviously flash isn't picking up a variable, which I've declared _global just for debugging. Are there suggestions?