A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: [AS3] Help on Avoider Game Output Error

  1. #1
    Junior Member
    Join Date
    Apr 2012
    Posts
    1

    [AS3] Help on Avoider Game Output Error

    Hi guys,

    I'm new to ActionScript3 and I'm getting some output errors on my Avoider Flash Game. I have my different stages in different frames but when the game advances to the next stage it starts to lag (I think its because its still running the actions from the first stage). After awhile it lags really badly.

    Sorry if its a little confusing...I'm having a hard time adjusting to AS3.

    I've attached a zip of my file and also, this is the error that Im getting...

    code:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at MB_Engine_Nav_v11_cs55_fla::MainTimeline/MoveMyTarget1()
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at MB_Engine_Nav_v11_cs55_fla::MainTimeline/MoveMyTarget2()
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at MB_Engine_Nav_v11_cs55_fla::MainTimeline/MoveMyTarget3()
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at MB_Engine_Nav_v11_cs55_fla::MainTimeline/MoveMyTarget4()
    TypeError: Error #2007: Parameter hitTestObject must be non-null.
    at flash.display:isplayObject/_hitTest()
    at flash.display:isplayObject/hitTestObject()
    at MB_Engine_Nav_v11_cs55_fla::MainTimeline/begin()



    I'd appreciate ANY help and THANKS in advance!

  2. #2
    Junior Member
    Join Date
    Feb 2012
    Posts
    17
    I think you're trying to access properties of movieclips which haven't been yet created. Check that you have your targets created before you try to move them.

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