Also I'd like to chime in a few tips (that I had the wrong way a long time!)

//Foo and Bar are unrelated classes!

var myFoo:Foo = getFoo();
var myBar:Bar;

myBar = myFoo as Bar; // == null (boo!)
myBar = Bar(myFoo); // Exception (yay!)

And lastly:

trace("myObj is a " + getQualifiedClassName(myObj));

Will help :)

-Josh

On Thu, Jul 10, 2008 at 10:22 AM, Tracy Spratt <[EMAIL PROTECTED]>
wrote:

>  You can't cast ("as") unless the variable is an object that contains an
> instance of what you are casting to.  HTTPService will not be returning an
> ArrayCollection.  It is probably an Array, assuming you have left the
> resultFormat at its default "object". (this is usually bad, but that is a
> different story)
>
>
>
> You probably want something like:
>
> var aResult:Array = ResultEvent( data ).result.images;
>
> trace(aResult.length); //what you expect?
>
> var ac:ArrayCollection = new ArrayCollection(aResult);
>
>
>
> Tracy
>



-- 
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]

Reply via email to