<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:clearspace="http://www.jivesoftware.com/xmlns/jive/rss" version="2.0">
  <channel>
    <title>Adobe Community: Message List - Can you help? Is there a simpler way to write this short code?</title>
    <link>https://forums.adobe.com/community/edge_animate?view=discussions</link>
    <description>Most recent forum messages</description>
    <language>en</language>
    <pubDate>Sat, 19 Apr 2014 08:55:07 GMT</pubDate>
    <generator>Jive Engage 7.0.0.1  (http://jivesoftware.com/products/)</generator>
    <dc:date>2014-04-19T08:55:07Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>Re: Can you help? Is there a simpler way to write this short code?</title>
      <link>https://forums.adobe.com/message/6311861?tstart=0#6311861</link>
      <description>&lt;!-- [DocumentBodyStart:3cde59c3-7d65-490b-8b7d-b266e34f8f7c] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Great stuff thank you!&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:3cde59c3-7d65-490b-8b7d-b266e34f8f7c] --&gt;&lt;img src='/beacon?t=1415897901180' /&gt;</description>
      <pubDate>Sat, 19 Apr 2014 08:55:07 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6311861?tstart=0#6311861</guid>
      <dc:date>2014-04-19T08:55:07Z</dc:date>
      <clearspace:dateToText>6 months 4 weeks ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: Can you help? Is there a simpler way to write this short code?</title>
      <link>https://forums.adobe.com/message/6302744?tstart=0#6302744</link>
      <description>&lt;!-- [DocumentBodyStart:d4e2c8bc-5077-4cc9-b00f-19f33ac9761c] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;One obivious way to increase efficiency is&lt;/p&gt;&lt;p&gt;var USA_animation = sym.getSymbol("USA_animation")&lt;/p&gt;&lt;p&gt;USA_animation.play();&lt;/p&gt;&lt;p&gt;sym.getSymbol("World_map").play();&lt;/p&gt;&lt;p&gt;USA_animation.$("UK").fadeOut();&lt;/p&gt;&lt;p&gt;USA_animation.$("Piechart" ).fadeOut();&lt;/p&gt;&lt;p&gt;USA_animation.$("people"). fadeOut();&lt;/p&gt;&lt;p&gt;USA_animation.$("PeopleText").fadeOut();&lt;/p&gt;&lt;p&gt;USA_animation.$("UKText").fadeOut();&lt;/p&gt;&lt;p&gt;USA_animation.$("AUSTRALI A").fadeOut();&lt;/p&gt;&lt;p&gt;USA_animation.$("USA").show();&lt;/p&gt;&lt;p&gt;USA_animation.$("USAText" ).show();&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;If you were performing a single operation on all the child symbols of 'USA_animation' you could further reduce it to somethinng like &lt;/p&gt;&lt;p&gt;sym.getSymbol("World_map").play();&lt;/p&gt;&lt;p&gt;var USA_animation = sym.getSymbol("USA_animation")&lt;/p&gt;&lt;p&gt;USA_animation.play();&lt;/p&gt;&lt;p&gt;var childSymbols = USA_animation.getChildSymbols(); f&lt;/p&gt;&lt;p&gt;for(var i=0; i&amp;lt;childSymbols.length; i++) &lt;/p&gt;&lt;p&gt;childSymbols[i].fadeOut();&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I am not sure if these are the best possible ways,but these are some ways i could think of.&lt;/p&gt;&lt;p&gt;Let us know if you come up much shorted way to write this&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:d4e2c8bc-5077-4cc9-b00f-19f33ac9761c] --&gt;</description>
      <pubDate>Wed, 16 Apr 2014 05:24:27 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6302744?tstart=0#6302744</guid>
      <dc:date>2014-04-16T05:24:27Z</dc:date>
      <clearspace:dateToText>6 months 1 month ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Can you help? Is there a simpler way to write this short code?</title>
      <link>https://forums.adobe.com/message/6299245?tstart=0#6299245</link>
      <description>&lt;!-- [DocumentBodyStart:4d8762c5-32dd-41f1-b312-a9e66f291708] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Hi, I'm quite new to coding and EDGE and feel that there must be a simpler way to write this?:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #444444; font-family: Calibri, sans-serif; font-size: 15px; background-color: #ffffff;"&gt;sym.getSymbol("USA_animation").play(); &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #444444; font-family: Calibri, sans-serif; font-size: 15px; background-color: #ffffff;"&gt;sym.getSymbol("World_map").play(); &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #444444; font-family: Calibri, sans-serif; font-size: 15px; background-color: #ffffff;"&gt;sym.getComposition().getStage().getSymbol("UK_animation").$("UK").fadeOut();&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #444444; font-family: Calibri, sans-serif; font-size: 15px; background-color: #ffffff;"&gt;sym.getComposition().getStage().getSymbol("UK_animation").$("Piechart").fadeOut();&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #444444; font-family: Calibri, sans-serif; font-size: 15px; background-color: #ffffff;"&gt;sym.getComposition().getStage().getSymbol("UK_animation").$("people").fadeOut();&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #444444; font-family: Calibri, sans-serif; font-size: 15px; background-color: #ffffff;"&gt;sym.getComposition().getStage().getSymbol("UK_animation").$("PeopleText").fadeOut();&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #444444; font-family: Calibri, sans-serif; font-size: 15px; background-color: #ffffff;"&gt;sym.getComposition().getStage().getSymbol("UK_animation").$("UKText").fadeOut();&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #444444; font-family: Calibri, sans-serif; font-size: 15px; background-color: #ffffff;"&gt;sym.getComposition().getStage().getSymbol("AUS_animation").$("AUSTRALIA").fadeOut();&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #444444; font-family: Calibri, sans-serif; font-size: 15px; background-color: #ffffff;"&gt;sym.getComposition().getStage().getSymbol("USA_animation").$("USA").show();&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #444444; font-family: Calibri, sans-serif; font-size: 15px; background-color: #ffffff;"&gt;sym.getComposition().getStage().getSymbol("USA_animation").$("USAText").show();&lt;/span&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Can you help?&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:4d8762c5-32dd-41f1-b312-a9e66f291708] --&gt;</description>
      <pubDate>Tue, 15 Apr 2014 07:34:08 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6299245?tstart=0#6299245</guid>
      <dc:date>2014-04-15T07:34:08Z</dc:date>
      <clearspace:dateToText>6 months 1 month ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
  </channel>
</rss>

