Sizing of flash in webpage

I have a flash document that I want to always take up the entire web page.
Setting to 100% width & 100% height doesn't do the trick, because if the window dimensions aren't right, white space will show on the sides/top and bottom.
Is there a way to get the window dimensions are say if window height > window width : flash movie = window height  (and vice versa)?
Here's the script I'm working on that doesn't seem to cut it:
<script type="text/javascript">
window.onload=changewidth;
window.onresize = function(event)
changewidth();
function changewidth(){
//Gets window dimensions
var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
//Non-IE
myWidth = window.innerWidth;
myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
//IE 6+ in 'standards compliant mode'
myWidth = document.documentElement.clientWidth;
myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
//IE 4 compatible
myWidth = document.body.clientWidth;
myHeight = document.body.clientHeight;
  var holder = document.getElementById("flashContent");
  if(myWidth > myHeight)
holder.style.width = myWidth+'px';
else if(myHeight > myWidth)
holder.style.height = myHeight+'px';
</script>
<style type="text/css" media="screen">
html, body { height:100%; background-color: #ffffff;}
body { margin:0; padding:0; overflow:hidden; }
#flashContent { width:100%; height:100%; }
</style>
</head>
<body>
<div id="flashContent">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="100%" height="100%" id="engine_room2" align="middle">
etc...
Hope this makes sense. any help that can be offered, I'd really appreciate it. The page I'm working on is here: http://sea-fire.com/commercial/systemdesign/engine_room2.html
Thanks again!

you can always use a stage resize listener to scale your stage.  but before you do experiment with the variouse stage.scaleMode settings to see if one suits your needs.

Similar Messages

  • Display flash on webpage

    I have many pages with old object tags embedding flash movies. every time i open thse pages in dw cs3, it wants to convert them and says it will create the 2 .js files ac_activex.js and ac_runactivecontent.js The runactive file does reside in the scripts folder, but the other one is always missing. I finally downloaded it from a website and copied it to the scripts folder, the flash movie is still not shown by the browser. I can run the flash movie by linking to it directly, but can't get it to run from a webpage--at least not unless I use the old pre cs3 dw html page.

    I have many pages with old object tags embedding flash movies. every time i open thse pages in dw cs3, it wants to convert them and says it will create the 2 .js files ac_activex.js and ac_runactivecontent.js The runactive file does reside in the scripts folder, but the other one is always missing. I finally downloaded it from a website and copied it to the scripts folder, the flash movie is still not shown by the browser. I can run the flash movie by linking to it directly, but can't get it to run from a webpage--at least not unless I use the old pre cs3 dw html page.

  • How to put flash in webpage

    I have trial for flash, and I just made my first thing! Yea,
    it's pretty good...I'm almost a pro... How do I put it on a webpage
    so it looks exactly like when I press play on Flash8?

    hello,
    well iam reviving rather an old post, well stanlee, how can i use the JMF to display the .swf file? please can i have a sample? thanx
    asrar

  • How to Load flash after webpage finished loading

    Hello everyone, I have a problem of running flash on my
    browser. My flash started to load
    when my webpage is downloading. I want the browser to
    completely loaded before the flash starts.
    Is there a way of solving this problem? My flash file is
    small compare with my webpage, so
    it alway starting to load before the browser.
    Please help

    Also use the alternate installers for Flash Player 11: http://forums.adobe.com/thread/909550

  • Insert flash in webpage

    Hello everybody
    Iam new to web designing and please help me
    how to insert a flash into the webpage directly without
    embedding the flash
    that is without using <embed> tag so that page becomes
    flash itself otherwise we have to click to activate the flash
    content
    this should not happen the flash content must be
    automatically activated when the web page loads
    what the procedure for this

    Use SWFOject:
    http://blog.deconcept.com/swfobject/

  • Flash and webpages

    I have some flash content embedded in my web page. I notice
    that my drop down menus goes behind the flash content. what can i
    do about that without re arranging my webpage....
    the adobe.com home has the perfect example of what Im trying
    to achieve.
    Thanks in advance....

    One example of this problem occurring is when clicking on the pronunciation buttons on this page: http://dictionary.cambridge.org/dictionary/british/blackberry_1?q=blac kberry.
    Click the torn page(Compatibility View mode) in the One Box.  When using I.E.9, if a site has problems with Flash Player, always try the Compatibility View mode first.

  • Linking Flash to Webpages

    Hey, I'm working with Flash CS4 / ActionScript 3.0
    I just wanted to know how to link my finished flash ad to its corresponding webpage.
    -->Click anywhere on the banner and it links you to...youtube or whatever :]

    Create an invisible button the size of the ad and place it on a layer above everything else.  Then assign it an instance name via the properties panel and add some code for it in the timeline (different layer but same frame).  Let's say you name it btn...
    btn.addEventListener(MouseEvent.CLICK, openWebPage);
    function openWebPage(evt:MouseEvent):void{
         var urlReq:URLRequest = new URLRequest("http://whatever.....");
         navigateToURL(urlReq);

  • How do I keep browser from re-sizing (zooming) flash video?

    Hi,
    Some browsers (Opera, Explorer, Firefox 3) can zoom entire
    pages, including text, images, and video. My flash videos have text
    that degrades (pixelates) badly under these circumstances. How can
    I embed a flash video in DW CS3 to keep the video dimensions from
    expanding?
    Thanks in advance!
    Here's my embed code:

    Hi I have done some more digging and found this:
    1) In the bottom left corner of FCPX, click the film reel so that you can see all your projects:
    2) Select the project you are having problems with and then in the inspector window, click on the spanner icon in the lower right side:
    3) Finally a window appears so that you can choose the settings for the video you are using:
    Hope that helps
    G

  • Sizing the Flash Movie Window  with HTML

    Hello,
    I don't know why I'm having such a problem with this, but I'm
    trying to open my Flash Player in a locked dimention (600 x 450).
    what's happening is an <a href is opening the html file
    published with the swf... which in turn of course launches the
    swf... I've been trying to make the swf pop up at 600x450 but so
    far no luck. It just pops up as the same size as the previous
    window. Any ideas what I'm doing wrong here? oh, i'd also like to
    have the swf pop up without the menus/toolbars/etc.
    Thanks!

    You don't say or show what you've tried, so it's difficult to
    show what
    you've done wrong.
    From your description it sounds like you want to open a new
    custom
    chromeless window. To do that, you need to use the Javascript
    window.open() method.
    You can find thousands of examples in this forum with a
    simple search.
    You can also google "window.open" and get thousands more
    examples.

  • Invisible Fonts in Flash on Webpages

    Ever since upgrading to Snow Leopard, I've been having problems with invisible fonts in Safari on pages that use Flash Player.
    Here's what I know:
    They're always in flash, but not all fonts are invisible.
    I created a new user account and there's no problem there.
    I'm using the latest version of Flash.
    I've installed all available updates from Apple.
    Text doesn't appear in Firefox or Safari, so it's not just a Safari problem, but appears to be a Flash problem.
    Here's what I've done to attempt to fix the problem:
    Used Font Book to verify all fonts and to remove duplicate fonts installed by Snow Leopard.
    Used Font Book to turn off User Fonts, since there was no problem with the other user acccount.
    Reinstalled Flash (several times).
    Repaired permissions on disk.
    Read about a problem with iWork, so I reinstalled iWork (although I wasn't having a problem there).
    So, now what? Is there a plist or something that I can delete for Adobe Flash Player? If there's no problem with another user account, what do I do? Can I somehow easily move all my stuff (documents, pictures, music, etc.) to the new user account and then delete the old root user account?
    Thanks for any help you can give me.
    Rob
    Message was edited by: Rob Abram1

    Oops, I forgot to include a screenshot. This is from Google's stock page. The little boxes along the lower right of the graph are supposed to have letters in them that correspond to the links to the right of the graph. These show up in the other user account, but not in Safari or FireFox.

  • Troubleshooting blinding white flash between webpages

    I'm receiving a burst of blinding white over the entire screen before my home page loads.  I'm using a flash banner scroller on the home page so I suspect it may be the culpret since my other pages do not start off with this quick white flash.  It is blinding!!!  I'm sure this is a rookie mistake, but the shoe fits.  I'm using CS4 for both Dreamweaver and Flash.
    Neil

    Neil,
    If there's no link provided then it's left to be your problem since no one else can see the page in question and evaluate what the supposed problem may be.

  • Embedding Transparent Flash on webpages

    Put simply, we're running into problems with embedding a
    partially transparent Flash movie on a page that, when activated,
    rolls open and displays more content. In Firefox browsers. the
    transparent area will not allow users to click on HREF links below
    it. In IE, the flash content appears below browser-generated
    pulldown boxes.
    This swf is embedded in a div, and uses a javascript
    workaround to bypass the ActiveX issues in IE, but otherwise, it's
    a fairly standard animation with no complex
    There are lots of instances of people airing this issue
    online, but no suggested fixes. If anyone has any fixes, or
    code-based workarounds, it would be a big help.

    > There are lots of instances of people airing this issue
    online, but no
    > suggested fixes.
    Sadly, that's because there ARE no fixes. wmode="transparent"
    is and always
    has been buggy as all hell. Especially in non I.E browsers.
    Remove '_spamkiller_' to mail
    >

  • Dynamically sizing the flash window

    I would like to be able to run my Flash at 600 X 600 until it
    ends then change it to 100 X 100.
    Is this possible? If so how do I do it?
    I apologize if this is in the wrong section.

    Have flash call the javascript that resizes it on the html
    page. This is a weird request so it will probably require some
    crazy javascript on the html page to resize the swf. I have seen
    the ability to change to full screen, so it seems possible.

  • Having to click flash within webpage

    Just lately my IE. 6 has been highlighting flash andd
    creating a horrid box around it until you click on the control.
    Is this IE.6 or is it something else,
    help

    http://www.macromedia.com/devnet/activecontent/
    David
    stiller (at) quip (dot) net
    Dev essays:
    http://www.quip.net/blog/
    "Luck is the residue of good design."
    "urami_" <[email protected]>
    wrote in message
    news:e27qoh$o60$[email protected]..
    >
    >
    > iaincheyne wrote:
    >> Just lately my IE. 6 has been highlighting flash
    andd creating a horrid
    >> box around it until you click on the control. Is
    this IE.6 or is it
    >> something else,
    >
    > PLEASE !!!!
    > read the forum before posting
    > we have HUNDREDS of posts on the very same topic, some
    as far as 1 hour
    > ago...

  • Server Sizing for Flash Interactive Media 3

    Hello,
    I can't get anyone in sales to answer this question. Specs
    say any Windows 2003 32bit OS and recommends 4MB RAM. But I would
    like to put a powerful server dedicated to this function but don't
    know if this software is capable of Hyperthreading. I can have one
    or come CPU's all with multiple cores. Likewise I could install
    Windows 2003 Enterprise Server and put in a lot more memory.
    Obviously I don't want to throw money into processors,
    Enterprise OS or more RAM if this software won't take advantage of
    it.
    Any help?
    Thank you?
    Text

    Okay here is an answer to my own post based upon what I've
    learned.
    A single License of FIM3 will handle up to (2) physical
    processors limited to Dual Core. You cannot use (2) CPU's with Quad
    Core processors, this would require an additional server license on
    the same physical server.
    FIM3 was also designed to minimize memory use. 4GB is
    recommended but 8GB RAM is preferred. The later of course will
    require an upgrade to Windows 2003 OS Enterprise Version.
    My configuration below on a single server will handle
    streaming up to 1000 concurrent users with no problem.
    Dell 2950 2U rack mount
    (2) Dual Core Intel Xeon 3.0's with 4MB cache each. 1333Mhz
    Buss.
    Windows 2003 Server, Enterprise Version, 32bit.
    8GB DDR2 ECC Fully buffered RAM, 677Mhz.
    (4) 300GB 15k SAS hard drives in RAID 10 configuration (600GB
    effective use).
    Hope this helps all who search for server specs.

Maybe you are looking for

  • Internet access problems and viewing video on internet

    I have very limited interet access most of the time.  I get a message: "You are not currently in an area that can handle data communication.  ..."  I have no problem with email and other features of the phone during this time.  The signal at the top

  • New user account gid bug in Tiger

    Originally when I setup my system I did a migration from another computer to keep the uid/gid matching. My uid=xxxxx / gid=502. The gid did not have a name associated with it. When I added my Father as a new account, he got uid=501 / gid=501 and both

  • Deploying Dynamic JDBC Credentials

    I download example 14 on blog Steve Muench here: http://radio.weblogs.com/0118231/stories/2004/09/23/notYetDocumentedAdfSampleApplications.html I run application and it work perfect. (Oracle Jdeveloper 10.1.2) Then I deploy this example to The Oracle

  • Date format in report PDF      plase

    Hi all, in my report in ver. report 10g on filed is type date 1- in type html output report the format dd-mm-yyyy 2- in type PDF output report the format yyyy-mm-dd I need view in type PDF (dd-mm-yyyy) Please help me to achieve this. thanks

  • Pods are open but not visible????

    I have opened the project and moved the pods (Project Manager, Project Set Up, etc) around but seemed to have moved them to far up and now they are not visible on the screen.  I have tried closing the project and re-opneing it... hoping the pods woul