I've run into an issue that I am now banging my head against.
I come to you all hoping for a hint, or a solution. I'm trying to
dispatch an event from one class to the other. First class which I
have named Broadcaster is instantiated in a fla on the first frame
of the time line. On the stage is a Movie clip which acts as a
buttons. The code that controls this button resides within
Broadcaster.as. Once the button is clicked the dispatchEvent method
should be fired and captured by the class Listener.as. What
Listener.as does is create an empty movie clip and loads the swf
that Broadcaster.as is attached to into it. This is just a simple
test for myself to learn how to dispatchEvents. Unfortunately my
test is not going so well. :(
I have attached both Classes below. Any help on my little
test will be most graciously appreciated! :)
private var greet:Hello was a mistake. That was suppose to be
private var greet:Broadcaster.
I originally come from an as3 background and I have to port
some code into as2. The example above is a much simple version of
what I actually have to work with. I find if I hit a wall to
rewrite the code in simple form to figure it out. :)
Now, below I have rewrote the code above into as3 and I'm
curious to know how one would write this via as2.