Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Flash General Questions > Flash 8 General Questions

Reply
 
Thread Tools Rate Thread Display Modes
Old 10-22-2005, 07:03 PM   #1
Xeef
Off-Line
 
Xeef's Avatar
 
Join Date: Aug 2004
Location: Ibiza/Spain language :Hungarian/German/ abit English
Posts: 6,539
Default Matrix rotate

PHP Code:
var myMatrix = new flash.geom.Matrix();
myMatrix.translate(-50, -50);
myMatrix.rotate(45/180*Math.PI);
myMatrix.translate(5050);
_root.createEmptyMovieClip("_mc"1);
_bmp = new flash.display.BitmapData(100100true0xFFFF0000);
_mc.attachBitmap(_bmp0);
= new flash.geom.Transform(_mc);
T.matrix myMatrix;
T.TrueMatrix myMatrix;
//
trace("i woud like to prevent this !");
trace(T.TrueMatrix);
trace(myMatrix);
trace(T.matrix);
//
= new flash.geom.Point(5050);
trace("Org: "+P);
trace("By True Matrix: "+T.TrueMatrix.transformPoint(P));
trace("By Transform Matrix: "+myMatrix.transformPoint(P));
trace("By Object Matrix: "+T.matrix.transformPoint(P)); 

it's great that i get 12 positions after the dot
it woud make me more happy if i woud get a corect result !!!

this is a big problem i have 100's of cascaded movieclips wich all have they own registrations point and transformation
if i rotate them the start to swimm a way !
Xeef is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:03 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.