yes

 

Gregor Kiddie
Senior Developer
INPS

Tel:       01382 564343

Registered address: The Bread Factory, 1a Broughton Street, London SW8
3QJ

Registered Number: 1788577

Registered in the UK

Visit our Internet Web site at www.inps.co.uk
<blocked::http://www.inps.co.uk/> 

The information in this internet email is confidential and is intended
solely for the addressee. Access, copying or re-use of information in it
by anyone else is not authorised. Any views or opinions presented are
solely those of the author and do not necessarily represent those of
INPS or any of its affiliates. If you are not the intended recipient
please contact [EMAIL PROTECTED]

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of sailorsea21
Sent: 13 November 2008 14:14
To: [email protected]
Subject: [flexcoders] If I have 2 panels, each with their own print
buttons, can I have one function?

 

Hello everyone,
if I have 2 panels, each with their print buttons, can I simply have 
1 function for both buttons? This way, if I have 15 panels, I can 
only use one function for all the print buttons instead of 15...

This is my simplified script:

private function print(event:MouseEvent):void
{
var Printbutton:FlexPrintJob = new FlexPrintJob();
var printConfirmed:Boolean = Printbutton.start(); 
if(printConfirmed)
{
Printbutton.addObject(event.Target.???);
Printbutton.send();
} 
}

<mx:Panel id="PanelTest001">
</mx:Panel>
<mx:Button label="print" click="print(event)"/>

<mx:Panel id="PanelTest002"/>
</mx:Panel>
<mx:Button label="print" click="print(event)"/>

Thank you very much.

 

Reply via email to