Printbutton. addObject(event.Target. ???);
How do I target the panels?
I would like each button to target their panel using the same 
function... 

Thanks.

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)"/>





--- In [email protected], "Gregor Kiddie" <[EMAIL PROTECTED]> 
wrote:
>
> The code you wrote was pretty much spot on... are there any other
> requirements you didn't mention?
> 
>  
> 
> 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]
> 


Reply via email to