开发者

Help - Flash CS5 - Print ( a print screen of the program)

开发者 https://www.devze.com 2023-02-18 01:11 出处:网络
I would like the clients to print what they are seeing at the moment with the flash program. How is this possible? That is why I said (print screen of program) because its actually printing what the

I would like the clients to print what they are seeing at the moment with the flash program.

How is this possible? That is why I said (print screen of program) because its actually printing what the person is seeing at the moment.

The thing is that my program leads to certain places and combinations of photos. So I w开发者_JAVA技巧ould like this functionality.

Is this possible?


I assume you want the client to physically print something as opposed to a screen grab..?

What you are probably after is PrintJob(). http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/printing/PrintJob.html

var my_pj:PrintJob = new PrintJob();
if (my_pj.start()) {
  try {
    my_pj.addPage(this.stage);
  }catch(e:Error) {
    //handle error 
  }
  my_pj.send();
}
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号