Fluid layout since the beginning

hello.
i have a website with a fluid layout. in the website i have only one element that is "fluid" (it's kind of a mediaplayer which is suppoused to be always in the center of the page).
i write some line of code...and it works...but only if i resize the page...i wish to have it in the center since the beginning.
here it's the code:
// LAYOUT CONTROL -----------------------------------------------------------------------
addEventListener (Event.ADDED_TO_STAGE, onAdded);
function onAdded ( e:Event ):void
    stage.align = StageAlign.TOP_LEFT;
    stage.scaleMode = StageScaleMode.NO_SCALE;
    stage.addEventListener (Event.RESIZE, resizePage);
// resizePage  ------------------------------------------------------
function resizePage ( e:Event = null ):void
    if ( stage )
bg.x = stage.stageWidth / 2 ;
bg.y = stage.stageHeight / 2 ;
media.x = stage.stageWidth / 2 ;
media.y = stage.stageHeight / 2 ;
resizePage ();

You could try it like so:
// LAYOUT CONTROL -----------------------------------------------------------------------
addEventListener (Event.ADDED_TO_STAGE, onAdded);
function onAdded ( e:Event ):void
    stage.align = StageAlign.TOP_LEFT;
    stage.scaleMode = StageScaleMode.NO_SCALE;
    stage.addEventListener (Event.RESIZE, resizePage);
     resizePage ();
// resizePage  ------------------------------------------------------
function resizePage ( e:Event = null ):void
    if ( stage )
bg.x = stage.stageWidth / 2 ;
bg.y = stage.stageHeight / 2 ;
media.x = stage.stageWidth / 2 ;
media.y = stage.stageHeight / 2 ;

Similar Messages

  • I have been a loyal customer for years and have a hot spot because internet options are very limited in our rural area.  I have stayed with 10G since the beginning.  Most months I don't use the 10G.  Verizon has no problem with me paying for Data I don't

    I have been a loyal customer for years and have a hot spot because internet options are very limited in our rural area.  I have stayed with 10G since the beginning.  Most months I don't use the 10G.  Verizon has no problem with me paying for Data I don't use.  This month my daughter comes home from College and she accidentally uses 24G.....14 over get blind sided with $140.00 in overages.  I called Verizon today......stopped in to the store today......My neighbor told me they waved charges for her one time.  Lots of charges.....But I'm am getting no help.  Not even an offer of a payment plan to help me out.  I went back just 6 months and I have over paid for 19G.....Seems like they would like to help out their loyal customers!!!!     Does anybody have any suggestions on how to deal with them?   We are not wealthy....or I would just pay this and walk away......

    There is a big misconception in what customers believe a cell carrier is obligated to do.
    You pay a set price to use up to that amount of xx data. It makes no difference if you use it to the paid limit or way under. Its like peace of mind when you don't have to worry about a data counter.
    Your daughter used the data, your plan is quite clear of what overage charges are. Why should or would Verizon wireless just forgive the charges because you are a customer? Your daughter used the data, get the money from her. That is the responsible thing to do.
    There is no "I have been a loyal customer so please remove the $120, or $250, or $2,000.00 since I did not mean to use it"
    Your electric company, or gas company or any other company does not remove valid charges. Why should Verizon wireless?
    Just pay the invoice and don't think you are being mistreated because Verizon is a business and not a charity.
    Good Luck

  • Bad wifi connection since the beginning...

    I bought my new MacBook Pro in september 2009. Since the beginning I felt that there is something wrong with its wifi connection: in the campus I was always "the last" connected, my computer needing a very strong signal to respond. But I always finished by connecting so I ignored the problem. But actually I am in a private appartment where another two macs (Black MacBooks 2009) work EVERYWHERE and I have to stay close to the wifi modem to have a connection... It is really frustrating! What should I do? What can I do? Is the wifi system in my computer broken?

    I have a older mbp and I had wifi problems all along.
    It ended up being a faulty antenna (I took it to a certified repair place (not apple store), they tried a new wireless card which didn't help, and it was not the connection to the antenna).
    For the old (2006) models the antenna was part of he display case. I'm guessing it's same with the new. I found a used display case on ebay for $15, the repair guy then took out the antenna and replaced it.
    It worked flawlessly since.
    So if you're under warrantee look into it.

  • I have been using firefox since the beginning on my Mac G-5 until today when I was asked to upgrade my browser I did so and now I can't geet firefox as my browser anymore. I s there a way to reset to the old version? I really enjoyed using Firefox.

    I can no longer get Firefox to work on my Mac G5 computer since I excepted the last suggested upgrade today. Now it says that it is not supported by this computer. I would like to know where to go to get the older version that I had been using 9.0.1 is not working for me.

    Beginning with Firefox 4, Macs must have an Intel x86 processor ('''''yours is a PPC Mac''''') '''''<u>and</u>''''' OSX 10.5 or higher ('''''which you do not have''''').
    *System Requirements: [https://www.mozilla.org/en-US/firefox/4.0/system-requirements/index.html Firefox 4] [https://www.mozilla.org/en-US/firefox/5.0/system-requirements/index.html Firefox 5] [https://www.mozilla.org/en-US/firefox/6.0/system-requirements/index.html Firefox 6] [https://www.mozilla.org/en-US/firefox/7.0/system-requirements/index.html Firefox 7] [https://www.mozilla.org/en-US/firefox/8.0/system-requirements/index.html Firefox 8] [https://www.mozilla.org/en-US/firefox/9.0/system-requirements/index.html Firefox 9]
    '''''The good news''''' is that Firefox 3.6.x still supports OSX 10.4 and Macs with the PPC Mac architecture. '''''The bad news''''' is that support for the Firefox 3.6.x series is likely to end in the first quarter of 2012.
    *System requirements: [https://www.mozilla.org/en-US/firefox/3.6/system-requirements/index.html Firefox 3.6.x]
    *Download Firefox 3.6.x: https://www.mozilla.org/en-US/firefox/all-older.html
    *Also see --> http://support.mozilla.com/en-US/kb/Installing+Firefox+on+Mac
    You can try the third-party product '''''TenFourFox''''' that supports PPC Macs with OSX 10.4.11 and OSX 10.5.8. Firefox 9 version of '''''TenFourFox''''' is available. The product is based on Firefox released versions. All support is provided by the developer, not by this site:
    *Home page: http://www.floodgap.com/software/tenfourfox/
    *Developer's blog: http://tenfourfox.blogspot.com/
    *'''''VERY IMPORTANT'''''; '''read this carefully''': https://code.google.com/p/tenfourfox/wiki/ReleaseNotes90
    *'''''VERY IMPORTANT'''''; '''read this carefully''': https://code.google.com/p/tenfourfox/wiki/PluginsNoLongerSupported
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''

  • How do I create a list of all my visited tabs(history since the beginning of time)

    I have more than eighty thousands pages I have visited since I created my profile.
    It is really slow now and I need to make a list of all the pages(the most efficient file format).
    Can I do that?

    You may be able to do that by using the SQLite Manager extension to export the history.<br />
    You may need to do that in a few steps in case it takes too long to precess all history items in one run.
    See:
    *[[/questions/821413]]
    *[[/questions/835204]]

  • Rent a movie and do not know how to start it .. there is no button that says rent .... or see.  Since the beginning?

    It's so simple to rent a movie ... but not to be downloaded and not as log ... should be very simple.
    1 Video rented .... click .... and Begin!

    Hi Warnsix,
    If you have questions about how to rent or play a movie through iTunes, you may find the following article helpful:
    Apple Support: How to rent a movie from the iTunes Store on your computer
    http://support.apple.com/kb/ht1390
    Cheers,
    - Brenden

  • Why is Firefox 4 so lame? I've loved Firefox since the beginning but v.4 is so SLOW I am now using Safari again. I deleted v.3 -- can I get a download of it still?

    It appears that Firefox 4 is unable to find common high-traffic servers without a massive lag. Sites like The Washington Post. Facebook and Yahoo. These sites are taking almost five minutes to load in my laptop. It makes the browser useless to me -- and I constantly have to close out of it and go to Safari -- which I hate. But now I hate Firefox more. Whoever programmed this terrible software update has done for Firefox what the Coca Cola guy did to Classic when he introduced "New Coke". What a darn shame.

    Maybe it is a problematic add-on? At the top of the Firefox window, select Help<Restart With Add-ons Disabled. This will start Firefox in safe mode. If you notice anything is faster, than chances are the problem you were having was an extension. Disable all of them, then begin enabling them one by one. Restart each time you disable an add-on. If you notice Firefox is slow after enabling a certain add-on, then, problem solved (hopefully).
    Another thing you can do is install FasterFox, a helpful add-on that increases the speed of Firefox. Download here: https://addons.mozilla.org/en-US/firefox/addon/fasterfox-9148/

  • Cant get back purchases. Apple ID acts as new but it has been the same email since the beginning. What to do?

    So recently i realised that my ID acts like new. It cannot get back(restore) old purchases, not even inapp purchases.
    I checked my emails and exatly a year ago i got an email from apple which said"welcome to itunes store" and that newbie blah blah like i just registered, but i have the receits from earlier on the same email adresse. Please help me!

    Hi,
    On your iPhone delete the Apple ID you are using (As it is linked to your husband's iPhone)
    On the Mac in the Finder use the Go Menu whilst holding down the ALT key.
    Select the Library that appears.
    Navigate to the Preferences.
    Find the item com.apple.ids.service.com.apple.madrid.plist
    Drag it to the trash.
    Restart the Messages app.
    It will want you to re-enter an Apple ID.
    Get your own Apple ID as Eric says.
    Enter this on the Mac and the iPhone.
    Sharing an Apple ID is only really good for iTunes and syncing things through iCloud.
    FaceTime and the iMessages account should really have their own.
    8:43 pm      Monday; January 5, 2015
    ​  iMac 2.5Ghz i5 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

  • IPad not sync with windows vista since the beginning

    iPad is not talking to the windows Vista computer. Plugging the cable make bips but no recognition of the iPad. Additional iTunes locks and becomes irresponsive. Softwares loaded to many times and always showing impaled OK. Many hours lost just loading and removing softwares. No one seems to get the right detail that lock the iTunes.
    Tks

    iTunes is 10.2.2.12 they announced that the last patch should solve Vista blockages ...not on mine anyway!
    Tks

  • My iPhone 5 was restored to factory settings in error . I discovered that i cloud wasn't turned on and iTunes seems to have stopped backing up since the beginning of February.  Is there any way to restore the data. Any restoration programs?

    When I intially synced to Itunes I got an error message -50.  Many of my apps were lost also as well as a month's data. I upgraded my software to 7.0.6 and tried again.  The apps returned but the data is still missing.  I see that there are many data restoration programmes out there but do they work and which is the best?
    I'd appreciate any help.

    Restoring an iPad from an iTunes-generated backup should not require an Apple ID password.
    Did you encrypt the iPad backup? If so, then trying to restore will require entering the encryption password.

  • I can't see any new emails since the beginning of the new year.

    I can retrieve them on my phone and yahoo acct, but not from my mail icon.  What do I need to do?

    Open Mail.
    From the menu bar top of the screen click Mailbox > Take All Accounts Online
    Then click the envelope icon top left corner of the window to, "get new messages in all accounts".

  • My IPad mini wifi only has been glitching out since the beginning of term 2 of my school year it has been very annoying and I need my device for school as I'm in a E-Learning class!!!!!!!!!!!

    I need my Ipad for school!

    Not me.  Neither I nor anyone in my family has had any problems with any of our iDevices upgrading to iOS 6.
    Probably user error or faiure to take the recommended troubleshooting steps.

  • Why don't you get some c/c++ grizzled veterans on your team and fix the memory leaks that have dogged FireFox ever since the beginning?

    It's not plugins or extensions. This is a problem that never goes away. Memory usage creeps up into the multiple GBs (I have 12 GB of ram, the more you give the more it takes), and eventually the little OOPS Firefox crashed dialog is the only thing running. What about reviving the Electrolysis project for multi-process operation? In modern versions of IE and Chrome, this capability is so useful to kill off offending tabs.

    Electrolysis is alive and well, and is currently hot on track for a future release. Please note that Electrolysis (or per-tab process) doesn't improve memory usage (In fact Chrome has significantly worse memory usage than Firefox because of it). One thing we are trying to do right is make sure we don't worsen memory usage because of Electrolysis.
    Memory usage is something that's difficult to work on with little information, so if you want help please provide us some more data such as your about:support (type it in your url bar and press enter) and your about:memory (same)

  • Question about Fluid Layouts

    Hello there. I want to make a fluid layout for the website I'm working on right now. I know the basic concepts of how to center an object and keep it there, or how to stick a shape to the top or bottom... etc. But if there's a movieclip that I would like it to conserve its position proportionally as the visitor resizes the stage, how can I do that?

    Hi,
    Try this way..
    If u using a movieclip then the x and y must be depend up on the stage
    for ex:
    mc.x = Stage.stageWidth - 30;
    mc.y = Stage.stageHeight - 30;
    Saransoft

  • Where is the design tab in fluid layout

    Hello,
    I'm using the latest version of Dreamweaver downloaded from Adobe CC.
    Following some YouTube tutorials.
    When creating normal html pages at the top left hand side of the screen there are three buttons
    "code" "split" "live"
    The last one "live" has a small drop down arrow and i can toggle between "live" and "design"
    I started watching some tutorials about fluid design templates.
    In the videos they are still clicking on the "design" button.
    When create a fluid grid page in this new version, the "design" option isn't there at all. Only "code" "split" "live" remain.
    I just wondered if this is something that has been changed in the program and the "design" view is not an option any more?
    Could someone clarify that for me, and if it is hidden, please could they point it out. Seems like a lot of fluid grid tutorials on youtube are working with the design view, so its a bit difficult if i can't view that page in that mode.
    Thanks in advance
    Nick

    Design View was removed from FluidGrid Layouts in the October release of CC 2014.1.
    There has been much discussion on this topic. 
    Is there any way to display the Design View in fluid grid pages?
    Provide "Design View" for Fluid Grid Webpages
    Nancy O.

Maybe you are looking for

  • [SOLVED]Where does 'gsettings' write to?

    //BEGIN EDIT Ok, I found out that gsettings correctly saves the changes and that the missing wallpaper is some other bug entirely. The point addressed here is therefore solved //END EDIT I had some problems with a disappearing wallpaper in GNOME and

  • Selective Document Printing

    Hello All! I wonder if there are any plans on adding a feature to the new SAP upgrade which would allow selective document printing. What I mean is it would be great, when printing a batch of AR Invoices for example, to be able to select not only a d

  • Time differences when syncronizing iCal and SonyEricsson W810i

    Does anyone know why the time of appointments and other entries in the calendar is different in my phone and in iCal? There seems to be one hour dislocation... For example, if I add an appointment using my phone, setting it to 13.00-14.00, after sync

  • @RANK Function - Help!

    I am using the following function in my outline which is 2 pass calc: It ranks the sales of associates.@RANK(SKIPMISSING,Sales, @RANGE(Sales,@LEVMBRS(EMPLOYEES,0)));It works fine on upperlevel time dimension members that are dynamic calc, but it fail

  • Dual boot two oems on new build

    Have built a new desktop. Asus Z97 pro mb, intel 4790k cpu, 16gb ddr3 1333 memory. 1ssd 120gb, 1ssd 240gb, 1 WD 1Tb hard drive for data Purchased two windows 7 oems. Home Premium 32bit and professional 64bit with the components all from the same supp