A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: rotation of a movieClip and object inside of it

  1. #1
    Senior Member
    Join Date
    Nov 2002
    Location
    Israel
    Posts
    287

    rotation of a movieClip and object inside of it

    MC==MovieClip
    i have a MC which rotates a whell :
    http://www.flashoo.co.il/eitan/wheel_g.swf


    in the MC i have bakets that move awith the whell when it rotates.
    and to keep the bakets a feeling of a real moving i do :
    PHP Code:
    wheel.onEnterFrame=function(){
      
    this._rotation+=1;
      
    this.baket1-=1;

    the thing is if i want to check which of the bakets have reached the top of the wheel i cant!
    beaucse if i try to check the _x or _y values of baket1 i recive a value like the baket has never mover from its start position!?!?!?!?
    why is that?
    how can i check which baket is on hte top?
    thnaks i nadvance
    peleg

  2. #2
    Knows where you live
    Join Date
    Oct 2004
    Posts
    944
    It checks the position inside its parent. You need to use localToGlobal.
    Dont double post.
    The greatest pleasure in life is doing what people say you cannot do.
    - Walter Bagehot
    The height of cleverness is to be able to conceal it.
    - Francois de La Rochefoucauld

  3. #3
    Junior Member
    Join Date
    Nov 2005
    Posts
    12

    can u explain please

    It checks the position inside its parent. You need to use localToGlobal.
    can u explain please ididnt understand where is the problem and whats the solution
    ?

    Dont double post
    by mistake

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center