-
Kindly check my .fla uploaded to this site:
http://www.geocities.com/b3nch08/help/Help.fla
http://www.geocities.com/b3nch08/help/Help.swf
http://www.geocities.com/b3nch08/help/Help.html
My problem is this:
1. I cant play the movie clip triggered by a button outside a movie clip.
on (release){
_root["animate"].gotoAndPlay("move");
}
2. I generated a variable named myVariable inside the movie clip but i cant display the value when called outside the movie clip.
myVariableOutside=_root[animate].myVariable;
Any help would be appreciated. Thanks in advanced.
b3nch08
-
b3nch08,
Must have been a long day!!!
The only thing you need to add in order to make
the mc play is an instance name.
The mc "animate" had the instance name field blank!!
Hope this helps!
MA
-
-
b3nch08,
The fla file that I got had a movie name of "animate"
and it didn't have a instance name.
Ctrl + i to bring the instance panel up and then
select the movie by clicking on it. Check the
name field, is it blank? If it isn't then the fla
file I got is different than yours.
MA
-
oh! thanks!!! it's working now.
by the way, is it the same process when you access the variables inside the movie clip?
-
Not quite sure of that last question!! But I will try to answer!
Any time you target a movie, you will use the instance name
unless it is the movie you are targeting from.
Examples:
mc with name of "movie1" and an instance name "m1"
and you wanted to set a variable "var1" to equal numeric 5
_root.m1.var1 = 5;
same for checking what is in the variable (will use if statement) and check for
contents to be a numeric 5 and if it is a five will tell instance name "m1" to do something
if (_root.m1.var1 == 5) {
_root.m1.gotoAndPlay(lable );
}
Hope this helps!
MA
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|