I'm trying to call a function in my SWF via the bridge,
passing in a class ('Person') that I've defined in both
that the ability to pass complex objects was the benefit of using
the FABridge over ExternalInterface. The definition of the
I get an error "Error #1034: Type Coercion failed: cannot
convert Object@67cd809 to Person.". Debugging the Flex app does
indeed confirm that a type of Object is passed; I have tried
changing the argument type on the AS addPersonIntoCollection method
to Object, and tried to then coerce that Object to a Person type
within the function, using both the syntax 'var _p:Person =
Person(obj)' and 'var _p:Person = obj as Person', but to no avail.
Have I misconstrued what the bridge is able to do here? Is
there some way in which I can identify the JS object as being of
the same type as it's AS counterpart?