How can I get the width of a loaded swf scene?
Is it possible to get the real of a loaded swf stageWidth?
The problem comes when the loaded swf file has some items off the stage. 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, CaseTailleAuto);
loader.contentLoaderInfo.addEventListener (Event.COMPLETE, addImg);
private void checkSize(e:Event) {}
That's where I need to see the width of my loaded swf
trace (e.Target.Content.Width);
}
private void addImg(e:Event) {}
trace ("complete");
}
Thank you
Andrei
I don't think you can get the width of the stage of the loaded file, unless you assign it as a constant somewhere in the file. The loaded file loses its stage when it is loaded into another swf
Tags: Adobe Animate
Similar Questions
-
I need a file to an exact width and height and it must be in png format, because it allows to translucency. My graphics are only the top of the page and when I export only the graph is not exported the entire file. How can I get the entire file of export including blank parts?
in the export dialog box, you have chcked 'use of work plans? ''
-
How can I change the width of my desktop icons?
How can I change the width of my desktop icons?
The icons on my desktop became very large. Everything is so when I use the word program or watch recorded images
Thanks in advance.
Have you checked or reset the screen resolution? - http://windows.microsoft.com/en-US/windows7/Change-your-screen-resolution set it to the native resolution of the screen that you use.
If your monitor is a separate monitor (not a laptop) has a button "auto configure"? If so press on that.
It may be that you need to update your graphics card drivers. Get the latest available from the manufacturing of your PC web site and install them.
-
How can I get the messages appear when sent even if my phone is locked. I only get messages across when I activate the phone
Settings > Notifications > Messages > display on the lock screen
-
How can I get the iMovie video files in the photo library?
How can I get the video files of "iMovie - bibliotek.imovielibrary" in the photo library?
Is to select your library from the libraries pane and choose my brackets at the top of the screen. Then select the clips you want and share file on the desktop. Then import in photos.
-
My update to Apple Watch has suspended how can I get the update?
My update to Apple Watch has suspended, how can I get the update?
What do you mean by "break"?
-
How can I get the AirPort Express 1 utility generation? I lost mine.
How can I get the AirPort Express, the utility of 1st generation? I lost mine.
Open the App Store on your device, then press Search at the bottom of the screen.
Then type: airport utility in the search field of the screen top.
-
How can I get the update iOS 9.3.5?
How can I get the update iOS 9.3.5?
Settings > general > software update
-
All my old tabs are missing after a crash. I chose "view my tabs, windows and last time ', like the start option. Many unwanted changes in tab management happened recently. For example when I close a tab in a window of the two tab, I see a blank screen (see picture). Preview display seems to be broken (see attachment). How can I get the old behaviour back?
After researching the issue, it seems that the problem was a problem of NoScript configuration. After restoring NoScript to the default values, the tab number disappeared.
Thanks for your help.
MELL-
(~ J99) Also note
mellpell said
Looks like it's a known problem with Image Tweek:
http://forums.mozillazine.org/viewtopic.php?p=14029673#p14029673
https://github.com/CAFxX/ImageTweak/issues/37
https://github.com/CAFxX/ImageTweak/issues/40 -
How can I get the message from thunderbird to stop coming when I opened my email?
How can I get the message from thunderbird to stop coming when I opened my email?
Press the alt key to make the call of menu bar
Select Tools-Options-general
Disabled the Start Page -
When I try to manually associate my watch it only gives me a 5 digit number, but not the number 6 to complete the pairing. How can I get the 6 digit number?
Hello
When pairing manually, you must press the name of 5 digits on the screen of your iPhone (when he shows the same device name that is shown on your watch, after typed it on your watch's 'i'):
Your watch then displays a six-digit code, you will then enter on your iPhone:
More information:
-
After a computer crash, I had to load Thunderbird (v31.3.0) in my computer running Windows 8.1, and I managed to import my address book backup file in Thunderbird (v31.3.0).
My problem is that I don't see an option to sort the address book by name of 'Family', which was available with the version of Thunderbird, I had before the crash.
How can I get the address book to sort by the name of "family"?"Address book".
Select address book
"View' > 'Show name as' > last/first". "You can sort by name.
Click on the 'Name' column header to change the sort order,
Reversed, then click on the 'Name' column header again to reverse the order.Or
'View' > ' sort by ' > select 'Name' and 'Crescent '. -
I am trying to sync my iphone to my computer via i-tunes soft ware. It does give me an option for the phone device. How can I get the phone icon in the menu bar?
Mac or Windows?
-
How can I get the tabs colorful to use different distinct colors for 2 gmail accounts?
Under Firefox 29.0.1 iMac OSX 10.9.3. I have multiple Google accounts: 2 1 Google Calendar and gmail accounts. Colorful tabs add-on will allow me to choose a color for a gmail account, but it also uses this same color for the other gmail account. How can I get the different colors on 2 gmail accounts?
In addition, colorful tabs is also the same for my homepage (google.com) and my google calendar. How can I get different colors on these 2?
Personally, I use 'Fabtabs' for my mozilla FireFox.
https://addons.Mozilla.org/en-us/Firefox/addon/FabTabs/
This add-on has problems like that when I use it.
-
See above
I reinstalled Firefox Desktop, I downloaded my favorites of Carbonite, how can I get the current Firefox to accept?
You do backup your bookmark as a .json file?
Restoration of bookmark
Maybe you are looking for
-
Re: Satellite A65-S1067 - display driver does not work
As stated in my title, the display (ATI Radeon 7000 IGP) on my Toshiba laptop driver does not work and has not worked for quite a while. Whenever I try to play a game that is to install a game (like World of Warcraft or Civilization III) it does not
-
Why Apple is so late, just got an iPhone 5SE and I can't pair it with my macbook pro via Bluetooth, I can't believe its that poor. You wait at least Apple products to pair each plus, if not to some third-party products. Anyone have an idea how I can
-
Vista does not recognize the product key
I reinstalled Vista using the disc of recovery of the product due to unrecoverable corruption. Once installed Vista indicates that the OS is not authentic and that she invites you for an alternative. I also entered the product key from the sticker on
-
I constantly receive alerts of update for the same updates even if I downloaded and installed the. I looked in Add/Remove programs and updates do not appear in the list of other updates. I can't assume these updates are not install properly although
-
Removing a card table / placed on a document
I must have accidentally hit a button that produces a table on my typed document and I can't delete the chart. Save as something else does not work and does not even open a new document and upload it. Now, any doc that I opened is projecting a card