

































<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Easy Button States for Movie Clip Buttons</title>
	<link>http://www.quip.net/blog/2006/flash/easy-button-states-for-mc-buttons</link>
	<description>Luck is the residue of good design.</description>
	<pubDate>Tue, 07 Feb 2012 20:02:44 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.2</generator>

	<item>
		<title>by: David Stiller</title>
		<link>http://www.quip.net/blog/2006/flash/easy-button-states-for-mc-buttons#comment-107370</link>
		<pubDate>Fri, 30 Nov 2007 01:04:01 +0000</pubDate>
		<guid>http://www.quip.net/blog/2006/flash/easy-button-states-for-mc-buttons#comment-107370</guid>
					<description>Gary,

I'm not 100% sure I understand your question.  For sake of clarity, it's not a button, per se, that causes an animation to play; it's the playhead itself.  If you're sending the main timeline to a Scene and that Scene has animation, the animation will play, as long as you used &lt;code&gt;gotoAndPlay()&lt;/code&gt;.  I wonder if you're running into the issue discussed in &quot;&lt;a href=&quot;http://www.quip.net/blog/2006/flash/actionscript-20/gotoandplay-with-scenes&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;Why Doesn't _root.gotoAndPlay() work with Scenes&lt;/a&gt;&quot;?  Have you tried forgoing Scene names in favor of unique frame labels (unique globally, across all Scenes)?</description>
		<content:encoded><![CDATA[<p>Gary,</p>
<p>I&#8217;m not 100% sure I understand your question.  For sake of clarity, it&#8217;s not a button, per se, that causes an animation to play; it&#8217;s the playhead itself.  If you&#8217;re sending the main timeline to a Scene and that Scene has animation, the animation will play, as long as you used <code>gotoAndPlay()</code>.  I wonder if you&#8217;re running into the issue discussed in &#8220;<a href="http://www.quip.net/blog/2006/flash/actionscript-20/gotoandplay-with-scenes" target="_blank" rel="nofollow">Why Doesn&#8217;t _root.gotoAndPlay() work with Scenes</a>&#8220;?  Have you tried forgoing Scene names in favor of unique frame labels (unique globally, across all Scenes)?
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Gary</title>
		<link>http://www.quip.net/blog/2006/flash/easy-button-states-for-mc-buttons#comment-107299</link>
		<pubDate>Thu, 29 Nov 2007 23:28:15 +0000</pubDate>
		<guid>http://www.quip.net/blog/2006/flash/easy-button-states-for-mc-buttons#comment-107299</guid>
					<description>Is there a way to have the button go to another scene, but also play an animation?? I have the action script calling the frame label that I want but it's not letting me go to the scene that i want it to go to. Again any help or suggestions will be appreciated.  I also find your site to be very helpful thank you for having this site.</description>
		<content:encoded><![CDATA[<p>Is there a way to have the button go to another scene, but also play an animation?? I have the action script calling the frame label that I want but it&#8217;s not letting me go to the scene that i want it to go to. Again any help or suggestions will be appreciated.  I also find your site to be very helpful thank you for having this site.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: David Stiller</title>
		<link>http://www.quip.net/blog/2006/flash/easy-button-states-for-mc-buttons#comment-92821</link>
		<pubDate>Mon, 22 Oct 2007 01:41:10 +0000</pubDate>
		<guid>http://www.quip.net/blog/2006/flash/easy-button-states-for-mc-buttons#comment-92821</guid>
					<description>nidhi,

The basic approach I would use is this.  Create an &lt;code&gt;onRollOver&lt;/code&gt; event handler for the stationary movie clip that does the following:  a) attaches the other movie clip and b) assigns an &lt;code&gt;onMouseMove&lt;/code&gt; event handler to the attached movie clip.  The &lt;code&gt;onMouseMove&lt;/code&gt; event should set the attached clip's &lt;code&gt;_x&lt;/code&gt; and &lt;code&gt;_y&lt;/code&gt; properties to the &lt;code&gt;_xmouse&lt;/code&gt; and &lt;code&gt;_ymouse&lt;/code&gt; properties of the main timeline (&lt;code&gt;_root&lt;/code&gt; would be fine).  If you need the attached movie clip to later go away, I would create an &lt;code&gt;onRollOut&lt;/code&gt; event handler for the stationary movie clip that cancels the &lt;code&gt;onMouseMove&lt;/code&gt; then removes that clip.

    The exact syntax would, of course, depend on your usage of AS2 or AS3.  If you wanted to get fancy, you could even attach the new clip once, then leave it attached and toggle it between visible and invisible in order to avoid having to re-attach it later.</description>
		<content:encoded><![CDATA[<p>nidhi,</p>
<p>The basic approach I would use is this.  Create an <code>onRollOver</code> event handler for the stationary movie clip that does the following:  a) attaches the other movie clip and b) assigns an <code>onMouseMove</code> event handler to the attached movie clip.  The <code>onMouseMove</code> event should set the attached clip&#8217;s <code>_x</code> and <code>_y</code> properties to the <code>_xmouse</code> and <code>_ymouse</code> properties of the main timeline (<code>_root</code> would be fine).  If you need the attached movie clip to later go away, I would create an <code>onRollOut</code> event handler for the stationary movie clip that cancels the <code>onMouseMove</code> then removes that clip.</p>
<p>    The exact syntax would, of course, depend on your usage of AS2 or AS3.  If you wanted to get fancy, you could even attach the new clip once, then leave it attached and toggle it between visible and invisible in order to avoid having to re-attach it later.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: nidhi</title>
		<link>http://www.quip.net/blog/2006/flash/easy-button-states-for-mc-buttons#comment-88452</link>
		<pubDate>Fri, 05 Oct 2007 11:36:32 +0000</pubDate>
		<guid>http://www.quip.net/blog/2006/flash/easy-button-states-for-mc-buttons#comment-88452</guid>
					<description>hi
i have attached a movieclip on rollover of another movieclip.i want to make that attachment moveable as i move over the movie clip same as we can do in button in the over state.

thanks in advance</description>
		<content:encoded><![CDATA[<p>hi<br />
i have attached a movieclip on rollover of another movieclip.i want to make that attachment moveable as i move over the movie clip same as we can do in button in the over state.</p>
<p>thanks in advance
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Scott</title>
		<link>http://www.quip.net/blog/2006/flash/easy-button-states-for-mc-buttons#comment-33993</link>
		<pubDate>Wed, 11 Apr 2007 09:46:13 +0000</pubDate>
		<guid>http://www.quip.net/blog/2006/flash/easy-button-states-for-mc-buttons#comment-33993</guid>
					<description>Hi David,

I have been using the &quot;.onRollOver = function()&quot; functions for this flash item - it's really starting to annoy me now! I've uploaded the source code to : http://www.kdwebserver.co.uk/~sericaen/preview/src/fla/map.fla

If you could have a quick look at it I'd be extremely grateful! At the moment the links are in the last frame in the popupTop movie clip. If possible, could you send a reply to the email address that I posted this message with?

Thanks in advance!

Scott</description>
		<content:encoded><![CDATA[<p>Hi David,</p>
<p>I have been using the &#8220;.onRollOver = function()&#8221; functions for this flash item - it&#8217;s really starting to annoy me now! I&#8217;ve uploaded the source code to : <a href='http://www.kdwebserver.co.uk/~sericaen/preview/src/fla/map.fla' rel='nofollow'>http://www.kdwebserver.co.uk/~sericaen/preview/src/fla/map.fla</a></p>
<p>If you could have a quick look at it I&#8217;d be extremely grateful! At the moment the links are in the last frame in the popupTop movie clip. If possible, could you send a reply to the email address that I posted this message with?</p>
<p>Thanks in advance!</p>
<p>Scott
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: David Stiller</title>
		<link>http://www.quip.net/blog/2006/flash/easy-button-states-for-mc-buttons#comment-32318</link>
		<pubDate>Wed, 04 Apr 2007 16:40:48 +0000</pubDate>
		<guid>http://www.quip.net/blog/2006/flash/easy-button-states-for-mc-buttons#comment-32318</guid>
					<description>Scott,

I hope this force field metaphor doesn't catch on, because it possibly obscures what's really happening.  ;)  There is a way to enable and disable mouse events (in fact, any events) for objects that support them.  If you're using &lt;code&gt;on()&lt;/code&gt; or &lt;code&gt;onClipEvent()&lt;/code&gt;, you'll have to ditch those in favor of the event handling mechanism introduced back in Flash MX (see my &quot;&lt;a href=&quot;http://www.quip.net/blog/2006/flash/museum-pieces-on-and-onclipevent&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;Museum Pieces&lt;/a&gt;&quot; article for details).

When you're handling events with dot notation, you can simply toggle that movie clip's &lt;code&gt;enabled&lt;/code&gt; property or even use &lt;code&gt;delete&lt;/code&gt; to get rid of its event handler function altogether, then set it back again later.  You'll see an example of that sort of think the article I linked to.</description>
		<content:encoded><![CDATA[<p>Scott,</p>
<p>I hope this force field metaphor doesn&#8217;t catch on, because it possibly obscures what&#8217;s really happening.  <img src='http://www.quip.net/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />   There is a way to enable and disable mouse events (in fact, any events) for objects that support them.  If you&#8217;re using <code>on()</code> or <code>onClipEvent()</code>, you&#8217;ll have to ditch those in favor of the event handling mechanism introduced back in Flash MX (see my &#8220;<a href="http://www.quip.net/blog/2006/flash/museum-pieces-on-and-onclipevent" target="_blank" rel="nofollow">Museum Pieces</a>&#8221; article for details).</p>
<p>When you&#8217;re handling events with dot notation, you can simply toggle that movie clip&#8217;s <code>enabled</code> property or even use <code>delete</code> to get rid of its event handler function altogether, then set it back again later.  You&#8217;ll see an example of that sort of think the article I linked to.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Scott</title>
		<link>http://www.quip.net/blog/2006/flash/easy-button-states-for-mc-buttons#comment-32310</link>
		<pubDate>Wed, 04 Apr 2007 15:47:26 +0000</pubDate>
		<guid>http://www.quip.net/blog/2006/flash/easy-button-states-for-mc-buttons#comment-32310</guid>
					<description>I'm having a similar problem as Josh, I have a dynamic text field contained within the movie clip which has htmlText enabled - unfortunately, I can't click on any of the links because of the &quot;force field&quot; you mentioned.

Due to what I need the flash program to do, I can't put the onrollover inside the movie clip. Is there a way to disable this &quot;force field&quot; without causing the rollover/rollout functions to stop working?</description>
		<content:encoded><![CDATA[<p>I&#8217;m having a similar problem as Josh, I have a dynamic text field contained within the movie clip which has htmlText enabled - unfortunately, I can&#8217;t click on any of the links because of the &#8220;force field&#8221; you mentioned.</p>
<p>Due to what I need the flash program to do, I can&#8217;t put the onrollover inside the movie clip. Is there a way to disable this &#8220;force field&#8221; without causing the rollover/rollout functions to stop working?
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: David Stiller</title>
		<link>http://www.quip.net/blog/2006/flash/easy-button-states-for-mc-buttons#comment-31134</link>
		<pubDate>Sun, 01 Apr 2007 16:20:49 +0000</pubDate>
		<guid>http://www.quip.net/blog/2006/flash/easy-button-states-for-mc-buttons#comment-31134</guid>
					<description>Josh,

You're running into a limitation of mouse-related events in ActionScript 2.0.  If your movie clip already has an &lt;code&gt;onRollOver&lt;/code&gt; event in place, then you can imagine a kind of &quot;force field&quot; on that movie clip.  Since that button is &lt;em&gt;inside&lt;/em&gt; the movie clip &amp;#8212; under that force field, so to speak &amp;#8212; mouse-related events for the button never make it to the surface.

There are a number of ways to work around this limitation, but the easiest I can think of is to get rid of that &lt;code&gt;onRollOver&lt;/code&gt; event on the parent movie clip.  Instead, put a new movie clip or button &lt;em&gt;inside&lt;/em&gt; that parent in frame 1 of its timeline.  Handle the &lt;code&gt;onRollOver&lt;/code&gt; even on that inner movie clip/button.  That way the parent movie clip won't overshadow the events handled on that later button.</description>
		<content:encoded><![CDATA[<p>Josh,</p>
<p>You&#8217;re running into a limitation of mouse-related events in ActionScript 2.0.  If your movie clip already has an <code>onRollOver</code> event in place, then you can imagine a kind of &#8220;force field&#8221; on that movie clip.  Since that button is <em>inside</em> the movie clip &mdash; under that force field, so to speak &mdash; mouse-related events for the button never make it to the surface.</p>
<p>There are a number of ways to work around this limitation, but the easiest I can think of is to get rid of that <code>onRollOver</code> event on the parent movie clip.  Instead, put a new movie clip or button <em>inside</em> that parent in frame 1 of its timeline.  Handle the <code>onRollOver</code> even on that inner movie clip/button.  That way the parent movie clip won&#8217;t overshadow the events handled on that later button.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: josh</title>
		<link>http://www.quip.net/blog/2006/flash/easy-button-states-for-mc-buttons#comment-30810</link>
		<pubDate>Sat, 31 Mar 2007 19:46:47 +0000</pubDate>
		<guid>http://www.quip.net/blog/2006/flash/easy-button-states-for-mc-buttons#comment-30810</guid>
					<description>I am curious about nesting a button inside of a move clip. The movie clip has an onRollOver event action on it. Which tells the playhead to go to a frame label. Once that frame label is played there is a button on that timline....as you may guess my mouse never sees the button inside the mc.

I have seen tutorials that are for me very confusing. Would you be willing to assist me? I can send you the fla if you could help I would be grateful.

Josh</description>
		<content:encoded><![CDATA[<p>I am curious about nesting a button inside of a move clip. The movie clip has an onRollOver event action on it. Which tells the playhead to go to a frame label. Once that frame label is played there is a button on that timline&#8230;.as you may guess my mouse never sees the button inside the mc.</p>
<p>I have seen tutorials that are for me very confusing. Would you be willing to assist me? I can send you the fla if you could help I would be grateful.</p>
<p>Josh
</p>
]]></content:encoded>
				</item>
</channel>
</rss>

