Swf = stage width in Dreamweaver

I created a Flash navigation bar with the bar = stage width
and button elements centered. Works fine in Test Movie mode or
Flash Player, but tried to insert Flash movie into Dreamweaver HTML
page as the header nav bar and the Flash file stays same size and
does not expand in width to fit stage width. Any
suggestions?

I tried that and it didn't work. This is the Actionscript
Flash code for the nav bar. Stage.scaleMode = "noScale";
Stage.align = "TL";
bar._width = Stage.width;
dots2._x = Stage.width-200;
menu_bar._x = (Stage.width/2);
symmlog._x = (Stage.width/2);
basebar._x = (Stage.width/2);
stageListener = new Object ();
stageListener.onResize = function(){
Stage.align = "TL";
bar._width = Stage.width;
dots2._x = Stage.width-200;
menu_bar._x = (Stage.width/2);
symmlog._x = (Stage.width/2);
basebar._x = (Stage.width/2);
Stage.addListener( stageListener );
The bar itself stretches to fill stage width at any screen
size, the buttons and logo center in the middle of the bar at any
size. When I add the swf file to Dreamweaver, the size of the nav
bar does not stretch to fill the stage width. The addition of the
above code seemed to make no difference. Is there anything else I
could try?

Similar Messages

  • How can I get stage width of an loaded swf?

    Is there any way to get the real stageWidth of an loaded swf?
    The problem comes when the loaded swf has some elements outside the scene. In this case content.width becomes bigger then the scene.
    My code looks like this:
    var request:URLRequest = new URLRequest(file.url);
    var loader:Loader = new Loader();
    loader.load(request);
    loader.contentLoaderInfo.addEventListener(Event.INIT, checkSize);
    loader.contentLoaderInfo.addEventListener(Event.COMPLETE, addImg);
    private function checkSize(e:Event) {
                // this is where I need to see the width of my loaded swf
    trace(e.target.content.width);
    private function addImg(e:Event) {
                    trace("complete");
    Thanks,
    Andrei

    I don't think you can get the stage width of the loaded file unless you assign it as a constant somewhere within the file.  The loaded file forfeits its stage when it is loaded into another swf

  • External SWF using stage width & height...

    Hi,
    I have an external .swf file (zoomify-esque) that I would like to use in my Flex app, but it's size attributes use the stage width and height.
    This basically means that the loaded swf file will load at 100% of the size of the stage. I can resize the loaded .swf using whatever Flex component I put it in, but that shrinks it rather than behaving like it would if I embedded it in an HTML page.
    I hope that makes sense. If anyone could help me out with this, I'd be very grateful!
    Thanks in advance,
      Alex.

    Thanks for your response Alex,
    The swf is from an external company that we pay for virtual slide serving software, and I am currently unaware of any other zooming tools that can efficiently view medical images averaging over 5 gigapixels in size. If you know of any, that'd be really useful, but correctly embedding the original swf is preferred.
      Alex.

  • Loading flash 8 SWF in adobe AIR, loses the stage width in flash 8 SWF

    Currently i am using a CS3 IDE to compile AIR application.I
    am trying to load the flash 8 SWF inside my AIR application.After
    loading the SWF, when i try to trace the stage width inside the
    flash 8 SWF , it says undefined.Not sure why..
    Googling few hours not able to get the solution.
    Please help me on this, urgently needed.
    Thanks in advance

    This is a fairly common question on these forums. Basically,
    AS2 and AS3(Flex/AIR) can't communicate directly. You will either
    need to use LocalConnection or use ExternalInterface and javascript
    to pass info between the 2.

  • Stage.width undefined

    I have an existing Flash 8/AS2 game that uses Stage.width and
    Stage.height quite a bit, problem is that when I package as an AIR
    app the Stage.width and Stage.height properties are undefined,
    although Stage itself still shows up as an Object with 8-10
    properties, all of which are undefined.
    Under Flash 8/AS2 how can you get Stage.width and
    Stage.height to work in AIR?
    Any help is appreciated!!

    Is this still a know issue? is there a fix?
    I have the same problem and as i can see the bug is open
    since april 2008.
    Regards

  • Maximum Stage Width

    I built a video player w/ fullscreen mode. I just upgraded my
    moniter to a 30" and when I tested the video player my bg_mc did
    not scale the total width of the screen. I then checked youtube,
    revver, dailymotion, ect. All had the same behavior. I tried adding
    1000 pixels to the Stage width and it had no affect.
    Why is the max Stage.width smaller then consumer monitor
    resolutions?
    What is the max width for a single mc?
    When is this going to be corrected?

    This is a peer-to-peer forum, and by no means official
    support. Please
    Contact Adobe for
    official support.

  • Why don't links placed in swf files work in Dreamweaver?

    I created a swf file and embeded a link in in to go to another page in my site. The application program (Easy Web Animator) generates the swf file and an html file. When I open the generated html file, the link to another page works when I click on the button. But if I import this swf file in dreamweaver, the link does not work. The generated html file dosen't seem to have anything extra to make the link work, it seems it just dosent work when placed in Dreamweaver.
    Anyone with any suggestions, please
    Dexter.

    Hello, Nancy
    I feel so stupid. I uploaded both files to my server, and they are 
    both working now (on the server). I have been previewing the file in a 
    browser on my hard drive all the time, and the original worked, but 
    the file placed in Dreamweaver did not. But they both work when 
    uploaded to the server!
    I don't understand it, but maybe you can. I would love to know why I 
    wasted about 2 days just trying every different setting I can in the 
    swf file and in dreamweaver.
    Thanks for the help!!!!!!!
    Dexter

  • [svn:fx-trunk] 12007: When the Internet Explorer browser window is obscured Stage. width and Stage.height never return the proper sizes until/ unless the IE window is unobscured long enough for the player to feel it needs to render initially .

    Revision: 12007
    Revision: 12007
    Author:   [email protected]
    Date:     2009-11-19 12:45:27 -0800 (Thu, 19 Nov 2009)
    Log Message:
    When the Internet Explorer browser window is obscured Stage.width and Stage.height never return the proper sizes until/unless the IE window is unobscured long enough for the player to feel it needs to render initially.  This was preventing our preloader from completing, since we were waiting for a non-0 Stage size.  Took a slightly different approach to solving the bug for which the original logic was added to work around.
    QE notes: None
    Doc notes: None
    Bugs: SDK-24191
    Reviewer: Alex, Evtim
    Tests run: Checkin
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/non-0
        http://bugs.adobe.com/jira/browse/SDK-24191
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManager.as
        flex/sdk/trunk/frameworks/projects/framework/src/mx/preloaders/Preloader.as

    Revision: 12007
    Revision: 12007
    Author:   [email protected]
    Date:     2009-11-19 12:45:27 -0800 (Thu, 19 Nov 2009)
    Log Message:
    When the Internet Explorer browser window is obscured Stage.width and Stage.height never return the proper sizes until/unless the IE window is unobscured long enough for the player to feel it needs to render initially.  This was preventing our preloader from completing, since we were waiting for a non-0 Stage size.  Took a slightly different approach to solving the bug for which the original logic was added to work around.
    QE notes: None
    Doc notes: None
    Bugs: SDK-24191
    Reviewer: Alex, Evtim
    Tests run: Checkin
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/non-0
        http://bugs.adobe.com/jira/browse/SDK-24191
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManager.as
        flex/sdk/trunk/frameworks/projects/framework/src/mx/preloaders/Preloader.as

  • Is there a limit to stage width?

    Whenever I try to set stage width to anything larger than
    1000px, Flash doesn't actually cap the number to 1000 but creates a
    file that's significantly less than a target width. I traced the
    Stage.width and what's really bizzare is that numbers are not
    consistent across projects and even change after restarting!!! Like
    I would try to set the width to 1200, 1500 or 2000 px in one
    project and the traced value would always be 1023 but 1173 in
    another. Then after restarting, 1023 would change to 1025 and 1173
    to 1186!!!. Am I going crazy?

    visitor13 wrote:
    > Whenever I try to set stage width to anything larger
    than 1000px, Flash doesn't
    > actually cap the number to 1000 but creates a file
    that's significantly less
    > than a target width. I traced the Stage.width and what's
    really bizzare is that
    > numbers are not consistent across projects and even
    change after restarting!!!
    > Like I would try to set the width to 1200, 1500 or 2000
    px in one project and
    > the traced value would always be 1023 but 1173 in
    another. Then after
    > restarting, 1023 would change to 1025 and 1173 to
    1186!!!. Am I going crazy?
    2880x2880
    Best Regards
    Urami
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • CS5 Device Central Stage.width/Stage.height update problem when change the device profile.

    When creating FL 3.0/3.1 app   and testing it at the CS5 Device Central if you change the profile of the active device(select different phone with different screen size) Stage.width/Stage.height could't change. Always stays the same as the first device's Stage.width and height. Even if you add addListener with Delegate nothing happends. Also it effects to Screen Oriantation. It looks like a problem or is this a bug?

    Having the same problem, though I can't get it to connect even once. I just started researching the problem tonight - no solution yet...
    I'm on Windows 7 Pro 64-bit, Production Premium CS 5.5.
    I've got no other internet issues, Adobe update works fine.
    Please - Anybody have an idea how to troubleshoot this problem?
    Thank you.

  • Get the stage.width before including on DisplayList

    Hi!
    I have a component, that automatically get the stage.width
    and stage.height. But the property stage is not valid until I draw
    the component with a addChild method. I would like to get the
    stage.width and stage.height properties without needing to include
    the component on the DisplayList.
    So, two questions:
    1. Is there a way to get the stage.width and stage.height
    without adding it to DisplayList (with a addChild)?
    2. What is my component does not extens a DisplayObject, how
    do I get the stage.width?
    Thank you,
    CaioToOn!

    So, any suggestions?
    CaioToOn!

  • Edge Animate Stage size in Dreamweaver fluid grid

    I have developed an animation and have almost everything scaling and resizing acceptably in a Dreamwaevr template...except the stage.
    In Edge animate I have a stage size that is 1212px x 400px. When the animation is viewed on a PC all the dimensions are fine, but when viewed in tablet or mobile phone, the vertical height remains at 400px... which leaves an enormous gap between the bottom of the animation and the next div.
    I have set the stage dimensions to %, and have turned on the "link width & height" switch, and the stage still does not respond in vertical height.
    How can I get the stage to respond vertically with a fluid grid layout in Dreamweaver?
    I also note that every time I open up a previously saved Edge Animate file, the stage automatically opens the file at 550x400px, instead of the correct dimension for that animation, so that I have to then reset the stage size to what is correct for that animation... ..any reason this may be so?
    Thanks,
    Glen.

    Thanks for your reply. You're right about most people not resizing their viewport during a session, but unfortunately the problem exists whether the screen is being resized or not. Refreshing the screen doesn't solve the problem.
    The width of the div adjusts to the width of the screen as expected and the Edge Animate composition inside it does too, but the height of the div doesn't adjust. As the animation gets smaller to fit the width, the height of the div that contains it remains the same, leaving empty space at the bottom of the div. What is needed is for the div to scale to fit the page width proportionally. Instead, only the width is adjusting.
    So I guess I need to know if there's either a way to force the div to scale proportionally or a way to tell it to adjust to the animation that it contains.

  • Swf not working in dreamweaver help

    ok i have a file that i downloaded with a flash photo gallery in it. now everything works fine on my cpu i click the swf file it opens and works fine. ok i uploaded that whole folder for the flash gallery to my server and when i click view on the html file that came with it it opens up the gallery fine and also when i click view on the swf file that I uploaded to the server it comes up fine. but when i put the html code for the gallery in dreamweaver it wont show the gallery in the preview browser nor when i save the dreamweaver project to my server will it show the gallery through the saved html from dreamweaver. like i said all works fine until i post it in to dreamweaver I really need help with this i have been trying to get it to work for a week now with no luck. ty

    As Murray said (twice now), your Flash photo gallery is  invisible to the world's most popular devices -- iPhone, iPad, iTouch, current Androids, etc...
    As far as I'm concerned unless you run a gaming site, Flash is a dead web technology.
    You'll reach a much wider audience with jQuery
    http://www.smashingapps.com/2011/01/07/awesome-jquery-techniques-to-create-visually-impres sive-photo-galleries.html
    Just thought you should know.
    Nancy O.

  • Add sound to image button (in swf to add to Dreamweaver)

    Someone
    PLEASE help...
    I have been trying to do what I thought would be a simple
    task. I am creating my first website (www.crypticart.com) in DW8. I
    want to add short sound clips I have recorded of the bells and
    chimes to the images I have created for the top navigation;
    specifically here:
    http://www.crypticart.com/intro.asp. I have tried every way
    I can determine in DW without success.
    I found a reference on Adobe's website which suggested
    creating in Flash a .swf file that contains the .mp3 or .wav sound
    file, then importing this into DW8.
    Unfortunately, I cannot find instructions that are clear
    enough for me to accomplish (I am very new to Flash). I have tried
    a DW extension (insert sound), but that didn't work.
    It seems like this should be something easily to accomplish.
    Any guidance will be greatly appreciated![b/]
    email: [email protected]

    tliszt,
    Couldn't you just re-create the navbar in Flash? Then, you
    could just use the "Linkage" option. I used this method to play
    music when the mouse is rolled over a movieclip. Here is my music
    page:
    http://www.theclownship.com/music.htm
    Hope that will help. I used Dreamweaver & Flash8

  • Swf and links in dreamweaver

    Can anyone help me figure out how to make my swf files (animated buttons created in flash cs4 / as3 ) work in my dreamweaver site (cs4) as links to go from one html page to another ?
    Thanks in advance for anyones help,
    [email protected]

    I cannot open CS4 files, but in any case, you made things easier for me to go thru by actually creating buttons. Select the button and give it an instance name in the Properties panel, let's say you name it "btn"
    In the actions layer, insert the following code...
    // this is an event handler function for the event listener
    function gotoPage(evt:MouseEvent):void {
         var url:String = "http://www.url.com/webpage.html";
         var req:URLRequest = new URLRequest(url);
         navigateToURL(req);
    // this is an event listener assignment for the button
    btn.addEventListener(MouseEvent.CLICK, gotoPage);
    I showed the above function coded as I did so that you can see the individual pieces that make it up.  Those pieces could be combined into one line...
    function gotoPage(evt:MouseEvent):void {
         navigateToURL(new URLRequest( "http://www.url.com/webpage.html"));
    And if the html pages are in the same domain, you should be able to use relative references for them rather than absolute.

Maybe you are looking for

  • Kernel error on startx after upgrade to kernel 3.0

    After upgrading i can no longer start X. The screen turns black and the computer does not respond to input, I am however able to login using ssh. The system is a intel atom cpu and nvidia ion gpu using the nvidia driver. I'll be thankfull for any hel

  • Acrobat pro extended 9 re-installation

    I have an Acrobat Pro Extended 9 installed on my old computer. I have the disc and try to install it on my new computer using the serial number that is still registeered in my account. The answer I get is that the "serial number is not valid". On the

  • Connectivity to MS SQL Server

    Hi All, We have an oracle 8i database and an MS Sql Server 2000 db. These two communicate with each other using some ODBC connection. From Oracle SQLPLUS, I am able to query object that are in the MS Sql Server but the problem is that the query (sele

  • Code for setting KM Folder properties(standard & custom)

    Hi, How do I programatically set the KM Folder properties(standard as well as custom defined) ? Also, how do I programatically set KM Document properties(standard & custom) and its Permissions ? (I have NWDS setup to do the development) Any API refer

  • How can we make 1 window to be displayed on top of other window in smartfor

    Dear friends,                    How can we make 1 window to be displayed on top of other window in smartforms as i m not getting content of a window which is placed above other window?