A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: [MX] setInterval Error...

  1. #1
    Senior Member
    Join Date
    Jan 2008
    Posts
    394

    [MX] setInterval Error...

    it just keeps returning errors...
    Code:
    setInterval (closeure:int(), delay:10, );
    function int() {
    	prevFrame();
    }

  2. #2
    FK'n_dog a_modified_dog's Avatar
    Join Date
    Apr 2003
    Location
    "aaarf"
    Posts
    9,176
    for MX, use -
    PHP Code:
    myInterval setInterval(frameInterval,100);

    function 
    frameInterval() {
    trace("prevFrame();");
    prevFrame();

    NOTE: don't use int, it is a reserved word for a deprecated function.

  3. #3
    Senior Member
    Join Date
    Jan 2008
    Posts
    394
    ok I now have this but it doesn't work
    Code:
    setInterval ("frameInterval()", "10");
    function frameInterval() { 
    trace("prevFrame();"); 
    prevFrame(); 
    }

  4. #4
    FK'n_dog a_modified_dog's Avatar
    Join Date
    Apr 2003
    Location
    "aaarf"
    Posts
    9,176
    what you have now is a cock-up [[ no need for "" and () ]]

    delete that code and paste my code in its place

  5. #5
    ___________________
    Join Date
    May 2004
    Posts
    3,174
    PHP Code:
    setInterval(prevFrame,10

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