A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: swfobject help

  1. #1
    Junior Member
    Join Date
    Oct 2009
    Posts
    18

    swfobject help

    OK, you guys have been very helpful so far!

    Here is myattempt at using swfobject and alternate content:

    Code:
    <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
    <head>
    <title>This is a test</title>
    <meta http-equiv="flashMovie-Type" flashMovie="text/html; charset=iso-8859-1" />
    <style type="text/css" media="screen">
    html, body{
    margin:0;
    padding:0;
    height:100%;
    }
    #flashContainer{
    width:100%;
    height:100%;
    }
    </style>
    <script type="text/javascript" src="SWFObject.js"></script>
    <script type="text/javascript">
    //<![CDATA[
    swfobject.embedSWF("test.swf", "flashMovie", "100%", "100%", "9.0.0","expressInstall.swf");
    setFlashSize(940,625); //set the minimum width and height of your Flash movie
    //]]>
    </script>
    </head>
    <body>
    <div id="flashContainer">
    <div id="flashMovie">
    <h1>Test headline</h1>
    <p>test alt. copy goes here</p>
    </div>
    </div>
    </body>
    </html>
    I seem to be getting closer to this, but I can't get it to NOT resize the swf!

    Any help with this will be appreciated!

  2. #2
    Member
    Join Date
    Jun 2009
    Posts
    91
    Code:
    setFlashSize(940,625); //set the minimum width and height of your Flash
    If I am understanding the problem, that line is what is causing it.

  3. #3
    Junior Member
    Join Date
    Oct 2009
    Posts
    18
    Thanks, but that didn't work... it now resizes smaller AND larger, depending on the window. This must be easy, but I just don't know enough about html to solve this.
    I've been searching for a solution, but haven't found the answer yet... anyone?

  4. #4
    Junior Member
    Join Date
    Oct 2009
    Posts
    18
    OK...I think I just figured it out through trial and error. I swapped the heighth and width % with the actual size.

  5. #5
    Member
    Join Date
    Jun 2009
    Posts
    91
    OH! I misunderstood what you were talking about when you said resize. Well, glad you figured it out.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center