A Flash Developer Resource Site

Results 1 to 10 of 10

Thread: Another rotation problem

Threaded View

  1. #1
    Join Date
    Mar 2001
    South West of England

    Another rotation problem

    Hi All,

    Ok I have question here before and it must have bamboozled everyone as no one had even an idea of how to go about this, so I will try am simplify it:

    I have one MC of a circle that spins clockwise or counterclockwise depending upon the mous position, this is achieved using a startDrag function.

    What I am trying to do is have a series of buttons that when pressed will stop the drap function and rotate the circle to a given point, for instance 90 degrees, 180 degrees, 270 degrees and 360 degrees. When the mouse is moved off the button th circle resumes its startDrag rotations.

    The code attached to a 'dragcontroller' MC is

    xPos = getProperty("_root.nav1.dragControl", _x);
    xPos = xPos +(10);
    setProperty("_root.nav1.nav", _rotation, getProperty("_root.nav1.nav", _rotation)+(xPos/25));

    In addition the following code is attached to the first frame of the movie:
    startDrag(_root.nav1.dragControl, true);
    fscommand("allowscale", "false");

    I have attached asimplified FLA for any that think they can crack this one.

    I am having a nightmare so could someone at least give me some suggestions.

    Thanks to all who answer in advance

    Attached Files Attached Files

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