loaded - swf aspect ratios what is the best approach

I just finished a job to maintain the proportions of a swf loaded into a 'player' for banner ads. Basically, the scene of the player can be any size and everything what is responsible is centered vertically and horizontallly and theres a 'game' and stop button controls and its etc who get out judiciously.

He got all works without problems... but I would like to check something, if someone can advise.
When you check the properties _width and _height of a swf loaded in an onLoadInit handler... that reports obviously the actual width and height of the active Visual frame of the swf file loaded 1 (say for sure, it is where is his head of reading). Is it possible to get hold of the original width and height of stage properties that swf had when it was created? These can be quite different things and its the last pair I'm after.

My approach has been to make it a requirement that the loaded SWF "banner" have a rectangular background clip to 0,0 on the first image (and nothing else she ecaple) representing their size and proportions, and just to get these dimensions in an onLoadInit handler.

I just wonder am I missing something obvious - that is, is there a simpler approach - am I too complicate things - or is the easiest way that I do? I guess what would be ideal is if there is a property that represents the properties width and height stage that the swf "banner" had when it was created-, but I don't (yet) know of something like this. But I was called to Miss really obvious things before... so please tell me if I am.

If you can understand the above explanation then my question is simple: can avoid the "calibration" context requirement in banners loaded or not? TIA - GWD

not with as2. You can find the maximum dimensions used by active chart throughout the chronology of the loaded swf (not just those on frame 1), but if he has nothing on stage in any image on the main timeline of the swf loaded width and height will be reported as zero.

Tags: Adobe Animate

