views:

64

answers:

1

I have a an event handler (event:ResultEvent) that could return 1 of 2 types. Does actionscript3 have a function to test the type returned? something like

if (type(event.result) == ProxyObject) {
  // do something
} else {
  // do something else
}
+4  A: 

You should be able to use

if (event.result is ProxyObject) {}

More details are here.

Michael Todd