all groups > macromedia flash flash remoting > may 2004 >
You're in the

macromedia flash flash remoting

group:

addView mehtod in 2004 pro



addView mehtod in 2004 pro KreeK
5/12/2004 4:54:44 PM
macromedia flash flash remoting: Hey all,

Just wondering if any one else has had a problem with the addView() method
specifically getting modelChanged() to listen for recordSet updates in flash mx
2004 pro, such as the following code from the O'Reilly Remoting book:

#include "RecordSet.as"
var myRecordset_rs = new RecordSet (["First", "Last", "Email"]);
//
var myObject = new Object ();
//
myObject.modelChanged = function (myInformationObject)
{
if (myInformationObject.event == "sort") {
trace ("recordSet was sorted");
}
};
//
myRecordset_rs.addView (myObject);
myRecordset_rs.addItem ({First:"Tom", Last:"Muck", Email:"muck@muck.com"});
myRecordset_rs.addItem ({First:"Tom1", Last:"Muck1", Email:"muck1@muck.com"});
//
myRecordset_rs.sortItemsBy ("First");

in flash mx it works but in 2004 pro (with export set to ActionScript 1.0 and
player v6) it doesn't. Is it another 2004 bug? is there a work around? and do
you know macromedia's 2004 return policy? :P

thanks
Re: addView mehtod in 2004 pro mp3ss
5/18/2004 5:23:16 AM
AddThis Social Bookmark Button