Similar Questions

  • What is the best approach to the conversion of the LV7.1 tags to the variables shared by several screws LV2012?

    What is the best approach for the upgrade of the DSC-LV2012/LV7.1/DSC static variable tags in several screws running on several platforms? Our system is made up of about 5 PC running Windows 2000/LV7.1 DURATION, the more a PLC and a PDC running XP/SP3/LV2012. About 3 PC publish information from the sensor through tags on the local network to the PDC. Only the main command is currently being upgraded. Basic questions:

    1. the other computers running RTÉ 7.1 (with labels) will be able to communicate with the PDC running 2012 (shared variables)?

    2. is it necessary for conversion of tags shared variables, or the deprecated legacy tag screws of LV7.1 work in LV2012?

    3 all of the main controllers will be screw must be integrated in a project in order to use shared variables?

    4 is the only way to do it is to find all the tags and replace them with elements of shared variable?

    Thank you in advance with all the information and advice!

    lb

    Hello lb.

    Datasockets are the common middle only my knowledge between versions, so apart from the upgrade to the same version, they will probably be your best bet.

  • What is the best approach to take the content from another page... sampe App

    I need to access the values of the other page...... What will be the best method to her dowry...
    I thought to use the loading of the page...
    and development using plsql expression...
    as
    page load event
    PLSQL expression

    : P200_EMAIL

    element on the page to p200_email
    p103_email of the affected item.

    Now for some strange reason the contents of the p200_email field... that exist in page 200... Donot enter paeg 103......
    field p103_email...
    What will be the best method .or approach to retrieve the content...
    Any information will be greatly appreciated...

    Published by: pauljohny on September 11, 2012 12:08

    Question seem you too much, but my understanding is that you want to 'Access session values' in the Apex.

    In Apex, all elements of the page that is presented, and the session will be available in the session.

    example: If you have the page 1 and P1_NAME like a text field, and if you send the page, access to this to say page 2 P2_NAME to: P1_NAME & P1_NAME. v ('P1_NAME') etc. Then try this under P2_NAME default value setting, enter & P1_NAME. It has the value of P1_NAME to P2_NAME.

    Hope this helps
    JS

  • What is the best approach for a same code used for 16 test stations

    I write code for 16 testbeds that are all the same, except that different circuits CAN are used, i.e. CAN0 through CAN15. The approach that I plan to use is 16 screws, one for each test station executes independently and in parallel, meaning that they can be stopped and started at different times. Each of the 16 screws have about 10 complex subVIs that are all the same. Even if I do not use uninitialized shift registers, I wonder if there is no advantage to using a reentrant approach, or even if it works for my application. Any suggestions are appreciated as I have no experience using the reentrant approach.

    Thank you.

    First of all, you should get used to use projects. They are very useful. If the code is in a project, you can open the VI from there.

  • I have a column of the table where I want to apply box, what is the best approach?

    Mr President.

    My worm jdev is 12 c. (12.0.3.0)

    I have a table column and want to default on every insert I have check box selected.

    "DED_WHT" VARCHAR2(1) DEFAULT 'Y', 

    How to apply?

    Concerning

    Drop the DedWht attribute of the DataControl and select ADF select Boolean Checkbox

    When the following dialog box appears, choose selected state value of Y:

    Finally, go to the display attribute and the literal value for Y:

  • What is the best solution for this idea...

    I have a task I'm trying to test and understand what would be the best solution for this, any recommendations would be appreciated.

    Devices at your fingertips:

    -2 ESXi hosts

    -1 iSCSI SAN OpenFiler (new just installed the app)

    2 ESXi hosts run a small amount of virtual machines that are all in the same domain.  I want to have a file server (or a repository somewhere) that houses a folder with easily accessible software (OS, Office, etc.) on the field.

    According to me, that if I made a virtual machine with a large hard drive and share the software, this would not be the best way because it would be dependent on the OS.  Someone has talked about doing a separte VMDK for it and then install it on the operating system on the virtual machine. This way I could always remove the and mount it somewhere else.

    It seems a bit weird to me that the software within this "shared folder" will also be sitting on the data store (if I create a virtual machine and need to use the OS/etc).  Not that doubles the space for the same software (in the comments, then the data store)?

    What is the best approach to make this action which can be accessed at the prompt (mostly windows) in the field?

    What is the best way to stay away the software doubles in action and on the data store?

    Please forgive me if I put interpereted your question.

    The problem you seem to face is that you must mount the ISOs of VMS software and physical systems that are on the field.

    (please, correct me if I'm wrong on this)

    If this is the case, then the best way to do would be to create sharing NFS on the openfiler, if you use openfiler to main databases also then he would be better for sharing this was separated to prevent the other help to be able to tamper with the VMDK and VMX files for your virtual machines.

    This could then be mounted in ESX to access the ISOs. While being easy to install on Linux and Windows machines to access the ISOs.

    If you have questions about NFS mounting in windows, so, this link may help

    http://sagehacks.WordPress.com/2009/01/21/HOWTO-mount-NFS-shares-under-Windows-7

    If you are needing to access the VMs software and it is mainly the downloading ISOs then th ISO directly to the data store is possible.

    This allows you to use ESX to mount the ISO on the virtual machine.

    On the point that the software will use double disk space when you install the software on a machine virtual car will be on the network share and the VMDK virtual machines in the data store. That's right, and that's by design.

    Each virtual machine under ESXI is 'independent' (http://www.vmware.com/virtualization/virtual-machine.html)

    This means that each virtual computer must have its own copy of the application.

    This perspective reflection of each virtual machine as a separate system of 'physical '. They interact with each other as if they were physical systems.

    Each VMDK resembles a physical hard disk. Being accessible (in most configurations) 1 VM at a time.

    So if you had a set of physical systems connected to a domain and I wanted to install an application on each one, then each would have its own local copy of the application. It's the same thing with virtual machines.

    However

    If you configure a set of physical machines so that you run the software from a network share. It is possible to do the same thing using virtual machines using the exactly the same configuration. However, the chiefs more associated to this are important in both cases.

    Concerning

    Cyclooctane

  • What is the best way?

    Hi all

    I have a requirement, I would like to know what is the best approach?

    They are N number of distributors containsN number of bills- contains N number of Details of the Bill.

    I use UCM 11 g. It's okay I'll implement the folder structure?, if OK then there no limitation to store the document. According to the customer's requirement, it can store more than 10000.
    Y at - there no performance problem while performing an iteration of data of the Complutense University of MADRID.

    If anyone has an alternative solution, please share with me.

    Thank you all.

    Hello

    http://docs.Oracle.com/CD/E23943_01/doc.1111/e10978/c08_folders.htm#i1125681

    This is the document associated with setting new records.

    Thank you
    Srinath

  • What is the best way to have datagrid, including converters disabled with loading spinner?

    I understand how fire my loading of start / end of load events when a datagrid is filled from external data. What I do not know how effecitively (and have been Googling) is what is the best practice to make the datagrid appear as modal with a top in top-load it?

    My train of thought of the approach is - longshoring, Make existing datagrid not clickable, then set alpha to cloud the current data grid. Show a spinner of loading on top of the grid.

    I can put the alpha that gives him the modal aspect, but how to ensure that the user cannot click on anything in the existing grid? Affecting the grid enabled = false classification of works, but there are icons in a converter of element in the grid which to are still clickable. Do I have to manually disable all schools?

    Unfortunately, I'm surprised that Googling for this didn't turn out much. I know this must be a fundamental problem.

    Here is the solution, check that it http://www.rphelan.com/flex/LoadCanvas/LoadCanvasExample.html

  • What is the best way to save an array of objects and then load it?

    Hi, what is the best way to save and load an array of objects?

    I hade a code like that, but it does not work:

    var test = new Array();
    test.push(new Foo("a"));
    for (var i = 0; i < test.length; i++) {
        console.log(test[i]);
    }
    // save and load, then show again
    localStorage.setItem("test", test);
    var test2 = localStorage("test");
    for (var i = 0; i < test2.length; i++) {
        console.log(test2[i]);
    }
    

    the problem is, the first newspaper that get the things I want. The second time I get:

    Uncaught TypeError: Property 'localStorage' of object [object Object] is not a function
    

    The work around this problem is to stringify before saving and then analyze before loading.

    http://StackOverflow.com/a/2010948/773263

    Although I said, it is better to use IndexDB.

  • I use my MacBook Air as a desktop computer. Should I leave the charger plugged all the time or should I drain the battery and then recharge? What is the best for the battery?

    I use my MacBook Air as a desktop computer. Should I leave the charger plugged all the time or should I drain the battery and then recharge? What is the best for the battery?

    Keep the computer plugged in whenever possible.

    If you keep the computer always connected, make sure that at least twice a month

    Run it on battery until battery charge level falls to about 40-50%.

    Please don't completely discharge the battery. Discharge the battery completely will reduce wear and tear on the battery.

    For more information:

    Section: To optimize the battery life

    http://support.Apple.com/en-us/HT204054

    Citing at the bottom of the linked article.

    "The question is often asked:" should I disconnect my laptop from the mains when not in service? Under normal circumstances it should not be necessary because as soon as the lithium-ion battery is full, a properly functioning charger will stop the load and load the pad will only engage when the battery voltage drops to a low level. Most of the users do not remove AC power, and this practice is safe. »

    http://BatteryUniversity.com/learn/article/bu_808c_what_the_user_can_do

  • What is the best software to improve performance and free hard disk cleanup. I used MacKeeper, but I'm tired of paying annual fees for this service.

    What is the best software to improve performance and free hard drive cleanup? I used MacKeeper, but I'm tired of paying annual fees for this service.

    You shouldn't have these software.  See discussion of Klaus1

    Do not install MacKeeper

    See also this one by Klaus1

    Viruses, Trojans, Malware - and other aspects of Internet Security

  • Satellite U200: What's the best way to use a battery?

    Sorry to ask a stupid question but the U200 is my first laptop ever. OK, I already did what most PC magazines will tell you, that is to say completely charge the battery then run until the process of vacuum and then repeat two or three times, it's supposed to get all the cells in the battery operation.

    Now, what is the best thing to do, exercise like that or do I have to wait until the battery is half empty or so & then connect the charger?
    I think that it is not good to run the laptop with a full battery & charger connected, until guy do you say when you want to use your laptop for 6 hours or more?

    Hello

    > believe that it is not good to run the laptop with a full battery & charger permanently connected.

    Well, the new generation of portable and battery allows to use the battery and the power adapter at the same time.
    There are no bad effect memory with batteries at the beginning!

    So my laptop is connected to the power supply and the battery is still connected.
    It has no negative influence on the performance of the battery. But you should know that there is a limit of battery charge.
    After that all 500times completely procedures of load and discharge, the battery will slowly discharge performance. This is nothing unusual.

    PS: Note: in the instructions you will find useful tips and information about how to manage the battery!

    Best regards

  • Satellite U405 - what is the best way to battery life increases

    Hello world!

    I searched for it a little and everything I could find are contradictory answers and some confusing instructions... :)
    Even the PDF for my U405 has some conflicting advice (it is recommended to completely discharge or not?)

    I'm trying not to remove it and store it with a charge of 40% in a situation of low temperature (?) because I also trust him as a UPS (power cuts are common to sleep).

    So, in short, what is the best way to prolong my life from the battery to its maximum? Should I fully discharge once a month or only to half way through? Should he ever be completely loaded, or which is actually a good thing?

    Thanks in advance for any wisdom that anyone can offer on that!

    David

    The best way would be to put it out of the laptop, but you already said, you don't do that.
    So I say to completely discharge the battery from time to time and load it to the maximum.

    That's all I can tell you right now, but don't know how much it will increase the battery life.

  • What is the best format to select then copy music from a cd to itunes

    I copy my cd collection into iTunes. What is the best format that should be selected for the best quality of music? Thank you.

    "Better format" and "Better music" (sound quality) are not the same question, for audio encoding.  The best sound comes from a "Lossless" format  The encoding using the Apple Lossless Encoder encoder in iTunes provides without loss of sound quality, compared to the songs on CD (which are in AIFF format).  You can also use the AIFF encoder, but the files of the song will be a little bit bigger compared to Apple Lossless.  However, TWO Apple Lossless AIFF formats and create larger files of the song, so they take more space on your computer drive (several times over).

    iTunes Store sells songs in format AAC , compression ratio 256 kbps.  This format may provide the best combination of efficiency (small size) and the sound quality.  There is a minor loss in sound quality due to compression, but I can't tell the difference between lossless and AAC at 256 Kbps, format with my headphones and speakers (and ears).  To use this format when you import your CD, select the AAC Encoder value encoder iTunes more.

    NOTE: Import encoding settings run the button import the settings of iTunes preferences General pane.

  • Satellite A200 - 1 M 5: what is the best way to extend our battery

    Hi there everyone,

    I hope you are all good, I kindly need to know what is the best way by which we can extend the battery from our PC, I had a friend who apparently frustrated because his laptop battery is almost dead then that PC disconnected electricity; It gives him only five minutes and the beep starts.

    I think she always used his laptop plugged into the electricity, not frequent unloading / loading the battery and yet, I really appreciate it if you guys out there (blessed) could help me maintain my and his of (she bought a new battery lol) batteries.

    Note: My Satellite A200 - 1 M 5 gives me 2.45 minutes after 4 months and I'm happy with that, I turn on my laptop disconnected to power (releases) often, but I feel that I can't explain or help others to look after your laptop battery.
    Thanks a million in advance

    Why we can not find the information seen on the Toshiba site maintenance?
    Maybe we didn't get!

    Hello

    I think you're right research you didn t on the Toshiba page quite long ;)

    I have consulted the European Toshiba support page and selected in the troubleshooting category option-> Solutions to common problems.

    There I found the battery category, and then I found this article:

    * + How to configure my computer for optimal use of battery? + *
    http://www.toshiba-tro.de/KB0/HTD5400Z60005R01.htm

    It looks like an old FAQ document in any case the fact is that all batteries lose own performance after several times several years ago, it is advisable to remove the battery from the laptop to extend the battery life. This is not necessary with the new battery and generation of laptops.

    However, many people remove the battery if the laptop works on sector (power adapter connected) This prevents the battery of standing of the charge and discharge.

Maybe you are looking for