Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-10-2005, 08:15 PM
w-b w-b is offline
Junior Member
 
Join Date: Mar 2005
Posts: 22
Default Creating menus

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
Reply With Quote
  #2 (permalink)  
Old 05-11-2005, 03:59 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Creating menus

Please try the sample

http://www.swfkit.com/swfkit/samples/menu.html#app

Menus are made by the menu creater in swfkit.
Reply With Quote
  #3 (permalink)  
Old 05-11-2005, 07:29 PM
w-b w-b is offline
Junior Member
 
Join Date: Mar 2005
Posts: 22
Default Re:Creating menus

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
Reply With Quote
  #4 (permalink)  
Old 05-12-2005, 01:17 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Creating menus

1. Please create the menu items
Reply With Quote
  #5 (permalink)  
Old 05-12-2005, 01:19 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Creating menus

2. load the menu

Code:
menu = new Menu();
menu.load("main");
menu.setMenu();
3. handle the menu commands

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;
}
}
Reply With Quote
  #6 (permalink)  
Old 05-12-2005, 08:06 PM
w-b w-b is offline
Junior Member
 
Join Date: Mar 2005
Posts: 22
Default Re:Creating menus

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
Reply With Quote
  #7 (permalink)  
Old 05-12-2005, 08:10 PM
w-b w-b is offline
Junior Member
 
Join Date: Mar 2005
Posts: 22
Default Re:Creating menus

...sorry just figured it out...add all .ico to attachments then simply add them using the Ico in Menu Item Prop...

w-b

Thank you very much for helping out earlier!
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 07:53 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.