Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Mouse trails + Flash MX

  • 15-04-2004 11:30AM
    #1
    Closed Accounts Posts: 147 ✭✭


    Hi All....
    lookin for a little help with something here...all suggestions/advice greatly appreciated. Im just teachin myself Flash in me spare time and am just getting into the actionscript side of it. Im following a tutorial on flashkit.com on how to do mouse trails. Its causing me some grief though - in that i cant get it to work.

    I create a little image like a circle or star. I convert it to a movie clip and give it the instance name star1. i then add a new layer (actions) and create 3 keyframes in the new layer. then i put in my actionscript-

    Frame1:

    Start Drag ("Star1", lockcenter)

    Frame 2:

    Set Variable: "CopyCount" = CopyCount+1
    If (CopyCount>10)
    Set Variable: "CopyCount" = 1
    End If
    Duplicate Movie Clip ("Star1", "Star" & CopyCount, CopyCount)
    Set Property ("Star" & CopyCount, Rotation) = Random(72)

    Frame 3:

    Go to and Play (2)

    when i test the movie, it just doesnt work.
    theres gotta be something im doing wrong...its really starting to wreck my head!
    so the star gets duplicated while its less than 10, and it rotates.
    all help greatly appreciated!


Advertisement