This might not be the best way, but it works:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
creationComplete="callLater(init);">
<mx:Script>
<![CDATA[
private function init():void {
stage.showDefaultContextMenu = false;
}
]]>
</mx:Script>
</mx:Application>
-TH
--- In [email protected], "Claudia Barnal" <[EMAIL PROTECTED]> wrote:
>
> Tim,
>
> Thanks for your reply :)
>
> > You'll have to wait until the stage object is available to the application.
>
> How would I do that?
>
> > It only removes the top three menu options.
>
> I'm quite happy with that. I basically want to remove the scaling
> options and whatnot.
>
> On 9/4/06, Tim Hoff [EMAIL PROTECTED] wrote:
> > 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
>
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
| Software development tool | Software development | Software development services |
| Home design software | Software development company |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
__,_._,___

