Skip navigation
Currently Being Moderated

use javascript to export png

Nov 19, 2012 5:43 AM

Dear sir:

I use the following statement to export png:

fl.getDocumentDOM().exportPNG(pngFile,true,false);

and I set the pixel to 550*450

But I get the message:

the picture is too big, max is 8000*8000 pixel

Can you tell me why?

thanks a lot!

 
Replies
  • kglad
    72,228 posts
    Jul 21, 2002
    Currently Being Moderated
    Nov 19, 2012 6:34 AM   in reply to zyhsu

    assign the current settings paramenter to true or wait for the next version of flash cs pro where this problem is corrected.

     
    |
    Mark as:
  • kglad
    72,228 posts
    Jul 21, 2002
    Currently Being Moderated
    Nov 19, 2012 9:08 PM   in reply to zyhsu

    correct:

     

    fl.getDocumentDOM().exportPNG(pngFile,false,false);

     

    works in all current versions, i believe, while fl.getDocumentDOM().exportPNG(pngFile,true,false) fails in the current versions with that erronesou error message.  the next cs version will behave as expected with fl.getDocumentDOM().exportPNG(pngFile,true,false);

     
    |
    Mark as:
  • kglad
    72,228 posts
    Jul 21, 2002
    Currently Being Moderated
    Nov 24, 2012 6:39 AM   in reply to zyhsu

    you're welcome.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points