assuming I understand right and you want to move the lights around the
[inside] of crystal ball (?): instead of using cpu intensive radius
calculations, just have the items that need to rotate around the crystal
ball inside the crystal ball MC. Set their center point to the center
point of the crystal ball, then make them rotate using a simple
_rotation++ style command* and "voila" instant rotation around the
crystal ball.
*: (you could make the _rotation of the lights = the x or y position of
the crystal ball; to "link" the two together...)
If thats too linear, put the lights inside empty MC which are then
inside the crystal ball. This would give rotation around an empty point
within rotation of the crystal ball. aka: embedded rotations.
if you want to see this "in action" [with a whole bunch of mini MC all
rotating around each other] check out the pink mandala on this website:
http://www.arctone.com
hope this helps!
with kind,
sebastian.
Jay Carlson wrote:
so I'm fairly new to using actionscript for everything in my flash
and I was wondering if there was a way to rotate a movie clip around
another movie clip that is already rotating. here's the scenario...I
have a "crystal ball" that is floating in a circle thanks to
actionscript. this ball has 2 "light squares" on it to give the
impression of glass/lights/etc...I also have a separate shadow movieclip
on the ground below the ball that I am changing the size and alpha
according to the y position of the ball movieclip (via actionscript, of
course). I want to do the same thing with these light squares. I'd
like to give the effect of when the ball floats down, the light squares
rotate/move up on the ball and vise versa. this would give the effect
that this is just a glass ball floating in space with overhead lights
that are stationary. so that's what I want to do and maybe it's way too
far over my head for now, but I guess I gotta learn somehow! so...is
there a way to rotate/move this light square movieclip according to the
x & y axis of the ball movieclip? any help would be appreciated...right
now, I've been just copying and pasting code in there and seeing what
happens. I'm a designer and not a math wiz, but I'm slowly learning.
thanks!
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com