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

Similar Messages

  • How can i get my ipod to down load when it says directory is corrupted?

    how can i get my ipod to download when it says directory is corrupted?

    - Try cleaning out/blowing out the headphone jack. Try inserting/removing the plug a dozen times or so. There is a little switch in the headphone jack that disconnects the speaker when the headphone jack is inserted.
    Try the following to rule out a software problem
    - Reset the iOS device. Nothing will be lost
    Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup
    - Restore to factory settings/new iOS device.
    - Make an appointment at the Genius Bar of an Apple store. Seems you have a bad headphone jack or other hardware problem..
    Apple Retail Store - Genius Bar
    If not under warranty Apple will exchange your iPod for a refurbished one for this price. They do not fix yours.
    Apple - iPod Repair price                  
    A third-party place like the following will replace the jack for less. Google for more.
    iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens
    Replace the jack yourself
    iPod Touch Repair – iFixit

  • How can I get the width of window?

    Hi. I would like to get the width of window on IE.
    If on Netscape, I can use "window.inner(outer)Width".
    However, I don't know what to do with IE.
    I am sorry that this question might be very begginer.
    Thank you,

    and this is not a question taht in belongs in this forum! it is a IE/IE.Script question. perhaps you find an answer here: http://developer.irt.org/script/window.htm

  • How can i get the status of the loaded database in OCI ??

    Hi, buddy!
    Now i wanna get the status of the loaded database,example MOUNT, NOMOUNT,OPEN. Can i use the OCI interface to get it? if it like that,
    how can i do? Otherwise, is there another way to do in program??
    thanks!!

    My friend, thank you very much for your help!
    I have tryed according to you advice. The result is that i can connect database successfully only when the database is in the OPEN mode. I use the V$DATABAES table to find the open_mode and of course the result is OPEN, so it's correct.
    But when the database is in the MOUNT or NOMOUNT mode, i can't connect the database successfully.It will throw the exception "ORA-01033: ORACLE initialization or shutdown in progress".
    Could you tell me why? Special thanks!!!
    Message was edited by:
    user588906

  • How can i get my text back after loading ios5

    How can I make my text come back after loading IOS 5

    Do you have copies of them in the Tones section of your computer's iTunes library or on your backup of your downloads/library so that you can sync them back to your phone? If you haven't then you could try contacting iTunes Support and see if they will grant you a redownload

  • How can i get writepad for ipad to load? I have downloaded several times

    How can I getwritepad to sync to my ipad? I have downloaded it several times.

    Downloaded it to the iPad or your computer?
    If to the iPad, and you can't find it, swipe from screen to screen or bring up the search field (swipe to the right from the home screen) type in the app name and hit search.
    If to the computer you have to sync via iTunes. You must select the app - in the Apps Tab - in the main window of iTunes - when your iPad is connected to the computer - under the Sync Apps heading. Put a checkmark in the box next to the writepad app name to select it and then click apply and sync. Make sure you have a checkmark in the Sync Apps heading as well.

  • I have Firefox 19 and the screens are narrow. How can I get full width screens, like I get in IE? Full Screen command only makes my screens taller, not wider.

    I just got a new Dell Optiplex computer with Windows 7. I installed Firefox 19 on it. The web pages come up narrow, with borders on each side. So the content of the screen is smaller than what I've gotten in the past with Firefox 3.6 on my previous computer. I did the Full Screen command, and that only made the screen taller rather than giving me a full screen (such as I get with the same web pages in Internet Explorer). I've also tried enlarging the text, but that throws off the format of the web page so some parts of it overlap.
    What can I do to get a full screen, including full width?
    There is a box below this Details box called "Troubleshooting Information" which says I should click Allow and then click Install. Since I don't know what would be installed on my computer, I did not do it.

    The Troubleshooting Information extension adds some useful information to your post, but in this case, I don't think it's really needed.
    Zoom is your best bet. To make it work for you, I have two suggestions.
    (1) Switch from "text only" zoom to "full page" zoom. This is proportional like in IE.
    View menu > Zoom > ''uncheck'' Zoom Text Only
    If you are using the compact menus with the orange Firefox button, tap the Alt key to display the full classic menu bar.
    (2) Install an extension that can default your view to a higher zoom level automatically to save time when visiting new sites. Here are two candidates:
    * [https://addons.mozilla.org/en-US/firefox/addon/default-fullzoom-level/ Default FullZoom Level]
    * [https://addons.mozilla.org/en-US/firefox/addon/nosquint/ NoSquint]
    With that combination, can you minimize your eyestrain? :-)

  • How can I get a video clup to load last on my page?

    Since the entire page is trying to load at once, the quicktime file slows up everything else. If I set it to autoplay it will start playing before the page finishes loading...
    Is there a way I can go into the html file and change the order of how things load and make the video clip load last? thanks
    you can check out my site at:
    http://PrimitiveGroove.com
    thank you!
    Hunter S.

    well, it finishes loading last... b/c it is the biggest file. On some of my other pages the video is 8meg-12meg big and really slows up the load time.
    I have no problem with the length of time that it take the video to load, I just want it to load last so that the rest of the page loads first... As the large quicktime file slows up the loading of the entire page..
    What happens is that on autoplay it starts to play before the rest of the page is finished loading and looks crummy with all the lame iweb graphic squares on the page as it plays.
    So once again is there a way to get it to load last?

  • I've just updated to Mavericks but there isn't enough room on the disk.  how can i get the old OS to load reduce content?

    i dowloaded Mavericks onto my 2011 Macbook Pro and upon installing realized that there wasn't enough room on the disk for it.  problem being that now i don't know how to get into the machine at all to remove content and make space.  any assistance appreciated.

    Once you can boot to free disk space here are hints on how you can do that.
    Restart in Safe Mode:
    http://support.apple.com/kb/HT1564?viewlocale=en_US
    Empty the trash.
    - Delete all files in the Downloads folder.
      Empty the Trash.
    - Start iPhoto.  Empty its trash.
    - Delete "Recovered Messages", if any.
        Hold the option key down and click "Go" menu in the Finder menu bar.
        Select "Library" from the drop down menu.
        Library > Mail > V2 > Mailboxes
        Delete "Recovered Messages", if any.
    - Empty the Trash.
    - Restart.
    - Re-index your system disk:
      http://support.apple.com/kb/ht2409
    Backup:
    Run a Time Machine (or other) backup since you are about to delete and move files and you may need to recover from any inadvertent mistakes or decisions.
    Deleting and Offloading files:
    Use OmniDiskSweeper find large folders and files to delete or offload.  If you are running 10.8 or 10.9 download it from http://www.omnigroup.com/more.  If you are running 10.6.8 or 10.7 down it from  https://www.macupdate.com/app/mac/7402/omnidisksweeper.  Do not touch any system files.  Do not offload files onto a Time Machine disk.   Do not offload your entire user folder. Do not rely on restoring files from Time Machine; delete only those files you never want to see again.   Do delete or offload seldom use folders/files in your user folder.  Remember to empty the trash after trashing the files.
    To have Time Machine backup your system disk and your external offload disk up onto your Time Machine disk:
     > System Preferences > Time Machine > Options… > Remove the offload HD name from the exclusions list.
    From: "More ways to save space if you have a spare partition or second hard drive."
    http://www.thexlab.com/faqs/freeingspace.html
    - Compress and archive old files.
    - Clean up system logs and temporary files.
    - Uninstall Mac OS 9.
    - Move your iTunes Music folder to another disk or partition.
    - Move your iPhoto Library folder to another disk or partition.
    (Includes instructions on moving subsets of the libraries.)
    Additional references on freeing disk space:
    http://pondini.org/OSX/DiskSpace.html
    http://www.macmaps.com/diskfull.html

  • How can i get the itunes store to load ????

    I cant get the store to load . it starts and then bogs down and stops.  i have gone to help, diagonstics and uninstalled and reinstalled...updated...AAGGGH.  I have done the thing with the Itunes U and parental controls...nothing seems to help   please help.  Life with out new music stinks.

    You can try requesting it via this page (these are user-to-user forums) : http://www.apple.com/feedback/itunes.html
    But unless the the US rights-holder passes it to Apple and allows them to sell it in the US then Apple won't be able to sell it there

  • How can I get App Tabs to automatically load a fresh version of the page every time I click on them?

    I like the app tab feature and am using it for sites that I visit frequently, for example, weather sites. The problem I have is that when I click on say http://www.metoffice.gov.uk/weather/uk/ta/arbroath_forecast_weather.html I get the site as it was the last time I used it. Today this meant I got a weather forecast starting from 2 days ago, not from today.
    I can get round this if I remember to "Reload" every time but I'm guessing that is not the way app tabs were intended to work.

    One of these two add-ons should do that:
    https://addons.mozilla.org/en-US/firefox/addon/2221
    https://addons.mozilla.org/en-US/firefox/addon/777

  • How can I get my FRAMESET page, which loads blank frames in Firefox 22.0 but works in IE7, to work in Firefox?

    This is my current page, which works in IE 7:
    < HTML>< HEAD>< TITLE>My Calendar of Events< /TITLE><br>
    < base href="C:\Calendar\2013\"></HEAD ><br>
    < FRAMESET BORDER=5 ROWS="60, *" ><br>
    < FRAME NAME="navigate" SRC="navigate.html" SCROLLING="NO" MARGINWIDTH=0 MARGINHEIGHT=0 NORESIZE ><br>
    < FRAME NAME="content" SRC="load.html" SCROLLING="AUTO" MARGINWIDTH=5 MARGINHEIGHT=0>
    < /FRAMESET >< /HTML><br>
    I later added the followinging lines, the 2nd in the <head> section (to no avail):
    < !DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd" >
    < meta http-equiv="Content-Type" content="text/html; charset=utf-8" >
    The frames seem to load in Firefox 22.0, as I can see the border, but no content is displayed. I CAN get the content to display in Firefox if I open the frames manually, either by typing in the addresses or dropping the pages into a window so it 'must' be the FRAMESET page. Any help will be greatly appreciated.

    EDIT:
    I forgot to "break" the html code, so it didn't show in the question. Found the Edit option, repaired questin.

  • How can I get my Flash movie to load correctly in Internet Explorer?

    I loaded an swf into an html. It loads fine in Safari, Firefox and Opera. However, in Internet Explorer the swf covers up part of the copy. I tried everything with the css to get it to work, but it nothing has helped. Among other things, I tried changing the z-index in the css, but that doesn't do anything.  Is there a specific code I need to add to my html regarding the importing of the flash movie that would be specific to IE?

    This thread should be in either the Flash Pro forum or the Dreamweaver forum.
    This is for Flash Player and Flash Player related issues, not Flash or browser or HTML issues.

  • How can I get an AAC plus player loaded into Firefox?

    I have been listening to an Internet Radio station using IE for months. The station uses an AAC player. I switched my default browser to Firefox and can't play the station. When the player page comes up it says it is installing AAC + but after 5 minutes nothing happens.

    Firefox won't play AAC files. If the player is not Flash they will have to specify an alternate audio format for it to work in Firefox.
    Can you post a link to the station?

  • TS3297 How can I get new iTunes store to load on my XP?

    I have tried to re-instal iTunes on my XP laptop. The software installs and loads but it simply won't connect to the Apple store. It hangs until it finally stops trying. I have no issues with internet connection. It's specific to iTunes. Help!

    With those symptoms, I'd try the following document:
    Apple software on Windows: May see performance issues and blank iTunes Store
    (If there's a SpeedBit LSP showing up in Autoruns, it's usually best to just uninstall your SpeedBit Video Accelerator.)

Maybe you are looking for

  • What other little things about the iPod I should know about?

    Just a quick question, What are some of the features of the iPod Touch that are not 100% obvious? Example... Yesterday I found out that you could pull up the music controls anywhere(even locked) by pressing the "home" button twice. After finding the

  • New to bridge, preview not showing up... Help!

    Please help! I was using after effects and created a text layer. I was taught to go to Animation --> browse presets and it would open Adobe Bridge. Then I'd click on the 'text' folder then another folder inside of the 'text' folder such as 'Animate I

  • HELP ! Ipod only plays out of left headphone!

    i have tried everything. i have aquired new headphones. and the problem still occurs. i have even tried hooking it up to my car radio via Belkin tape adapter and it only play out of the left side speakers in my car. what is the problem !? PLEASE I NE

  • Mobile Database Server - Client doesn't sync all tables

    Hi, I have several tables which I want to sync with my mobile client (Android with Berkely DB). When I start a manual sync, some tables are always empty on the mobile device. Other tables works fine. I don't get any errors or messages. Has anybody an

  • IOS 7 Mail missing emails in inbox

    In the Mail app, when you delete an email and then go to trash and send it back to inbox, it will not show up in the inbox. I've tried it with many emails and none of them ever show up. When I go to my inbox using mail.live.com, the emails are all th