swfobject 2.1 makes my flash movie extra tiny!

2 views
Skip to first unread message

Sean

unread,
Jul 22, 2008, 12:48:12 AM7/22/08
to SWFObject
Hi There,

I'm pretty new to using the swfobject library and I was wondering why
my movie looks so tiny in the browser window. What parameter do I need
to add to this code in order to make it work.

<script type="text/javascript">
swfobject.embedSWF("menu_master.swf?highlights=<
%Response.Write(Mid(base.Page.ToString(),4)); %>", "movieCont", "847",
"78", "9.0.0","expressInstall.swf","noscale");
</script>

Sean - thanks in advance

Getify Solutions, Inc.

unread,
Jul 22, 2008, 1:24:04 AM7/22/08
to swfo...@googlegroups.com
First off, your parameters for embedSWF() are improper. You're fine up to
the "expressInstall.swf" parameter, but after that you pass "noscale" as a
string. Check the API documentation for embedSWF() here:
http://code.google.com/p/swfobject/wiki/api

Namely, you need to pass 3 objects: 'flashvarsObj', 'parObj', and 'attObj',
in that order. You need to pass an empty object { } for an empty parameter.
For setting the "noscale" value, you need to set a *param*, which goes in
the parObj, and is called "scale" and its *value* is "noscale".

So, this parObj object would look like: {scale:"noscale"}
Therefore, your embedSWF() call should look like:

swfobject.embedSWF("menu_master.swf?highlights=<%Response.Write(Mid(base.Page.ToString(),4));
%>", "movieCont", "847","78",

"9.0.0","expressInstall.swf",{ },{scale:"noscale"},{ });


This is probably your problem. If not, you might also see if there is CSS
on the page that is styling the "movieCont" container with width/height
properties, or perhaps some page element that is surrounding the "movieCont"
element. This is the next most likely culprit.

--Kyle

--------------------------------------------------
From: "Sean" <bull...@gmail.com>
Sent: Monday, July 21, 2008 11:48 PM
To: "SWFObject" <swfo...@googlegroups.com>
Subject: swfobject 2.1 makes my flash movie extra tiny!

Reply all
Reply to author
Forward
0 new messages