Jeff,

I would try to reproduce the same at my end and let you know my findings..

-abdul

On 1/25/07, Battershall, Jeff <[EMAIL PROTECTED]> wrote:

   One thing to know about my app is that it has a jpg on the background
and no backgroundColor.

One way I found to work around it was to wrap a canvas container around
all my UI objects and set the backgroundColor t= 0xFFFFFF and
backgroundAlpha = 0.  I don't think a workaround like this should be
necessary.

Jeff

 -----Original Message-----
*From:* [email protected] [mailto:[EMAIL PROTECTED] *On
Behalf Of *Battershall, Jeff
*Sent:* Thursday, January 25, 2007 11:11 AM
*To:* [email protected]
*Subject:* RE: [flexcoders] Can't seem to customize Flash ContextMenu

Just to bump this up a bit - I'm able to confirm this behavior - setting a
contextMenu at the Application container level sets the context menu for any
UI objects contained within it - BUT NOT FOR THE BACKGROUND OF THE APP. So
if there's any app background not covered by a UI object you'll see the
default Flash ContextMenu when you right-click on it.

How can this be handled???? For sure, I want to suppress the default
context menu in my app for the entire area of the player.

Jeff

 -----Original Message-----
*From:* [email protected] [mailto:[EMAIL PROTECTED] *On
Behalf Of *Battershall, Jeff
*Sent:* Wednesday, January 24, 2007 3:34 PM
*To:* [email protected]
*Subject:* RE: [flexcoders] Can't seem to customize Flash ContextMenu

Abdul,

Thanks - yes, the positioning is absolute but no - the wrapper's
width/height attributes are the same as the mxml width/height.  And you can
get the flash context menu from anywhere on the screen that there isn't a UI
item.  Basically the controls are resting right on top of the application -
there's no intermediary container.  It seems like the reference you get to
the application (Application.application) is still one level (or so) down
from the player itself.  How do you get a reference to the player so you can
set its context menu?

Jeff

 -----Original Message-----
*From:* [email protected] [mailto:[EMAIL PROTECTED] *On
Behalf Of *Abdul Qabiz
*Sent:* Wednesday, January 24, 2007 3:02 PM
*To:* [email protected]
*Subject:* Re: [flexcoders] Can't seem to customize Flash ContextMenu

It should work.

But I am guessing that your Application has absolute width/height
specified in your MXML. And your html-wrapper has different (greater)
width/height.

That's the only case, in my opinion, when flash-player's stage gets
exposed.

Try to keep the dimensions specified in MXML and HTML same.

-abdul



On 1/25/07, Battershall, Jeff < [EMAIL PROTECTED]> wrote:
>
>   I've got an app which I create a custom context menu for during
> initialization, but I've noticed that the context menu only shows up
> when I right click on UI objects (Tree, ApplicationControlBar, etc). but
> still I get the default Flash context menu when I right click on the
> background of the app.
>
> I've tried setting my custom menu to
> Application.application.contextMenu, but the behavior is the same.
>
> What am I missing here?
>
> Jeff Battershall
> Application Architect
> Dow Jones Indexes
> [EMAIL PROTECTED] <jeff.battershall%40dowjones.com>
> (609) 520-5637 (p)
> (484) 477-9900 (c)
>

Reply via email to