PDA

View Full Version : check load status of one swf from another swf


Billy T
12-05-2001, 05:21 AM
Hello

I have my main movie and an external swf which I have loaded into level 2.

I wish to put a script in the level 2 movie to check how much of a movie i am loading into level 1 has been loaded.

Is this possible?

TIA

Billy T
12-05-2001, 08:25 AM
ok this is what I have so far

my main movie
my menu loaded into level10
in my menu I have a button that loads another swf into level 1. I have this on a frame in my menu

if (getProperty(_level1, _framesloaded)>=2) {
tellTarget (_level10.menu) {
gotoAndPlay(_currentframe+2);
}
}

on the next frame I have

gotoAndPlay (_currentframe-1);

problem is that it seems to just go through without checking to see if _level1 is loaded

you can see what I mean here

http://users.bigpond.net.au/cab/timeframe/main.html

if you click on the top button (Nth Ireland) you will see the circle buttons appear. These are meant to appear one at a time as level1 loads.

I'll upload my fla as well (most of the action is in the menu movie clip)

would appreciate any help

TIA

Taldos
12-05-2001, 04:08 PM
best i can do is recommend tutorial# 10 of the intermediate level on this site, without looking at the fla. that should help. hopefully.

Billy T
12-05-2001, 11:21 PM
this what I ended up doing. On a movie clip in the movie being loaded into level1 I put

onClipEvent (enterFrame) {
if (_root._framesloaded==2) {
_level10.menu.gotoAndStop(7);
}

if (_root._framesloaded==3) {
_level10.menu.gotoAndStop(9);
}
if (_root._framesloaded==4) {
_level10.menu.gotoAndStop(11);
}

etc etc
}

Messy but it works ok

Thanks