# Print in Flash

**URL:** https://forum.kirupa.com/t/print-in-flash/109970
**Category:** Uncategorized
**Created:** [May 11, 2004, 6:12am UTC](https://forum.kirupa.com/t/print-in-flash/109970 "2004-05-11T06:12:22Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![ash123](https://avatars.discourse-cdn.com/v4/letter/a/dec6dc/32.png) [@ash123](https://forum.kirupa.com/u/ash123)
#### Post date: [May 11, 2004, 6:12am UTC](https://forum.kirupa.com/t/print-in-flash/109970/1 "2004-05-11T06:12:22Z")

</div>

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 &gt;&gt; "+i)

	myPj.send();		
	gotoAndPlay(2); //playing frame 2 will refresh data
		
	}
}
delete myPj();	

```

}

Pls help…thanx ashish :puzzled:
