469,306 Members | 2,064 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,306 developers. It's quick & easy.

Preloader has a cup of tea and decides to show up near the end.??Hello from Sydney!

Hello everyone,
I have created a preloader which is nested and has three frames inside.
On frame one the following actionscript is:

(which simply stops the main movie from playing)

On frame two the following actionscript is:

kBytesLoaded = _parent.getBytesLoaded()/1024;
kBytesTotal = _parent.getBytesTotal()/1024;
kBytesRemaining = kBytesTotal - kBytesLoaded;
percentLoaded = 100 * kBytesLoaded / kBytesTotal;
percentRemaining = 100 - percentLoaded;
loadBar._xScale = percentLoaded;
(this is for the loadBar)

And on frame three the following actionscript is:

if (percentLoaded < 99){


} else {
this.loadBar._visible = false;
this.loadText._visible = false;
//this.loadContainer._visible = false;
this.loadLogo._visible = false;
(which controlls the visibility of elements)

The thing is though, every time I do a test movie, the screen is blank, then the actionscript appears (and is 3 quarters already through) then finishes.

Does anyone have any clue to why this is happening.
Thankyou and regards from Sydney, Australia.

Flash Virgin
Mar 8 '07 #1
1 1305
i know newgrounds.com has some great tutorials on preloaders

hope this helps
Mar 9 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

8 posts views Thread by Ross | last post: by
2 posts views Thread by bedges | last post: by
39 posts views Thread by Ravi | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by harlem98 | last post: by
1 post views Thread by Geralt96 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.