Ok, here's the scenario. 

I have a .swf with various buttons and knobs. I've made a swf document
class that is a singleton that acts as a central event listener for
interaction with the number of ui objects on screen. I have a custom
event class called TrainingEvent that carries along some information
about the type of interaction and whether it was a press or a knob-turn. 

On the flex side I have a manager built to listen on the loaded swf's
document class for these events. 

To achieved this, I wanted to add the classpath to the project for
TrainingEvent class that is used to compile the swf (these are
developed as two separate projects) and listen for the strongly typed
class TrainingEvent. When I tried this flash threw and a error saying
that it "could not convert TrainingEvent:4C304C to type
TrainingEvent". For the moment I'm just using the standard Event class
and casting it to an object to access the custom properties. Otherwise
they generate errors since I can't use my custom event class.

Does anyone know how to get this to work the right way?

Reply via email to