Chris.

You need to size your swf on the HTML page somehow. 

Even if you make your swf a certain size out of the Flash IDE / haXe etc,
you can override that size in the HTML page (you could shrink or expand a
swf and depending on the scaling you set, this could mean more BG space, or
scaling, or cropping of your swf).

The w/h can either be a fixed number of a % of a container <div> to fill.
Take note of the extra CSS code you need for a % based sizing though
(FAQ#1): http://code.google.com/p/swfobject/wiki/faq


This is what your code should look like:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="haxe"
width="50" height="50">
        <param name="movie" value="test.swf"/>
        <param name="allowScriptAccess" value="always" />       
      <!--[if !IE]>-->
      <object type="application/x-shockwave-flash" data="test.swf"
width="50" height="50">
        <param name="allowScriptAccess" value="always" />
      <!--<![endif]-->
        <p>Alternative content</p>
      <!--[if !IE]>-->
      </object>
      <!--<![endif]-->  
</object>


I truly recommend you use the code generator, as the code in your new
example was very malformed. Have a look at what is in your example vs. the
above (look at the order of object / conditional statements etc).

Some other notes:
If you are not messing around with changing the original published size, you
don't need the scale or salign params you had. Also quality of high is
default, so you can remove that too. You only need allowScriptAccess if you
are performing outbound scripting (getURL() etc)

*** make sure you add your params to both the IE and !IE block




Aran


-----Original Message-----
From: [email protected] [mailto:[email protected]] On
Behalf Of Chris
Sent: Thursday, 18 December 2008 2:11 AM
To: [email protected]
Subject: Re: Installation

Gah, I should have caught that.  Thanks for your patience, Aran.  (I
normally do well at writing my own code; I don't think I was paying full
attention yesterday.)

I've updated my code; this time I specified that the movie should display as
50x50px in the SWF (via the haXe makefile) and removed the dimensions in the
HTML.  Now the movie doesn't display at all, although it did fine before I
removed the HTML dimensions.  Why are my dimensions not honored?  (In case
you're wondering, this is just a learning experience prompted by
instructions in the haXe documentation which didn't work.)

Thanks!
Chris



On Tue, Dec 16, 2008 at 1:16 PM, Chris <[email protected]> wrote:
> Background: 
> http://lists.motion-twin.com/pipermail/haxe/2008-December/021435.html
>
> I tried to install SWFObject, but it keeps forcing the alternative 
> content.  What am I missing?  (I'm using Flash 10.0.12 in Firefox.)
>
> Thanks!
> Chris
>




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SWFObject" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/swfobject?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to