Dave
March 17, 2003, 5:26am
1
Hey guys!
I have a main move with a mc called “content” where all the externals swf’s are loaded into.
On all my external swf’s i have created an animation and have the follwing actions
FIRST FRAME
bytes_loaded = Math.round(_root.getBytesLoaded());
bytes_total = Math.round(_root.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
_root.loadBar._width = getPercent100;
_root.loadText = Math.round(getPercent 100)+"%";
if (bytes_loaded == bytes_total) {
gotoAndPlay(4);
}
SECOND FRAME
gotoAndPlay(1);
Now when i uploaded the files onto the web, when the external content came in, it loaded but no bar or preloading animation was shown.
:chinaman: worked it out!!
system
March 17, 2003, 6:42am
2
wait, i know the problem, i have it going back to “root” thats why it doesnt show!!
So should i replace root with parent?
What should i place there instead of root?
:beam:
system
March 17, 2003, 6:50am
4
no … _parent no !!
use [color=red]this [/color] =)
system
March 17, 2003, 6:52am
6
dont worry i got it working!! :trout:
system
March 17, 2003, 6:52am
7
haha you’re welcome eg =)
system
March 17, 2003, 6:53am
9
Kax use wat?
there is no link
thanks for help anyway guys, it was my stupid mistake!!
system
March 17, 2003, 6:54am
10
i know there’s no link
i told you to replace _root with this
system
March 17, 2003, 6:55am
11
oohhhhhh!
i must be running really slow today!!
I know for next time
system
March 17, 2003, 6:57am
12
[size=4]this [/size]
Availability
Flash Player 5.
Usage
this
Description
Keyword; references an object or movie clip instance. When a script executes, this references the movie clip instance that contains the script. When a method is called, this contains a reference to the object that contains the called method.
Inside an on event handler action attached to a button, this refers to the Timeline that contains the button. Inside an onClipEvent event handler action attached to a movie clip, this refers to the Timeline of the movie clip itself.