Flash Advisor logo
:: Desktop Shortcut
:: Flash Help
Advice from Experts

Closed Thread
Results 1 to 2 of 2

Thread: Simple code

  1. #1

    Default Simple code

    Hello to all,

    just a couple lines of code that im sure you will all find easy.
    I have a movie clip symbol of a twinkling star that i want to play at a random location on the stage each time it loops.(between 0 and 800 on _x and 0 and 400 on _y.

    cheers

  2. # ADS
    Join Date
    Always
    Posts
    Many
     
  3. #2
    Join Date
    Aug 2007
    Location
    Germany
    Posts
    390

    Default

    hey,

    take a close look at Math.random()

    that is all you need for this.

    Hope it helps!
    Regaeds,
    A.
    hardware is the part of a computer which can be kicked

    Things that NTD thaught me:

    {An optimist sees the glass as half full. A pessimest sees the glass as half empty.
    A programmer sees the glass as twice the size it needs to be.}


    Please no questions via private and / or instant message!


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Sponsors
Create Speaking Characters for your website and Flash movies. 15 Day Free Trial