Can you help me? Is there a simpler way to write this short code?

Hi, I'm quite new to coding and EDGE and think there must be a simpler way to write this? :

sym.getSymbol("USA_animation").play ();

sym.getSymbol("World_map").play ();

sym.getComposition () .getStage ().getSymbol("UK_animation").$("UK").fadeOut ();

sym.getComposition () .getStage ().getSymbol("UK_animation").$("Piechart").fadeOut ();

sym.getComposition () .getStage ().getSymbol("UK_animation").$("people").fadeOut ();

sym.getComposition () .getStage ().getSymbol("UK_animation").$("PeopleText").fadeOut ();

sym.getComposition () .getStage ().getSymbol("UK_animation").$("UKText").fadeOut ();

sym.getComposition () .getStage ().getSymbol("AUS_animation").$("AUSTRALIA").fadeOut ();

sym.getComposition () .getStage ().getSymbol("USA_animation").$("USA").show ();

sym.getComposition () .getStage ().getSymbol("USA_animation").$("USAText").show ();

Can you help me?

Obivious to increase efficiency is

var USA_animation = sym.getSymbol ("USA_animation")

USA_animation. Play();

sym.getSymbol("World_map").play ();

USA_animation.$("UK").fadeout ();

USA_animation.$("PieChart").fadeout ();

USA_animation.$("people"). fadeOut();

USA_animation.$("PeopleText").fadeout ();

USA_animation.$("UKText").fadeout ();

USA_animation.$("AUSTRALI_A").fadeout ();

USA_animation.$("USA"). Show();

USA_animation.$("USAText"). Show();

If you perform a single operation on all the symbols of the "USA_animation" child, you can also reduce somethinng as

sym.getSymbol("World_map").play ();

var USA_animation = sym.getSymbol ("USA_animation")

USA_animation. Play();

var childSymbols = USA_animation.getChildSymbols (); f

for (var i = 0; i)

childSymbols [i] .fadeOut ();

I don't know if these are the best ways, but these are in a way that I could think of.

Let us know if offer you a lot shorted way to write this

Tags: Edge Animate

