SWFLoader and access the width/height

Hello

I have an AS3 swf I am trying to integrate within a Flex 3 application.  The problem is that I need to know the size of the width/height available from inside the swf file.  When the swf file is embedded in a Web page, I can easily access it by stage.stageWidth, but in the case of an embedded swf, it doesn't because the scene is of the entire application and not only my swf.  Is anyway in my swf embedded to understand these values?


Thank you!
Christie

If the embedded SWF has been loaded via SWFLoader, then this.parent.parent.parent.width (and height) of the file integrated SWF will give you what you want.

Tags: Flex

Similar Questions

  • How to determine and set the width/height of a movie

    Hi all

    It is perhaps a fundamental issue, but I can't seem to find this information anywhere. I want to determine what the default size, in pixels, is a project of actionscript 3 to be able to set the width and height of an individual and to be displayed in the browser at its actual size.

    The project I'm working on that will be used on a Web page with a bunch of other data no flash so it is important, it is the right size and fits well into the rest of the content.

    So far, I've seen I can force the values by editing the files in the html-template folder and I can query the size of the stage object, but really what I want to do is find these values inside Flex Builder and for run/debug mode display the full-scale project, not to stretch out it. I can want to resize it upwards or downwards later on or to allow the resizing of the browser scaling, but I want to default to actual size for development, if you see what I mean :)

    Thanks in advance,

    DavidW

    If you want to say a pure ActionScript, not Flex project, then do this:

    [SWF (width = "300", height = "300")]
    SerializableAttribute public class MyApp extends Sprite...

  • Photoshop (20151209.r.327 x 64) CC (10 Windows) cannot change the width, height or resolution creating new file

    When I started Photoshop CC (20151209.r.327 x 64) (Windows 10) and create a new file, I can't change the width, height, or resolution.

    I tried to reset the settings of Photoshops (Ctrl + K-> reset settings) without success.

    Any ideas?

    Concerning

    Simon

    SystemInfo:

    Adobe Photoshop version: 2015.1.1 20151209.r.327 2015/12 / 09:23:59:59 CL 1055659 x 64

    Operativsystem: 10 64 bitar Windows

    Version: 10 eller later

    Systemarkitektur: AMD Datorfamilj:15, Modell:1, Version: 2 med MMX, SSE-heltal, SSE, SSE2, SSE3, SSE4.1, SSE4.2, AVX FP

    Antal processorer fysiska: 3

    Antal processorer logiska: 6

    Processorhastighet: 3311 MHz

    Inbyggt minne: 8094 MB

    Ledigt minne: 4389 MB

    Minne having for Photoshop: 6973 MB

    Minne som anvands av Photoshop: 70%

    Basic but often made mistake, tried restarting your computer?

    Try it once and see if it still works very well.

    ~ Assani

  • How to determine the width/height of the text

    Hello.

    I created the layout of text format and text flow.

    I must now determine the width/height of the container is adjusted exactly to the text.

    Is it possible to get the width/height of the text before creating the container controller?

    Thank you.

    It depends on what effect you are trying to get. If you want the text to go and not wind, you can set the width and height "Nan". To get the actual width and height that has been used, you call getContentBounds(). But if you wanted the text, you must select a thickness to wrap up in and then to get the required width used account height. If the latter case to work, you could create a controller with a width you specify, but let the height as "NaN".

    -robin

  • PC can see and access the laptop without asking for a user name and password but the laptop cannot access the PC because it asks me a username and password that I don't know.

    Vista - Windows 7 network connection. username and password is unknown.

    Hello

    I just got a laptop with windows 7 on it and I want to connect to my other PC for it, they are on the same network through a router. the PC can see and access the laptop without asking for a user name and password but the laptop cannot access the PC because it asks me a username and password that I don't know.

    If someone could answer this question, it would be great.

    Hello
    Maybe this can help.

    Win7 when configured on the peer-to-peer network has three types of configurations of sharing.

    Group residential network = only works between Win 7 computers. This type of configuration, it is very easy to entry level users to start sharing network.

    Working network = fundamentally similar to previous methods of sharing that allow you to control what, how and to whom the records would be shared with.

    Public share
    = network Public (as Internet Café) in order to reduce security risks.

    For the best newspaper of the results of each computer screen system and together all computers on a network of the same name, while each computer has its own unique name.

    http://www.ezlan.NET/Win7/net_name.jpg

    Make sure that the software firewall on each computer allows free local traffic. If you use 3rd party Firewall on, Vista/XP Firewall Native should be disabled, and the active firewall has adjusted to your network numbers IP on what is sometimes called the Zone of confidence (see part 3 firewall instructions

    General example, http://www.ezlan.net/faq.html#trusted
    Please note that some 3rd party software firewall continue to block the same aspects it traffic Local, they are turned Off (disabled). If possible, configure the firewall correctly or completely uninstall to allow a clean flow of local network traffic. If the 3rd party software is uninstalled, or disables, make sure Windows native firewall is active .

    ------------------------------

    If your network consists only of Win 7 and you want a simple network, use it.

    http://Windows.Microsoft.com/en-us/Windows7/help/videos/sharing-files-with-HomeGroup

    After you have configured the homegroup, scroll to the bottom for the Permission/security section.

    -----------------------------

    Win 7 networking with other version of Windows as a work network.

    In the center of the network, by clicking on the type of network opens the window to the right.

    Choose your network type. Note the check box at the bottom and check/uncheck depending on your needs.

    http://www.ezlan.NET/Win7/net_type.jpg

    Win 7 - http://windows.microsoft.com/en-us/windows7/Networking-home-computers-running-different-versions-of-Windows

    Win 7 network sharing folder specific work - http://www.onecomputerguy.com/windows7/windows7_sharing.htm

    Vista file and printer sharing - http://technet.microsoft.com/en-us/library/bb727037.aspx

    Windows XP file sharing - http://support.microsoft.com/default.aspx?scid=kb;en-us;304040
    Sharing printer XP - http://www.microsoft.com/windowsxp/using/networking/expert/honeycutt_july2.mspx

    Setting Windows native firewall for sharing XP - http://support.microsoft.com/kb/875357
    Windows XP Patch for sharing with Vista (no need for XP - SP3) - http://support.microsoft.com/kb/922120

    When you have finished the configuration of the system, it is recommended to restart everything the router and all computers involved.

    -------------

    If you have authorization and security problems, check the following settings.

    Point to a folder that wants to share do right click and choose Properties.

    In the properties

    Click on the Security tab shown in the bellows of the photo on the right) and verify that users and their permissions (see photo below Centre and left) are configured correctly. Then do the same for the authorization tab.

    This screen shot is to Win 7, Vista menus are similar.

    http://www.ezlan.NET/Win7/permission-security.jpg

    The Security Panel and the authorization Panel, you need to highlight each user/group and consider that the authorization controls are verified correctly.

    When everything is OK, restart the network (router and computer).

    * Note . The groups and users listed in the screen-shoot are just an example. Your list will focus on how your system is configured.

    * Note . There must be specific users. All means all users who already have an account now as users. This does not mean everyone who feel they would like to connect.

    ---------------------

    *** Note. Some of the processes described above are made sake not for Windows, but to compensate for different routers and how their firmware works and stores information about computers that are networked.

    Jack-MVP Windows Networking. WWW.EZLAN.NET

  • My computer can not VAT registration and access the internet when connected to the network [secure] through wireless.

    Original title: fix problem 'local only' what is wireless.
     
    -My computer is a HP Pavilion dv5, running windows vista edition Home premium

    -My computer can identify and access the internet when connected to the network through a cable.

    -My computer can identify and access the internet when it is connected to the grace wireless network [without warranty].
    -My computer can't identify [unidentified network] and [room only] internet access when it is connected to the [secure] grace wireless network?
    -Other information systems, identify and access the internet when it is connected to the [secure] grace wireless network.
    -J' confirmed the network, try password works in "safe mode with network", manually configured (TCP/IPv4) using a connected computer.
    S ' Please, I'm desperate and in urgent need of help.

    Hello

    1. If it works well before?

    2 have you made any changes to the computer before the show?

    Method 1:

    You may experience connectivity problems or performance issues when you connect a portable computer that is running Windows Vista or Windows 7 to a wireless access point:
    http://support.Microsoft.com/kb/928152

    Method 2: Uninstall and reinstall the network adapter drivers.

    Follow the steps mentioned.

    (a) click Start, right click on computer.
    (b) click on properties, click on Device Manager
    (c) expand the network card, right-click the wireless adapter option
    (d) click on uninstall
    (e) now go to your computer/wireless device manufacturer's website, download the updated drivers and install them.

    Follow the below mentioned article:
    Updated a hardware driver that is not working properly
    http://Windows.Microsoft.com/en-us/Windows-Vista/update-a-driver-for-hardware-that-isn ' t-work correctly

  • If I create a form using the free trial software, will I be able to use and access the form, after the trial period is over?

    If I create a form using the free trial software, will I be able to use and access the form, after the trial period is over?

    Yes, you can access the project that you created after the trial is over, but you need to back it up.

    Concerning

    Stéphane

  • When my Captivate project is published on my LMS, course opens a new window.  You are able to copy the URL of this window and access the course without logging into the LMS.  How can I avoid this?

    When my Captivate project is published on my LMS, course opens a new window.  You are able to copy the URL of this window and access the course without logging into the LMS.  How can I avoid this?

    Return to your LMS administrator and ask them why they have not put in place more firmly. The scenario you mention should not occur if the LMS is well attached.

    Some LMS have the contents of the course are in a folder outside the web space so that users can access the course URL directly.  For example, Moodle t - it this way and then shot the course content in a temporary folder when the learner clicks on the link ask a module.  No matter how your LMS is supposed to do, it is currently not configured correctly.

  • Define and access the elements of the application

    Hello

    How can I set and access the values of the elements of the application of the package? is ' t recommended to access the elements of the procedure?

    Thank you

    Hello

    PL/SQL functions or procedures without worrying whether or not they are packed:

    procedure: APEX_UTIL. SET_SESSION_STATE ('MY_ITEM', 'myvalue');

    get the function: V ('MY_ITEM')

    Regards Garry

  • Selection at the level of the document at the level and focus on the width + height of the page

    Hello

    I've got little experince with ID-scripting. Can someone help me out here? It should be really simple

    What I do now is stick my graphics and then check the height of doc in the "Document Setup" and type doc mm height in the scale height field. (Not the height-field, ' caus I want all my selection to scale uniformly!)

    Then I centered horizontally and vertically.

    If this will not be easy to script? I hope so. THX!

    Try now,

    var doc = app.activeDocument,
        sel = app.selection[0],
        w = doc.documentPreferences.pageWidth,
        h = doc.documentPreferences.pageHeight;  
    
    doc.viewPreferences.horizontalMeasurementUnits = MeasurementUnits.MILLIMETERS;
    doc.viewPreferences.verticalMeasurementUnits = MeasurementUnits.MILLIMETERS;
    doc.viewPreferences.rulerOrigin = RulerOrigin.pageOrigin;
    var currscale = sel.verticalScale;
        selheight = sel.geometricBounds[2]-sel.geometricBounds[0];
    sel.horizontalScale= sel.verticalScale = (((h - selheight)/selheight) * currscale) + currscale;
    selwidth = sel.geometricBounds[3]-sel.geometricBounds[1];
    sel.move([(w-selwidth)/2,0]);
    

    Kind regards

    Cognet

  • Get the width/height of the current image / information of KING of user input

    Hello

    I have two problems:

    First of all:

    Y at - it an option to get the width and height of the image to use for calculations or set a return on investment for the right settings?

    Second (more complicated):

    I have used Labview 8.5 custom interface (see the interface.jpg attachment).

    I am trying to get the return on investment of the Interface and use it in my app Builder of Vision, but I don't see the return on investment or its size or position or something...

    Is it possible to get this information from the Interface?

    Information:

    I use Vision Builder 2009 SP1, LabVIEW 8.5

    Thanks for your replies!

    Hello

    I missed that when I tested it... the display image control must have been larger than the size of the image and the property node returned the value that I expected.

    A restriction of the VI to Interface custom that you create in LabVIEW, is that it cannot have any dependencies (call any subgroup screws), other than the methods and the nodes property of the objects you put on. Therefore, I can't just call IMAQ GetImageSize her. So it does not seem possible at this point for the VI of custom Interface return the size of the image.

    The solution, at this stage, to get the size of the image of the Interior Vision Builder AI, is to use a step in LabVIEW Run, calling a simple VI that takes an image as input, called IMAQ GetImageSize and return res X and Y.

    Note that for purposes of distribution, when you call a VI using a LabVIEW execution step, you must save it as a source distribution in a Bachelor's degree in LAW and you must redistribute this llb with your inspection. See using setup step run LabVIEW for more details.

    Sorry there is no better way to do this now.

    Best regards

    Christophe

  • Creating new Document - change 72 dpi to 300 DPI is no longer automatically updates the width/height in pixels?

    Hello world

    I often work between Illustrator and Photoshop, copy lineart in PS and since I recently updated two programs, somehow I changed a setting or something has changed in the software itself.

    The steps that I "used" to take...

    1 Select lineart illustrator and copy
    2 create a new record in PS - change the resolution from 72 to 300

    3. close the new document (because the width and height would be in 72 dpi)

    4. create the document again - this time she would have saved my setting of 300 DPI and automatically adjust the pixels accordingly

    Unfortunately step 4 doesn't seem to work for me. He just stay at 72 dpi.

    Is there a setting that has changed, or is there another way to "easily" copy lineart in a new PS document at 300 DPI and the right size?

    Thank you for your time

    Zoe

    I just wanted to report that I found a solution in case anyone else think the wrong way as if I was.

    If you change the dropdown to "pixels" in inches or centimeters, for example, and then change the resolution to 300, it will resize the jury to "Printable" size at 300 dpi.

  • Unable to see the computers in the workgroup or server to print to my HP laptop, but I can all ping and access the internet through the router.

    I have a laptop HP with XP pro. I have a network with 2 computers laptops (Dell and HP), 1 office and 1 DP300U DLINK print server with a static IP address. I use a LINKSYS WRT110 router. Everything is connected through this router. I can ping ALL laptops, the office and the print server. I can access internet from all laptops and office. All THE MACHINES are in the same workgroup. Only from my DESKTOP (XP HOME), I can click on FAVORITES NETWORK, click VIEW group of WORK COMPUTERS and I can see the other compters and the print server. However, since my computer Dell laptop or HP LAPTOP (XP PRO) I can PING the router and the journal in it, all the other machines and print server but can NOT SEE THE OTHER COMPUTERS or ACCESS THE PORTABLE HP computer or the other laptop. I turned off all firewalls and firewall McAfee (PORTABLE HP computer) and still no joy. I think that there is a box ticked somewhere or the one that is checked and who should not, but I can't find out where it is or something else to look at. Any ideas would be appreciated.

    I suggest you take a look at:

    http://support.Microsoft.com/kb/318030/

    You can run fixit in the PC that encourage the problem this fixit automatically.

  • stop windows remote access connection and access the CD dirive

    I use windows 7 ultimate 32 bit OS

    There is a problem called "windows remote connection" which is not allowing me to access the CD drive for CD writing

    no disc burning software nero8, ashampoo burning studio, power iso; None of them can write data to dvd using my dvd burner

    I need solution; What kind of sequrity program is this "Windows remote connection?

    Here's how to turn on remote desktop (and therefore, how to disable - just check the other box):http://www.howtogeek.com/howto/windows-vista/turn-on-remote-desktop-in-windows-vista/.  See if the ' turn off resolves the problem.  If necessary, try to turn off remote access as well (above) - If this does not work, put in the less remote access back on (you may need it if you need someone to connect to your computer for assistance - as your ISP or Microsoft Support or even a computer repair shop that works remotely).

    This isn't a security feature, but a function of access to allow others on the internet to connect to your PC and you can connect other PCs (and show their desktop and work with their mouse on your computer - or they can do the same with you the authorizations if many use other 3rd party software to do this work easily and smoothly).  FYI, here's how to use remote desktop in Windows 7:http://forums.techarena.in/guides-tutorials/1187281.htm.

    If this does not work, please repost your question in the Forums Windows7: http://social.answers.microsoft.com/Forums/en-US/category/windows7 where Windows7 experts will be happy to help you.

    I hope this helps.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • To connect to the internal interface and access the LAN

    Hello

    I have the following problem, I have a Cisco 2811 router with a serial number and an ethernet interface. On the serial port, I have an address got from the ISP, but not a real IP address. It's a 30 ip only for communication ECCAS my site and the ISP and the ethernet I one of the addresses of my range. I have have need allow VPN connections on this address (ethernet one) and access hosts on the internal LAN.

    I am able to connect to the VPN, but I can't reach any host inside the LAN

    Is it possible to display relevant configuration

    crypto-address ethernet card must be present in the router.

    What also makes sh crypto isakmp her and sh crypto ipsec his give?

Maybe you are looking for