A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Stopping onEnterFrame

  1. #1
    Huh, Radio.
    Join Date
    Nov 2006
    Location
    IL
    Posts
    22

    Stopping onEnterFrame

    So I am using a script that onEnterFrame will load variables from a php file. However, once the variables have been loaded I want it to stop, it's just calling the variables over and over again and spamming my server... how can I stop the onEnterFrame action from looping?

  2. #2
    up to my .as in code Chris_Seahorn's Avatar
    Join Date
    Dec 2004
    Posts
    4,389
    That is absolutely the worst way to load variables from a server side.You might want to post your movie (attach) or the entire script so someone here can get you on a different method. Seriously

  3. #3
    Huh, Radio.
    Join Date
    Nov 2006
    Location
    IL
    Posts
    22
    Code:
    onEnterFrame = function(){
    	loadVariablesNum("messing.php", 0, "POST");
    }
    if (check == 1){
    	gotoAndStop(2);
    }
    I could of course use a button or something along those lines, but I wanted it to load without the user doing anything. I just started communicating with PHP via AS tonight, so I'm new to all of this.

    [edit]

    I definetly fixed this... just had to get away from my computer. I just removed onEnterFrame altogether and just used "loadVariablesNum" all on it's own.
    Last edited by pyramidhead; 12-02-2006 at 01:18 AM.

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