A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Stop an Onclip event

  1. #1
    Junior Member
    Join Date
    Sep 2009
    Posts
    6

    Stop an Onclip event

    onClipEvent (enterFrame) {
    _x = random(5) + 240;
    _y = random(5) + 180;
    }

    How do I stop this piece of code at a specific frame?

    Probably real simple but I have tried to insert stop(); at the specific frame I wanted to stop at but to no avail.

  2. #2
    Flash/Flex Developer samac1068's Avatar
    Join Date
    Apr 2007
    Location
    Here, no there
    Posts
    1,813
    Not sure what you're asking. Each time the frame is loaded, this code will fire. If you want to specify when the code is executed, then you need a separate function that is called when you want to fire of the lines.
    Some people are like Slinkies, not really good for anything, but they bring a smile to your face when pushed down the stairs.

Tags for this Thread

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