PDA

View Full Version : Print button in Flash (PLEASE HELP ME ON THIS)


varcharcode
06-20-2006, 06:03 AM
Hi there,
I'm using Flash MX.
I have a flash, it requires you to drag, drop and rotate your answer from the list. As you can see in the image, the answer c. and answer f. was inserted in the idea wheel and they are not in the list of answers anymore.

http://www.geocities.com/varcharcode/printingtheIdeawheel.jpg

I need a print button in flash that could print it that way. I'm using this: (not in flash)

<input name="button" type="button" onclick="window.print()" value="Print"/>


It functions as a "Print Screen" but once click and print, it doesn't print the result of your answer instead it prints the default page (meaning all the answers are still in the list and the idea wheel is empty)

Do you have a right code for a "flash print button" that prints the result of this flash quiz? It must looks exactly the way it was in the image once printed (the answers are visible inside the idea wheel)...

In short, a print button that don't refresh to the beginning.

PLEASE HELP.

_Aerospace_Eng_
06-20-2006, 07:23 AM
Why not use the built-in flash print() function (http://www.devx.com/webdev/Article/9970) in your movie?

varcharcode
06-21-2006, 02:23 AM
Yup. The solution is to use the Flash button instead of using a print button outside the .swf. :thumbsup: Thanks

vikaspa
07-26-2006, 07:26 PM
Yup. The solution is to use the Flash button instead of using a print button outside the .swf. :thumbsup: Thanks



I am new to flash ...


What is the action scrip required for the button to print the current web page ?

Can you please hgelp me ...

_Aerospace_Eng_
07-26-2006, 07:36 PM
getURL("javascript:window.print();void(0);");

vikaspa
07-26-2006, 07:46 PM
getURL("javascript:window.print();void(0);");


I want code / action script for flash button within flash and not javascript

_Aerospace_Eng_
07-27-2006, 04:20 AM
That is the actionscript in flash. Only way I know of printing the page the user is one is to use JS from flash. Go read up on what actionscript really is. Seems like you have a lot to learn.

eduardomgallo
02-14-2010, 12:54 AM
Hello. In the link below, you enter this site, register and you can download the file to your PC .Swf and .Fla that I came up with a button that serves to print in Flash. It is the version 8 and action scritp 2.0

Greetings.

http://www.ffiles.com/flash/buttons/button_print__2874.html

:)