Putting all the clips in your group will probably make your rotation calc's so much easier as you only have to spin one clip.

You could store the position & rotation of each child clip when you add it, then when you need to rotate, you can work out your "current" rotation / position, then offset the position and rotation of your child clip vs your parent and tween... Not sure off the top of my head, but you know where you are placing pages so that's probably your starting point - it does not matter hugely if you hardcode positions - if the number of pages does not change, you could be at an advantage keeping it simple :)

Dav wrote:
I'm trying to create a flash website where 6 pages are placed on the stage
with different rotations. The active page fills the viewport and a menu sits
just below the active page.

Now when you click on the menu for say page 2, the viewport will appear to
move and rotate to the correct angle to display page 2.

I have worked up a site to better explain what I mean.

http://79.170.40.163/flashdev.com/

For the sake of keeping things simple each of the three buttons just move
you to the next page.

I believe the best way to achieve the effect is to put each "page" into a
"group" movieclip, that will hold all 6 pages.

Then when a menu item is clicked, just rotate the "group" movieclip and move
it to a pre-defined x and y.

I'm hoping to code it in FlashDevelop, so it will be dynamic and not static
content.

Does anyone think there is a better way to achieve the end result?

Thanks in advance,
Dav

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to