skippylou
12-04-2008, 01:52 AM
So I have a button in a Flex 3 project, that calls an AS function of mine when clicked. I want to pass the button's label as the parameter name to the function, but it doesn't seem to be working. Here is the example:
<mx:Button label="blahblah" click="myFunction(this.label);"/>
Can "this" not be used in the way that I am using it? Any other thoughts or ideas on how to accomplish this?
Thanks,
Scott
<mx:Button label="blahblah" click="myFunction(this.label);"/>
Can "this" not be used in the way that I am using it? Any other thoughts or ideas on how to accomplish this?
Thanks,
Scott