Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 03-07-2005, 08:01 PM   #1
miiiriam
back to Flash
 
Join Date: Oct 2002
Location: Germany
Posts: 168
Default banner should load after html site that embeds it

Hi,
I created a flash banner. What I promised the client, though, was that it wouldn't interfere with the site's loading. I imagined the surrounding text would load much faster anyway. But looking at the site now it seems to load the banner first. It wasn't my job to embed the file into the final dreamweaver doc, but I wanted to at least recommend them a way of doing it, so that it has the effect the client wanted.

Is there a way to hold off the loading of the swf until it finished loading?

(The banner runs a preloader upfront so that it doesn't start prematurely but that of course doesn't include the loading of the html.)
miiiriam is offline   Reply With Quote
Old 03-07-2005, 09:22 PM   #2
tg
done
 
Join Date: Jun 2001
Location: portland, or
Posts: 8,106
Default

have a javascript function that actually writes out the <object> & <embed> tags.
trigger the javascript function on the 'onLoad' event for the html document. that way the flash piece wont be written/embedded into the page until after the page has been loaded.
__________________
tg
---
what the hell was i thinking?
tg is offline   Reply With Quote
Old 03-08-2005, 05:30 PM   #3
miiiriam
back to Flash
 
Join Date: Oct 2002
Location: Germany
Posts: 168
Default

sweet, I knew there would be a way around it. Thanks TG. The problem is I know no javascript, I only use the little javascript dreamweaver generates in my pages. Could you elaborate a little on this issue? If I knew some key javascript commands to use for this I could probably look it up somewhere.

Thanks anyway.
miiiriam is offline   Reply With Quote
Old 05-12-2005, 10:06 AM   #4
miiiriam
back to Flash
 
Join Date: Oct 2002
Location: Germany
Posts: 168
Default

could somebody help me out with the javascript for this? I know no js whatshowever to try out what tg proposed. (Thanks tg)
miiiriam is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:57 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.