<?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 - prevent subsequent clicks of button in Edge Animate (was: Disable click)</title>
    <link>https://forums.adobe.com/community/edge_animate?view=discussions</link>
    <description>Most recent forum messages</description>
    <language>en</language>
    <pubDate>Wed, 24 Sep 2014 09:32:04 GMT</pubDate>
    <generator>Jive Engage 7.0.0.1  (http://jivesoftware.com/products/)</generator>
    <dc:date>2014-09-24T09:32:04Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>Re: prevent subsequent clicks of button in Edge Animate (was: Disable click)</title>
      <link>https://forums.adobe.com/message/6758706?tstart=0#6758706</link>
      <description>&lt;!-- [DocumentBodyStart:264aa363-2d5d-4c72-a0af-1940757448f7] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Exactly wat i'm looking for, thx again Bharadwaj! &lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;i will also give the class approach a try.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Now if only i could rename this thread to "How to toggle click event on/off"&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thx to all for the help!&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:264aa363-2d5d-4c72-a0af-1940757448f7] --&gt;&lt;img src='/beacon?t=1415897188697' /&gt;</description>
      <pubDate>Wed, 24 Sep 2014 09:32:04 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6758706?tstart=0#6758706</guid>
      <dc:date>2014-09-24T09:32:04Z</dc:date>
      <clearspace:dateToText>1 month 3 weeks ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: prevent subsequent clicks of button in Edge Animate (was: Disable click)</title>
      <link>https://forums.adobe.com/message/6758678?tstart=0#6758678</link>
      <description>&lt;!-- [DocumentBodyStart:a2444b5f-825f-48ba-9fb2-e45b477545fe] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;If you do not want perform the operation based on visibility, add a class to the rectangle when clicked and remove it when clicked on "X"&lt;/p&gt;&lt;p&gt;This class can be used to perform the operation&lt;/p&gt;&lt;p&gt;Click handler for Rectangle2 will be&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;if(!sym.$( "Rectangle2" ).hasClass( "clicked" ))&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;{&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&amp;nbsp; sym.play("play");&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&amp;nbsp; sym.$("Text").show();&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&amp;nbsp; sym.$("mail_icon").show();&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&amp;nbsp; sym.$("Rectangle2").css("cursor","default");&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&amp;nbsp; sym.$( "Rectangle2" ).addClass( "clicked" )&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;}&lt;/strong&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Click handler for Text will be&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;sym.playReverse("mailout");&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;sym.$("Text").hide();&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;sym.$("mail_icon").hide();&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;sym.$("Rectangle2").css("cursor","pointer");&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;sym.$( "Rectangle2" ).removeClass( "clicked" );&lt;/strong&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Both the techniques work.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:a2444b5f-825f-48ba-9fb2-e45b477545fe] --&gt;</description>
      <pubDate>Wed, 24 Sep 2014 09:17:10 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6758678?tstart=0#6758678</guid>
      <dc:date>2014-09-24T09:17:10Z</dc:date>
      <clearspace:dateToText>1 month 3 weeks ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: prevent subsequent clicks of button in Edge Animate (was: Disable click)</title>
      <link>https://forums.adobe.com/message/6758677?tstart=0#6758677</link>
      <description>&lt;!-- [DocumentBodyStart:ae4637c8-b179-44d8-bf13-046398553647] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Hi Ian,&lt;/p&gt;&lt;p&gt;If you want to bring back the event handler when clicked on "X". Then this is not possible if you remove the event handler using off.&lt;/p&gt;&lt;p&gt;Instead of using off to remove event listener. Check whether "X" is visible and perform the operation&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;if(sym.$("Text").css("display") == "none")&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;{&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&amp;nbsp; sym.play("play");&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&amp;nbsp; sym.$("Text").show();&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&amp;nbsp; sym.$("mail_icon").show();&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&amp;nbsp; sym.$("Rectangle2").css("cursor","default");&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;}&lt;/strong&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Similarly click handler for "X" will be as follows&lt;/p&gt;&lt;p&gt;&lt;strong&gt;sym.playReverse("mailout");&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;sym.$("Text").hide();&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;sym.$("mail_icon").hide();&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;sym.$("Rectangle2").css("cursor","pointer");&lt;/strong&gt;&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:ae4637c8-b179-44d8-bf13-046398553647] --&gt;</description>
      <pubDate>Wed, 24 Sep 2014 09:09:26 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6758677?tstart=0#6758677</guid>
      <dc:date>2014-09-24T09:09:26Z</dc:date>
      <clearspace:dateToText>1 month 3 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: prevent subsequent clicks of button in Edge Animate (was: Disable click)</title>
      <link>https://forums.adobe.com/message/6758059?tstart=0#6758059</link>
      <description>&lt;!-- [DocumentBodyStart:ec2612d8-1e14-427f-8ed6-e8f14f0e6aff] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Just a bit more info, in case it comes in handy:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I'm intending to ultimately create a collage of tiled mugshots of people. So i may be gravely mistaken, but i'm hoping that once i get this one "Rectangle" sorted out, i can apply it in array, using the same rules, to many more tiles. &lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:ec2612d8-1e14-427f-8ed6-e8f14f0e6aff] --&gt;</description>
      <pubDate>Wed, 24 Sep 2014 02:44:12 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6758059?tstart=0#6758059</guid>
      <dc:date>2014-09-24T02:44:12Z</dc:date>
      <clearspace:dateToText>1 month 3 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>3</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: prevent subsequent clicks of button in Edge Animate (was: Disable click)</title>
      <link>https://forums.adobe.com/message/6758058?tstart=0#6758058</link>
      <description>&lt;!-- [DocumentBodyStart:6c60ba8c-8c0b-45e6-9319-027a312e4c13] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Thx Joel! The code works great.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;But, as per my reply to Bharadwaj above, i now need another code to enable "Rectangle2" once more. This would probably go in X's click event, i think?&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Sorry if my previous explanation was vague &lt;span aria-label="Silly" class="emoticon-inline emoticon_silly" style="height:16px;width:16px;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:6c60ba8c-8c0b-45e6-9319-027a312e4c13] --&gt;</description>
      <pubDate>Wed, 24 Sep 2014 02:34:08 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6758058?tstart=0#6758058</guid>
      <dc:date>2014-09-24T02:34:08Z</dc:date>
      <clearspace:dateToText>1 month 3 weeks ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: prevent subsequent clicks of button in Edge Animate (was: Disable click)</title>
      <link>https://forums.adobe.com/message/6758057?tstart=0#6758057</link>
      <description>&lt;!-- [DocumentBodyStart:7c6a7168-a714-462e-bea9-5f865c801315] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Spot on Bharadwaj! &lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Perhaps a better explanation would be:&lt;/p&gt;&lt;p&gt;When "X" is hidden, "Rectangle2" can be clicked&lt;/p&gt;&lt;p&gt;When "X" is shown, "Rectangle2" cannot be clicked&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:7c6a7168-a714-462e-bea9-5f865c801315] --&gt;</description>
      <pubDate>Wed, 24 Sep 2014 02:31:23 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6758057?tstart=0#6758057</guid>
      <dc:date>2014-09-24T02:31:23Z</dc:date>
      <clearspace:dateToText>1 month 3 weeks ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>prevent subsequent clicks of button in Edge Animate (was: Disable click)</title>
      <link>https://forums.adobe.com/message/6754901?tstart=0#6754901</link>
      <description>&lt;!-- [DocumentBodyStart:8ea401fc-9df5-417a-a819-da79a70d415c] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Hi all!&lt;/p&gt;&lt;p&gt;I have a box that animates when clicked and a separate button that resets this animation.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I'm trying to prevent subsequent clicks so that the animation doesn't play again after the first click.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;i tried&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sym.play();&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sym.stop("end");&lt;/p&gt;&lt;p&gt;which worked, but it also skipped the animation and went straight to "end" (haha).&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;thx for any help!&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:8ea401fc-9df5-417a-a819-da79a70d415c] --&gt;</description>
      <pubDate>Tue, 23 Sep 2014 08:49:08 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6754901?tstart=0#6754901</guid>
      <dc:date>2014-09-23T08:49:08Z</dc:date>
      <clearspace:dateToText>1 month 3 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>10</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: Disable click</title>
      <link>https://forums.adobe.com/message/6756410?tstart=0#6756410</link>
      <description>&lt;!-- [DocumentBodyStart:ab6073a5-4225-474a-a952-5e7c1f8f8638] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;If you want &lt;strong&gt;one and only one&lt;/strong&gt; click, you can add this line to &lt;strong&gt;Rectangle2&lt;/strong&gt;.click: &lt;span style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;span style="color: #800080;"&gt;sym&lt;/span&gt;.$(e.target).off().css("cursor","default");&lt;/span&gt;&lt;/p&gt;&lt;p&gt;The &lt;strong&gt;Rectangle2&lt;/strong&gt;.click after being modified:&lt;/p&gt;&lt;p style="padding-left: 30px;"&gt;&lt;span style="color: #800080;"&gt;sym&lt;/span&gt;.play("play");&lt;/p&gt;&lt;p style="padding-left: 30px;"&gt;&lt;span style="color: #800080;"&gt;sym&lt;/span&gt;.$("Text").show();&lt;/p&gt;&lt;p style="padding-left: 30px;"&gt;&lt;span style="color: #800080;"&gt;sym&lt;/span&gt;.$("mail_icon").show();&lt;/p&gt;&lt;p style="padding-left: 30px;"&gt;&lt;span style="color: #800080;"&gt;sym&lt;/span&gt;.$(e.target).off().css("cursor","default");&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:ab6073a5-4225-474a-a952-5e7c1f8f8638] --&gt;</description>
      <pubDate>Tue, 23 Sep 2014 16:53:04 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6756410?tstart=0#6756410</guid>
      <dc:date>2014-09-23T16:53:04Z</dc:date>
      <clearspace:dateToText>1 month 3 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: Disable click</title>
      <link>https://forums.adobe.com/message/6755145?tstart=0#6755145</link>
      <description>&lt;!-- [DocumentBodyStart:9fd34a03-3b20-460d-af19-18a622ab7011] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;In the attached file clicking on the rectangle plays the animation.&lt;/p&gt;&lt;p&gt;You can reset the animation by clicking "X" at the corner.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Is this the behaviour you want. Clicking on rectangle plays the animation only if the reset button is not visible?&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:9fd34a03-3b20-460d-af19-18a622ab7011] --&gt;</description>
      <pubDate>Tue, 23 Sep 2014 10:06:35 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6755145?tstart=0#6755145</guid>
      <dc:date>2014-09-23T10:06:35Z</dc:date>
      <clearspace:dateToText>1 month 3 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>3</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: Disable click</title>
      <link>https://forums.adobe.com/message/6755016?tstart=0#6755016</link>
      <description>&lt;!-- [DocumentBodyStart:d6a6b827-9040-49c0-ac35-04e683c683a1] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Hi again Bharadwaj!&lt;/p&gt;&lt;p&gt;Sorry i'm not sure what you mean. But here's &lt;a class="jive-link-external-small" href="https://dl.dropbox.com/s/h9anraxp140vq24/140923.zip?dl=1" rel="nofollow"&gt;the sample&lt;/a&gt; if u'd like to take a closer look.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:d6a6b827-9040-49c0-ac35-04e683c683a1] --&gt;</description>
      <pubDate>Tue, 23 Sep 2014 09:36:41 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6755016?tstart=0#6755016</guid>
      <dc:date>2014-09-23T09:36:41Z</dc:date>
      <clearspace:dateToText>1 month 3 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>4</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: Disable click</title>
      <link>https://forums.adobe.com/message/6755000?tstart=0#6755000</link>
      <description>&lt;!-- [DocumentBodyStart:02d3ec33-3a97-48e7-8a12-4503bd731640] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Instead of using&lt;/p&gt;&lt;p&gt;sym.play();&lt;/p&gt;&lt;p&gt;sym.stop("end");&lt;/p&gt;&lt;p&gt;for the click handler. &lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Check the position of the symbol and call play on it, if it is at the beginning.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:02d3ec33-3a97-48e7-8a12-4503bd731640] --&gt;</description>
      <pubDate>Tue, 23 Sep 2014 09:12:55 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6755000?tstart=0#6755000</guid>
      <dc:date>2014-09-23T09:12:55Z</dc:date>
      <clearspace:dateToText>1 month 3 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>5</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
  </channel>
</rss>

