Hi Claudia,

You are correct on both counts.  You're getting an error because of 
timing.  You'll have to wait until the stage object is available to 
the application.  However, setting the showDefaultContextMenu 
property to false doesn't entirely remove the context menu.  It only 
removes the top three menu options.  As far as I know you can't 
eliminate the context menu completely.

-TH

--- In [email protected], "Claudia Barnal" <[EMAIL PROTECTED]> 
wrote:
>
> Is this one of those things that are too simple to explain, or is 
it
> one of those things that are impossible to do, for which there is 
no
> explanation?
> 
> Thanks,
> Claudia
> 
> On 9/4/06, Claudia Barnal <[EMAIL PROTECTED]> wrote:
> > I tried doing this:
> >
> > <mx:Script>
> >   <![CDATA[
> >      stage.showDefaultContextMenu = false;
> >   ]]>
> > </mx:Script>
> >
> > But it throws an error. How should I apply this, to avoid having 
the
> > default contect menu showing in my flex app?
> >
> > Thanks,
> > Claudia
> >
>






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to