all groups > flash actionscript > august 2005 >
You're in the

flash actionscript

group:

rotate problem


Re: rotate problem NSurveyor
8/7/2005 12:00:00 AM
flash actionscript:
Use the PrintJob class. You can change the orientation as simple as:

rotate problem Lucy4
8/7/2005 11:44:26 AM
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
Re: rotate problem Lucy4
8/8/2005 10:58:58 PM
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,
Re: rotate problem Rothrock
8/8/2005 11:10:44 PM
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;
Re: rotate problem NSurveyor
8/8/2005 11:10:52 PM
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;
Re: rotate problem Lucy4
8/8/2005 11:30:57 PM
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
AddThis Social Bookmark Button