flash actionscript:
Use the PrintJob class. You can change the orientation as simple as:
I have a _root._rotation = 90 set to my movie so that when somebody prints it they will get it orientated right. The problem is how do I set it to rotate back after they've printed? I've tried lots of different ways, but none of them seem to work. Please help. Lucy
I don't have Flash MX 2004 so can I still use the print class and also can I set it to print 200% bigger like this as well? Thanks for your help,
PrintJob class is not available before MX04. There is print(), but it doesn't have as many features. As for your original question. Rotation isn't cumulative. So, assuming that you started with a rotation of zero, all you need is _root._rotation=0; If it was something else, then var myRot=_root._rotation; _root._rotation=90; //printing code here _root._rotation=myRot;
Oh, then try this, not sure if it will work: _root._rotation = 90; _root._xscale = _root._yscale = 200; print(... //<-- print code goes here _root._rotation = 0; _root._xscale = _root._yscale = 100;
I've tried both suggestions and only the rotate seems to work, what ever I try the scale doesn't work unless I try for(movieclip in _root){ _root[movieclip]._xscale = 200; _root[movieclip]._yscale = 200; } but then only part of the area is enlarged. Would it help if I was to uploadthe file or should I just download the trial version of MX 2004 pro to enable me to do this? Cheers Lucy
Don't see what you're looking for? Try a search.
|