Home Tutorials Forums Articles Blogs Movies Library Employment Press
Prev Previous Post   Next Post Next
Old 12-10-2011, 04:47 AM   #1
Registered User
Join Date: Jun 2009
Posts: 35
Default if { labels

I can create an if statement for # of selected items. However, how can I create an if statement for even.label?
I have various labels and would like to create if statements based on if the text in my "labels" match up.

ActionScript Code:
function handle_checkbox_change(event:KcheckboxEvent):void {     trace("value before change : " + event.from);     trace("new value : " + event.to);     trace("checkbox group : " + event.group);     trace("checkbox label : " + event.label);     trace("checkbox attached data : " + event.data);     trace("selected items : " + Kcheckbox.get_selected_items_of("group1"));         if (Kcheckbox.get_selected_items_of("group1").length==1) {         Tweener.addTween(testbox1,{y:222,time:1,transition:"EaseInOutBack"});         trace("1 item is selected");     }
untitled88 is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT. The time now is 09:11 AM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.