Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 06-19-2009, 01:54 AM   #1
Registered User
Join Date: Mar 2009
Posts: 17
Default Can you determine rotation of child object to stage?


How can I get the X, Y, and rotation values, relative to the stage of a child of unknown number of parents?

What I am doing is:
I have a 'stick' object, that creates a child 'stick', that creates a child 'stick', etc a random number of times.

The end stick then creates a leaf.

Each new stick rotates a little bit randomly.

As a result when my leaf falls off the final stick it flies off in a strange direction.

How can I get the leaf to fall down (eg y++ relative to stage)?

Alternatively I thought I could dispatch an event that has a leaf created at the stage level but then I really need to know what the X and Y co-ordinates of my final stick is realtive to the stage.

Thank you for taking the time to look at this.

Even advice on what terms I should be searching for would be helpful at this stage!
Shaedo is offline   Reply With Quote

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Random placement on stage - with rotation taken into account? Heloed ActionScript 3.0 0 06-19-2009 12:46 AM
Test if child is on stage T24 ActionScript 3.0 4 08-07-2008 08:01 PM
hitTest an array and remove child frenzy2 ActionScript 3.0 18 05-13-2008 07:52 AM
Creation-time Application Event: Stage Object Available astgtciv Flex 2, 3 & 4 6 07-29-2006 04:01 PM
moving child mcs relative to stage rgarimella ActionScript 1.0 (and below) 0 06-12-2002 12:20 PM

All times are GMT. The time now is 01:08 PM.

Follow actionscriptorg on Twitter


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