I was playing with your code, and discovered you don't need
to create a new context menu, just call hideBuiltInItems() on the existing
one:
function init:void()
{
contextMenu.hideBuiltInItems();
}
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Pan Troglodytes
Sent: 18 July 2006 00:14
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: printing/zooming bugs
import flash.ui.ContextMenu;
var menu:ContextMenu = new ContextMenu();
menu.hideBuiltInItems();
contextMenu = menu;
On 6/30/06, Daniel
Tuppeny <[EMAIL PROTECTED] >
wrote:
Is there a way to hide the context menu (or at least the zoom part)? We
have a zoomable graph, and if the user right-clicks, they see Zoom,
think it's ours, click it, and then they're stuffed until reloading the
page!
-----Original Message-----
From: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com] On
Behalf Of Jason
Sent: 29 June 2006 17:50
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: printing/zooming bugs
Unfortunately, it looks like the Zoom bug is still there in the release
version. I've entered it into the bug report page. But be aware.
--- In flexcoders@yahoogroups.com, "Jason" <[EMAIL PROTECTED]> wrote:
>
> Before I start talking about bugs, let me just say thanks for the
> help. I demoed to the boss today and he was VERY pleased. Flex was a
> big hit with him. Hope the release doesn't slip too far behind, as
> we're looking forward to writing that check! :D
>
> Anyway, I've had a couple of problems that seem to be related. In
> Flex 2beta3, whenever I create any app and run it, the Flash player's
> Zoom options are broken. Right-click and say Zoom In. Right-click
> and the Zoom Out option is not shown. You can Zoom In more and THEN
> Zoom Out, but not all the way out. You're stuck with it zoomed in.
> And you can't pan around. This doesn't happening using the beta
> player with non-Flex SWFs.
>
> The printing problem seems similar. Here's my example app:
>
> <?xml version="1.0" encoding="utf-8"?> <mx:Application
> xmlns:mx="http://www.adobe.com/2006/mxml"
> layout="absolute">
> <mx:Script>
> <![CDATA[
> private function printClick(e:Event):void {
> import flash.printing.PrintJob;
> var myPrintJob:PrintJob = new PrintJob();
> myPrintJob.start() ;
> myPrintJob.addPage(this);
> myPrintJob.send();
> }
> ]]>
> </mx:Script>
>
> <mx:Button label="Print" click="printClick(event)" width="481"
> x="10" y="10"/>
> <mx:DataGrid y="40" x="10" width="481">
> <mx:dataProvider>
> <mx:ArrayCollection>
> <mx:source>
> <mx:Object>
> <mx:Artist>Pavement</mx:Artist>
> <mx:Price>11.99</mx:Price>
> <mx:Album>Slanted and Enchanted</mx:Album>
> </mx:Object>
> <mx:Object>
> <mx:Artist>Pavement</mx:Artist>
> <mx:Album>Brighten the Corners</mx:Album>
> <mx:Price>11.99</mx:Price>
> </mx:Object>
> </mx:source>
> </mx:ArrayCollection>
> </mx:dataProvider>
> </mx:DataGrid>
> </mx:Application>
>
>
> If you click on the print button, you get a zoomed in printed
> document. Just like the whole right-click and Zoom In problem. It's
> like the player thinks that the normal size is zoomed in.
>
> Can I get some confirmation or denial of the bug? Or if there's
> something somehow messed up with my system, let me know.
>
> Thanks.
>------------------------ Yahoo! Groups Sponsor --------------------~-->
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/nhFolB/TM
----------------------------------------------------------~->
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
[Inbound Mail Scanned by MessageLabs]
__________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
__________________________________________________________
--
Jason
[Inbound Mail Scanned by MessageLabs]
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
__._,_.___
--
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
- 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.