Skip to content

Instantly share code, notes, and snippets.

@ngs
Created January 21, 2011 02:03
Show Gist options
  • Select an option

  • Save ngs/789123 to your computer and use it in GitHub Desktop.

Select an option

Save ngs/789123 to your computer and use it in GitHub Desktop.
デバイスフォントを90度回転
import flash.display.*;
import flash.geom.*;
var clip:MovieClip;
var clip2:MovieClip = createEmptyMovieClip("clip2", 0);
clip2._x = clip._x+100;
clip2._y = clip._y;
var bmp:BitmapData = new BitmapData(clip._width, clip._height);
clip2.attachBitmap(bmp,1);
bmp.draw(clip);
clip2._width = clip._width;
clip2._height = clip._height;
clip2._rotation = 90;

test.png

デバイスフォントは_rotationを設定して回転させると、見えなくなってしまうので、ビットマップとして複製してから回転をかける。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment