Using the value in the array to the variable of reference - need help

Can someone tell me if this is possible in as3?

I want to loop through an array and use the array value to refer to a variable.

The installation program:
(For illustration only. No real script)

My MCs:
triangle_mc
square_mc

Variables of placement:
var triangle_mc_x = 160;
var square_mc_x = 200;

My table:
[shape_array] (contains 'triangle_mc' and/or "square_mc")

What I want to do:

for each {(var: chaîne d'élément dans shape_array)}
Item.x = Item + "_x";
Item.y = 60;
}

It should do the same thing as:

for each {(var: chaîne d'élément dans shape_array)}
If (point == "triangle_mc") {}
triangle_mc.x = triangle_mc_x;
triangle_mc.y = 60;
}
If (point == 'square_mc') {}
square_mc.x = square_mc_x;
square_mc.y = 60;
}
}

Thank you!

I think what you are after...

for each {(var: chaîne d'élément dans shape_array)}
This [point] .x = this ["_x" + point];
This point there = 60;
}

Although I have zero degrees of ease with this form of loop for... I was born and raised on the (I =?; I)

Tags: Adobe Animate

Similar Questions

  • Crash blue screen when I use the internet? Urgent need help, thesis at the end!

    my laptop was pretty rubbish for a while, but now whenever I connect to the internet I get about 30 seconds before the thing of crash dump blue screen appears.

    The error report details are

    -System

    -Supplier

    [Name]  Service Control Manager
    [Guid]  {555908D1-A6D7-4695-8E1E-26931D2012F4}
    [EventSourceName]  Service Control Manager
     
    -EventID 7026

    [Qualification] 49152
     
    Version 0
     
    Level 2
     
    Task 0
     
    Opcode 0
     
    Keywords 0 x 80000000000000
     
    -TimeCreated

    [SystemTime] 2010-12 - 12T 09: 50:42.000Z
     
    EventRecordID 283429
     
    Correlation
     
    -Execution

    [ProcessID] 0
    [ThreadID] 0
     
    Channel system
     
    Jo computer PC
     
    Security

    -EventData

    param1 aswSP aswTdi spldr Wanarpv6
     
    I can use internet in safe mode. I do a virus check. Device Manager it says the 4to6 adapter #7 and the ISATAP #15 card do not work properly, but there seems to be no updates for them. I tried unchecking IpV6 on my network card. This did nothing.

    I tried to restore to an earlier point, and it does not help.

    Hello

    Check this thread for more information using BlueScreenView, MyEventViewer and other methods
    to troubleshoot the BlueScreens - top 3 responses (+ 1 other).

    http://social.answers.Microsoft.com/forums/en-us/vistarepair/thread/3deab2fa-4000-4136-8c78-a3d22b1db009

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

    Also this, so you can see the probable bluescreens.

    Windows Vista restarts automatically if your computer encounters an error that requires him to plant.
    (also Windows 7)
    http://www.winvistatips.com/disable-automatic-restart-T84.html

    ===========================================================

    Check out these utilities to see if information may be collected:

    It is an excellent tool for displaying the blue screen error information

    -Free - BlueScreenView scans all your minidump files created during "blue screen of death," collisions
    and displays information about all accidents of a table.
    http://www.NirSoft.NET/utils/blue_screen_view.html

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

    MyEventViewer can be verified at the time of the blue screen (BSOD) within a second or so of the
    time of the BSOD to provide more information about the possible cause - see TIP.

    MyEventViewer - free - a simple alternative in the standard Windows Event Viewer.
    TIP - Options - Advanced filter allows you to see a period of time instead of the whole of the record-
    Set it for a bit before and after the time of the BSOD.
    http://www.NirSoft.NET/utils/my_event_viewer.html

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

    AppCrashView - free - a small utility for Windows Vista and Windows 7 that displays the details of all the
    application goes down has occurred in your system. The information breaks down is extracted from the .wer
    the files created by the Windows Error Reporting (WER) of the operating system component of each
    time that an accident has occurred. AppCrashView also allows you to easily record the list of accidents to
    text/html/csv/xml file.
    http://www.NirSoft.NET/utils/app_crash_view.html

    I hope this helps and happy holidays!

    Rob Brown - MS MVP - Windows Desktop Experience: Bike - Mark Twain said it right.

  • Big problem with the variable PATH approx. need help!

    Hello
    I had a problem with the PATH environment variable. Instead of updating client Informatica & server paths PATH env variable, I created new PATH env variable and to establish client & server paths and saved. When I revisited this PATH Env variable, I was shocked to see the content of the PATH variable. I have to set back the old values like windows OS, DB etc paths paths. Could someone tell me how to make or do I have to reinstall the OS, DB, etc. Am on WIndows server 2003.

    I saved my PATH before configuring Informatica. Here's what I had:

    Path = C:\oracle\10gclient\bin; C:\OracleBI\server\Bin; C:\OracleBI\web\bin; C:\OracleBI\web\catalogmanager; C:\OracleBI\SQLAnywhere; C:\OracleBAM\ClientForBAM\bin;%SystemRoot%\System32;%SystemRoot%;%SystemRoot%\System32\Wbem; C:\OracleBAM\BAM; C:\Informatica\PowerCenter8.1.1\client\bin

    The critical components of the OS dependent PATH is % SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem.

  • How to change the value of string clustered, to implement using the node value of property instead of writing directly on the flow of data or using the variable

    new to labview :-) and I have a problem when I want to change the value of a string in bunches, and I want to implement this using the node value of property instead of writing directly to the stream or by using the variable, enclosed is the picture.   No matter, I have change in cluster (control) or value of Popery out (indicator) cluster, the value (sensor 7) dataflow keeps unchanged even I gave the new value by value of property node. Thank you to give me some advice about this.

    Hi GerdW

    Thanks a lot for your answer. The reason I'm stubbornly tring to break the flow of DATA is: we have a test system that have about 100 screws, they have a few connected flow, some of them will be unbundling a cluster dataflow chain to check the value in order to make the different cases.  Now I want to insert user event by changing the control and influential cases during run time.

    As I initially uses a global variable (to control cases) instead of unbundle string data flow, it works well.  But then, I found there are a lot of screws that are using the string unbundle.  One of the 'lazy' means, I tried is to change the value via the property node (because that way, I did not need to find all the places where using the unbundle string and replace them with the global variable), then I noticed a problem with "dataflow", the value in the stream of cluster in fact will not be changed by changing the value of the property node.

    I did a test with VI simple (like the picture in last post), and after reading your advice, I tell myself that I need to understand the concept of "DATAFLOW" in labview, it seems that my "lazy" way can not work in this scenario.

    I have attached the criterion VI here, have you furthur suggestions on what I can do in this case?

    Mant thanks!

    Minyi

  • Execution plan will change if I use the variable binding instead of the literal value?

    Hi guys,.

    Suppose I have a select "... Of... WHERE ID = 2 and... "if I go to use the variable binding instead of the literal value 2," SELECT... " Of... WHERE ID =: p_id and... ", the execution plan change?
    I test multiple statements, the plan does not change, but I don't know if it would even as well as in some other cases.
    Someone at - it ideas?

    Thank you very much.

    Anneso wrote:
    Hi, sorry for the unclear post, it's 11 GR 2.

    As Sybrand already mentioned, there are a lot of change that came in the implementation of the bind variable in some versions of Oracle db. Since you're on 112, it is still true with the introduction of Adaptive Cursor Sharing . Please have a read on it since the post below written by the development of Oracle optimizer group.
    http://blogs.Oracle.com/optimizer/entry/why_are_there_more_cursors_in_11g_for_my_query_containing_bind_variables_1

    Aman...

  • Dynamically create a file using the variable

    HI, I am facing a problem in creating file on the time of execution using the variable.
    I have a variable file name. In the tab refresh, I wrote a query SELECT TO_CHAR (SYSDATE, 'YYYY, MM, DD') | 'TEST' FOR DOUBLE. I tested the variable and its value is correct.

    I've created an interface allowing to extract the data in the table and store it in the file. I assigned the variable file name in the file.

    Now when I run the interface... the file is created, but the header is created in different file and its name is ambiguous, g (19) and the data are placed in the other file with the name that matches the value of the variable filename...

    It is two ODI creates two files a single header and other data...

    When I run my interface in a package of the file created perfectly... but one i want to use package I want to create a file via the interface only running

    What is the name of the second file? (the file that does not have the name of the variable)

  • You should have seen the date using the variable of presentation

    Hi all

    I am facing a problem in the display of the selected date of the guest in the report using the variable of presentation. I have a guest of data (calendar prompt), where the user selects the value. I take this value in the variable RBAP of presentation and report when I try to display this value using the same presentation variable, I get my date in the following format

    "TIMESTAMP 2010-10-22 00:00:00 '.

    I'm just using ' @{RBAP}' in the formula in the column.

    I want to show my date in the format DD/MM/YYYY. How to do this?

    I have used CAST (' @{RBAP} {' as DATE} and tried to change the data to dd/mm/yyyy format, but it does not work.)

    Please suggest

    Thank you
    Ronny

    in the default section to write the SQL...

    Select the OPTION case SENSITIVE WHEN 1 = 0 THEN AnyExistedDateColumn CURRENT_DATE of OTHER END OF SubjectArea

  • I use iphone 5 s updated to 9.2, but I can not use the network and call :( Please help me

    I use iphone 5 s updated to 9.2, but I can't use the network and call someone help me please

    What happens when you try to use the network?

  • I just subscribe Abdoulaye, and how to download or activate my subscription? I already use the trial version, you can help me English. Thank you

    and how to pay download or activate my subscription? I already use the trial version, you can help me English. Thank you

    If you had already installed the CC apps like tests, you can simply disconnect and reconnect with the good Email ID:

    Connect and disconnect activate Cloud Creative applications

    Feel free to ask, if you need additional help

  • And anyone who has used the creative cloud cleaner to help with installation problems?, and anyone who has used the creative cloud cleaner to help with installation problems?

    And anyone who has used the creative cloud cleaner to help with installation problems?  I should try?

    Hi Alison,.

    You do not specify the issue that you are facing, but you can restore Photoshop CC 2014.Please use the link below to find out how to install an older version of any Application Adobe CC.

    How to find and install a previous Version of Adobe Apps in CC 2015 | Adobe Customer Care Team

    Link to adobe vacuum as you said use the Adobe Creative Cloud cleaning tool to solve installation problems

    Cloud troubleshooting creative risks troubleshoot Adobe Creative Cloud download and installation issues

    Let us know if that helps you solve/Rolling back Photoshop.

    ~ Assani

  • How to use the variable in the path of the source of an image in flex

    Hello
    I just want to know that how to use the variable in the path of the source of an image in flex

    Hello
    I just want to know that how to use the variable in the path of the source of an image in flex

  • Windows 7 64 bit worked very well and when was time to save I get the cyclic redundancy check, I try several times and made the same thing I need help please

    worked very well and when was time to save I get the cyclic redundancy check, I try several times and made the same thing I need help please

    Hello Hans,.

    Thanks for choosing Microsoft Community!

    According to the description of the problem, you have problems when you use the backup on Windows 8 feature.

    Please answer these questions to better understand the issue and help you:

    1. are - what you're talking to backup and restore functionality on Windows 7?

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

    It is perhaps to cause bad sectors on the hard drive, run the disk check to repair bad sectors

    Check your hard drive for errors:

    http://Windows.Microsoft.com/en-us/Windows7/check-your-hard-disk-for-errors

    Important: Running chkdsk on the drive if bad sectors are found on the disk hard when chkdsk attempts to repair this area if all available on which data can be lost.

    For more information:

    Backup and restore: frequently asked questions

    http://Windows.Microsoft.com/en-us/Windows7/back-up-and-restore-frequently-asked-questions

    Hope the helps of information. Don't answer if you need assistance, we will be happy to help you.

  • My hp s3321PC Virginia-PC on safe mode and has been hacked, I don't have the recovery CD, I need help to restore at least it ' s factory settings. Thanx

    My hp s3321PC Virginia-PC on safe mode and has been hacked, I don't have the recovery CD, I need help to restore at least it ' s factory settings. Thanx

    See the manufacturer's web page for detailed instructions on 'Factory Restore'.

  • I am trying to download Adobe premiere pro cc 2015 but it just says: error writing to the location of the temporary file, I need help!

    I am trying to download Adobe premiere pro cc 2015 but it just says: error writing to the location of the temporary file, I need help!

    Clear your temp and tmp directories.

    Close your cc desktop app and restart as admin (win) or root (mac) user.  Next, install your cc applications.

  • The latest version of Lr does not work with the last WIN10, I need help

    The latest version of Lr does not work with the last WIN10, I need help

    Finally I understand it by putting at level c ++ Redistributable Package, surprisingly it works. Anyway, thanks for your answer...

    Good day!

Maybe you are looking for

  • Blue screen and bad RAM memory?

    My MBP 2011 early all just stopped working yesterday, it worked very well without any problem of performance for the last 5 years, and then suddenly a blue screen (of death) and it has problems starting. He will ring the Bell to start, display the ba

  • I wish increast the font size in the address bar, cession bar and tab headings do not see how

    I would like to increase the font size or make the "BOLD" font, so I can read them better for the address bar in particular, but also for the entries tab, the menu bar and the bookmarks bar. Is this possible? Thank you

  • Transfer data from old iMac (2008) to the new (end of 2015)

    I was not able to find a convenient way to transfer data from my old mac (iMac 21 of 2008) to the new. (iMac 27 5K 4.0 El Cap) One thing... I have no ports firewire on the new iMac... then I have no crush on the old... What I've read says that you mu

  • What is communication for 3D Active shutter technology?

    Hello I buy Toshiba 3D 46tl438 screen, the TV comes with 3D glasses active two model: FPT-AG02G.I watch almost everywhere (including the manual and on the glasses themselves) what is the technology of communication? IR, RF or BP?I also try Web of Tos

  • Satellite Pro 4340: need driver sound

    Hi people, I need to for the Toshiba Satellite Pro 4340 * Sound Driver *, please! System: Win Server 2003Sound card: + Yamaha Native DS1 Audio Codec +. (I'm loking on google but without suxes). better compliance