Hi
I have a PrintView template which looks like this
PrintView.mxml
--------------
<mx:VBox>
<mx:Label />
<mx:PrintDataGrid/>
</mx:VBox>
In my printThis() function i decide whether to add an extra child to
the PrintView. What then happens is, it disappears from the original
container.
public function printThis(vbox1:MyVBox, bPrint:Boolean)
{
// create a printjob etc
...
var print_view:PrintView = new PrintView();
if(bPrint)
{
print_view.addChildAt(vbox1.child1, 1);//child is another VBox
//after this, child1 disappears from vbox1 (on screen anyway)
}
}
I know it some kind of reference thing but not sure what knowledge
i'm lacking here. would love to know
regards
bod