Hi,

Are you doing something like the following - you need to use the Delegate.create function to attach "scope" to your event handlers. I can't remember if you can pass in the event object or not - try it?

HTH

Glen

import mx.utils.Delegate;

class MyMovieClip extends MovieClip {
private var colorBox:ComboBox;

//...


function stuffHasLoaded():Void {
colorBox.addEventListener("change", Delegate.create(this, change));
}

function change():Void {
trace("Hello from " + this + ".change");

var selected:Number = colorBox.selectedIndex;
//...
}
}

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to