A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Mc's on Circle

  1. #1
    Junior Member
    Join Date
    Apr 2011
    Posts
    3

    Mc's on Circle

    Hello,


    I'm using AS 2.0


    I have big MC(circle - vector). It's not perfect circle because of Flash.On this circle I have some mc's (small circles - bitmaps) --> I'm using attachMovie on Big circle. I'm rotating with big circle by 45 degrees.

    Sometimes I have to delete small circle and create another one at the same location. But after rebuild the position of new small circle is a little bit changed[mm].

    It's visible and I'm very disappointed. It happens even the rotation is 0.


    Any help ?


    thx.

  2. #2
    Junior Member
    Join Date
    Apr 2011
    Posts
    3
    Ok.



    Actually I have 2 big circles. One is bigger second one is smaller.

    The small bitmaps is moving from small circle to big circle. In that time small circle is parent of bitmaps.

    When animataion is finished I need change parent. So I need that big circle will be new parent. So I have to delete old small mitmap (mc) and create

    another one at the same location with parent(Big circle).



    If it helps basicly the code is very simply :



    _root[PlatformSrc][BallID].removeMovieClip();



    ...



    xPos = Platform4Coordinates[Index][0];
    yPos = Platform4Coordinates[Index][1];



    ...



    _root[PlatformDest].attachMovie(MCcolor, NewBallID, _root[PlatformDest].getNextHighestDepth());



    ...


    _root[PlatformDest][NewBallID]._x = xPos;
    _root[PlatformDest][NewBallID]._y = yPos;



    As I said before the coordinates is alright.



    ps: 2 big circles are at main scene.

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