We ended up getting rid of the offending call all together. public static function fromXML( xml:Object ) : myListVO { var o = new myListVO();
for (var i=0; i < xml.length; i++) { var q:Object = xml[i]; var j = q.DisplayOrder - 1; o.qArray[j] = myVO(myVO.fromXML(q)); } return o; } --- In flexcoders@yahoogroups.com, "Rob Rusher" <[EMAIL PROTECTED]> wrote: > var test:myVO = new myVO; > gives this error "The class 'myV0' could not be loaded". > > var test = new myVO; > gives this error "There is no method with the name 'myVO'". > > Adding the parenthesis has no effect. (e.g. new myVO()) > > Regards, > > Rob Rusher > > > > RIA Consultant > > Macromedia Certified Flex Instructor > > e:[EMAIL PROTECTED] c:303.885.7044 im:robrusher > > > -----Original Message----- > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of JesterXL > Sent: Wednesday, August 03, 2005 2:20 PM > To: flexcoders@yahoogroups.com > Subject: Re: [flexcoders] Array of VOs class loading issue > > myV0 != myVO > > One is a zero, the other is the letter "o", right? > > ----- Original Message ----- > From: "Rob Rusher" <[EMAIL PROTECTED]> > To: <flexcoders@yahoogroups.com> > Sent: Wednesday, August 03, 2005 2:15 PM > Subject: [flexcoders] Array of VOs class loading issue > > > I'm getting an error when working with a VO that is an array of VOs. > The error is "The class 'myV0' could not be loaded". The class is > clearly imported. What am I missing? > > -------- Code for the myListVO.as -------- > import org.nevis.cairngorm.vo.ValueObject; > import com.company.app.vo.myVO; > > class com.company.app.vo.myListVO implements ValueObject > { > public static function fromXML( xml:Object ) : myListVO > { > var newObj = new myListVO; > var displayOrder:Number; > /*error on this line*/ var test:myV0 = new myV0; > ... > return newObj; > } > > public var qArray:Array = new Array(); > } > > -- > Regards, > Rob Rusher > > > > -- > Flexcoders Mailing List > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com > Yahoo! Groups Links > > > > > > > > > > -- > Flexcoders Mailing List > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com > Yahoo! Groups Links ------------------------ Yahoo! Groups Sponsor --------------------~--> <font face=arial size=-1><a href="http://us.ard.yahoo.com/SIG=12h71hbep/M=362131.6882499.7825260.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123105288/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org ">Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life - brought to you by One Economy</a>.</font> --------------------------------------------------------------------~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/