<?xml version="1.0" encoding="utf-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc = "http://purl.org/dc/elements/1.1/" xmlns="http://purl.org/rss/1.0/">
	<channel rdf:about="http://livedocs.adobe.com/">
	<title>LiveDocs Comments - flash - 9.0 - ActionScriptLangRefV3 - flash/display/SimpleButton.html</title>	
		<link>http://livedocs.adobe.com/</link>
		<description>Macromedia LiveDocs - online documentation with user feedback.</description>
		<copyright>Copyright 2009, Macromedia, Inc.</copyright>
		<dc:date>2009-11-25T20:37:11</dc:date>
		<dc:language>en-us</dc:language>
		<items>
			<rdf:Seq>
				<rdf:li rdf:resource="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/SimpleButton.html#83870" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/SimpleButton.html#83675" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/SimpleButton.html#83104" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/SimpleButton.html#82418" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/SimpleButton.html#82400" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/SimpleButton.html#82312" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/SimpleButton.html#74405" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/SimpleButton.html#74401" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/SimpleButton.html#74368" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/SimpleButton.html#74357" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/SimpleButton.html#74298" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/SimpleButton.html#73145" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/SimpleButton.html#69497" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/SimpleButton.html#68753" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/SimpleButton.html#68577" />
			</rdf:Seq>
		</items>
	</channel>
	
	<item rdf:about="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/SimpleButton.html#83870">
		<title>flash/9.0/ActionScriptLangRefV3/flash/display/SimpleButton.html</title>
		<link>http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/SimpleButton.html#83870</link>
		<description>I am making a banner ad that has a SimpleButton across the whole thing.&lt;br /&gt;I have actionscript generate graphics dynamically on the stage. My problem is that wherever those graphics are, the click button does not work!</description>
		<dc:creator>DrewLeSueur</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2008-05-09T13:10:32</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/SimpleButton.html#83675">
		<title>flash/9.0/ActionScriptLangRefV3/flash/display/SimpleButton.html</title>
		<link>http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/SimpleButton.html#83675</link>
		<description>I don't understand mean of soundTransform and trackAsMenu properties.&lt;br /&gt;How I can use it?</description>
		<dc:creator></dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2008-05-04T01:32:15</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/SimpleButton.html#83104">
		<title>flash/9.0/ActionScriptLangRefV3/flash/display/SimpleButton.html</title>
		<link>http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/SimpleButton.html#83104</link>
		<description>john anon, &lt;br /&gt;&lt;br /&gt;Event.target when used in actionscript 3.0 code returns the specific class object that the listener is targeted to. You can use the properties and methods available to that class object to manipulate the targeted object. &lt;br /&gt;&lt;br /&gt;I myself expected what we used to get in actionscript 2.0 but I've grown to enjoy being able to know the object type since I can then know immediately what object properties and methods are available to be manipulated. &lt;br /&gt;&lt;br /&gt;So what you really want is the instance name of your targeted object which corresponds to the 'name' property of a [SimpleButton] object. This can simply be referenced by using event.target.name.&lt;br /&gt;&lt;br /&gt;I personally now much rather having the object returned as the target(or event.currentTarget) than the name of the instance since you don't have to add code to do any type checking to see what methods are available that can be applied to the object.</description>
		<dc:creator>mykal23</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2008-04-17T10:47:46</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/SimpleButton.html#82418">
		<title>flash/9.0/ActionScriptLangRefV3/flash/display/SimpleButton.html</title>
		<link>http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/SimpleButton.html#82418</link>
		<description>Hi John -- everything that inherits from DisplayObject has a name property, so I think&lt;br /&gt;&lt;br /&gt;trace(event.target.name)&lt;br /&gt;&lt;br /&gt;will give you what you want -- Bob</description>
		<dc:creator>nolty</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2008-03-28T11:53:47</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/SimpleButton.html#82400">
		<title>flash/9.0/ActionScriptLangRefV3/flash/display/SimpleButton.html</title>
		<link>http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/SimpleButton.html#82400</link>
		<description>Hi John,&lt;br /&gt;&lt;br /&gt;You can access the button instance by giving it as&lt;br /&gt;&lt;br /&gt;trace(event.currentTarget); &lt;br /&gt;&lt;br /&gt;which would give you the instance of the button.&lt;br /&gt;&lt;br /&gt;target would refer to the listener object</description>
		<dc:creator>harikj</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2008-03-27T20:32:57</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/SimpleButton.html#82312">
		<title>flash/9.0/ActionScriptLangRefV3/flash/display/SimpleButton.html</title>
		<link>http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/SimpleButton.html#82312</link>
		<description>Hi, this is all well and good but i prefer to program in Flash visually then code it up to do what I want. The problem I have with simplebutton is how do I get the following to work? i.e.&lt;br /&gt;&lt;br /&gt;[code]&lt;br /&gt;Button1_btn.addEventListener(MouseEvent.CLICK, onClickedButton1);&lt;br /&gt;&lt;br /&gt;function onClickedButton1(event : MouseEvent) : void&lt;br /&gt;{&lt;br /&gt;    trace(event.target);&lt;br /&gt;}&lt;br /&gt;[/code]&lt;br /&gt;&lt;br /&gt;why does this just give me [object simpleButton] and not 'Button1_btn' like with movieClips?&lt;br /&gt;&lt;br /&gt;Its really annoying not being able to know which button called the function, or have I just to use movieClips?&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;&lt;br /&gt;John.</description>
		<dc:creator>john anon</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2008-03-25T14:51:01</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/SimpleButton.html#74405">
		<title>flash/9.0/ActionScriptLangRefV3/flash/display/SimpleButton.html</title>
		<link>http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/SimpleButton.html#74405</link>
		<description>Really, the easiest way to accomplish what you're describing is to just create the button visually in Flash. I'm assuming that you can't or don't want to do that for some reason.&lt;br&gt;&lt;br&gt;You can't use &quot;implements SimpleButton&quot; because SimpleButton is a class, not an interface.&lt;br&gt;&lt;br&gt;You can easily use the *events* that SimpleButton provides in a Sprite, because both SimpleButton and Sprite are subclasses of the InteractiveObject class, and the events like click, over, up, etc. are inherited from InteractiveObject. However, for a Sprite it does take a bit more work to implement different visual states for up, over, and down. This is because SimpleButton adds the overState, upState, and downState properties that automatically &quot;wire up&quot; the visual changes with the mouse interaction. For a Sprite, you have do do that work yourself. You would just write functions that change the content of the Sprite (e.g. swaps out one background image for another one, or applies or removes a filter). You would then register those functions as listeners to the appropriate events of the Sprite.&lt;br&gt;&lt;br&gt;Another approach would be to use a SimpleButton and Sprites together to accomplish the desired effect. For instance, if the button background should change depending on the state, you could create a Sprite for each state, with the icon and text on top and the background beneath. Then you could assign those Sprite instances to the upState, overState, and downState properties of the SimpleButton instance.</description>
		<dc:creator>adbe_paul</dc:creator>
		<dc:type>1 0</dc:type>
		<dc:date>2007-10-03T11:57:36</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/SimpleButton.html#74401">
		<title>flash/9.0/ActionScriptLangRefV3/flash/display/SimpleButton.html</title>
		<link>http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/SimpleButton.html#74401</link>
		<description>Please disregard the class implementation question. &lt;br /&gt;I figured out that the LabelButton class (which inherits all behavior from the BaseButton class) has all the behaviors and skin flexibility I needed.&lt;br /&gt;Thank you for your help though!</description>
		<dc:creator>TessandraFae</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2007-10-03T11:09:29</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/SimpleButton.html#74368">
		<title>flash/9.0/ActionScriptLangRefV3/flash/display/SimpleButton.html</title>
		<link>http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/SimpleButton.html#74368</link>
		<description>So if I use a Sprite/Movieclip object as my button, can I implement a button's behavior, like over, up, and down states?&lt;br /&gt;&lt;br /&gt;Can I do something like this?&lt;br /&gt; &lt;br /&gt;class myButton extends Sprite implements SimpleButton() {&lt;br /&gt;}</description>
		<dc:creator>TessandraFae</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2007-10-02T16:15:47</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/SimpleButton.html#74357">
		<title>flash/9.0/ActionScriptLangRefV3/flash/display/SimpleButton.html</title>
		<link>http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/SimpleButton.html#74357</link>
		<description>What you're wanting to do is starting to go beyond the ability of a SimpleButton.&lt;br&gt;&lt;br&gt;The SimpleButton class really exists to support the Button library symbols that you create in the Flash authoring tool. If you want something with multiple layers and filters applied to some of them, you'd be better off creating a display object to serve as a button.&lt;br&gt;&lt;br&gt;You'll want to use a display object container such as a Sprite to surround all the graphic parts (or a Movie Clip if you're creating it visually in Flash). The structure will be something like this:&lt;br&gt;&lt;br&gt;Sprite (or MovieClip)&lt;br&gt;-- icon/text/unfiltered content (each as a child of the parent container)&lt;br&gt;-- background or image to which filter is applied (also a child of the container)&lt;br&gt;&lt;br&gt;Then if you want to apply the filters using ActionScript, you'd apply them only to the child object that you want filtered, but in writing the code for the click event (or other events) you'd add event listeners to the container object.</description>
		<dc:creator>adbe_paul</dc:creator>
		<dc:type>1 0</dc:type>
		<dc:date>2007-10-02T14:28:59</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/SimpleButton.html#74298">
		<title>flash/9.0/ActionScriptLangRefV3/flash/display/SimpleButton.html</title>
		<link>http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/SimpleButton.html#74298</link>
		<description>Ok, I've created a button using this, and added a drop and bevel filter to it.&lt;br /&gt;Now I need to add an icon or Text on top of it, not affected by the filters.&lt;br /&gt;How do I add an icon on top of the button in code?&lt;br /&gt;&lt;br /&gt;Preferably in a Template Pattern please.</description>
		<dc:creator>TessandraFae</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2007-10-01T14:33:33</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/SimpleButton.html#73145">
		<title>flash/9.0/ActionScriptLangRefV3/flash/display/SimpleButton.html</title>
		<link>http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/SimpleButton.html#73145</link>
		<description>I'm having trouble with creating a menu.  I'm trying to have nested SimpleButtons, but the children don't receive events.  I set trackAsMenu to true, but that doesn't seem to help.</description>
		<dc:creator>Bilyk</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2007-09-02T10:24:16</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/SimpleButton.html#69497">
		<title>flash/9.0/ActionScriptLangRefV3/flash/display/SimpleButton.html</title>
		<link>http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/SimpleButton.html#69497</link>
		<description>Even when I tried &lt;br /&gt;&lt;br /&gt;hitTestState = new ButtonDisplayState(upColor, size / 2);&lt;br /&gt;&lt;br /&gt;the hitarea is correct widthwise, but heightwise its still double of what its supposed to be.</description>
		<dc:creator>harikj</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2007-07-04T05:56:16</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/SimpleButton.html#68753">
		<title>flash/9.0/ActionScriptLangRefV3/flash/display/SimpleButton.html</title>
		<link>http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/SimpleButton.html#68753</link>
		<description>This is working correctly as coded. To &quot;control it&quot; try this variation:&lt;br&gt;    public function CustomSimpleButton() {&lt;br&gt;    downState = new ButtonDisplayState(downColor, size);&lt;br&gt;    overState = new ButtonDisplayState(overColor, size);&lt;br&gt;    upState = new ButtonDisplayState(upColor, size);&lt;br&gt;    hitTestState = new ButtonDisplayState(upColor, size);&lt;br&gt;    useHandCursor = true;&lt;br&gt;    }&lt;br&gt;&lt;br&gt;    or replace the hitTestState property with this one:&lt;br&gt;&lt;br&gt;    hitTestState = new ButtonDisplayState(upColor, size / 2);</description>
		<dc:creator>tderich</dc:creator>
		<dc:type>1 1</dc:type>
		<dc:date>2007-06-20T14:26:17</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/SimpleButton.html#68577">
		<title>flash/9.0/ActionScriptLangRefV3/flash/display/SimpleButton.html</title>
		<link>http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/SimpleButton.html#68577</link>
		<description>I was able to use the above mentioned package. But the hitarea is more than what is specified. How can this be controlled.</description>
		<dc:creator>harikj</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2007-06-18T00:40:20</dc:date>
	</item>
	</rdf:RDF>

