PDA

View Full Version : [FLASH MX] swf is not loading while imported in html file.



subha20
08-19-2006, 09:53 AM
Hi Everybody

I have a typical problem. I am loading two different swf movie in a swf movie("flashbanner.swf").

at the 1st Frame the AS is

loadMovie("links.swf",3);
loadMovie("logo.swf", 2);

here "links.swf" is a swf movie
and
"logo.swf" is another movie

I am calling that two different movies in "flashbanner.swf" movie.

While I am opening (in flash player) the "falshbanner.swf" it showing two movies that the complete movie that I want.

But when I am importing that "flashbanner.swf" in html (I am using Dreamwaver MX) then the movie is not loading the other two movies.
I have acuumulated all 3 swf movies in a different folder and the html file is at the same folder also. But it is not working.

the html code is:

<html>
<head>
<title>Flash</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="1000" height="250">
<param name="movie" value="media/flashbanner.swf">
<param name="quality" value="high">
<embed src="media/flashbanner.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="1000" height="250"></embed></object></td>
</tr>
</table>


</body>
</html>

Can anyone plz help me?

Regards
Subha

BLiZZaRD
08-19-2006, 10:39 AM
I have acuumulated all 3 swf movies in a different folder and the html file is at the same folder also.

Everything needs to be in the same directory. In your case in the same folder as well.

Different dierctory calling doesn't work in Flash, a security feature of some sort.

subha20
08-22-2006, 12:55 PM
Hi BLiZZaRD
Thanks for your reply.

Regards
Subha

BLiZZaRD
08-23-2006, 11:54 AM
Your welcome... does that mean problem is solved? hope so! :)