Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 10-13-2003, 05:56 AM   #1
karonte
Registered User
 
karonte's Avatar
 
Join Date: Oct 2003
Posts: 10
Question Context Menu Options

Hi,
I'm working on a project in which I need to have a 'right-click' menu. However I also need to have some options in he menu to appear as 'disabled', not just dissapearing.
Does the ContextMenu class have this 'disabeling' option rather than 'hiding' option?


Daniel.
karonte is offline   Reply With Quote
Old 10-13-2003, 07:20 AM   #2
farafiro
Addicted To FLASH
 
farafiro's Avatar
 
Join Date: Dec 2001
Location: Egyptian in UAE
Posts: 12,436
Send a message via MSN to farafiro Send a message via Yahoo to farafiro
Default

karonte
welcome to the forms

no,I don't think so, but u can build in your own items just like the build in items and then u control them
also see the tutorials section for this
__________________
‚€* GOD Is Near ‚€*
Questions Don't PM for Questions . Thanks
An eye for an eye, make the whole world blind
_____________________________________________GHANDI
farafiro is offline   Reply With Quote
Old 10-13-2003, 07:48 AM   #3
karonte
Registered User
 
karonte's Avatar
 
Join Date: Oct 2003
Posts: 10
Talking

Thanks for answering so soon, man.
Anyways, I finally found a way to do it (not A way, I guess rather THE way).
There are some properties in the ContextMenu class in wich you can set if it will be 'visible', 'enabled' or even if you want a 'separatorBefore' the element.
What I did was:

if (condition) {
myMenuItem.enabled = false;
}


EASY!

Sorry if I bothered and hope this can be useful for anyone.
karonte is offline   Reply With Quote
Old 10-13-2003, 08:06 AM   #4
farafiro
Addicted To FLASH
 
farafiro's Avatar
 
Join Date: Dec 2001
Location: Egyptian in UAE
Posts: 12,436
Send a message via MSN to farafiro Send a message via Yahoo to farafiro
Default

but by MM dictionary this would work with the items u add, not the already build in items
__________________
‚€* GOD Is Near ‚€*
Questions Don't PM for Questions . Thanks
An eye for an eye, make the whole world blind
_____________________________________________GHANDI
farafiro is offline   Reply With Quote
Old 10-13-2003, 08:17 AM   #5
karonte
Registered User
 
karonte's Avatar
 
Join Date: Oct 2003
Posts: 10
Default

True, it appears that you may only disable items created by yourself, not the existing ones. Existing items can only be hidden (all at the same time, I guess).
karonte is offline   Reply With Quote
Old 10-13-2003, 12:21 PM   #6
farafiro
Addicted To FLASH
 
farafiro's Avatar
 
Join Date: Dec 2001
Location: Egyptian in UAE
Posts: 12,436
Send a message via MSN to farafiro Send a message via Yahoo to farafiro
Default

no, u can do it for any item u want
ActionScript Code:
my_cm.builtInItems.zoom = false
__________________
‚€* GOD Is Near ‚€*
Questions Don't PM for Questions . Thanks
An eye for an eye, make the whole world blind
_____________________________________________GHANDI

Last edited by farafiro; 10-13-2003 at 12:23 PM.
farafiro is offline   Reply With Quote
Old 10-13-2003, 12:47 PM   #7
karonte
Registered User
 
karonte's Avatar
 
Join Date: Oct 2003
Posts: 10
Default

True...

Nice research!

But... this takes me to my next question... Could we hide the 'Settings...' and 'About Flash 7...' buttons?
karonte is offline   Reply With Quote
Old 10-13-2003, 03:51 PM   #8
Mortimer Jazz
Thing
 
Mortimer Jazz's Avatar
 
Join Date: Jun 2001
Location: UK
Posts: 2,418
Default

No, they're there for good
__________________
............................
FLEX/FLASH BLOG
Previous Flash Tutorials

............................
Mortimer Jazz is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:42 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.