Reply LinkBack Thread Tools Search this Thread
Old 07-01-2008, 05:19   #1 (permalink)
martynrlee
Registered User
 
Join Date: Jan 2008
Posts: 17
Loading all jpg/gif images before swf begins loading

Hi Guys,

I posted this message in the flash forum... not had any response so just wondered if maybe someone here could help me...

I have a swf file embeded in a html/css page containing a few images and am looking for a method to pause the loading of the swf until all the jpg/gif images on the rest of the page have loaded?

At the moment only some of the images load first, then the swf file preloads, then the swf file plays and the remainder of the images load. It is ok if the end user has a fast connection, but if not.... it looks a little unprofessional.

All help most appreciated... even if its just pointing me in the right direction.

Martyn.
  Reply With Quote
Old 07-01-2008, 05:35   #2 (permalink)
mx
fucksocks™
 
mx's Avatar
 
Join Date: Jun 2005
Location: in the boosh
Posts: 1,622
You can do this by using swfObject to load the swf and using body onload to delay the swfobject js function from running until the page has fully loaded.
__________________
  Reply With Quote
Old 07-01-2008, 05:36   #3 (permalink)
JonoMarshall
Day-Glo Jazz Monkey
 
JonoMarshall's Avatar
 
Join Date: Mar 2007
Location: Shoreditch, London
Posts: 1,129
Send a message via Skype™ to JonoMarshall
Are you using a preloader on your flash file? If the images are inside the .swf (and not xml linked or similar) and you're using a preloader you should be fine?
  Reply With Quote
Old 07-01-2008, 05:43   #4 (permalink)
mx
fucksocks™
 
mx's Avatar
 
Join Date: Jun 2005
Location: in the boosh
Posts: 1,622
Quote:
Originally Posted by martynrlee
pause the loading of the swf until all the jpg/gif images on the rest of the page have loaded?

I think he means the images outside the flash need to load first.
__________________
  Reply With Quote
Old 07-01-2008, 06:05   #5 (permalink)
martynrlee
Registered User
 
Join Date: Jan 2008
Posts: 17
Mx is right, I was looking for a method to load images outside the flash first...

I have come across the body onload method before for an alt use, that's a great idea.

cheers for a lightning speed response
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8