yyn0210 / alivepdf

Automatically exported from code.google.com/p/alivepdf
0 stars 0 forks source link

AddImage() problem #368

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. in a for loop, i add a page and add a image
2.
3.

What is the expected output? What do you see instead?
it should comeout with a some pages with the same image  
What version of the product are you using? On what operating system?
    AlivePDF 0.1.5 Beta Sources

Please provide any additional information below.

for each (var sce:XML in xml.descendants("scene"))
            {
                addPage(); 
                setXY(20, 10);
                writeText(20, 'scene' + idx); 
                var vo:SceneVo = new SceneVo(); 

                var sp:Sprite = new Sprite();
                sp.graphics.beginFill(0x000000);
                sp.graphics.drawCircle(0, 0, 100);
                sp.graphics.endFill();

                addImage(sp, null);
                setXY(20, 190);
                writeText(20, 'Scene after'); 
                idx ++; 
            } 

Original issue reported on code.google.com by YUNING.M...@gmail.com on 20 Jun 2014 at 9:36

GoogleCodeExporter commented 8 years ago
currently it only has the first page have the image, the following page all 
blank

Original comment by YUNING.M...@gmail.com on 20 Jun 2014 at 9:38