Games Achievements My Kong Sign In

Comments for Shootorial #5: ActionScript 3

« Back to Shootorial #5: ActionScript 3

PinguPoo

Mar. 20, 2015

Under rating threshold (show) I get the output error: ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller. at flash.display::DisplayObjectContainer/removeChild() at EnemyShip/kill() at EnemyShip/enterFrame() when the enemyships are out of range (when they are supposed to be removed from the stage). How do i fix this?

+ - !

(0)

Fishdawg

Nov. 04, 2013

Under rating threshold (show) function enterFrame(e:Event){ this.x += speed; if (this.x > 600){ removeEventListener(Event.ENTER_FRAME, enterFrame); stage.removeChild(this); return; } for (var i in EnemyShip.list){ if (this.hitTestObject(EnemyShip.list[i])){ removeEventListener(Event.ENTER_FRAME, enterFrame); stage.removeChild(this); EnemyShip.list[i].kill(); break; } if we say removeEventListener() why must we say return? Surely once the event listener is removed the entire function becomes inoperative? Could someone please explain what happens once an event listener is remove. I thought it automatically exists the function.

+ - !

(0)

Kelmem

Jul. 09, 2013

Under rating threshold (show) I'm getting an Error #2007: Parameter hitTestObject must be non-null... but my code is exact the same as the examples... someone can help?

+ - !

(2)

NexusBlast

Apr. 09, 2013

Under rating threshold (show) To get the explosion movie clip, you need to extract the Untitled-1.fla, open it, copy the explosion movie clip from the library, then paste it onto the stage of your game.

+ - !

(1)

sthreet300

Oct. 07, 2012

Under rating threshold (show) i'm having the same problem as chaxnoir if this is months after i will ask on moly's profile...

+ - !

(-1)

Chaxnoir

Mar. 16, 2012

Under rating threshold (show) In the source file, there is no explosion animation or such image

+ - !

(-1)

Pengisimo

Jun. 28, 2011

Under rating threshold (show) You messed up making the interval number. To make it between 500 and 1500, you do Math.random()*1000 +500, not Math.random()*500 +1000.

+ - !

(6)

randomcomm3nt

Mar. 17, 2011

Under rating threshold (show) @Kamet: I would guess that means when you type "...hitTest([something])" the something is not a valid reference to an instance.

+ - !

(-1)

LordOfPi13

Jul. 24, 2010

Under rating threshold (show) TypeError: Error #1009: Cannot access a property or method of a null object reference. at Explosion/enterFrame() I get it every time :(

+ - !

(3)

thegamemaker777

Jun. 23, 2010

Under rating threshold (show) Every thing is working accept my bullet isn't colliding with the enemy ship it just goes right through them. :( Does any one know why maybe? I have no errors & Im to page 12.

+ - !

(0)

Bloodek

Dec. 19, 2009

Under rating threshold (show) Okay, problem in step 13. I don't understand what am I supposed to do with that code you put there. But, until that, great tutorial. 5/5

+ - !

(3)

Fel_Demon

Oct. 22, 2009

Under rating threshold (show) 1. Simple is not easy. 2. People prefer easy above everything. So this Shootorial is quite okay.

+ - !

(-1)

BrainStormer

Oct. 12, 2009

Under rating threshold (show) Nice one, Moly. Neosano, maybe code will be smaller but not as logic as it is now.

+ - !

(-2)

TheAwsomeOpossum

Aug. 17, 2009

Under rating threshold (show) Neosano... don't blame Moly, blame Adobe for the method name. Also, who says push relates to that... why not to pushing a shoppting cart down the isle, or whatnot.

+ - !

(0)

Neosano

Aug. 11, 2009

Under rating threshold (show)

+ - !

(-8)

grogboy

Aug. 11, 2009

Under rating threshold (show) I'm not sure what part of the sentence "Made with permission from Kongregate" you guys don't understand... If it is true then this is Ok... can someone from Kong clear it up... anyways update was needed to AS3.

+ - !

(9)

bakerej

Aug. 10, 2009

Under rating threshold (show) lol you can go off screen and get lost.. that might be part of #6

+ - !

(2)

UnknownGuardian

Aug. 10, 2009

Under rating threshold (show) Congrats again Moly. 5/5

+ - !

(14)

  • add a comment
  • « First
  • 1 - 18
  • Last »
Developers Players Support YouTube TikTok X (Twitter) LinkedIn
Join the conversation Join Discord
Terms Privacy Code of Conduct
© 2024 Kongregate