LOADING
Loading
Hi , welcome back.
LogoutLOGOUT
 
  Lost password?  
Hi
 




 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 09-07-2004, 06:18 PM
blind-man blind-man is offline
Registered User
 
Join Date: Sep 2004
Posts: 1
Rep Power: 0
blind-man is on a distinguished road
3D preloading dynamically loaded swf files

Hello. I am trying to preload dynamic swf files from an asset folder into a blank movie clip within my main swf file. Some of the files are 2+ mb and need to preload. Let me tell you what I have done so far, and hopefully someone can put me on the right path.

I am dynamically importing the swf files from an external asset folder into a blank movHolder movie clip on the stage of my main movie. I have this working fine. I am having a hard time knowing where to place the preload script (in the asset swf or in the movHolder clip), and whether or not my script is accurate for this procedure.

Inside of the movieHolder clip, I placed the preload script script on frame 1:

totalBytes = Math.round(getBytesTotal() / 1024);
loadedBytes = Math.round(getBytesLoaded() / 1024);
percentDone = Math.round ((loadedBytes / tatalBytes) * 100);
framesloaded >=100) {
gotoAndPlay("start");
}

On frame 15 I have a looping action that tells flash to gotoAndPlay(5); as it loads the asset to frame 100.

On frame 20 I have inserted the label "start".

Obviously my approach is flawed and does not control the dynamically loaded asset. I am assuming that the asset swf if loading on frame 1 and ignoring my code. Can someone set me straight? Thank you. --JW
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
loaded swf files lose functionality in main swf movie paulnmorrison General Flash 2 12-11-2007 07:09 PM
resizing dynamically loaded swf YoS Actionscript 2.0 5 10-22-2007 02:50 PM
Preloading swf files help Zid Newbies 1 07-02-2006 07:49 PM
resizing loaded SWF files with off stage items drepod Flash MX ActionScript 9 11-02-2005 01:53 PM
Preloading multiple swf files DeMoss Flash 5 and below 2 10-01-2005 08:46 PM




All times are GMT. The time now is 04:08 AM.