Hi Friends,
Can any one help me out with this code pls. I want to print multiple records may be in 100’s. To simplfy we consider we want to print 2 pages which has got dynamic data, which is coming from XML file.
I have a MC named A4L in Library which i am calling on the stage. Now I have a print button inside a MC. At a time you can see 1 record at a time. But you have NEXT and BACK button to view other records. I hope u got the stucture of MC.
Now following is the script which prints button 2 pages but prints same record again. Thats my problem. Onthe screen I can see when I click on print button and says OK…I can see the next record. But it still print first record only. I dont know whats happeing at the back ???
Here is the code
myPrint.onRelease = function()
{
myPj = new PrintJob();
if(myPj.start()){
for(i=1; i<3; i++){
_root.A4L._xscale = 94;
_root.A4L._yscale = 94;
myPj.orientation=“landscape”;
myPj.addPage(_root.A4L, “bmovie”);
trace("page i >> "+i)
myPj.send();
gotoAndPlay(2); //playing frame 2 will refresh data
}
}
delete myPj();
}
Pls help…thanx ashish :puzzled: