<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.1" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Detecting changes to an Object using the Flex ObjectProxy class</title>
	<link>http://blog.flexexamples.com/2007/09/27/detecting-changes-to-an-object-using-the-flex-objectproxy-class/</link>
	<description>A bunch of examples for Adobe Flex and ActionScript</description>
	<pubDate>Fri, 05 Dec 2008 08:58:12 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.1</generator>

	<item>
		<title>By: titouille</title>
		<link>http://blog.flexexamples.com/2007/09/27/detecting-changes-to-an-object-using-the-flex-objectproxy-class/#comment-4378</link>
		<author>titouille</author>
		<pubDate>Tue, 20 Nov 2007 13:02:26 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/09/27/detecting-changes-to-an-object-using-the-flex-objectproxy-class/#comment-4378</guid>
		<description>Hello,

I have coupled this method with an editable datagrid to submit each change, and no problem, it rock's ! 
But now I have another datagrid with a combobox cellRenderer column (like in this example : http://philflash.inway.fr/flex/dgRendererSimple/srcview/index.html) but the cellRenderer doesn't fire the PropertyChangeEvent... maybe the affectation is made programmatically ?? I have tried to simulate the event (in the onChange method of the cellRenderer) but no way... any idea to solve that ?

Thanks in advance for any suggestion</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>I have coupled this method with an editable datagrid to submit each change, and no problem, it rock&#8217;s !<br />
But now I have another datagrid with a combobox cellRenderer column (like in this example : <a href="http://philflash.inway.fr/flex/dgRendererSimple/srcview/index.html" rel="nofollow">http://philflash.inway.fr/flex/dgRendererSimple/srcview/index.html</a>) but the cellRenderer doesn&#8217;t fire the PropertyChangeEvent&#8230; maybe the affectation is made programmatically ?? I have tried to simulate the event (in the onChange method of the cellRenderer) but no way&#8230; any idea to solve that ?</p>
<p>Thanks in advance for any suggestion</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gabe</title>
		<link>http://blog.flexexamples.com/2007/09/27/detecting-changes-to-an-object-using-the-flex-objectproxy-class/#comment-3921</link>
		<author>Gabe</author>
		<pubDate>Tue, 06 Nov 2007 11:40:22 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/09/27/detecting-changes-to-an-object-using-the-flex-objectproxy-class/#comment-3921</guid>
		<description>The above works on Flex Builder 2 also. You don't need to use ObjectProxy. In JavaScript 1.5 the equivalent is Object.watch().</description>
		<content:encoded><![CDATA[<p>The above works on Flex Builder 2 also. You don&#8217;t need to use ObjectProxy. In JavaScript 1.5 the equivalent is Object.watch().</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Radek</title>
		<link>http://blog.flexexamples.com/2007/09/27/detecting-changes-to-an-object-using-the-flex-objectproxy-class/#comment-3712</link>
		<author>Radek</author>
		<pubDate>Mon, 29 Oct 2007 14:24:50 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/09/27/detecting-changes-to-an-object-using-the-flex-objectproxy-class/#comment-3712</guid>
		<description>Actually I think you don't have to use ObjectProxy for that.
Try this:

&lt;pre class="code"&gt;
public class Test
{
    [Bindable] public var test:Boolean;
}
&lt;/pre&gt;

---

&lt;pre class="code"&gt;
var t:Test = new Test();
t.addEventListener("propertyChange", Handler.onPropertyChange);
t.test = true;
&lt;/pre&gt;

You will get and event also... even if your object doesn't extend event dispatcher. I've tested this code Flex Builder 3 Beta 2.</description>
		<content:encoded><![CDATA[<p>Actually I think you don&#8217;t have to use ObjectProxy for that.<br />
Try this:</p>
<pre class="code">
public class Test
{
    [Bindable] public var test:Boolean;
}
</pre>
<p>&#8212;</p>
<pre class="code">
var t:Test = new Test();
t.addEventListener("propertyChange", Handler.onPropertyChange);
t.test = true;
</pre>
<p>You will get and event also&#8230; even if your object doesn&#8217;t extend event dispatcher. I&#8217;ve tested this code Flex Builder 3 Beta 2.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Antonis</title>
		<link>http://blog.flexexamples.com/2007/09/27/detecting-changes-to-an-object-using-the-flex-objectproxy-class/#comment-3412</link>
		<author>Antonis</author>
		<pubDate>Mon, 15 Oct 2007 08:20:54 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/09/27/detecting-changes-to-an-object-using-the-flex-objectproxy-class/#comment-3412</guid>
		<description>I finnally found the cause of the error.

I had created a new project with name ObjectProxy and the applacation name was ObjectProxy too.

So there was a name conflict when the ObjectProxy object was created.

Thanks for your time.</description>
		<content:encoded><![CDATA[<p>I finnally found the cause of the error.</p>
<p>I had created a new project with name ObjectProxy and the applacation name was ObjectProxy too.</p>
<p>So there was a name conflict when the ObjectProxy object was created.</p>
<p>Thanks for your time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2007/09/27/detecting-changes-to-an-object-using-the-flex-objectproxy-class/#comment-3379</link>
		<author>peterd</author>
		<pubDate>Fri, 12 Oct 2007 14:56:08 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/09/27/detecting-changes-to-an-object-using-the-flex-objectproxy-class/#comment-3379</guid>
		<description>Antonis,

I just double checked with Beta 2 and didn't see any errors at compile-time or run-time.
Are you sure you're publishing with the beta 2 SDK and not an earlier version? Also, which version of Flash Player are you using? (if you aren't sure, I recently added an "About you" page to this site at http://blog.flexexamples.com/about-you/).

Peter</description>
		<content:encoded><![CDATA[<p>Antonis,</p>
<p>I just double checked with Beta 2 and didn&#8217;t see any errors at compile-time or run-time.<br />
Are you sure you&#8217;re publishing with the beta 2 SDK and not an earlier version? Also, which version of Flash Player are you using? (if you aren&#8217;t sure, I recently added an &#8220;About you&#8221; page to this site at <a href="http://blog.flexexamples.com/about-you/" rel="nofollow">http://blog.flexexamples.com/about-you/</a>).</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Antonis</title>
		<link>http://blog.flexexamples.com/2007/09/27/detecting-changes-to-an-object-using-the-flex-objectproxy-class/#comment-3376</link>
		<author>Antonis</author>
		<pubDate>Fri, 12 Oct 2007 08:53:27 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/09/27/detecting-changes-to-an-object-using-the-flex-objectproxy-class/#comment-3376</guid>
		<description>I also download and install flex builder 3 (Flex 3 M3 (Beta 2)) and same error occured.

1137: Incorrect number of arguments.  Expected no more than 0.</description>
		<content:encoded><![CDATA[<p>I also download and install flex builder 3 (Flex 3 M3 (Beta 2)) and same error occured.</p>
<p>1137: Incorrect number of arguments.  Expected no more than 0.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2007/09/27/detecting-changes-to-an-object-using-the-flex-objectproxy-class/#comment-3369</link>
		<author>peterd</author>
		<pubDate>Thu, 11 Oct 2007 15:14:56 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/09/27/detecting-changes-to-an-object-using-the-flex-objectproxy-class/#comment-3369</guid>
		<description>Antonis,

Sorry, I think I only tested using the Flex 3 Beta.

Peter</description>
		<content:encoded><![CDATA[<p>Antonis,</p>
<p>Sorry, I think I only tested using the Flex 3 Beta.</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Antonis</title>
		<link>http://blog.flexexamples.com/2007/09/27/detecting-changes-to-an-object-using-the-flex-objectproxy-class/#comment-3368</link>
		<author>Antonis</author>
		<pubDate>Thu, 11 Oct 2007 12:19:13 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/09/27/detecting-changes-to-an-object-using-the-flex-objectproxy-class/#comment-3368</guid>
		<description>I copied and pasted the above code in a new flex application and i get the following error:

1137: Incorrect number of arguments.  Expected no more than 0.

Even i search in help about the constructor of ObjectProxy class and this it should working, it doesn't leave to put any arguments in new ObjectProxy object creation.

I 'm using Flex 2.0.1</description>
		<content:encoded><![CDATA[<p>I copied and pasted the above code in a new flex application and i get the following error:</p>
<p>1137: Incorrect number of arguments.  Expected no more than 0.</p>
<p>Even i search in help about the constructor of ObjectProxy class and this it should working, it doesn&#8217;t leave to put any arguments in new ObjectProxy object creation.</p>
<p>I &#8216;m using Flex 2.0.1</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ali</title>
		<link>http://blog.flexexamples.com/2007/09/27/detecting-changes-to-an-object-using-the-flex-objectproxy-class/#comment-3042</link>
		<author>Ali</author>
		<pubDate>Sat, 29 Sep 2007 02:13:09 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/09/27/detecting-changes-to-an-object-using-the-flex-objectproxy-class/#comment-3042</guid>
		<description>Man, this rocks...didn't know about that objectProxy....very tight!!!</description>
		<content:encoded><![CDATA[<p>Man, this rocks&#8230;didn&#8217;t know about that objectProxy&#8230;.very tight!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jamie</title>
		<link>http://blog.flexexamples.com/2007/09/27/detecting-changes-to-an-object-using-the-flex-objectproxy-class/#comment-3036</link>
		<author>Jamie</author>
		<pubDate>Fri, 28 Sep 2007 19:22:22 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/09/27/detecting-changes-to-an-object-using-the-flex-objectproxy-class/#comment-3036</guid>
		<description>Sweet!  Will this work for custom classes (like below) as well?

&lt;pre class="code"&gt;
package Classes{
	[Bindable]
	public class Users{
		public var UserBadgeID:String = "";
		public var UserEmail:String = "";

		public function Users(){
		}
	}
}
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Sweet!  Will this work for custom classes (like below) as well?</p>
<pre class="code">
package Classes{
	[Bindable]
	public class Users{
		public var UserBadgeID:String = "";
		public var UserEmail:String = "";

		public function Users(){
		}
	}
}
</pre>
]]></content:encoded>
	</item>
</channel>
</rss>
