This is my button tag. <mx:Button x="331" y="27" label="Vælge filer"
And in my script tag <mx:Script><![CDATA[
public var jamal:UIClass = new UIClass(browse);
I'm trying to send a reference about the button to my UIClass
which holds the event for this button.
I'm getting weird errors which looks like this.
TypeError: Error #1009: Cannot access a property or method of
a null object reference.
I think you should wait for CREATION_COMPLETE Event before
using your "browse" var. You're trying to access it too early in
your Script, when the Button isn't built. That would explain the
"null object reference", but I'm not sure since I don't know what
your UIClass constructor does.