<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Using [Bindable] &amp; ChangeWatcher in ActionScript-only classes</title>
	<atom:link href="http://www.psyked.co.uk/adobe/flex/using-bindable-changewatcher-in-actionscript-only-classes.htm/feed" rel="self" type="application/rss+xml" />
	<link>http://www.psyked.co.uk/flex/using-bindable-changewatcher-in-actionscript-only-classes.htm</link>
	<description></description>
	<lastBuildDate>Fri, 10 Feb 2012 13:41:35 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Thomas James</title>
		<link>http://www.psyked.co.uk/flex/using-bindable-changewatcher-in-actionscript-only-classes.htm/comment-page-1#comment-7186</link>
		<dc:creator>Thomas James</dc:creator>
		<pubDate>Thu, 10 Jun 2010 17:37:07 +0000</pubDate>
		<guid isPermaLink="false">http://h3Whatareyoutalkingabout?/h3RecentlyI&#039;vebeentoyingaroundwithusingBindableMetadatainFlexandAS3,namelytryingtonotonlymakeitsothatmystaticvariablescanbeusedasbindingsinFlex,butalsothatIcandetectwhenthevaria#comment-7186</guid>
		<description>Yet if [Bindable] does not use any Flex framework in an ActionScript project in Flashdevelop or Flashbuilder this fails:

[code]package
{
	import flash.display.Sprite;
	import flash.events.EventDispatcher;
	import flash.events.Event;

	public class BindableTest extends Sprite
	{
		private var _maxFontSize:Number = 15;

		public function BindableTest() {
			this.maxFontSize = 100;
		}

		[Bindable(event=&quot;maxFontSizeChanged&quot;)]
		public function get maxFontSize():Number {
			trace(&quot; max &quot;);
			return _maxFontSize;
		}
		
		public function set maxFontSize(value:Number):void {
			_maxFontSize = value;
			var eventObj:Event = new Event(&quot;maxFontSizeChanged&quot;);
			dispatchEvent(eventObj);
		}
		
	}
}
[/code]

Any clues!?</description>
		<content:encoded><![CDATA[<p>Yet if [Bindable] does not use any Flex framework in an ActionScript project in Flashdevelop or Flashbuilder this fails:</p>
<p>[code]package<br />
{<br />
	import flash.display.Sprite;<br />
	import flash.events.EventDispatcher;<br />
	import flash.events.Event;</p>
<p>	public class BindableTest extends Sprite<br />
	{<br />
		private var _maxFontSize:Number = 15;</p>
<p>		public function BindableTest() {<br />
			this.maxFontSize = 100;<br />
		}</p>
<p>		[Bindable(event="maxFontSizeChanged")]<br />
		public function get maxFontSize():Number {<br />
			trace(" max ");<br />
			return _maxFontSize;<br />
		}</p>
<p>		public function set maxFontSize(value:Number):void {<br />
			_maxFontSize = value;<br />
			var eventObj:Event = new Event("maxFontSizeChanged");<br />
			dispatchEvent(eventObj);<br />
		}</p>
<p>	}<br />
}<br />
[/code]</p>
<p>Any clues!?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Morgan Engel</title>
		<link>http://www.psyked.co.uk/flex/using-bindable-changewatcher-in-actionscript-only-classes.htm/comment-page-1#comment-6397</link>
		<dc:creator>Morgan Engel</dc:creator>
		<pubDate>Wed, 09 Dec 2009 00:12:18 +0000</pubDate>
		<guid isPermaLink="false">http://h3Whatareyoutalkingabout?/h3RecentlyI&#039;vebeentoyingaroundwithusingBindableMetadatainFlexandAS3,namelytryingtonotonlymakeitsothatmystaticvariablescanbeusedasbindingsinFlex,butalsothatIcandetectwhenthevaria#comment-6397</guid>
		<description>You might consider using a get and set and then just appending the Bindable attribute on the get method. something like:

[Bindable]
public function get property():Object{}
public function set property(o:Object){}

Then you can dispatch listeners in your set and you can listen to them just fine in your AS3 code.</description>
		<content:encoded><![CDATA[<p>You might consider using a get and set and then just appending the Bindable attribute on the get method. something like:</p>
<p>[Bindable]<br />
public function get property():Object{}<br />
public function set property(o:Object){}</p>
<p>Then you can dispatch listeners in your set and you can listen to them just fine in your AS3 code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://www.psyked.co.uk/flex/using-bindable-changewatcher-in-actionscript-only-classes.htm/comment-page-1#comment-5304</link>
		<dc:creator>James</dc:creator>
		<pubDate>Tue, 14 Jul 2009 23:42:09 +0000</pubDate>
		<guid isPermaLink="false">http://h3Whatareyoutalkingabout?/h3RecentlyI&#039;vebeentoyingaroundwithusingBindableMetadatainFlexandAS3,namelytryingtonotonlymakeitsothatmystaticvariablescanbeusedasbindingsinFlex,butalsothatIcandetectwhenthevaria#comment-5304</guid>
		<description>Thanks for the link &amp; clarification Troy.

I guess I misunderstood what the Flex framework actually &#039;was&#039; - and where the framework starts and stops with regards to visual / utilities classes.</description>
		<content:encoded><![CDATA[<p>Thanks for the link &amp; clarification Troy.</p>
<p>I guess I misunderstood what the Flex framework actually &#8216;was&#8217; &#8211; and where the framework starts and stops with regards to visual / utilities classes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Troy Gilbert</title>
		<link>http://www.psyked.co.uk/flex/using-bindable-changewatcher-in-actionscript-only-classes.htm/comment-page-1#comment-5295</link>
		<dc:creator>Troy Gilbert</dc:creator>
		<pubDate>Tue, 14 Jul 2009 20:30:25 +0000</pubDate>
		<guid isPermaLink="false">http://h3Whatareyoutalkingabout?/h3RecentlyI&#039;vebeentoyingaroundwithusingBindableMetadatainFlexandAS3,namelytryingtonotonlymakeitsothatmystaticvariablescanbeusedasbindingsinFlex,butalsothatIcandetectwhenthevaria#comment-5295</guid>
		<description>That&#039;s not actually correct. [Bindable] does not use any Flex Framework specific API (beyond the PropertyChangeEvent class), and the BindingUtils is similar. You do not have to derive from UIComponent or use this only in the context of MXML. I&#039;d recommend watching the binding &quot;deep dive&quot; session from 360&#124;Flex.</description>
		<content:encoded><![CDATA[<p>That&#8217;s not actually correct. [Bindable] does not use any Flex Framework specific API (beyond the PropertyChangeEvent class), and the BindingUtils is similar. You do not have to derive from UIComponent or use this only in the context of MXML. I&#8217;d recommend watching the binding &#8220;deep dive&#8221; session from 360|Flex.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic (Feed is rejected)
Page Caching using disk: enhanced
Database Caching 1/15 queries in 0.006 seconds using disk: basic
Object Caching 601/606 objects using disk: basic

Served from: www.psyked.co.uk @ 2012-02-10 20:04:21 -->
