ImagineIT
asked on
My embedded swf file is not working in my html
Hi,
My Swf logo on my home page is appearing really small and i cant for the life of me work out why.
it is 600 x 120 but you can barely see it.
code:
<object id="flashId" classid="clsid27CDB6E-AE6D -11cf-96B8 -444553540 000" width="600" height="120">
<param name="movie" value="logonew.swf" />
<param name="FlashVars" value="name=Dr.Solve"/>
<!--[if !IE]>-->
<object type="application/x-shockw ave-flash" data="logonew.swf" width="600" height="120">
<param name="FlashVars" value="name=Dr.Solve"/>
<!--<![endif]-->
<div>
<h1>Alternative content</h1>
<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
</div>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
the swf is in the root of my html folder along with the index.html page
Any clues?
THanks
here is a URL to the site so you can see:
http://thinkpod.ath.cx:81
My Swf logo on my home page is appearing really small and i cant for the life of me work out why.
it is 600 x 120 but you can barely see it.
code:
<object id="flashId" classid="clsid27CDB6E-AE6D
<param name="movie" value="logonew.swf" />
<param name="FlashVars" value="name=Dr.Solve"/>
<!--[if !IE]>-->
<object type="application/x-shockw
<param name="FlashVars" value="name=Dr.Solve"/>
<!--<![endif]-->
<div>
<h1>Alternative content</h1>
<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
</div>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
the swf is in the root of my html folder along with the index.html page
Any clues?
THanks
here is a URL to the site so you can see:
http://thinkpod.ath.cx:81
I mean add the following parameter scale="exactfit" to the object tag.
ASKER
Hi there,
The problem of making that larger is that the area underneath gets pushed down and leaves too much white space.
The SWF was created at 600 x 120 - so in theory the size in the script is correct.
Any more ideas?
Capture.PNG
The problem of making that larger is that the area underneath gets pushed down and leaves too much white space.
The SWF was created at 600 x 120 - so in theory the size in the script is correct.
Any more ideas?
Capture.PNG
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I mean add the following parameter scale="exactfit" to the object tag.
ASKER
Hi again,
I added the Parameter, hasn't made any difference.
I added the Parameter, hasn't made any difference.
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"
width="600" height="120" id="Untitled-1" >
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="logonew.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<param name="scale" value="exactfit" />
<embed src="logonew.swf" quality="high" bgcolor="#ffffff" width="600"
height="120" name="mymovie" align="middle" allowScriptAccess="sameDomain"
type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" />
</object>
It has to be the property of the object tag
<object classid="clsid:d27cdb6e-ae 6d-11cf-96 b8-4445535 40000"
codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"
width="600" height="120" id="Untitled-1" scale="exactfit" >
<object classid="clsid:d27cdb6e-ae
codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"
width="600" height="120" id="Untitled-1" scale="exactfit" >
Try removing the tags embed parameters width="600" height="120"
like this
like this
<embed src="logonew.swf" quality="high" bgcolor="#ffffff" name="mymovie" align="middle" allowScriptAccess="sameDomain"
type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" />
ASKER
Hello,
have tried making both of those changes, but still not working.
ludofulup: is there a way of changing the size of the swf without creating the movie again?
Thanks for help thus far...hopefully you have some more suggestions?
have tried making both of those changes, but still not working.
ludofulup: is there a way of changing the size of the swf without creating the movie again?
Thanks for help thus far...hopefully you have some more suggestions?
ImagineIT:
i think you can't change the swf dimensions without editing in flash
what you can do, is to place the swf into a div with specified dimensions and setting it's overflow to hidden:
i think you can't change the swf dimensions without editing in flash
what you can do, is to place the swf into a div with specified dimensions and setting it's overflow to hidden:
<html>
<body>
<div style="height: 120px; width: 550px; overflow: hidden">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="550" height="400" id="logonew" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="logonew.swf" />
<param name="quality" value="high" />
<embed src="logonew.swf" quality="high" width="550" height="400" name="logonew" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</div>
Lorem ipsum
</body>
</html>
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Great support and also very quick too. Main problem was the swf size, by changing this i was able to rectify the issue.
width="600" height="120"
Thanks !!