AS1.0 preloader not showing til whole movie loaded

This is a discussion on "AS1.0 preloader not showing til whole movie loaded" within the Flash & Multimedia Forum section. This forum, and the thread "AS1.0 preloader not showing til whole movie loaded are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Flash & Multimedia Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Feb 18th, 2008, 21:39
New Member
Join Date: Feb 2008
Location: mindrail
Age: 29
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy AS1.0 preloader not showing til whole movie loaded

Hi
I have 2 scenes, 1 - loader, 2 - main.
scene loader has 100 frames.
loader frame 1 in the actions layer is this code:

LOADED = Math.round(getBytesLoaded());
TOTAL = Math.round(getBytesTotal());
PERCENT = (LOADED/TOTAL)*100;

if (PERCENT > 0) {
play();
} else {
gotoAndPlay(1);
}

then every 10 frames there's similar code, with the PERCENT variable being measured relative to that which is being loaded, so
frame 50 is

<snip>

if (PERCENT > 50) {
play();
} else {
gotoAndPlay(50);
}

then frame 100

<snip>

if (PERCENT > 100) {
nextScene();
} else {
gotoAndPlay(100);
}

so you get the idea. In between is the continuance of my loader animation.

I expect that onload, the loader scene loads quick, starts playing, and the animation progresses sometime maybe pausing at a 'checkpoint' frame waiting for the PERCENT variable to be > that specified in that particular if statement and then continues for the next 9 frames until the next checkpoint. At the end, if we have the whole movie loaded, nextScene moves us to the main scene.

But, what it happening is that I load the movie in Safari and in the activity window I can see the movie loading, but the loader scene of the movie doesn't start playing until the whole file has loaded. At this point, it then runs through the loader without pausing and goes straight onto the main scene. This obviously obfuscates the need to have it there in the first place. I put a dynamic text field to check PERCENT and when the scene shows up it's already 99.9->100% and so that's why the loader skims through and finishes.

I have studio MX (2002) so am limited to Actionscript 1.0. It's a pain, but that's a necessary limitation.

Can anybody help me? I'm thinking about problems with load order but nothing is fixing it. The site is for broadband users only so I'm not expecting it to pause much, but I wanna see feedback immediately. Is there another way?

Thanks v much IA
M
Reply With Quote

Reply

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
accessing variables and actionscript in externally loaded Swf from main movie balaakrs Flash & Multimedia Forum 4 Sep 8th, 2007 17:19
how to Reference variables of external swf loaded in flash movie balaakrs Flash & Multimedia Forum 1 Jun 11th, 2007 14:47
Form loaded into main movie doesn't work papalazarou78 Flash & Multimedia Forum 4 Apr 3rd, 2007 18:57
background image not showing up in Firefox but showing in other browsers! eskymo Web Page Design 21 Jan 19th, 2006 23:10
loaded Gallery XDezi Flash & Multimedia Forum 5 Dec 6th, 2005 14:32


All times are GMT. The time now is 20:15.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43