View Full Version : printing from a text field...
decadant
02-11-2002, 08:17 PM
hi,
I have loaded a text file on a textField (variable "text"), (_level0)
I'd like to make a buton on same level (textField&buton on _level0)
and when the user click the buton,
the text which is loaded on textField will printed out.. :)
(or downloaded as .txt file by the user)
how can I do that? thanks .
Juggling takes my time, ActionScript takes longer...
jimburton
02-11-2002, 08:30 PM
label the frame that you want to be printable "#p" - that is, if you're not using frame labels already, add a new layer, add a blank keyframe on the frame you want to print out, open the frames panel and type in #p, thus telling that this frame, alone among all others, is printable output. If you want to frame the text in a particular way for printing purposes, this can be outside the normal course of the movie...
on your button add the code:
on (release) {
getURL("javascript: void(0);window.print();");
}
(this will only work with browsers that speak javascript 1.1, which I think is 4+)
jimburton
02-11-2002, 08:34 PM
To make it a downloadable txt file instead, pass the variable back to asp, create the txt file and link to it, either from your movie or programmatically in asp...
decadant
02-11-2002, 08:49 PM
thanks for your reply but I got lost :)
I'm trying to print a text which is in the textfield/textbox ...if I'm not misunderstood your way, it prints all the frame, right? (with images or other objects on it)
I try to print a text which is scrolling in a textfield, its long. :)
if I get it wrong, sorry.
ActionScript takes a lot :(
Ricod
02-12-2002, 07:59 AM
U could place your text in an empty, otherwise unreachable frame, and label and print that frame.
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.