Eureka!! A reference was required...the function was in the root of the
timeline so I needed:

myMovieClip.myGrid.setChangeHandler("editAgent",_root);

Ben, I owe u a brewski !!  thanks!

Stace

-----Original Message-----
From: Ben Johnson [mailto:ben@;architekture.com] 
Sent: Saturday, November 02, 2002 11:46 PM
To: CF-Talk
Subject: RE: Actionscript Question (The secret handshake?)

> any ideas?

Stacy,
        The setChangeHandler code from the DataGrid component is
inherited from FUIComponent class so you can try one of two things:

A) Add a reference to the object when you set the change handler:

myMovieClip.myGrid.setChangeHandler("editAgent", myMovieClip.myGrid);


B) If that doesn't work, try using trace statements to make sure that
that actually is a function:

trace("Function: " + myMovieClip.myGrid["editAgent"]);

Should display:

"Function: [Function]"

In the output window.  Play around with the trace to see if you have a
bad reference.  That's generally the case when it comes to
setChangeHandler.  Which object is your function in anyway?  The
movieclip or the DataGrid?  Also, if you have an intermediary movieclip
between myMovieClip and myGrid, there may be a problem.  Also, depending
on where you're referencing the full path, myMovieClip.myGrid, you could
have problems.  

Try the trace and tell me what you get.



Ben Johnson
Information Architect
www.architekture.com
[p] 720.934.2179
 
 


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.

Reply via email to