Google Answers Logo
View Question
 
Q: How to Make Macromedia Flash be the Last Item to Load on a Page ( No Answer,   2 Comments )
Question  
Subject: How to Make Macromedia Flash be the Last Item to Load on a Page
Category: Computers > Programming
Asked by: eugenevdm1234-ga
List Price: $10.00
Posted: 24 Nov 2005 12:53 PST
Expires: 24 Dec 2005 12:53 PST
Question ID: 597210
I have a problem with an ASP web page that uses a Javascript menu and
that also contains a Macromedia Flash object. Whenever the page is
loaded in Internet Explorer parts of the images do not load. When I
test this from my work on our local area network it's fine, but most
of my clients are complaining that it isn't working.

The page is here: http://age.snowball.co.za/expeditions/countries/index.asp?countryID=127

You should notice a large banner picture appear below the menu and two
pictures on the left hand side. Any of these three pictures may not
load. Also, when the pictures do not load the menu also stops
functioning. Sometimes one or two of the picture load, but often only
half of the banner picture loads and the rest is missing. When you
press right click and Show Picture they do appear.

This problem does not occur in Firefox.

My theory is that IE interprets the onload event differently than
Firefox which causes a problem when you have Flash on the page. I
would like to change the page so that the Flash always load last as an
experiment.
Answer  
There is no answer at this time.

Comments  
Subject: Re: How to Make Macromedia Flash be the Last Item to Load on a Page
From: b_cummins-ga on 27 Nov 2005 15:29 PST
 
You could try something along these lines.


put script block somewhere at the top of the page.
<script langauge="javascript">


	function setMovie() {
		document.all.content.innerHTML = "<OBJECT
classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\"codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\"WIDTH=527
HEIGHT=391 id=\"movie\"><PARAM NAME=movie
VALUE=\"http://age.snowball.co.za/expeditions/countries/malawi.swf\">
<PARAM NAME=quality VALUE=low> <PARAM NAME=bgcolor VALUE=#FFFFFF>
<PARAM NAME=wmode VALUE=transparent> <EMBED
src=\"http://age.snowball.co.za/expeditions/countries/malawi.swf\"
quality=low wmode=transparent swLiveConnect=true bgcolor=#FFFFFF 
WIDTH=527 HEIGHT=391 TYPE=\"application/x-shockwave-flash\"
PLUGINSPAGE=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\"></EMBED></OBJECT>";
	}

</script>
------------- >8 ----------------<br>
put this bit where you want the movie to be
<div id="content">
</div><br>
------------- 8< ----------------
<br><br>

either body this in the body tag, or
onLoad="setMovie();"

put a tempory button (as you only said you wanted to experiment
<input type="button" onclick="setMovie();" value="set movie">
Subject: Re: How to Make Macromedia Flash be the Last Item to Load on a Page
From: eugenevdm1234-ga on 29 Nov 2005 00:46 PST
 
Dear b_cummins-ga,

You are my hero! My web designers were able to implement your
suggestion and the problem is solved. Thank you so much for helping me
out of my bind.

kind regards,
Eugene van der Merwe
Managing Director
Snowball Effect (Pty) Ltd

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy