all groups > flash (macromedia) > december 2005 >
You're in the

flash (macromedia)

group:

movie clip


movie clip hrice
12/27/2005 10:36:39 PM
flash (macromedia): i have a flash doc that has lots of movie clips- the preloader i have in each
seems to not work although when i have it in the main stage it works fine.

here is a copy of my code:

var amountLoaded:Number = _root.getBytesLoaded()/_root.getBytesTotal();
loadText.text = Math.round(amountLoaded * 100) + "%";


//then in the next frame i have:
if(_root.getBytesLoaded() == _root.getBytesTotal()) {
gotoAndPlay(3);
}

else {
gotoAndPlay(1);
}


can you tell me what i am doing wrong?


Re: movie clip hrice
12/28/2005 2:59:22 AM
Re: movie clip urami_
12/28/2005 8:30:38 AM


[quoted text, click to view]

You can't preload movie clips separately, it all goes as one big file.
Preloader is doing nothing except holding the timeline from playing till
all the frames in your file get cached to user temporary folder.
You can't preload movie clips individually.


--
Regards

Urami


--



Merry Christmas and a Happy New Year guys :)



クリスマスと新年おめでとうございます

聖誕節和新年快樂
圣诞节和新年快乐

<urami>
http://www.Flashfugitive.com
</urami>

<web junk free>
http://www.firefox.com
Re: movie clip urami_
12/28/2005 12:00:20 PM


[quoted text, click to view]

There is many ways to make something like that.
Not all necessarily suitable in your case.
Usually one loader is recycled for multiple loads.
There are some nice prototypes out there you can use.
Check http://proto.layer51.com/s.aspx
type in search "preload"
You will find many useful samples.

--
Regards

Urami


--



Merry Christmas and a Happy New Year guys :)



クリスマスと新年おめでとうございます

聖誕節和新年快樂
圣诞节和新年快乐

<urami>
http://www.Flashfugitive.com
</urami>

<web junk free>
http://www.firefox.com
AddThis Social Bookmark Button