Cordova

Here's a attempt


<mx:Button/>


<mx:Script>


    private function GetAronLabel(e:Event):String {

                   if(e.currentTarget is Button){
                            return e.currentTarget.Label;
                   }
    }
</mx:Script>



Regards
Igor Costa
www.igorcosta.org


On Fri, Sep 5, 2008 at 11:14 PM, Cordova Aaron <[EMAIL PROTECTED]> wrote:

>   When a button is clicked is there a way to determine the label of the
> button?
>
> I have tried something like this but its a no-go so far.
>
> public function sendToken(e:MouseEvent)
> {
> var clickedButtonLabel:String = e.SelectedItem.label?
> }
>
> <mx:Button x="143" y="26" label="A" width="35" fillAlphas="[1.0, 1.0, 1.0,
> 1.0]" click="sendToken(event)" id="button_a"/>
>
>  
>



-- 
----------------------------
Igor Costa
www.igorcosta.com
www.igorcosta.org

Reply via email to