Skip navigation
sachin_mak
Currently Being Moderated

Array error

Jul 18, 2012 12:08 AM

hello every one.

 

I am working on a game in which i have stored my road_mc in array and and checked hittest with man_mc.. because of this my man_mc is able to walk within road_mc.

 

it is working fine.. but now most of time i am getting the following error.

 

Error: Error #1502: A script has executed for longer than the default timeout period of 15 seconds.

          at flash.geom::Rectangle$iinit()

          at flash.display::DisplayObject/getBounds()

          at CopyofRTS_game_fla::MainTimeline/isInside()

          at Array$/Array::_some()

          at Array/http://adobe.com/AS3/2006/builtin::some()

          at CopyofRTS_game_fla::MainTimeline/updatePos()

          at CopyofRTS_game_fla::MainTimeline/keypress()

 

 

 

can anyone give me solution for this.??

 
Replies
  • Currently Being Moderated
    Jul 18, 2012 3:04 AM   in reply to sachin_mak

    you'll need to post your code inparticular the isInside() function on the MainTimeline

     

    the line number for the error indicated in the code would also be a great help

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points