A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: [AS2] Function - Stopping

  1. #1
    An FKer
    Join Date
    Sep 2005
    Location
    Ontario
    Posts
    1,167

    [AS2] Function - Stopping

    Hi everyone,

    I just have a quick question regarding functions. Is it possible to stop a function through code? For example, if I have function rotate() {} and inside that function at a given point, being able to stop it from executing?

    Thanks!

  2. #2
    FK'n_dog a_modified_dog's Avatar
    Join Date
    Apr 2003
    Location
    "aaarf"
    Posts
    9,176
    something like this ??
    PHP Code:
    var i:Number 0;

    function 
    rotate(){
    trace(i++);
    if(
    i>50onEnterFrame null;
    };

    onEnterFrame rotate

  3. #3
    An FKer
    Join Date
    Sep 2005
    Location
    Ontario
    Posts
    1,167
    Not exactly, but it did help me make a working solution. You've helped me once again, haha.

    Thanks.

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