PDA

View Full Version : separate .swf will not load properly


monkeymike
08-08-2005, 11:51 PM
i have currently started a flash website and it involved loading separate .swf files into a movie clip instance with an instance name and so on. When i press the button that tells flash to show the .swf in the movieclip box which it is linked to it shows only the preloader of the separate .swf file.i read somewhere else in a forum that they needed to change the _root of the separate .swf or else it is telling flash to load the main movie again. Is this right? and if so what do i need to change.

the current actionscript on the preloader for the separate and main .swf files are
bytes_loaded = Math.round(_root.getBytesLoaded());
bytes_total = Math.round(_root.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
_root.loadBar._width = getPercent*100;
_root.loadText = Math.round(getPercent*100)+"%";
if (bytes_loaded == bytes_total) {
_root.gotoAndPlay(3);
}

do i need to change every _root.? because i thought of doing this but then i thought that if i needed to type a flash file name itd have to be in "" and thought "separate.swf".gotoAndPlay(3); doesnt seem right, HELP ME

Thanks in advance.

oldnewbie
08-09-2005, 03:53 AM
Don't cross-post! :rolleyes:

I've answered your other thread.