How to center swf in all broswer windows?

I'm having a frustrating time of this. I've tried using a
table at 100% height & width in an html page with no margins,
and it's content centred horixontally & vertically, but in
safari it always positions the swf right at the top of the screen.
I also tried using flash's publish tools, to generate the
html page and cenbtre the content but it always still generates an
html page with the flash movie in the top left corner...grrrrrr
The following link shows a site that acheived perfect
cenering in all teh browsers i've tested in...how do they do this?
is it javascript? If so how? And they also have this great way of
making the browser window open to its maximum possible dimensions
automatically , i love that - ho wcan ai d that also???
Thanks greatly for taking the time to read this post & in
advance of any help,
Cheska,

ccesca wrote:
> I'm having a frustrating time of this. I've tried using
a table at 100% height
> & width in an html page with no margins, and it's
content centred horixontally
> & vertically, but in safari it always positions the
swf right at the top of
> the screen.
>
> I also tried using flash's publish tools, to generate
the html page and
> cenbtre the content but it always still generates an
html page with the flash
> movie in the top left corner...grrrrrr
>
> The following link shows a site that acheived perfect
cenering in all teh
> browsers i've tested in...how do they do this? is it
javascript? If so how? And
> they also have this great way of making the browser
window open to its maximum
> possible dimensions automatically , i love that - ho
wcan ai d that also???
>
> Thanks greatly for taking the time to read this post
& in advance of any help,
>
> Cheska,
Most probably you have the DOCTYPE in your html.
This messes up the basic table tags.
You can either remove the line or place this in your html
HEAD tag
<style> html, body {height:100%} </style>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN"
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
<title>Untitled Document</title>
<style> html, body {height:100%} </style>
</head>
Regards
Urami
Happy New Year guys - all the best there is in the 2006
<urami>
http://www.Flashfugitive.com
</urami>
<web junk free>
http://www.firefox.com
</web junk free>

