Avatar of DrDamnit
DrDamnitFlag for United States of America

asked on 

SWF won't scale?

I am trying to play a swf.

This is the default code that Dreamweaver gives me, and it works. The problem is, when I change the width and height to something reasonable, (600x326) the player shrinks, but the content doesn't, so you only see the center 50% of the video.

I have tried adding:
<param name="scale" value="noscale">

Open in new window

But that doesn't do anything.
When the SWF file plays, if I hit right-click, Show All, everything can be seen just fine.

Here's the starter code I am working with.

For the points: add the paran (or whatever I need) to make the content show in the 600x326 player size. Or... show me an alternative way to play this silly swf file.

<object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="1360" height="739">
	  <param name="movie" value="videos/1389146962.swf">
	  <param name="quality" value="high">
	  <param name="wmode" value="opaque">
	  <param name="swfversion" value="8.0.35.0">
	  <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
	  <param name="expressinstall" value="Scripts/expressInstall.swf">
	  <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
	  <!--[if !IE]>-->
	  <object type="application/x-shockwave-flash" data="videos/1389146962.swf" width="1360" height="739">
	    <!--<![endif]-->
	    <param name="quality" value="high">
	    <param name="wmode" value="opaque">
	    <param name="swfversion" value="8.0.35.0">
	    <param name="expressinstall" value="Scripts/expressInstall.swf">
	    <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
	    <div>
	      <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
	      <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" width="112" height="33" /></a></p>
        </div>
	    <!--[if !IE]>-->
      </object>
	  <!--<![endif]-->
</object>

Open in new window

Adobe FlashAdobe DreamweaverJavaScript

Avatar of undefined
Last Comment
Scott Fell
ASKER CERTIFIED SOLUTION
Avatar of Scott Fell
Scott Fell
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of Scott Fell
Scott Fell
Flag of United States of America image

Just checking in... Does using flowplayer make sense or do you want to stick with flash/object?  

I have not used the flash embed in a long time myself and have mostly used flowplayer.   If you have an older version of dreamweaver it gives you the wrong code.
Avatar of DrDamnit
DrDamnit
Flag of United States of America image

ASKER

I am stuck with an SWF because it is something produced by jing. I really wish it was some other form of video because at least I can grab / transcode, do what I want, but SWF bytecode is a pain....
Avatar of Scott Fell
Scott Fell
Flag of United States of America image

I tested the embed code and it does resize.  Did you change the width and height in both places?  Or did you use dreamweaver to auto generate the embed code?  I think if you use dreamweaver, it will detect the actual size and use it.  Try the code below and see what happens.   Also, does jing allow you to physically resize the video?  The reason you wan to physically resize is the actual file size will shrink and it will load faster.  More importantly, it is possible the video may not look as good as full size especially if you are using text.  

<object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="600" height="326">
	  <param name="movie" value="videos/1389146962.swf">
	  <param name="quality" value="high">
	  <param name="wmode" value="opaque">
	  <param name="swfversion" value="8.0.35.0">
	  <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
	  <param name="expressinstall" value="Scripts/expressInstall.swf">
	  <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
	  <!--[if !IE]>-->
	  <object type="application/x-shockwave-flash" data="videos/1389146962.swf" width="600" height="326">
	    <!--<![endif]-->
	    <param name="quality" value="high">
	    <param name="wmode" value="opaque">
	    <param name="swfversion" value="8.0.35.0">
	    <param name="expressinstall" value="Scripts/expressInstall.swf">
	    <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
	    <div>
	      <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
	      <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" width="112" height="33" /></a></p>
        </div>
	    <!--[if !IE]>-->
      </object>
	  <!--<![endif]-->
</object>

Open in new window


Ning is showing a different way to embed http://creators.ning.com/forum/topics/html5-tip-valid-flash-embed-code

It has been a long time since I have used this type of code. I typically have used something like flowplayer.
JavaScript
JavaScript

JavaScript is a dynamic, object-based language commonly used for client-side scripting in web browsers. Recently, server side JavaScript frameworks have also emerged. JavaScript runs on nearly every operating system and in almost every mainstream web browser.

127K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo