Don't Escape
I'm a werewolf and it's a full moon. I have to find a way to prevent myself from escaping.
3.75 / 5.00 29,933 ViewsRagnarok Online Jigsaw
Did you play Ragnarok Online? Do you like that game?
3.53 / 5.00 12,839 ViewsHello.I'm not sure if Printing in Flash is really a big deal for the Newgrounders,but maybe for big companies with Flash websites...anyways,printing is rather easy.
Ok...First of all,create a button.Have text in the button say "Print" or however anyone says print...
Well,give it the instance of "print".
Now,add these actions to your frame...
_root.print.onRelease = function() {
var pri = new PrintJob();
pri.start();
pri.paperWidth = 800;
pri.paperHeight = 600;
};
If you did all right,a Print screen should pop-up asking for the Print setting and all that.
Well,this tutorial wouldn't do good without explaining,just to make it longer.
_root.print.onRelease = function() {
}
This code is the onRelease function for setting a code to a button,but not in the button actions...or whatever...
var pri = new PrintJob();
'var' will set a new variable.The variable name is 'pri',short for print.'new PrintJob' is stating that there will be a new print.
pri.start();
This code allows the print to start,or open up the window to start.
pri.paperWidth = 800;
pri.paperHeight = 600;
Sets the width and the height of the print.I'm just using 800x600.
Well that's pretty much all...might be to easy,but I doubt anyone on Newgrounds really cared to look into the Print.I'm just trying to make AS:Main bigger :D
wat
a compessor wil raise the volume while lowering the db - chronamut
or you could just do
print()
or
printAsBitmap()
Pretty cool :)
I'll use it for the new website I'm making... These guys from the Tequila company wanted a function like this to print some stuff from their website...
*yay!* ive been looking for a tutorial on this for AGES!!! thanks so much!!!!!!!!
Wow, that was kinda shit.. what about explaining print(), printNum(), printAsBitmap() and printAsBitmapNum()? If you explained all of them, how they're different, they're different parameters, etc - then maybe this coulda been useful.
Sup, bitches :)
At 2/18/06 01:50 PM, -liam- wrote: Wow, that was kinda shit.. what about explaining print(), printNum(), printAsBitmap() and printAsBitmapNum()? If you explained all of them, how they're different, they're different parameters, etc - then maybe this coulda been useful.
hey man quit being so tight, we never saw you put effort in like this! >=|
At 2/18/06 01:50 PM, -liam- wrote: Wow, that was kinda shit.. what about explaining print(), printNum(), printAsBitmap() and printAsBitmapNum()? If you explained all of them, how they're different, they're different parameters, etc - then maybe this coulda been useful.
you stole my sig
At 2/18/06 02:28 PM, ryanpridgeon wrote: hey man quit being so tight, we never saw you put effort in like this! >=|
Put effort into what? There was obviously no effort put into this tutorial because he didn't even explain all of what I said.
At 2/18/06 03:04 PM, ImpotentBoy2 wrote: you stole my sig
I told you already, I'm only going to have this conversation through my lawyer.
Sup, bitches :)
At 12/11/05 09:33 PM, Glaiel_Gamer wrote: or you could just do
print()
or
printAsBitmap()
... Lol yeah. :P
It didn't cover everything about printing, and meh, it was a whole AS thread just about one small thing. It could be better, but it's alright, I guess.
Next time put a link to AS: Main.
Good tut though.
Sorry to bump this, but I just figured out you could use this to send an endless amount of print commands and screw with other's PCs, I should e-mail Adobe and see if they have a way of stopping it...
Wow, that would suck...
Ignore this post, I'm giving you people ideas....
At 12/11/05 09:07 PM, -Thomas wrote: _root.print.onRelease = function() {
var pri = new PrintJob();
pri.start();
pri.paperWidth = 800;
pri.paperHeight = 600;
};
If your using flash mx pro 2004 you need to use this script
on(release){ _root.print = function() {
var pri = new PrintJob();
pri.start();
pri.paperWidth = 800;
pri.paperHeight = 600;
};
}
Just thought id contribute to this nicely