How to determine the return type in actionscript

I have an event handler (event:ResultEvent)

that can return 1 of 2 types. Is there an actionscript3 function to check the return type? sort of

if (type(event.result) == ProxyObject) {
  // do something
} else {
  // do something else
}

      

+2


a source to share


1 answer


You should be able to use

if (event.result is ProxyObject) {}

      



More details here .

+4


a source







All Articles