Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-18-2005, 01:37 PM
Member
 
Join Date: Jan 2005
Posts: 50
Default left click menu

need a right click menu fast!!

How do I build a simple left click menu to have on top on my trans swf? ???
Reply With Quote
  #2 (permalink)  
Old 01-18-2005, 01:52 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:left click menu

Do you mean the context menu?

Code:
FlashPlayer.onContextMenu = function ()
{
***var menu = new Menu;
***menu.createPopupMenu();
***menu.appendItem("id0", "item 0");
***menu.appendItem("id1", "item 1");
***menu.appendItem();
***menu.appendItem("id2", "item 2");
***menu.appendItem("id3", "item 3");
***

***var id = menu.show();
***if (id == "id0") Dialogs.msgBox("item0 clicked");
***else if (id == "id1") Dialogs.msgBox("item1 clicked");
***else if (id == "id2") Dialogs.msgBox("item2 clicked");
***else if (id == "id3") Dialogs.msgBox("item3 clicked");
}
You can also build the menu using the menu creator and load it using Menu.load method.
Reply With Quote
  #3 (permalink)  
Old 01-18-2005, 01:55 PM
Member
 
Join Date: Jan 2005
Posts: 50
Default Re:left click menu

because my movie is transparent the flash menu only appears when over som grafix but my grafix is moving and not allways around, - I suppose if I have a swfKitmenu it will show on a transparent bg?
Reply With Quote
  #4 (permalink)  
Old 01-18-2005, 02:07 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:left click menu

Do you mean that you want to launch a swfkit menu when click an item in your movie(a button for example)?

That's easy, add a fscommand in your movie like
Code:
fscommand("ffish_run", "showMenu");
and add a "showMenu" script in swfkit to display the menu.
Reply With Quote
  #5 (permalink)  
Old 01-18-2005, 02:09 PM
Member
 
Join Date: Jan 2005
Posts: 50
Default Re:left click menu

no I mean that I want a menu on top of my swf when I right click on the app.

If I use the normal flash menu and programme it in flash it will only show if you click on some grafix because I have a transparent movie.

And because the 'grafix' in my movie are moving and actually not always shown I wonder if its an idear to have a menu build by swfkit
Reply With Quote
  #6 (permalink)  
Old 01-18-2005, 02:10 PM
Member
 
Join Date: Jan 2005
Posts: 50
Default Re:left click menu

this is what it should do og right click:

load program again
minimize/maximize
load external URL
exit

Reply With Quote
  #7 (permalink)  
Old 01-18-2005, 02:11 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:left click menu

We will make a sample for you tomorrow.
Reply With Quote
  #8 (permalink)  
Old 01-18-2005, 02:12 PM
Member
 
Join Date: Jan 2005
Posts: 50
Default Re:left click menu

thanks but I really need it now, - had to send the app 2 hours ago!!


Just give me a sample on how to get in touch with the flash movie..
Reply With Quote
  #9 (permalink)  
Old 01-18-2005, 11:14 PM
Member
 
Join Date: Jan 2005
Posts: 50
Default Re:left click menu

hi, - sorry for my unpolite remarks, - I was a bit stressed up.

Can you tell me how to make a button in the system tray that restarts the application?
Reply With Quote
  #10 (permalink)  
Old 01-19-2005, 02:39 AM
Member
 
Join Date: Jan 2005
Posts: 50
Default Re:left click menu

i found out!
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:36 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.