Similar Messages

  • How to find list of all open windows?

    Hi,
    I was wondering how to find a list of all open windows on the
    desktop. I have been able to use this to find the number of open
    windows in the AIR application:
    var windows:Array =
    NativeApplication.nativeApplication.openedWindows;
    test.text = String(windows.length);
    I cant seem to get the list of all open windows on the
    desktop though or the names of the windows.
    Any pointers would be appreciated.
    Thanks!

    Thanks anirudhs. I had a feeling this was the case. It just
    seemed odd that the built-in function calls like orderToBack() and
    orderToFront actually put the AIR windows behind or in front of all
    the windows on the desktop. Somehow AIR is finding the list of open
    windows on the desktop. I just didnt know if there was some way to
    access AIR's way of finding the windows. Guess it must be a
    protected function. Thanks!

  • How to center flash movie in browser window

    Can anyone explain how to horizontally center my Flash movie in the web browser window after publishing?
    A bit of background:
    I was able to achieve this using <center></center> tags a few years ago. But I have since upgraded to CS5 and I understand that this old method is now obsolete.
    I have found a few threads/forums that address this, but I know nothing about HTML and these threads don't help me because they assume you have more knowledge than I possess. When opening up the index.html file in Dreamweaver I can't find anything that looks vaguely familiar to what is being discussed. I have found some code samples using <div></div> tags but have no idea where to place it.
    So I will need it explained to me in a step by step fashion, including which file I need to fix and what program I should use. Code samples will be very welcome if you can tell me exactly where it goes.
    Thanks in advance...

    Just realized that there is no scrolling functionality with the .swf generated from the new CS5. Can anyone help out by providing revised code for centering and scrolling?
    I found something elsewhere in the forums that worked for both centering and scrolling that worked fine yesterday, but upon visiting my site today for testing, it did not allow the scrolling, and centering did not work in Firefox. Tested both Safari and Firefox on 2 Macs running Snow Leopard.
    Again, much appreciated - nice to visit forums where people are interested in helping instead of screaming at each other. Will visit the Illustrator or Indesign forum to see if I can help out someone there...

  • How to center wireframe layout in browser window

    HELP!!
    I've created a set of wireframes for a website in Proto but when I bring them up in a browser window the layout is always left aligned and I cannot figure out how to get the layout to center in the browser window.
    I've used margin: 0 auto; on the container div but it does no good, the layout stays left aligned. I'm about to pull my hair out on this one.
    The URL is http://www.bluegrasswebservices.com/kpp/index.html
    Thanks for your help
    Gary

    I had the same issue and decided to make the change myself. All you have to do is add a wrapper div, match it to the width of your file and center it via CSS. It would def be much more convenient to have this as an option, but alas your solution is below....
    HTML
    <div id="wrapper">
    Your page content
    </div>
    CSS
    #wrapper{
        width: (width of your content);
        position: relative;
        margin: 0 auto;

  • How to center selected text in document window?

    I'm using Word.select( SelectionOptions.REPLACE_WITH) to iterate through a list of words in a document. It would be handy if any off-screen selections could be automatically scrolled into the document window, as with Find/Change. Is there any way to script this?
    Thanks in advance --
    Steve

    Curiously enough, there doesn't seem to be one specific function for that (which may explain the erratic way InDesign sometimes does this). I can't remember off-hand where I saw this trick, but the following works a treat:
    app.layoutWindows[0].zoomPercentage = app.layoutWindows[0].zoomPercentage;
    -- right after your select line.

  • How to Center .SWF in Dreamweaver

    Hi,
    sorry if this sounds like a newbie question, this is my first flash website. I created my website in flash and opened the .swf in Dreamweaver. When I go to preview my website in different browsers, my website shows to the left, therfore I went to PROPERTIES and tried aligning it in the middle or absolute middle and for some reason it won't work. Although, when doing alight right or align left it works. Any help would be greatly appreciated. What am I doing wrong? I also tried right clicking on the file to edit tag object>appearance>alignment>Middle or absolute Middle and it won't work but aligning it to the left or right works though. Thanks.

    Hehe
    ... thanks. I just found out a very helpful video. In case this could be useful for somebody else. Here is the link.
    http://www.youtube.com/watch?v=koRzpSizoFo

  • How can I script a Flash .exe file to always stay on top of all other windows?

    Hi All,
    I'm new to action script, and I just need this one script
    > How can I script a Flash .exe file to always stay on top of
    all other windows?
    Basically what i want to do is have a flash-created
    step-by-step instructional movie, but for the movie to remain on
    top of all windows so the instructee is able to follow the
    instructions on-screen...
    It would be preferable to not have to buy another product
    just to do this... as I said, this is the only scripting I need.
    Thanks in advance
    Cheers
    Rick

    if you create your exe with mProjector you can use one of its
    new AS
    commands to do this.
    setZOrder
    http://www.screentime.com/software/mprojector/docs/mWin_setZOrder.htm
    all APIS
    http://www.screentime.com/software/mprojector/docs/index.html
    Demo
    http://www.screentime.com/software/mprojector/demo.html
    mProjector installs new classes and help into Flash, to
    enable them you
    must build your app with mProjector (its input is your swf)
    John Pattenden
    Screentime Media - Flash Tools since 1997
    http://www.screentime.com

  • How to center a new- opened window page?

    let's say i have 2 jsp files. i have a hyperlink in page 1, if i click that hyperlink, a pop up window will appear, how will i let that pop up window appear in center?
    thanks

    you can do it by javascript...
    function centerWindow() {
        if (document.all)
            var xMax = screen.width, yMax = screen.height;
        else
            if (document.layers)
                var xMax = window.outerWidth, yMax = window.outerHeight;
            else
                var xMax = 640, yMax=480;
        var xOffset = (xMax - 200)/2, yOffset = (yMax - 200)/2;
        window.open('page.html','windowname',
        'width=200,height=200,screenX='+xOffset+',screenY='+yOffset+',
        top='+yOffset+',left='+xOffset+'');

  • How to get all the windows ?

    Hi all,
    I created a timer which detects inactivity in the first form launched by the forms runtime shortcut :
    when-new-form-instance :
    declare
    hWind NUMBER;
    CheckTimer TIMER;
    begin
    hWind := get_window_property(FORMS_MDI_WINDOW,WINDOW_HANDLE);
    Win_API_Session.Timeout_Start_Timer(hWind);
    CheckTimer := Create_Timer('T_INACTIVITY',10000);
    end;
    And in the when-timer-expired of the same form :
    if upper(get_application_property(TIMER_NAME)) = 'T_INACTIVITY' then
    if Win_API_Session.Timeout_get_inactive_time >= 8 then
         set_window_property(:system.event_window,title,'Deconnected');
    end if;
    end if;
    My problem is that when I click on a menu item in my menu, and I do nothing during 10 seconds then only the first form's window is titled 'Deconnected' but not the current form .
    I have copied the trigger when-timer-expired of the first form to the form I called but there is nothing.
    So how to make all the windows , whether it is the active window or it is hidden , to be titled 'Deconnected' when the timer expires ?
    Thank you very much indeed.

    execute a system process that will output this data and read/parse the output
    [notice a pattern?]

  • How can I shut off all of the pop-up windows for all the Firefox updates?

    How can I shut off all of the pop-up windows for all the Firefox and Thunderbird updates?
    Apparently now Mozilla creates new versions of their browser and email apps every two weeks instead of just creating updates... I'm tired of all of the pop-up requests for these constant installation requests and all the problems that the new version installations create... I just want to use the software and be left alone.
    I can't find a way to make Firefox and Thunderbird stop with the pop-up requests for new installations... is there a way to do this or has Mozilla just got it rigged so one can't just use the software without re-installing a new version every two weeks and running in to new plugin issues and missing features every time?
    Help!
    Thanks,
    numetro

    Is it possible that her computer is infected with malware.
    Do a malware check with several malware scanning programs on the Windows computer.
    Please scan with all programs because each program detects different malware.
    All these programs have free versions.
    Make sure that you update each program to get the latest version of their databases before doing a scan.
    *Malwarebytes' Anti-Malware:<br>http://www.malwarebytes.org/mbam.php
    *AdwCleaner:<br>http://www.bleepingcomputer.com/download/adwcleaner/<br>http://www.softpedia.com/get/Antivirus/Removal-Tools/AdwCleaner.shtml
    *SuperAntispyware:<br>http://www.superantispyware.com/
    *Microsoft Safety Scanner:<br>http://www.microsoft.com/security/scanner/en-us/default.aspx
    *Windows Defender:<br>http://windows.microsoft.com/en-us/windows/using-defender
    *Spybot Search & Destroy:<br>http://www.safer-networking.org/en/index.html
    *Kasperky Free Security Scan:<br>http://www.kaspersky.com/security-scan
    You can also do a check for a rootkit infection with TDSSKiller.
    *Anti-rootkit utility TDSSKiller:<br>http://support.kaspersky.com/5350?el=88446
    See also:
    *"Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked

  • How can I get Expose to show only and all active windows, regardless of app

    Sometimes I have two applications running with several finder windows hidden on the dock. I'd like to know how I can (or if I can) get Expose to show only the Active windows - not the ones on the dock. With this new upgrade, it seems that all open windows that are on the dock appear in a row at the bottom of the screen, which takes up real estate - can I turn that function off so just the open, undocked windows of all apps show?

    Sounds like you opened a message in a new window. Have you tried closing that window and see what happens?
    If that is not it maybe you can post a screen shot of what you are seeing.

  • Please a simple problem but I don't know how to solve it. After installing 16 gb of ram all is good but when I turn on the computer it is a window signaling that all is correct. How is possible to delete once and for all that window? Thank you

    Please a simple problem but I don't know how to solve it. After installing 16 gb of ram all is good but when I turn on the computer it is a window signaling that all is correct. How is possible to delete once and for all that window? Thank you

    Well then maybe you could take a screenshot because the appearance of such a window is news to me.
    Also post your OS X version and what model Mac you have. The more detail, the better. Thanks.
    To take a screenshot hold ⌘ Shift 4 to create a selection crosshair. Click and hold while you drag the crosshair over the area you wish to capture and then release the mouse or trackpad. You will hear a "camera shutter" sound. This will deposit a screenshot on your Desktop.
    If you can't find it on your Desktop look in your Documents or Downloads folder.
    When you post your response, click the "camera" icon above the text field:
    This will display a dialog box which enables you to choose the screenshot file (remember it's on your Desktop) and click the Insert Image button.
    ⌘ Shift 4 and then pressing the space bar captures the frontmost window.
    ⌘ Shift 3 captures the entire screen.
    Drag the screenshot to the Trash after you post your reply.

  • My Macbookpro has turned into microsoft windows and lost all data, how do I recover it with my windows 7 still inside? I accidentally install directly, Help please...

    My Macbookpro has turned into microsoft windows and lost all data, how do I recover it with my windows 7 still inside? I accidentally install directly, Help please...

    ok turn it off manually and turn it back on while holding the apple logo bottor or the function botton this will give you  an option to choose if you want to startup with osx ow windows. let me know if this works
    <Email Edited By Host>

  • How do I get all Finder windows to open in spatial view?

    How do I get all Finder windows without special view options set to open in the 'spatial' mode (without the toobar or sidebar)? The ones I specifically change stay that way, but I want all new and old folders to be like that too.

    That's called the simple Finder mode. You would need to configure that as part of Parental Controls in the Accounts preferences. To make any Finder window appear that way jut click on the gadget in the top right corner of the Finder window.

  • Ungroup how do I ungroup all the windows?

    want all open windows on the task bar. Right now I only have one Firefox window SHOWING (instead of seven) and the other pages are within the grouping. Please be extremly specific....click by click.

    # Right-click the taskbar and choose Properties.
    # Click the Taskbar tab in the Taskbar and Start Menu Properties window.
    # Next to ''Taskbar buttons:'', choose either "Never Combine" or "Combine when taskbar is full".
    # Click the OK button.
    [http://windows.microsoft.com/en-us/windows7/change-how-buttons-appear-on-the-taskbar Change how buttons appear on the taskbar | Microsoft Support]

Maybe you are looking for