<?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 anyone help me simplify this into a var or class? I'm quite new to this!</title>
    <link>https://forums.adobe.com/community/edge_animate?view=discussions</link>
    <description>Most recent forum messages</description>
    <language>en</language>
    <pubDate>Thu, 05 Jun 2014 05:40:35 GMT</pubDate>
    <generator>Jive Engage 7.0.0.1  (http://jivesoftware.com/products/)</generator>
    <dc:date>2014-06-05T05:40:35Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>Re: can anyone help me simplify this into a var or class? I'm quite new to this!</title>
      <link>https://forums.adobe.com/message/6435592?tstart=0#6435592</link>
      <description>&lt;!-- [DocumentBodyStart:fd8ded64-4118-456d-97fc-392d330223dc] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;This seems to have been answered here &lt;/p&gt;&lt;p&gt; &lt;a class="jive-link-thread-small" data-containerId="4823" data-containerType="14" data-objectId="1476945" data-objectType="1" href="https://forums.adobe.com/thread/1476945?sr=stream&amp;amp;ru=2098418"&gt;https://forums.adobe.com/thread/1476945?sr=stream&amp;amp;ru=2098418&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:fd8ded64-4118-456d-97fc-392d330223dc] --&gt;&lt;img src='/beacon?t=1415897882296' /&gt;</description>
      <pubDate>Thu, 05 Jun 2014 05:40:35 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6435592?tstart=0#6435592</guid>
      <dc:date>2014-06-05T05:40:35Z</dc:date>
      <clearspace:dateToText>5 months 1 week ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: can anyone help me simplify this into a var or class? I'm quite new to this!</title>
      <link>https://forums.adobe.com/message/6388555?tstart=0#6388555</link>
      <description>&lt;!-- [DocumentBodyStart:37dad356-2604-49bf-b2b9-e32ddbe0e882] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;&lt;span style="color: #222222; font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;Thanks, can you help me understand how to make an array work?&lt;/span&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&lt;span style="color: #222222; font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt; &lt;/span&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #222222; font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;I need to fade toggle a different country png for each country button and fade out the rest of the country images i.e.: when i click the UK button i need to fade toggle the UK png and fade out the other countries&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #222222; font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;when i click the USA button i need to fade toggle the USA ing and fade out the other countries and so on&lt;/span&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #222222; font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;sym.getSymbol("Countries").$("UK").fadeToggle();&lt;/span&gt;&lt;span style="color: #222222; font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;sym.getSymbol("Countries").$("USA","AUS","Hongkong","Switzerland","Ireland","Indias","Japa n","Netherlands","Spain").fadeOut();&lt;/span&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #222222; font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;sym.getSymbol("Countries").$("USA").fadeToggle();&lt;/span&gt;&lt;span style="color: #222222; font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;sym.getSymbol("Countries").$("UK","AUS","Hongkong","Switzerland","Ireland","Indias","Japan ","Netherlands","Spain").fadeOut();&lt;/span&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;but it doesn't seem to work how i have it and i have been told to do an array but I'm not sure how?&lt;/p&gt;&lt;p&gt;&lt;span style="color: #222222; font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;etc&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #222222; font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;can you help?&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:37dad356-2604-49bf-b2b9-e32ddbe0e882] --&gt;</description>
      <pubDate>Sun, 18 May 2014 12:48:00 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6388555?tstart=0#6388555</guid>
      <dc:date>2014-05-18T12:48:00Z</dc:date>
      <clearspace:dateToText>5 months 4 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: can anyone help me simplify this into a var or class? I'm quite new to this!</title>
      <link>https://forums.adobe.com/message/6386671?tstart=0#6386671</link>
      <description>&lt;!-- [DocumentBodyStart:78573e22-52e9-49a8-be5b-59973af31c87] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Hi,&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks for all your help, I don;t think Class would work as i would need different combinations of the buttons within a symbol.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I think I have worked it out, but if you see attached, for some reason my fadeOut command for the rest of the countries when each button is clicked fails to fadesOut the rest of the countries and only USA and UK seem to work? See attached:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;a class="jive-link-external-small" href="https://www.dropbox.com/s/z9jad1pvc1abo1l/Countries.zip" rel="nofollow"&gt;Dropbox - Countries.zip&lt;/a&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;any ideas, it's driving me mad!&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:78573e22-52e9-49a8-be5b-59973af31c87] --&gt;</description>
      <pubDate>Sat, 17 May 2014 08:49:32 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6386671?tstart=0#6386671</guid>
      <dc:date>2014-05-17T08:49:32Z</dc:date>
      <clearspace:dateToText>5 months 1 month ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: can anyone help me simplify this into a var or class? I'm quite new to this!</title>
      <link>https://forums.adobe.com/message/6383065?tstart=0#6383065</link>
      <description>&lt;!-- [DocumentBodyStart:a31a0e1d-d85c-414a-ba55-ddb70af4398c] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;try this:&lt;/p&gt;&lt;p&gt;// insert code to be run when the composition is fully loaded here&lt;/p&gt;&lt;p&gt;var countries =&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;for (i=0;i&amp;lt;countries.length;i++){&lt;/p&gt;&lt;p&gt;sym.$(countries[i]).addClass('fade');&lt;/p&gt;&lt;p&gt;sym.$('.fade').fadeOut();&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;p&gt;sym.$("UKstandardbuttons").fadeToggle();&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;sample&lt;/p&gt;&lt;p&gt;&lt;a class="jive-link-external-small" href="https://app.box.com/s/pd8hehc4d00kfyf92jbi" rel="nofollow"&gt;https://app.box.com/s/pd8hehc4d00kfyf92jbi&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:a31a0e1d-d85c-414a-ba55-ddb70af4398c] --&gt;</description>
      <pubDate>Wed, 14 May 2014 20:48:13 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6383065?tstart=0#6383065</guid>
      <dc:date>2014-05-14T20:48:13Z</dc:date>
      <clearspace:dateToText>6 months 5 hours ago</clearspace:dateToText>
      <clearspace:replyCount>3</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>can anyone help me simplify this into a var or class? I'm quite new to this!</title>
      <link>https://forums.adobe.com/message/6382987?tstart=0#6382987</link>
      <description>&lt;!-- [DocumentBodyStart:b4466caa-cf12-4556-b156-b20c7a66a6e8] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p style="font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif; color: #333333;"&gt;&lt;span style="font-weight: inherit; font-style: inherit; font-size: 15.454545021057129px; font-family: Calibri, sans-serif; color: #444444;"&gt;sym.$("UKstandardbuttons").fadeToggle();&lt;/span&gt;&lt;/p&gt;&lt;p style="font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif; color: #333333;"&gt;&lt;span style="font-weight: inherit; font-style: inherit; font-size: 15.454545021057129px; font-family: Calibri, sans-serif; color: #444444;"&gt;sym.$("AUSstandardbuttons").fadeOut();&lt;/span&gt;&lt;/p&gt;&lt;p style="font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif; color: #333333;"&gt;&lt;span style="font-weight: inherit; font-style: inherit; font-size: 15.454545021057129px; font-family: Calibri, sans-serif; color: #444444;"&gt;sym.$("Hongkongstandardbuttons").fadeOut();&lt;/span&gt;&lt;/p&gt;&lt;p style="font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif; color: #333333;"&gt;&lt;span style="font-weight: inherit; font-style: inherit; font-size: 15.454545021057129px; font-family: Calibri, sans-serif; color: #444444;"&gt;sym.$("Switzerlandstandardbuttons").fadeOut();&lt;/span&gt;&lt;/p&gt;&lt;p style="font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif; color: #333333;"&gt;&lt;span style="font-weight: inherit; font-style: inherit; font-size: 15.454545021057129px; font-family: Calibri, sans-serif; color: #444444;"&gt;sym.$("Irelandstandardbuttons").fadeOut();&lt;/span&gt;&lt;/p&gt;&lt;p style="font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif; color: #333333;"&gt;&lt;span style="font-weight: inherit; font-style: inherit; font-size: 15.454545021057129px; font-family: Calibri, sans-serif; color: #444444;"&gt;sym.$("Indiastandardbuttons").fadeOut();&lt;/span&gt;&lt;/p&gt;&lt;p style="font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif; color: #333333;"&gt;&lt;span style="font-weight: inherit; font-style: inherit; font-size: 15.454545021057129px; font-family: Calibri, sans-serif; color: #444444;"&gt;sym.$("Japanstandardbuttons").fadeOut();&lt;/span&gt;&lt;/p&gt;&lt;p style="font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif; color: #333333;"&gt;&lt;span style="font-weight: inherit; font-style: inherit; font-size: 15.454545021057129px; font-family: Calibri, sans-serif; color: #444444;"&gt;sym.$("Netherlandsstandardbuttons").fadeOut();&lt;/span&gt;&lt;/p&gt;&lt;p style="font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif; color: #333333;"&gt;&lt;span style="font-weight: inherit; font-style: inherit; font-size: 15.454545021057129px; font-family: Calibri, sans-serif; color: #444444;"&gt;sym.$("Spainstandardbuttons").fadeOut();&lt;/span&gt;&lt;/p&gt;&lt;p style="font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif; color: #333333;"&gt;&lt;span style="font-weight: inherit; font-style: inherit; font-size: 15.454545021057129px; font-family: Calibri, sans-serif; color: #444444;"&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif; color: #333333;"&gt;&lt;span style="font-weight: inherit; font-style: inherit; font-size: 15.454545021057129px; font-family: Calibri, sans-serif; color: #444444;"&gt;into a var or class? so i don't have to list similar code for each element (UKstandardbutton)'s action&lt;/span&gt;&lt;/p&gt;&lt;p style="font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif; color: #333333;"&gt;&lt;span style="font-weight: inherit; font-style: inherit; font-size: 15.454545021057129px; font-family: Calibri, sans-serif; color: #444444;"&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif; color: #333333;"&gt;&lt;span style="font-weight: inherit; font-style: inherit; font-size: 15.454545021057129px; font-family: Calibri, sans-serif; color: #444444;"&gt;thanks!&lt;/span&gt;&lt;/p&gt;&lt;p style="font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif; color: #333333;"&gt;&lt;span style="font-weight: inherit; font-style: inherit; font-size: 15.454545021057129px; font-family: Calibri, sans-serif; color: #444444;"&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif; color: #333333;"&gt;&lt;span style="font-weight: inherit; font-style: inherit; font-size: 15.454545021057129px; font-family: Calibri, sans-serif; color: #444444;"&gt;James&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:b4466caa-cf12-4556-b156-b20c7a66a6e8] --&gt;</description>
      <pubDate>Wed, 14 May 2014 20:24:50 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6382987?tstart=0#6382987</guid>
      <dc:date>2014-05-14T20:24:50Z</dc:date>
      <clearspace:dateToText>6 months 6 hours ago</clearspace:dateToText>
      <clearspace:replyCount>4</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
  </channel>
</rss>

