|
|||
|
Is it possible to create menus with SWFkit?
For example, a menu with two menu headers and each header has 5 menuitems? How would I go about that, please? I have attempted using one of your samples but am non-the-wiser, so I would be most grateful for an explanation, please. w-b |
|
|||
|
Please try the sample
http://www.swfkit.com/swfkit/samples/menu.html#app Menus are made by the menu creater in swfkit. |
|
|||
|
Thanks for replying quickly. I am still unsure as to have to use your coding.
This is want I need: 1 menuheader with 6 menuitems which simply go to a different frame except item 6 which exits 1 menuheader with two items which goes to a frame and to a link. As I mentioned before, your sample doesn't explain or show how I can do that, although it clearly shows how your software can open, close, save etc (which is excellent if I may add!) Would there be any possibility of seeing how my query could be done, please? w-b |
|
|||
|
2. load the menu
Code:
menu = new Menu();
menu.load("main");
menu.setMenu();
Code:
Menu.onCommand = function (id) {
switch (id) {
case "goto1":
FlashPlayer.targetGotoFrame("_root", 1);
break;
case "goto2":
FlashPlayer.targetGotoFrame("_root", 2);
break;
case "goto3":
FlashPlayer.targetGotoFrame("_root", 3);
break;
case "goto4":
FlashPlayer.targetGotoFrame("_root", 4);
break;
case "goto5":
FlashPlayer.targetGotoFrame("_root", 5);
break;
case "goto6":
FlashPlayer.targetGotoFrame("_root", 1);
break;
case "gotoframe":
FlashPlayer.targetGotoFrame("_root", 7);
break;
case "gotolink":
Shell.open("www.swfkit.com");
break;
}
}
|
|
|||
|
Thank you very much, that seems fairly straight forward so really thank you!
Quick question: Is it possible to add an icon next to a menuitem from the menuheader? If so, how would I go about that, please? Add the .ico to Attachments and then..not sure what the code could be? w-b |
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|