Solved

My embedded swf file is not working in my html

Posted on 2010-09-14
12
528 Views
Last Modified: 2012-08-13
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-444553540000" width="600" height="120">
<param name="movie" value="logonew.swf" />
<param name="FlashVars" value="name=Dr.Solve"/>
<!--[if !IE]>-->
<object type="application/x-shockwave-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
0
Comment
Question by:ImagineIT
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
  • 2
  • +1
12 Comments
 
LVL 2

Expert Comment

by:navinmohanta
ID: 33670156
Change the following to desired

width="600" height="120"

Thanks !!
0
 
LVL 2

Expert Comment

by:navinmohanta
ID: 33670190
I mean add the following parameter scale="exactfit" to the object tag.
0
 

Author Comment

by:ImagineIT
ID: 33670201
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
0
Forrester Webinar: xMatters Delivers 261% ROI

Guest speaker Dean Davison, Forrester Principal Consultant, explains how a Fortune 500 communication company using xMatters found these results: Achieved a 261% ROI, Experienced $753,280 in net present value benefits over 3 years and Reduced MTTR by 91% for tier 1 incidents.

 
LVL 15

Accepted Solution

by:
ludofulop earned 400 total points
ID: 33670217
hi, your swf is not 600x120, but 550x400, that's the problem.
0
 
LVL 2

Expert Comment

by:navinmohanta
ID: 33670229
I mean add the following parameter scale="exactfit" to the object tag.
0
 

Author Comment

by:ImagineIT
ID: 33670239
Hi again,

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>

Open in new window

0
 
LVL 2

Expert Comment

by:navinmohanta
ID: 33670260
It has to be the property of the object tag

<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" scale="exactfit" >
0
 
LVL 5

Expert Comment

by:_-MYFOX-_
ID: 33670290
Try removing the tags embed parameters width="600" height="120"
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" />

Open in new window

0
 

Author Comment

by:ImagineIT
ID: 33670319
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?

0
 
LVL 15

Expert Comment

by:ludofulop
ID: 33670370
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:


<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>

Open in new window

0
 
LVL 2

Assisted Solution

by:navinmohanta
navinmohanta earned 100 total points
ID: 33670371
Hi,

I missed one thing need to add this to the <embed> tag
<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" scale="exactfit" />

This should solve your case.
I tried this on mine.

Thanks !
0
 

Author Closing Comment

by:ImagineIT
ID: 33670526
Great support and also very quick too. Main problem was the swf size, by changing this i was able to rectify the issue.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question