psycosnake
05-02-2008, 07:48 AM
hi everyone!!
to make a long story short, i made a site with some flash animation.
the problem is they are slightly long to load, so i thought "hey why not put a preloading thingy"
i looked through almost every website possible and i came up with a preloading that please me.
The thing is...it wont preload =,=
here is the link to the site http://cervera.stephanie.free.fr/resolution%20petite/
the animation is right at the entrance, but for some reason, while it's loading, i only got a blank square, then everything load at the same time.
[url]http://cervera.stephanie.free.fr/Image1.jpg[url]-> here is what i get
could someone help me pretty please (im very desperate)???
oh and here is the action script im using:
onClipEvent (load) {
total = _root.getBytesTotal();
}
onClipEvent (enterFrame) {
loaded = _root.getBytesLoaded();
percent = int(loaded/total*100);
perc1 = ""+percent+"%";
gotoAndStop(percent);
if (loaded == total) {
_root.gotoAndPlay(2);
}
}
and here, the html link
<object type="application/x-shockwave-flash" data="entree.swf" width="650" height="450">
<param name="play" value="true" />
<param name="movie" value="entree.swf" />
<param name="menu" value="false" />
<param name="loop" value="false"/>
<param name="quality" value="high" />
<param name="scalemode" value="noborder" />
<p>Vous n'avez pas Flash Player ou votre navigateur bloque un script/activeX,
<br>veillez à autoriser le contenu bloqué de la page ou à télécharger Flash Player, merci</p>
</object>
maybe ive done something wrong, but i have no clue what
ToT
thanks ^-^
to make a long story short, i made a site with some flash animation.
the problem is they are slightly long to load, so i thought "hey why not put a preloading thingy"
i looked through almost every website possible and i came up with a preloading that please me.
The thing is...it wont preload =,=
here is the link to the site http://cervera.stephanie.free.fr/resolution%20petite/
the animation is right at the entrance, but for some reason, while it's loading, i only got a blank square, then everything load at the same time.
[url]http://cervera.stephanie.free.fr/Image1.jpg[url]-> here is what i get
could someone help me pretty please (im very desperate)???
oh and here is the action script im using:
onClipEvent (load) {
total = _root.getBytesTotal();
}
onClipEvent (enterFrame) {
loaded = _root.getBytesLoaded();
percent = int(loaded/total*100);
perc1 = ""+percent+"%";
gotoAndStop(percent);
if (loaded == total) {
_root.gotoAndPlay(2);
}
}
and here, the html link
<object type="application/x-shockwave-flash" data="entree.swf" width="650" height="450">
<param name="play" value="true" />
<param name="movie" value="entree.swf" />
<param name="menu" value="false" />
<param name="loop" value="false"/>
<param name="quality" value="high" />
<param name="scalemode" value="noborder" />
<p>Vous n'avez pas Flash Player ou votre navigateur bloque un script/activeX,
<br>veillez à autoriser le contenu bloqué de la page ou à télécharger Flash Player, merci</p>
</object>
maybe ive done something wrong, but i have no clue what
ToT
thanks ^-^