Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

print movie clip from time line

Explorer ,
Nov 28, 2020 Nov 28, 2020

Hello!

i want to print Movie clip from timeline 

 

I found this code in the forum 

how can i changh the code to prind movie clip name "bingoBoard"

 

this.stop();

print_voucher();

function print_voucher() {

  var win = window.open();

  win.document.write("<br><img src='" + canvas.toDataURL() + "'/>");

  win.print();

  //win.location.reload();

}

 

Thanks

TOPICS
Code
261
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 29, 2020 Nov 29, 2020

you want to display a static image of a movieclip in another browser window?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Nov 29, 2020 Nov 29, 2020

i want to print movie clip in printer

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 30, 2020 Nov 30, 2020

that doesn't make sense.  you mean you want to print an image of whatever frame of the movieclip is showing at a particular time? 

 

if so, that makes sense but i don't think that would be easy because javascript is pretty limited in its abillity to access a user's printer.  you'd need to copy the movieclip's image to a new window and then print that window.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Nov 30, 2020 Nov 30, 2020

OK

i am working on bingo game

i made all the game and it is working

i created a option to print bingo boards.

 

so i have movie clip on the timeline 

the movie clip include texts and pictures

the movie clip name is  bingo_board

i want to print only the movie clip (the bingo board) with no buttons or other elements on the window.

in this link you can see what i am doing 

http://hebrewgames.org/bingo/game

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 30, 2020 Nov 30, 2020

create a main timeline frame that displays your bingo board and prints the page (window.print() ) and in your print listener go to that frame.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Dec 03, 2020 Dec 03, 2020

can you give me exampl?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 03, 2020 Dec 03, 2020
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Dec 05, 2020 Dec 05, 2020

thank you

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 06, 2020 Dec 06, 2020
LATEST

you're welcome.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines