Aran-

I get the same results if I run the embed code instantly as opposed to
waiting for the user to click a button. I know it's not an issue with
my preloaders because all the flash files are ones that I used on my
old website. I would load them in pop-up windows and the preloaders
worked as expected. Now however I'm working on a new site that loads
the swfs inside the page via swfobject and the preloader no longer
shows up.

Thanks for the link on the onClick tutorial though, I will try it and
see if it fixes my issue.

On Apr 13, 1:48 am, "Aran Rhee" <[email protected]> wrote:
> Shawn
>
> So if you load the swf without the click using swfobject, does the preloader
> appear? Unfortunately, pointing to the swf directly isn't a really good
> comparison of how it will behave in an HTML page.
>
> BTW - Have a look at Philip's onClick loading tutorial here. It should get
> you up and happening on the HTML/js side of things:
>
> http://pipwerks.com/lab/swfobject/load-onclick/2.0/index.html
>
> My initial guess is that the preloader may not actually be working the way
> you think it is. Have you unticked export on first frame for all of your
> classes / set a class export frame / moved assets to the correct location to
> allow the preloader to work as it should. Have a look at the bandwidth
> profiler when you export your swf to see how many bytes are on each frame.
> If you preload code is on frame 1, the bytes value for that frame should be
> really small compared to when your main assets are actually loaded...
>
> Aran
>
> -----Original Message-----
> From: [email protected] [mailto:[email protected]] On
>
> Behalf Of Shawn
> Sent: Monday, 13 April 2009 3:52 AM
> To: SWFObject
> Subject: SWF doesn't appear until fully loaded
>
> I'm embedding .swfs on my page with the dynamic publishing method of
> swfobject. I'm loading the .swf into a div when they click the 'play'
> button with some javascript. Everything works fine but the .swf wont
> actually appear on the screen until it has been fully loaded,
> completely ignoring the preloader functionality.
>
> //JAVASCRIPT THAT IS CALLED WHEN THE USER CLICKS 'PLAY'
> //id, width, and height have been passed into the function
>
> var attributes = {};
> attributes.name = attributes.id = 'ContentFile_'+id;
> swfobject.embedSWF('/media/swf/uploads/content_files/content_file_'+id
> +'.swf', 'actual_content', width, height, '9.0.0', false, false,
> attributes);
>
> //END JAVASCRIPT
>
> the preloader works fine if I access the .swf directly in the
> browser.
> any ideas?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SWFObject" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/swfobject?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to