[Flashcoders] rotaion object

2011-08-18 Thread nasim hhhhh
how to rotate movieClip with mouse rotate on it , identify clockwise or 
anticlockwise rotation ,
?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] rotaion object

2011-08-18 Thread Ivan Dembicki
Math.atan2

2011/8/18 nasim h iranebah...@yahoo.com:
 how to rotate movieClip with mouse rotate on it , identify clockwise or 
 anticlockwise rotation ,
 ?
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




-- 
Ivan Dembicki
http://realaxy.com

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Vector.map()

2011-08-18 Thread Kenneth Kawamoto

Dear coders,

Vector.map() is supposed to return a new Vector but it appears to return 
nothing (undefined). Is this working for you?


Regards,

Kenneth

--
Kenneth Kawamoto
http://www.materiaprima.co.uk/
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Vector.map()

2011-08-18 Thread Mendelsohn, Michael
Hi Kenneth...

This is working for me:

var g:Vector.uint = Vector.uint([1,2,3,4,5]);
var h:Vector.uint = g.map(mapper);
function mapper(item:uint,ind:uint,g:Vector.uint):void{
trace(g[ind]+30);
}

Hope that helps,
- Michael M.



-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Kenneth Kawamoto
Sent: Thursday, August 18, 2011 9:27 AM
To: Flash Coders List
Subject: [Flashcoders] Vector.map()

Dear coders,

Vector.map() is supposed to return a new Vector but it appears to return 
nothing (undefined). Is this working for you?


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Vector.map()

2011-08-18 Thread Kenneth Kawamoto

What do you get for h?

Kenneth Kawamoto
http://www.materiaprima.co.uk/

On 18/08/2011 21:08, Mendelsohn, Michael wrote:

Hi Kenneth...

This is working for me:

var g:Vector.uint  = Vector.uint([1,2,3,4,5]);
var h:Vector.uint  = g.map(mapper);
function mapper(item:uint,ind:uint,g:Vector.uint):void{
trace(g[ind]+30);
}

Hope that helps,
- Michael M.



-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Kenneth Kawamoto
Sent: Thursday, August 18, 2011 9:27 AM
To: Flash Coders List
Subject: [Flashcoders] Vector.map()

Dear coders,

Vector.map() is supposed to return a new Vector but it appears to return
nothing (undefined). Is this working for you?

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders