|
|||
|
Hi,
In the menu editor you can set a (sub) menu item as default (making it bold). How can I do this if I create a menu by code (either from AS3 or from FFish) I can't find it in the help ... tnx! Gert |
|
|||
|
To set an item to be checked, please handle the "onUpdateItem" event as shown in the following code
Code:
Menu.onUpdateItem = function (id, state)
{
trace(id);
if (id == "id0")
state.check = true;
}
About the default item, the current version of swfkit hasn't such a method. However, you can first create a menu with a default item in the "Menu creator" and then modify it by using ffishscript code. |
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|