Flash CS3 - Resize HTML Window

Ok, I will word this in a different way. I posted earlier and
received no responses. So, I will post once again.
I am trying to make sure that my Flash CS3 Html web page
stays centered across various computer monitor
platforms.
I found this code in an earlier post and wondering if the
code will work.
self.moveTo(0,0);
self.resizeTo(screen.availWidth,screen.availHeight);
Also, how many on this forum are working in Flash CS3? I know
it's quite different than Flash 8.
Thanks,
Franchelle

I'm still not sure about exactly what it is that you want to
do. In any case, let me explain the various options that you have
to displaying your Flash movie in an HTML document.
In the Publish Settings window, in the HTML tab, there are
two settings that will effect how your movie displays itself. The
first is titled "Dimensions" and has three options: Match Movie,
Pixels, and, Percent. Match Movie will force your Flash movie to be
presented in its original dimensions. Pixels will allow you to set
an absolute size for the movie. Percent will set the movie's size
to a percentage of the available HTML window space.
The second option, "Scale", has four options: Default, No
Border, Exact Fit, and, No scale. Default will show your movie
scaled to fit the window, No Border will allow your movie to scale
without regard to the original proportions. Exact Fit will scale
the movie in proportion to its original size. No scale will keep
your Flash movie at its original size and resize matte around the
movie to fill the available space. Scale has no meaning unless you
use either Pixels or Percent in the Dimensions option setting.
If you want to fill the HTML window space, regardless of its
size, then use Pixels for the Dimension option and set the values
for the width and height to 100%. If you want your movie to fill
the window and enlarge or reduce as needed, then choose Default for
the Scale option. If you want your Flash movie to remain at its
original size and the matte to fill the available space in the HTML
window then choose No scale for the Scale option.
There are two other options on the Publish Settings screen
that seem as though they would be useful, but they are not. The
first is the HTML alignment option. This can be set for Default,
Left, Right, Top, or, Bottom. Most are meaningless. Any setting
except Right will force the Flash movie to sit in the upper left
corner of the HTML window if the Dimensions and Scale options are
left to their defaults. Using the Right setting will force the
Flash movie to the upper right corner of the HTML window.
The second option is the Flash Alignment option. This option
will position the Flash movie relative to matte. This option will
only take effect if you choose Pixels or Percent in the Dimensions
option and a Scale option of No scale.
There are no settings in the Flash Publising Options, or
anywhere else in Flash to set or change the size of the HTML
window, or to position that window on the user's monitor screen.
The size and location of the HTML window is controlled by the
browser.
You need to use Javascript control the browser window. This
will only work if the end user has Javascript enabled. To position
a browser window, you use the moveTo() function. A simple function
to position a window might look like this:
<script language="javascript">
function centerWindow() {
var thisWidth = window.outerWidth;
var newX = (screen.width - thisWidth) /2;
self.moveTo(newX,0);
</script>
window.outerWidth will return the width in pixels of the HTML
window, including any chrome on the sides of the window.
Screen.width will return the width of the user's screen.
Self.moveTo(x,y) will move the current HTML window to pixel values
in the parens.
To change the size of the HTML window itself, you use the
resizeTo() function. Here's a simple example:
<script language="javascript">
function maximizeWindow() {
self.moveTo(0,0);
self.resizeTo(screen.availWidth,screen.availHeight);
</script>
This example uses screen.availWidth instead of screen.width.
Screen.width will return the full width of the user's screen,
screen.availWidth will return the width minus any space occupied by
widgets that will not give up their space.
In order to completely fill the HTML window with your
content, you will also need to reduce the size of the window's
margins. You can use a simple CSS declaration in the head of the
HTML document to achieve this:
<style type="text/css">
body {margin: 0px}
</style>
This will work for every browser, except Opera. Opera also
pads the window object. So, you'll need to add this line to account
for Opera users: padding: 0px.
You can use a combination of all of these settings to size
and position your Flash movie and the HTML window on your end
user's screen as you like.

Similar Messages

  • Flash CS3 Pro and Windows 7

    I'm having a couple of peculiar issues with Flash on my new computer and was hoping to get some suggestions on what might be causing them.  I have Windows 7 (64) and Flash CS3 Professional.  Flash itself installs fine and runs fine.  But two issues crop up. 
    The first is that, when Flash tries to update itself, it runs into multiple errors - saying that the source files have moved and so it can't update them.  I install everything into C:\ and make no changes to Flash's location during or after installation...so I'm not sure how anything could have moved anywhere other then where Flash would have wanted them to be in the first place. 
    The second issue is actually more of a problem.  Flash seems to be running some sort of interference with my internet connection.  This happens either immediately after I restart the computer after installation or (this last time) a few days later.  My computer boots up and, suddenly, I can't access the internet.  When I remove Flash and restart, my connection is fine.  I've never had this sort of problem before and I'm not terribly tech savvy so I'm not sure how to go about trouble-shooting it.  I tried doing a very bare-bones installation of CS3 to see if it was one of the extra programs causing the problem and it took a few days before the net conked out - but I eventually again had to uninstall. 
    Any help would be greatly appreciated. 

    Nancy,
    More information on your HP would be helpful.
    Also, when you did the installation, did you first turn off all AV, pop-up blocking and spysweeping software?
    Do you have your Firewall, and the Win7 Security measures turned off?
    Have you updated to the latest Flash Player?
    Are you installing to C:\? The exact destination folder is not important, but being on your C:\ is.
    Did you ever have a trial version of PrPro on your computer? If you did, you will want to uninstall the current attempted installation, if you can, run the Adobe Clean Script CS3 a few times, maybe followed by a good Registry cleaner, like CCleaner, and then install as Administrator, with the above considerations.
    After you have attempted to install, have you gotten any error, or warning messages? Those could be very important. Please post the complete text of any.
    Good luck,
    Hunt
    PS - I assume that you posted to the Adobe (old Macromedia) Flash forum of this problem. Did the users there offer you any ideas?

  • [CS2/CS3] - Resizable dialog window

    Hello,     I would like to create resizable dialog window with only few widgets, please does anybody have some sample of resources, how to do it or some link ?  Thank you for all answers, marxin

    Could you please advise me where to place additional widgets like TreeView and so on ?
    Here is my resizable dialog resource with treeview on it:
    resource AI2DialogWidget (kSDKDefDialogResourceID + index_enUS)
        __FILE__,
        __LINE__,
        kAI2DialogWidgetID, // WidgetID
        kPMRsrcID_None, // RsrcID
        kBindAll, // Binding
        Frame(0,0,406,412) // Frame (l,t,r,b)
        kTrue,
        kTrue, // Visible, Enabled
        kFalse, // erase background
        kInterfacePaletteFill, // fill color
        kAI2DialogTitleKey, // Dialog name
            ErasablePrimaryResourcePanelWidget
                __FILE__,
                __LINE__,
                0,
                kPMRsrcID_None,
                kBindAll,
                Frame(0,0,290,400) // Frame
                kTrue,
                kTrue,
                kFalse, // Erase background
                kInterfacePaletteFill, // Erase to color
                    /* Tree view for tests! */
                    AI2SectionsTreeViewWidget
                        kAI2SectionsTreeViewWidgetID,
                        kPMRsrcID_None, // WidgetId, RsrcId
                        kBindAll,
                        Frame(0,0,289,399) // Frame
                        kTrue,
                        kTrue, // Visible, Enabled
                        kTrue, // EraseBeforeDraw
                        kInterfacePaletteFill, // InterfaceColor
                        kFalse, // Display root node
                        kTrue, // Use H Scroll bar
                        kTrue, // Use V scroll bar
                        20, // fVScrollButtonIncrement
                        20, // fVThumbScrollIncrement
                        20, // fHScrollButtonIncrement
                        20, // fHThumbScrollIncrement
                        2, // Items selectable, 0 = No Selection, 1 = Single Selection, 2 = Multiple Selection
                        kFalse, // Allow children from multiple parents to be selected
                        kFalse, // Allow discontiguous selection
            //<FREDDYWIDGETDEFLISTUS>
            DefaultButtonWidget
                kOKButtonWidgetID, // WidgetID
                kSysButtonPMRsrcId, // RsrcID
                kBindRight, // Binding
                Frame(309,14,389,34) // Frame (l,t,r,b)
                kTrue,
                kTrue, // Visible, Enabled
                kSDKDefOKButtonApplicationKey,  // Button text
            CancelButtonWidget
                kCancelButton_WidgetID, // WidgetID
                kSysButtonPMRsrcId, // RsrcID
                kBindRight, // Binding
                Frame(309,44,389,64) // Frame (l,t,r,b)
                kTrue,
                kTrue, // Visible, Enabled
                kSDKDefCancelButtonApplicationKey, // Button name
                kTrue,  // Change to Reset on option-click.
            //</FREDDYWIDGETDEFLISTUS>
            DialogOnlySizeBoxWidget
                kDialogWindowSizeBoxWidgetID,
                kSysWindowSizeBoxPMRsrcId,
                kBindRight | kBindBottom,
                Frame(389,394,407,412)
                kTrue,
                kTrue,
                kADBEIconSuiteButtonType,

  • Adobe Flash CS3 Professional with Windows8

    Can't download Adobe Flash CS3 Professional using Windows 8. Help!!
    Adobe Flash CS3 Professional

    if you follow all 7 steps you can directly download a trial here:  http://prodesigntools.com/download-adobe-cs4-and-cs3-free-trials-here.html
    and activate with your serial number.
    if you have a problem downloading, you didn't follow all 7 steps, or your browser does not accept cookies. 
    the most common problem is caused by failing to meticulously follow steps 1,2 and/or 3 (which adds a cookie to your system enabling you to download the correct version from adobe.com). 
    failure to obtain that cookie results in an error page being displayed after clicking a link on prodesigntools.com

  • Flash CS3 will not launch

    After years of using Flash CS3 on our Windows 7 computer, it would not launch. So we did a system recovery -(everted to factory image), re-installed Windows and updates, installed Flash CS3, then successfully did the license verification. But Flash CS3 will not launch.
    We copied the Flash Icon from the Start Menu to the TaskBar. This is the icon we clicked on to do license verification, but now we can't use it to launch Flash CS3.
    Thanks for any ideas.
    Computer specs:
    HP - Pavilion Elite Desktop
    AMD Phenom™ II Processor
    8GB Memory
    1TB Hard Drive
    Model: HPE-210y
    Window 7 with Service Pack 1; all updates applied as of 10/26/2014
    (I realize Flash CS3 is not meant to work on Win 7, but it has for years on this computer and on a Toshiba laptop, also with AMD processor)

    Well I decided to reinstall OSX to see if that would help,
    and that seemed to fix it. I'm still not sure what the problem was,
    but a fresh install seemes to have fixed it :]

  • Flash CS3 crashes when saving custom workspace

    I have Flash CS3 on a Windows XP sp2 machine. Everytime I try
    to save a custom workspace, Flash crashes. There is no error
    messages, Flash freezes and becomes non-responsive. I have noticed
    in the Task Manger that there seems to be 2 Flash windows open at
    the time, but I never see the second instance.
    I have seen other people who have issue with Flash crashing
    with dual monitors - which I also have.
    Does anyone know of a solution?
    Thanks!

    I don't know of a solution, but what you describe is
    *exactly* what happens to me (even down to the 2 instances of Flash
    in the Task Manager). What video card are you using? I'm using an
    NVIDIA Quadro PCI-E series card.

  • Flash CS3 HTML/Javascript template files

    Has anyone heard of the javascript file that flash cs3
    produces causing .swfs to behave differently between browsers? It's
    happening to me and can't figure out why. If I use the basic of
    html to get the .swf to work, it behaves properly. When I use the
    CS3 HTML template chosen from publish settings, the file doesn't
    work properly in Internet Explorer but still works in Firefox and
    Safari. Anyone ever hear of problems with this code?

    Todd Bluewater;
    Hard to guess based on the information provided. Is
    index.html
    configured as a home page name on that particular server? Can
    you provide a
    url to check? -Tom Unger

  • Problem with actionscript window in Flash CS3 IDE

    The actionscript window doesn't open up for any frames on the
    timeline. When I press 'F9' or try to access via context menu the
    action window tab appears at the top in minimized form. No matter
    how many times I click on it or on the maximize button the window
    doesn't open up. I tried reinstalling Flash CS3 but it didn't help.
    Any help with this issue is appreciated.
    Thanks!

    Found a solution for this atlast ! Delete the Users/AppData
    folder for flash CS3 and things will be back to normal. It seems
    the Flash IDE screws somewhere while saving the local users
    settings. Clearing these settings restored my action window
    !

  • Help: symbol shifting between mac and windows, flash cs3

    I'm doing work reviewing flash files created by other users
    on mac and windows. I'm using os x 10.5.6. When I open a file
    created in windows / flash cs3 some symbols on the stage will have
    shifted upwards on the y axis. If I correct the shift and then send
    it back to the windows user they see the symbols incorrectly
    aligned, as if I had moved symbols around on a correctly aligned
    file.
    The strange thing is not everything on the stage is shifted.
    Only particular symbols will move, and it's usually symbols only
    (not text frames, drawing objects, etc).
    I believe there's a general history of bad behavior when
    saving flash files and trading them back and forth between mac and
    windows, but does anyone know what may be causing this? Or a
    remedy?
    Thank you in advance.
    Peter

    also, I tried opening the same files in vista using a mac
    mini with vista installed on a bootcamp partition. When opening
    other windows authored flash files there I had shifting issues as
    well, so I'm not convinced it's strictly a mac vs. windows issue.
    Unless it's a flash cs3 on windows xp doesn't like mac flash cs3
    and vista flash cs3...

  • Flash CS3 Default.xml not found, can't open any windows!

    So, here's the story. I am now running CC, but I have a very old Flash file that needs to be updated that uses action script 2. I still have a version of CS3 on my computer, but I get this error when I try to open a file:
    The following panel layout is missing or could not be read:
    /Applications/Adobe Flash CS3/Configuration/Workspace/Default.xml
    The application will not have a correct layout. Please load one from Windows—>Workspace Layout
    I click ok, the file opens, but I am unable to get any of my windows (layer, properties, etc) to appear, and Windows—>Workspace Layout does not exist as far as I can see. The last time I opened this program was probably a few years ago. (Not sure if this is relevant, but I recently got a new hard drive, upgraded to Mavericks, and migrated all the files & folders back to this computer with migration assistant) I just need to make some really quick adjustments to this old flash website, please help!
    thanks
    shannon

    uninstall, clean and then reinstall cs3, Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6
    Downloads available:
    Suites and Programs:  CC | CS6 | CS5.5 | CS5 | CS4 | CS3
    Acrobat:  XI, X | 9,8 | 9 standard
    Premiere Elements:  12 | 11, 10 | 9, 8, 7
    Photoshop Elements:  12 | 11, 10 | 9,8,7
    Lightroom:  5.4 (win) 5.4 (mac) | 5 | 4 | 3
    Captivate:  8 | 7 | 6 | 5
    Contribute:  CS5 | CS4, CS3
    Download and installation help for Adobe links
    Download and installation help for Prodesigntools links are listed on most linked pages.  They are critical; especially steps 1, 2 and 3.  If you click a link that does not have those steps listed, open a second window using the Lightroom 3 link to see those 'Important Instructions'.

  • Flash CS3 seams sluggish with text and if actionscript window open

    I have a movie clip on the stage that has a large text box
    inside with 18-20pt font, 3-4 paragraphs of text. When I try to
    scrub the timeline, the playhead on the timeline does not keep up
    with my mouse... it lags way behind. It's like the Flash CS3
    software starts to freeze or hang. And the text in the final swf
    movie doesn't animate on the timeline.
    What I did finally discover is that if I hide (turn off
    visiblity) the layer on the timeline that has the text movie clip,
    voila! I can now smoothly scrub the timeline. What gives??? I think
    others have had similar issues with the CS3 actionscript panel.
    My pc specs are as follows... (I think it should be beefy
    enough to handle this simple text animation).
    Vista Ultimate SP1 64-bit, Intel Quad Core, 8G Ram, 512MB
    eVGA 9800GTX graphics card

    You have to switch the focus back to the application and then
    to the test window. Evidently between Flash MX04 (the one I have to
    test) and CS3, they made it so that just clicking in the AS editor
    window doesn't return the focus to the application. In that case
    the Testing Environment intercepts the apple-enter and just
    re-tests the already compiled version.
    If you click the application window, then click the
    actionscript window, it will recompile the swf. However I
    personally don't find apple-w to close the window so
    onerous.

  • Flash CS3 debugger window background color

    Is there any way to get Flash CS3 to use the same background
    color from your actionscript settings in the debugger? It's always
    light gray--I like to use a black background for my actionscript,
    but now I'm probably going to have to change to gray since it
    appears the debugger ALWAYS uses a gray background regardless of
    your settings? (My text is white and I can't see it against the
    debugger background)
    Is there any way to change this?

    if you're wanting to look at the contents of variables,
    unlike the AS2 debugger, the movie needs to be paused, for example
    at a breakpoint. Once the movie's paused variables will appear in
    the 'Variables' window.

  • Launching a centred popup window in flash cs3

    I have followed the tutorial for doing this exact thing here:
    http://www.kirupa.com/developer/mx/centered_popup.htm
    Unfortunately this is for flash 8 and the whole way buttons
    work in flash has changed. How ould you go about replicating this
    in flash cs3?
    Thanks

    Ah yes, the javascript:function call in getURL.
    This change started happening in player 9, and was completely gone in player 10.
    This type of getURL call can easily be used to perform an injection attack on the users computer, and as such has been deemed a security risk and locked down.
    No fear, there is a new method to do this same thing. (New-er actually, as this class has existed since player 7)
    ExternalInterface.call(closeWin());
    Of course, you are using Flash MX, which can only publish to player 6 or lower.... so you may need the Flash-Javascript gateway scripts to do this: http://www.communitymx.com/content/article.cfm?cid=D7491

  • Flash CS3 Components

    What is the best way (and fastest) to change the size of the
    Flash CS3 radio button compoent? I feel so dumb.

    "jkpritchard" <[email protected]> wrote in
    message
    news:gmsi5e$icm$[email protected]..
    > Hi,
    >
    > Is there a straight-forward way to scale Flex Components
    created in Flash
    > CS3
    > dynamically, while maintaining the aspect ratio of the
    component? I'm
    > trying to
    > account for resizing of the application window (AIR) or
    browser window,
    > while
    > maintaining the general appearance of the UI (kind of
    how a flash
    > projector
    > will scale itself uniformly with the proper scale mode
    setting).
    >
    > I know scaleX and scaleY do not work, but is there
    workaround for this
    > type of
    > scaling (rather than adding listeners to the stage
    resizing and figuring
    > out
    > all the new height and width parameters on each
    component?).
    >
    > Any help is appreciated. Thanks very much.
    http://www.adobe.com/devnet/flash/articles/flex_component_workflow_04.html
    Near the bottom of the page.

  • How do I use a Flex swc in Flash CS3?

    My engineering team has used Flex to create a nice little swc
    for me to use inside of Flash CS3, but now I'm having trouble
    finding any documentation on how to actually import it. Placing it
    in the Components folder doesn't work, as it's not recognized by
    the Components window (either as an AS2 or AS3 swc). Is it even
    possible to use swcs from Flex in Flash? Thank you very much for
    the help.
    -- Jeremy

    Use these links
    Modular Applications
    http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7f22.html
    Creating Flex Libraries
    http://help.adobe.com/en_US/Flex/4.0/UsingFlashBuilder/WS6f97d7caa66ef6eb1e63e3d11b6c4d0d2 1-7fe6.html
    -Pramod
    http://www.flexmycode.com

Maybe you are looking for

  • HT1461 Can one use boot camp to play computer games normally only found for PCs?

    I have some older computer games, specifically Warhammer 40k rts games, that I woud still like to play and was curious if boot camp would allow me to play those on my mac? Also, if it is possible am I putting my computer at risk in any way? I'd like

  • Issue with making multiple web service calls without ccBPM

    I have an issue - Sync call from ECC -> check global param if EMPTY                                 -> if NOT EMPTY call Web service 1                                      -> parse the return value                                      -> call Web Ser

  • Maximum data segment size for a process

    Hello we have an issue in our proxy server with the size of a process. the process grow in size and when it reaches 4Gbytes, the process stop with an error that it cannot allocate memory, we check and there's plently of swap left,. all the ulimit set

  • Change application font size in Thunderbird 3.

    How can I change the font size in Thunderbird 3? The bold fonts are to bold and the general font size is to big I think. I have tested with creating a chrome folder in the default profile. The userChrome.css looks like this. But it didn't work. * Edi

  • How to insert row where DB date field has default value.

    APEX 4.1, Oracle 11.2 I'm trying to insert a row using "javascript:addRow();" where the report query is an SQL Query (Updateable Report). 1)  Several of the fields are display-only with defaulted values. 2)  No problem with the VARCHAR2 fields. 3)  A