473,506 Members | 9,749 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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

_parent.stop();
(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){

gotoAndPlay(2);

} else {
this.loadBar._visible = false;
this.loadText._visible = false;
//this.loadContainer._visible = false;
this.loadLogo._visible = false;
_parent.play();
stop();
}
(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 1406
sleepingInsomniac
2 New Member
i know newgrounds.com has some great tutorials on preloaders

hope this helps
Mar 9 '07 #2

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

Similar topics

8
1983
by: Ross | last post by:
This page I am trying to create a preloader that hides all the other content except the hidepage div until it loads...any ideas? Or any preloaders that actually work? ...
3
7941
by: abm | last post by:
Hi. I am in great need of a preloader for my Flash web site. I have looked at a lot of tutorials and examples, but I can not seem to get it to work. How do I add a preloader to my existing Flash...
2
2047
by: bedges | last post by:
okay, the scenario: i have a header image which changes randomly across all pages in the site. that works fine. i also have an image preloader within the random header picker which theoretically...
0
2002
by: Lanky | last post by:
I have noticed on sites that on a page a preloader will run and one or more flash movies will appear. Then the preloader does not reappear on subsequest revists to that page during the same browser...
2
1902
by: streammalvern | last post by:
Hi, I am having a problem with a published Flash Movie. I included a preloader and the whole file size of the .swf is only about 1MB. If I go to the movie, it pauses even before the preloader...
3
3617
chunk1978
by: chunk1978 | last post by:
hi there... i'm having a new strange problem with my flash site... IE7 seems to not display my preloader but instead loads the movie with a white screen... the movie does load though... this is a...
39
3144
by: Ravi | last post by:
Can you all please suggest a program which tell us the range of memry addresses occupied by the given c program?
3
1652
by: 1left | last post by:
Hi- I'm getting some weird flickering of objects (not the preloader elements) during the "Simulate Download" test (56k) of my Flash 8 movie. I'm on cable modem , and the preloader runs so fast at...
0
1448
by: deluxmilkman | last post by:
I'm trying to play flv on frame 1 after both flv and contents on frame 2 are loaded. how can I stop flv from playing before the contents are loaded? AS on frame 1
0
7105
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7371
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7479
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5617
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3188
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3178
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1534
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
757
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
410
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.