Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / General Flash Topics / July 2008



Tip: Looking for answers? Try searching our database.

Scaling a Flash movie to reduce its size

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
sb98052 - 30 Jun 2008 22:23 GMT
Hi,

I'd like to scale the size of a flash movie on an HTML page to reduce its
size. My movie is 700x400 pixels large, but I would like to display it in
different sizes depending on the context in the website. For example, I'd like
it to fit into a small <div> sized at 175x100 in a given context.

I've tried various combination of the SCALE, WIDTH and HEIGHT options, but
each of these causes the movie to get cropped (and not scaled). In particular,
I tried setting the width and height parameters in the <embed> and <object>
tags to 40%, and the scale parameter to (each of) "showall", "exactfit" and
"noborder" but it yielded the same result, of cropping.

Does anybody have any ideas? Is this even possible?

Thanks in advance,
s
MikeTheVike1 - 30 Jun 2008 23:08 GMT
Using the standard html generated by flash, I have changed all the width and height settings to something smaller and it successfully scaled down a larger movie...
sb98052 - 30 Jun 2008 23:20 GMT
HI Mike,

Thank you for your reply.  When you say smaller, did you change them to
different pixel values, or to different percentages? I've tried both (changing
'width' and 'height' in AC_FL_RunContent) and also in the object embed tags,
but to the effect of cropping.
MikeTheVike1 - 01 Jul 2008 14:02 GMT
I attached the html code that was used to scale down a larger movie. Original
movie was like larger than the size on the html.  One thing I thought of is
maybe you aren't scaling the sizes down correctly...You have to reduce it using
the correct ratio.  For instance, if you wanted the movie to be half size, you
couldn't just divide each number by two, that might be why its cropping.    

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Title</title>
<script language="javascript">AC_FL_RunContent = 0;</script>
<script src="AC_RunActiveContent.js" language="javascript"></script>
</head>
<body style="text-align:center; background-color: white">
<!--url's used in the movie-->
<!--text used in the movie-->
<!-- saved from url=(0013)about:internet -->

<div style="background-color: black; width: 960px; height: 542px; margin-left:
auto; margin-right: auto">
<script language="javascript">
    if (AC_FL_RunContent == 0) {
        alert("This page requires AC_RunActiveContent.js.");
    } else {
        AC_FL_RunContent(
            'codebase',
'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0
,0,0',
            'width', '960',
            'height', '542',
            'src', 'movie',
            'quality', 'high',
            'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
            'align', 'middle',
            'play', 'true',
            'loop', 'true',
            'scale', 'showall',
            'wmode', 'window',
            'devicefont', 'false',
            'id', 'movie',
            'bgcolor', '#ffffff',
            'name', 'movie',
            'menu', 'true',
            'allowFullScreen', 'false',
            'allowScriptAccess','sameDomain',
            'movie', 'movie',
            'salign', ''
            ); //end AC code
    }
</script>
<noscript>
    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#ve
rsion=9,0,0,0" width="960" height="542" id="movie" align="middle">
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="allowFullScreen" value="false" />
    <param name="movie" value="movie.swf" /><param name="quality" value="high"
/><param name="bgcolor" value="white" />    <embed src="movie.swf" quality="high"
bgcolor="white" width="960" height="542" name="movie" align="middle"
allowScriptAccess="sameDomain" allowFullScreen="false"
type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer" />
    </object>
</noscript>
</div>

</body>
</html>
sb98052 - 01 Jul 2008 22:40 GMT
Hi Mike,

I found the problem, thanks for your help.

S
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.