I have made a preloader and it shows fine when i stream it in flash but when i put it on the webpoage the loader doesnt come up? anyone please
| SitePoint Sponsor |
I have made a preloader and it shows fine when i stream it in flash but when i put it on the webpoage the loader doesnt come up? anyone please
zip the fla and put the link here.
heres the preloader by itself.
http://www.stupidflash.com/stupidflashpre.zip
check out my reply at http://www.sitepointforums.com/showt...?postid=774721
now how can you edit that to just play into the next scene instead of frame 5?
oops never mind i got it to go to next scene. now to see if it will actually apear on the website
ok its still loading everything and the preloader isnt showing up. I have a smaller file there now instead. Anyone please help
hey, the preloader worked fine 4 me.
if u r still getting problems, then put the link to the .fla file here. I'll see what's the problem & will correct it.
Amit
the preloader is in the previous link i updated it. Did you try it on a webpage? perhaps you need to publish it so its in a html?
I didn't see your file , but as a rule preloaders only play if the content in question needs preloading
in other words, if/when the test for "getBytesLoaded" comes up true for the total - the next movie plays and the preloader won't be seen or be just a momentary 'flash' on the screen
if wanted, the scripting would need a delay-thenPlay bit so the preloader is visible to all ... but that is having one just for the sake of - having one (?)
well the files are from .5 and 1 mg that im putting up. where would you set up the delay in the script
well I tinkered with it a bit and added a frame #4 action, 2 layers & clip called countdown and an invisible button...
orig stuff stops @4 then this other clip plays then
either send main time line to frame five ... where movie(s) can start, this is enough of a stall for the short ones to not miss on the preload (assume you eventually have some *coverpage* like content for this)
...anywho - check it out below, hope this helps::
thank you so much i will see if this works now![]()
ok i like that one much better but the preloader wont show up till its at 100% still. to see what I mean go here
http://www.stupidflash.com
click go to sword fight or moose vs flaming porcupine preview
Last edited by konqest; May 31, 2003 at 13:50.
On my first go - there, I got the full digit change from low #'s to 100 (in jumps tho)... then on a retry it zoomed straigh to 100 % ...
...I'm sure it's a cache thing...
if you either don't need to wait 'cause the next file is small or because you've got it cached on yer box ...
you'll succeed at "totalBytesLoaded" rather quickly.
a small clip reeling off numbers smoothly and in true sequence over a (you set it) time allowence should suffice maybe better than the getBytes action ... unless you really have to stall in true proportion to the size of the up-coming clip (???) ... does that make sense ?
well i cleared my cache and it still was doing it but if its loading fine with you then im happyyou dont mind if i use your preloader on the site right?
Help yourself, tweak arround with it ...
...btw:: seems I left out a "" stop() "" action on the last frame of the clip countdown... you may want to add it in to stop it from looping back to the beginning of the countdown
frame#4 of main timeline>countdownClip>frame#10
Code:stop(); this.onEnterFrame = function() { _root.gotoAndStop(5) }
Oh also... testing "locally" (on the author machine) can have unexpected (biased) results ... cleared cache or no
nah the stop down is find you dont really notice the loop back. since i just made the preloader one scene and started the movies on the second scene. I had to add a keyframe to the 6th one and put play on the fifth one but it works now
Bookmarks