Similar Questions

  • I have created a prproj file and want to create a master DVD.  Is there a simple way to do this?

    I have created a prproj file and want to create a master DVD. Is there a simple way to do this?

    You need to export an MPEG2-DVD file for use in an application to create DVD (like Encore CS6)

    You can also create an ISO for mastering purposes image file.

  • I installed first design studio pro and it shows updated but could not able to open the first pro app can you help me to there.

    First pro

    You have a 64-bit operating system?

  • I can not stress in my pdf document... can you help me?

    I can not stress in my pdf document... can you help me?

    The most common reason for this is that the pdf was made from a scanned image. If this is the case, there is no living text to select or highlight. See if you can use the Select to select individual words. If you can't then that's exactly what is happening.

    A possible alternative is instead to use the highlight tool, use the annotations of drawing tool. You can draw a rectangle around the text, select the box, right click and choose Properties, add a fill color and then reduce the opacity.

    It's kind of way to make cheese but the only choice when using Reader on the images digitized.

  • I have several purchases through the iTunes Store on my bank statement and I don't know what they are for. Can you help me? Cannot maneuver through this system to see the purchase history.

    I have several iTunes Store purchases that appear on my bank statement and I don't know what they are for. Can you help me? I'm unable to maneuver through this system to view previous purchases.  I wonder if I pay for extra storage, it is always advising me that I'm pretty sure.

    Hello

    Open iTunes on your Mac and click your name (if you are not signed in, then sign to see your name). Then click on account information. Once you enter the account information screen, you will see a section called historical of purchases. Click 'View all' to see the list of purchases and the ability to watch the dates more.

    See you soon,.

    GB

  • I tried to empty the trash, secure, but there are 5 items in. Can you help me?

    I tried to clear all items in the trash, but as I clicked on Secure Empty Trash he began to delete and then stopped with 5 elements still in there. Can you help me? James

    Please read article by solving the problems of Trash from the X Lab for some troubleshooting steps. You can find the article on:

    http://www.thexlab.com/FAQs/trash.html

    Another good article is directly from Apple, this article is you may not empty the trash or move a file to the Trash - Apple Support

  • Vista gives the message "there is no more available end point" and does not allow me to share a folder on an external drive. Can you help me?

    Vista gives the message "there is no more available end point" and does not allow me to share a folder on an external drive.  Can you help me?

    Hello

    Thanks for posting in the Microsoft Community.

    I don't know it must be frustrating!

    Let us try these steps and see if that fixes the problem:

    (a) press Windows + R keys to open search Run

    (b) type regedit , and then click ok

    go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\BFE

    c) on the right, click it, click permissions

    (d) click on ADD and type everyone and click ok

    (e) now click on all

    (f) below, you have permissions for users, select full control and click ok

    g keys) press Windows + R to open Run Search

    (h) type services.msc , and then click ok

    (i) double-click base filtering engine service.

    (j) Make sure that the service status is started and the startup type is automatic

    (k) the procedure for the windows firewall service

    (l) click on apply and Ok.

    Important: This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information:

    Back up the registry:

    http://Windows.Microsoft.com/en-us/Windows-Vista/back-up-the-registry

    Hope the helps of information. We know if you need help. We will be happy to help you.

  • Since I did the update, my master pages don't parpadean more good, there are texts that disappear and fonts which are not well displayed. It worked before. Can you help me?

    Since I did the update, my master pages don't parpadean more good, there are texts that disappear and fonts which are not well displayed. It worked before. Can you help me?

    Yes, thanks it works!

  • Hello. I have a simple-app membership of creative cloud to Adobe Premiere Pro (at least) on PC, however, Adobe says "we have found a subscription to Adobe Premiere Pro CC 2015 associated with this Adobe ID". I don't have another code. Can you help me?

    Hello. I have a simple-app membership of creative cloud to Adobe Premiere Pro (at least) on PC, however, Adobe says "we have found a subscription to Adobe Premiere Pro CC 2015 associated with this Adobe ID". I don't have another code. Can you help me?

    Hi Nicolas,.

    Please check the help below document:

    https://helpx.Adobe.com/manage-account-membership/CC-reverts-to-trial.html

    Kind regards

    Sheena

  • I installed creative cloud on my MacBook Pro and when I run it, there is no described applications. Can you help me?

    After cleaning an old facility (previous employer account) of the creative suite, today I bought the suite photo (photoshop + lightroom). First, I installed CC. During the launch, the screen came in white with no applications described for installation. Can you help me?

    Kind regards

    Mark

    Hi Mark,

    Please refer to the threads below where this issue has been addressed:

    Creative cloud is empty window why?

    Cloud Desktop App is empty?

    New application Cloud Creative unusable: it is empty!

    Re: Empty opening creative cloud app

    Kind regards

    Sheena

  • SELECT, can you help me explain this simple result please

    Hi, I have semething that I can't explain with my knowledge of the subsoil of sql:
    T1 (number cu_id):
    1
    2
    3
    4

    T2 (number cu_id):
    3
    4
    5
    6
    -------------------------------------------------------
    Select T1.cu_id from T1, T2 where T1.cu_id! = T2.cu_id;

    which produces 14 lines, looking at the result I guess what is happening on such a cross join, can you help me understand how sql in doing so:
    1
    1
    1
    1
    2
    2
    2
    2
    3
    3
    3
    4
    4
    4
    -----------------------------------------
    While select T1.cu_id from T1, T2 where T1.cu_id = T2.cu_id; -* (with the equals sign) produces 2 rows, which is good for me
    3
    4



    TX
    T

    Published by: trento on 26 May 2011 20:53

    Published by: trento on May 26, 2011 20:54

    Because it takes each T1 line and compares against T2 lines - essentially a loop in all lines.

    SQL> explain plan for  select t1.col_1 from t1, t2 where t1.col_1 != t2.col_1;
    
    Explained.
    
    SQL> select * from table(dbms_xplan.display);
    
    PLAN_TABLE_OUTPUT
    ------------------------------------------------------------------------------------------------------------------------------------
    Plan hash value: 1967407726
    
    ---------------------------------------------------------------------------
    | Id  | Operation          | Name | Rows  | Bytes | Cost (%CPU)| Time     |
    ---------------------------------------------------------------------------
    |   0 | SELECT STATEMENT   |      |    12 |   312 |     6   (0)| 00:00:01 |
    |   1 |  NESTED LOOPS      |      |    12 |   312 |     6   (0)| 00:00:01 |
    |   2 |   TABLE ACCESS FULL| T1   |     4 |    52 |     2   (0)| 00:00:01 |
    |*  3 |   TABLE ACCESS FULL| T2   |     3 |    39 |     1   (0)| 00:00:01 |
    ---------------------------------------------------------------------------
    
    Predicate Information (identified by operation id):
    ---------------------------------------------------
    
       3 - filter("T1"."COL_1"<>"T2"."COL_1")
    
    Note
    -----
       - dynamic sampling used for this statement
    
    19 rows selected.
    
    SQL>
    

    What you should do is NOT IN operation:

    SQL> explain plan for  select t1.col_1 from t1 where col_1 not in (select col_1 from t2);
    
    Explained.
    
    SQL> select * from table(dbms_xplan.display);
    
    PLAN_TABLE_OUTPUT
    ------------------------------------------------------------------------------------------------------------------------------------
    Plan hash value: 895956251
    
    ---------------------------------------------------------------------------
    | Id  | Operation          | Name | Rows  | Bytes | Cost (%CPU)| Time     |
    ---------------------------------------------------------------------------
    |   0 | SELECT STATEMENT   |      |     1 |    13 |     4   (0)| 00:00:01 |
    |*  1 |  FILTER            |      |       |       |            |          |
    |   2 |   TABLE ACCESS FULL| T1   |     4 |    52 |     2   (0)| 00:00:01 |
    |*  3 |   TABLE ACCESS FULL| T2   |     4 |    52 |     2   (0)| 00:00:01 |
    ---------------------------------------------------------------------------
    
    Predicate Information (identified by operation id):
    ---------------------------------------------------
    
       1 - filter( NOT EXISTS (SELECT /*+ */ 0 FROM "T2" "T2" WHERE
                  LNNVL("COL_1"<>:B1)))
       3 - filter(LNNVL("COL_1"<>:B1))
    
    Note
    -----
       - dynamic sampling used for this statement
    
    21 rows selected.
    
    SQL>  select t1.col_1 from t1 where col_1 not in (select col_1 from t2);
    
         COL_1
    ----------
             1
             2
    
    SQL>
    

    Hemant K Collette

  • can you help me with the first and sounds home theater?

    Hello

    lynda tutorial, I bought, but I couldn't find a video to help me work with audio to create a home theater sounds

    There is a simple diagram of a home theater

    1887995-51surround.jpg

    Well my question is linked to my timeline and audio

    How can I have on my timeline audio that sounds on the left rail only, or left / right back together

    y at - it a video tutorial?

    or can you help me?

    Thank you

    You are looking at Video Mixer, you need the track mixer.

  • I tried to upgrade to 9.2.1 new firmware ios but its not letting me. Can you help me?

    I tried to upgrade to 9.2.1 new firmware ios but its not letting me. Can you help me?

    What happens when you try to update? Put you to update over the air to help

    cellular data or by connecting the iPhone to the computer with which you

    normally the synchronization and using iTunes to do the update on this computer?

    If there is an error message, what is the exact

    full text of this error message?

  • touchpad doesn't work on my laptop. I can't find that everything about the touch pad in Control Panel. can you help me please?

    touchpad doesn't work on my laptop.   I can't find that everything about the touch pad in Control Panel.  can you help me please?

    Hello

    It's material is not a Windows problems.

    / Settings (BIOS/CMOS) often F2 as you start then look at the screen - make sure that is it
    is a toggle the TouchPad that it is enabled.

    Check with support of the manufacturer system, documentation online or forums that there is probably
    Shortcut keys that enable and disable the touchpad functions.

    Parameters for TouchPad located in the control panel - mouse (there may be several tabs with TouchPad
    entries) and some have a utility that loads in the Notification area next to the clock in the bottom right.

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

    If necessary and the TouchPad makes its appearance in Device Manager: (make sure that you have restarted at least
    only once if the above did not work)

    Panel of configuration manager devices - mouse and pointing devices - Double click on the touchpad - the driver tab-
    Click on update driver (it comes may not do anything like MS is far behind the drivers of certification), now right CLICK
    on the TouchPad and UNINSTALL.

    Then go to the USB and UNINSTALL ALL controllers except the category itself (all in). RESET

    This will refresh the driver for the TouchPad and battery USB. This does not prevent the touchpad from working.

    The similar procedure on XP, Windows 7 and Vista is the same, except that we need to clear the specific device if present.
    http://support.Microsoft.com/kb/310575

    Then go to the system manufacturer's website and get the latest touchpad drivers.

    Download - SAVE - go to where you put it-click on - RUN AS ADMIN.

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

    This utility also allows to control the TouchPad:

    TouchFreeze
    http://code.Google.com/p/TouchFreeze/

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="" -="" mark="" twain="" said="" it="">

  • I can't clean reinstall my version of vista because my cd/dvd drive is not installed in my bios boot priority. Please can you help me solve this problem?

    (cd ide) not installed in my bios boot

    I can't reinstall clean my version of vista because my cd/dvd drive is not installed in my bios boot priority please can you help solve this problem

    You added a new drive?

    All the drivers are up to date?

    Check the cables for loose connections.

    Is it possible for you to do the following to reload the original Windows installation files?

    Start > all programs

    Select Samsung

    Samsung Recovery Solution

    Select "full restoration".

    -or-

    Restart Windows and the Samsung logo starts pressing F4 to access the recovery screen

    This is a known problem in Samsung - see document - links products are not good

    http://support-US.Samsung.com/Cyber/Popup/iframe/pop_troubleshooting_fr.jsp?idx=43092&modelname=SV0411N&modelcode=

    It is Support Center of Samsung - Re: HDD no detect does not issue

    Click Troubleshoot utility (PS there is a pop up window)

    http://www.Samsung.com/global/business/HDD/

    Samsung also recommend OnTrack Disk Diagnostic. You can make a bootable floppy to advise data with this:

    http://buyonline.Ontrack.com/ecom/fr...file=DC500.exe

    And here is the other programs from Samsung. The creator of the Manager of disc is really of Ontrack and hosted by Samsung. It should work with any brand of hard drive.

    http://www.Samsung.com/Products/Hard...file/Sutil.exe
    http://www.Samsung.com/Products/Hard...Ile/SHDIAG.exe
    http://www.Samsung.com/Products/Hard...il_creator.exe
    http://www.Samsung.com/products/hard...DM_Creator.zip

    (Disk Manager link was not on the Samsung website with the exception of one who asked for the story of your life, but in trying different possibilities with links leading to other files, I finally found one that allowed a download without having to give everything and personal information.)

    ___Taken from the following thread - Elvandil response

     

Maybe you are looking for