Link to home
Start Free TrialLog in
Avatar of ukraze
ukraze

asked on

preloading swf alternatives

I need an alternative solution to preloading several swf files whos content come from database.
Ive tried several, built into flash preloaders with no success. The problem that i'm having is that the content sometimes loads and sometimes it hangs. this site is an AS2 flash site which loads 7 swfs as sections, originally it was xml driven but it was converted to run with a content editor. at this point i just need  perhaps a javascript solution to keep these swf files in the browsers until i need them. One solution that was sort of working for me was using a header script to quickly reload the page just enough to capture the swf files but unfortunately the script just kept reloading over and over, and the one page loader that I found that reloded one time only worked great in FF but not in stupid IE(god I hate IE) Anyways any help would  be greatly appreciate and returned in great karma :)
Avatar of GregArnott
GregArnott
Flag of Australia image

Have you considered loading in the swfs as iFrame contents?

Thus the JavaScript controlling them can stay on the current page, and you simply refresh, update or replace each of these content regions as required.

Avatar of ukraze
ukraze

ASKER

Thank you for posting, but I'm not too clear about this solution, could you please elaborate more? - Where would the Iframe go? and what javascript code would I use?
ASKER CERTIFIED SOLUTION
Avatar of GregArnott
GregArnott
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ukraze

ASKER

Thank you Greg I will give this a try today after work and let you know if it worked out. :)
Avatar of ukraze

ASKER

Sorry about the delay on reply. I followed and applied a slightly different version what you suggested
and its is working out good. Thank you

One more question if you don't mind? i have an swf file coming through that iframe which is playing audio. I cant lower the audio on that file cause that same swf file will be called to open in another window with its audio playing. so how can silence the audio on the iframe without affecting its sound playback in the window that it will open in.
I'd try starting with the loading option:
autostart = "false"
Then toggle playback when its window is selected.

This would mean you're not changing default audio, nor have to add control frames to your swf, and still have your swf preloading.
Avatar of ukraze

ASKER

Are you talking about doing this in actionscript? and if so, can you show me a sample code for toggling the playback?
This is in the html code or javascript depending which method you are using to call and play your swf files.

I've avoided all AS methods.