PDA

View Full Version : The preloading Gets stuck - ¿why?


ivanCorea
03-10-2005, 02:57 AM
I was doing a simple animation with 16 buttons each of them on a single layer. (I realize that I can group them on... groups of four but that's not the point)

The problem is that when I make the SWF, the movie gets stuck in the 78% (just before loadin' the last 9 frames) and I don't know why! the last 9 frames lies in a single layer and if you remove that layer the animation works... but I need that symbol there.
Also if I place the last 4 buttons in a goup and make the animation the problem persist

I need help desperately so if anyone an help I'll be gratefull :(

this is the source file, jusr "Ctrl+Enter" it to see what I mean

http://www.geocities.com/corea_80/ani.zip

Flash Gordon
03-10-2005, 03:20 AM
root._framesloads == root._totalFrames;

ivanCorea
03-10-2005, 03:33 AM
Thanks a lot dude... now that you posted the answer I remember that I see tath on another post but didn't understand... sorry for asking the same thing :o dumb me.

The problem is solved, thanks a lot again

ivanCorea
03-22-2005, 06:31 PM
now I have another problem, this time with sounds. I tried all I saw on the forum bot nothing works.

The Problem:
The "preload" text doesn't work, in fact, the flash appears only when is fully loaded I never see the first frame telling me how many bytes are loaded. check it youself Bad Flash (http://us.share.geocities.com/corea_80/asd.swf)

this is the sccript I use on frame 1

stop();
var sound1:Sound = new Sound();
sound1.attachSound("painkillerSound");

if (_root.getBytesLoaded() == _root.getBytesTotal())
{gotoAndStop(2);}
else
{preload.text = int(sound1.getBytesLoaded()) / 1024;}


The mp3 is 3MB long so I really need my flash to do this:

- Show the first frame with the preoad
- When is up to 100% goto and stop in frame 2 where I have this script "_root.sound1.start();" and the music starts