Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-04-2006, 08:03 PM
Senior Member
 
Join Date: Feb 2003
Posts: 212
Default Menu : check or uncheck

How can I let the user check or uncheck a menu-item
Reply With Quote
  #2 (permalink)  
Old 01-13-2006, 04:28 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Menu : check or uncheck

This can be done by handle the onUpdateItem event. Everytime when system display a menu item, the onUpdateItem event handler is called, in which you can determine whether the item needs to be checked. E.g

Code:
var checkSwitch = false;

Menu.onUpdateItem = function (identifier, state)
{
    if (identifier == 'myItem') state.check = checkSwitch;
}

Menu.onCommand = function (identifier)
{
    if (identifier == 'myItem') checkSwitch = !checkSwitch;
}
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On



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


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.