ActionScript 3.0 :: Flash Video Game Getting Error #1009

Mar 12, 2010

I'm currently in the process of making a flash video game where you fly around as a pigeon (named Barnaby) in a park and poop on people's heads while dodging obstacles like balloons and stuff . Right now, though, I can't seem to get rid of this dang error "Error #1009: Cannot access a property or method of a null object reference."[code]...

View 2 Replies


Similar Posts:


Professional :: Flash Error 1009 Popup On Clicking Play Button Of Game?

Jun 2, 2011

How to solve this error as it will keep popping out whenever I click on the play button of the game I'm creating.
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at index_fla::MainTimeline/frame2()
at flash.display::MovieClip/gotoAndStop()
at index_fla::MainTimeline/clickPlay()

View 5 Replies

ActionScript 3.0 :: Error #1009 With Game

Aug 21, 2010

i keep getting this error, and when i play my game when u punch or use the fist the grannys stop moving, and disapeer after the first punch when i just walk up to them without even having to punch.and then all the 1009 errors start flying for my checkFront() and grannyMove()ill post all the methods involving the problem

Code:
public function grandmaSpawn(event:Event):void
{
if(spawn == 1){
for (var i:int = 0; i<=4; i++){

[Code]...

View 1 Replies

ActionScript 3.0 :: Error #1009 In My Platform Game?

Jul 22, 2010

In my basic platform game I have a "hero" that can walk and jump on the "ground." There is also a door to the next scene, which is the next level.The first scene works fine, but "TypeError: Error #1006: value is not a function. at Charles3_fla::MainTimeline/frame1()" pops up once in the output. It works however, and I'm not worried about it. The second I go throught the door though, Scene 2 opens, but then starts flashing as "TypeError: Error #1009: Cannot access a property or method of a null object reference. at Charles3_fla::MainTimeline/onenter()" pops up A LOT in the output. I don't know how to fix it, and would like help. P.S. I am using Adobe CS5 with actionscript 3
 
[Code]...

View 26 Replies

ActionScript 3.0 :: Platform Game Error #1009?

Feb 13, 2010

I am creating a platform game and am getting the following error:#1009: Cannot access a property or method of a null object referenceThis error happens when I remove all children from the stage on line 154 of the Robbery.as class. Im guessing that maybe it is still listening for event in the other classes but I'm unsure how to remove these from within the document class.

View 1 Replies

ActionScript 3.0 :: 1009 Error In Very Basic Game?

Apr 2, 2009

I'm currently making the basic groundwork to a game. On my main timeline I have two frames. The first frame has the 'start screen' let me say, which actually is a little different to the norm in that you can move your character across the screen and activate thinkg to pop up like instructions, so kind of making agame of your standard first screen if that makes sense, like the opening to the game Braid.I have it so that when the character touches (hitTestObject) a square the frame goes to (gotoAndStop) frame 2, and then on frame 2 the actual game will start.The error is this: TypeError: Error #1009: Cannot access a property or method of a null object reference.at gameBasis_fla::MainTimeline/startGame()It shows on the output panel for my three functions - one function is for keypresses, the other for an enter_frame popup animation and the other is the function which takes the game from frame 1 to frame 2!

ActionScript Code:
function fadeOutF(evt:Event):void{
if (characterBoy_mc.hitTestObject(house_mc)){

[code].....

View 11 Replies

ActionScript 3.0 :: Error 1009 When Reached To Next Level In Game

May 13, 2011

I'm making my first flash game but I've run into some problems. Here is the game: [URL]. Everytime I reach the next level I get this error:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at Game_fla::MainTimeline/movecircle()

I also want the timer to stop counting when I die or finish. I've tried
Code:
if (platforms.currentFrame == platforms.totalFrames -1) {
timer.stop();
}
which didn't work.

View 12 Replies

ActionScript 3.0 :: Error#1009 - Game Is Getting Really Big, Really Fast And Messy?

Oct 20, 2010

I'm making a Flash game and rather than putting all the AS3 on a seperate .as file, I'm throwing it on the timeline, which may or may not be a mistake since this game is getting really big, really fast and messy.And so I'm getting this error when I test:

TypeError: Error #1009: Cannot access a property or method of a null object reference at GameBeta_MainTimeline_fla::MainTimeline/frame1()

From what I've read on this error, it refers to something that isn't instantiated yet, like something that's out of order? Like I'm referring to something that doesn't exist at the point in time that I'm referring to it?

stop();
//TITLE PAGE
play_game.addEventListener(MouseEvent.CLICK, startgame)[code].....

Before I had each page with it's own Actionscript and buttons inside their own movieclips on the timeline. That was getting confusing so I took everything out of the movieclips to place everything on one timeline and have one layer of Actionscript hoping to simplify things and find the problem easier. No luck. It's supposed to have a Title page and a button that goes to the 2nd page where you input your name, and while you type, it shows your name before you confirm by hitting another button that finally goes to the Character Creation page. When I test, I just get that Error#1009, it'll get to the 2nd page for the name input, but the text fields act wacky and the button to proceed isn't working. I'm hoping that when I find the source of this error, the rest will be fixed as well.

View 7 Replies

ActionScript 3.0 :: Error #1009 - TypeError: Error #1009: Cannot Access A Property Or Method Of A Null Object Reference

Mar 26, 2009

TypeError: Error #1009: Cannot access a property or method of a null object reference. at MethodInfo-11() where is methodInfo-11?

[Code]....

View 4 Replies

ActionScript 3.0 :: Error 1009 Video In FF Or Chrome

Jan 6, 2010

I am trying to load an FLV with the code below. It works OK in Internet Explorer but not in FireFox or Chrome. When in FF or Chrome I get the 1009 error.

[Code]...

View 1 Replies

Error #1009 Error #1009: Cannot Access A Property Or Method Of A Null Object Reference

Aug 9, 2010

Error #1009: Cannot access a property or method of a null object reference.

This is the error I cannot seem to understand. On the stage I have a movie clip, mcTree. It's keyframe is in frame 3143. There is no tween or anything. In frame 3144, I have the following actionscript:

mcTree.gotoAndStop(2);

I publish the movie and I get to frame 3144 then BAM TypeError: Error #1009: Cannot access a property or method of a null object reference.

at 2file_fla::MainTimeline/frame3144()

As you can tell, I'm more than 3000 frames into my animation here and have made it this far using this method, and it has worked.

View 4 Replies

ActionScript 3.0 :: Create An Inventory For An Adventure Game - Getting Error #1009: Cannot Access A Property Or Method Of A Null Object Reference?

Jan 17, 2010

Im trying to create an inventory for an adventure game (escape the room esque interface).Basically I have an array inventory system - you click on an object that is listed in the array,it moves the item off the main screen and into your inventory (bottom of the screen) and resizes it. Then you can use the object as an inventory object.This is fine on frame one (where all the items are at the moment).But when you move to another frame and then come back to frame one the items are back on the screen in their original position but now non clickable(aswell as being in your inventory working how they should). If i put the items in frame two and no items in frame one I get the following message and the items become unclickable:

Code:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at Inventory/makeInventoryItems()
at InventoryOne

Im guessing the errors are because the items don't exist on all frames but the code does as it is in the games properties as the class type (class Inventory), but i have no idea how to get around it.

Inventory/makeInventoryItems() is the following AS code.

Code:

function makeInventoryItems(arrayOfItems:Array) {
for(var i:int=0;i<arrayOfItems.length;i++) {
arrayOfItems[i].addEventListener(MouseEvent.CLICK, getItem);[code]............

View 2 Replies

ActionScript 3.0 :: Loading Video - Error 1009 In Firefox But Not IE

Jan 7, 2010

I am trying to load a video and I get the 1009 error in Firefox, but not in Internet Explorer.
var myVideo:NetConnection = new NetConnection();
myVideo.connect(null);
var newStream:NetStream = new NetStream(myVideo);
var videoHolder:Video = new Video(720, 480);stage.addChild(videoHolder);
videoHolder.attachNetStream(newStream);
[Code] .....

View 6 Replies

ActionScript 3.0 :: Click The "new Game" Button And Getting TypeError: Error #1009?

Dec 13, 2009

i am getting the error below when i click the "new game" button :

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at aircombat1_fla::MainTimeline/moveMyfighter()

you can see the movie here : [URL]

My code look like this :

stop();
scoreDisplay.text=score.toString();
timeDisplay.text=seconds.toString();
Mouse.show();

[Code].....

View 1 Replies

ActionScript 3.0 :: Video Viewer Error #1009: Cannot Access A Property Or Method Of A Null Object Reference

Feb 6, 2009

I have made an xml video viewer which works great, however I am getting output errors when I run it- I'm not sure why or what is being affected

[Code]....

View 0 Replies

Professional :: TypeError: Error #1009 - (Null Reference Error) With Flash?

Jun 13, 2010

I am not an expert in flash, but i do work with AS and tweak Flash projects , though not having deep expertise in it. Currently i need to revamp a flash website done by one another guy, and the code base given to me, upon execution is throwing the following error."--- TypeError: Error #1009: Cannot access a property or method of a null objectreference.atNewSite_fla::MainTimeline/__setProp_ContactOutP1_ContactOut_Contents_ 0() at NewSite_fla::MainTimeline/frame1() --"The structure of the project is like, it has theifferent sections split into different movie clips. There is no single main timeline, but click actions on different areas of seperate movie clips will take them between oneanother.All the AS logic of event handling are written inline in FLA , no seperate Document class exists.

Preloader Movie clip is the first one getting loaded. As i understood the error is getting thrown initially itself, and it is not happening due to any Action script logic written inline, because it is throwing error even before hitting the first inline AS code.I am not able to figure Out what exactly it causing the problem, or where to resolve it. I setup the stuff online, for reference if anybody want to take a look at it, and here is the link.You need to have flash debugger turned ON in your browser, if need to see the exception getting triggered.

View 7 Replies

Flash :: Flex - TypeError: Error #1009 - (Null Reference Error)

Jun 13, 2010

I am not an expert in flash, but I do work with AS and tweak Flash projects, though not having deep expertise in it. Currently I need to revamp a flash website done by one another guy, and the code base given to me, upon execution is throwing the following error: TypeError: Error #1009: Cannot access a property or method of a null object reference. at NewSite_fla::MainTimeline/__setProp_ContactOutP1_ContactOut_Contents_0() at NewSite_fla::MainTimeline/frame1()

[Code]...

View 1 Replies

Professional :: Embed A Video Window From UStream - TypeError: Error #1009: Cannot Access A Property Or Method Of A Null Object Reference

Aug 24, 2010

I have a web page in joomla and I embed a video window from UStream that allows my users to see or hear our transmissions. Every time I load the page in which the embeded window is, I receive this error message:

[Code]...

I posted this message before but I notice it was no longer posted. I have no knowledge of programming so I am lost.

View 1 Replies

ActionScript 3.0 :: Flash Strange Sound Error - Error #1009?

Apr 18, 2012

sometimes I get this strange error during gameplay:

Code:
TypeError: Error #1009: Cannot access a property or method of a null object reference.

[code]...

I still don't know what causes the error. The only thing I discovered is that sometimes an object is null inside of my SoundManager. But I don't know why. I already checked all appropriate arrays if something's missing there but all seems to be ok there.

[code]...

View 3 Replies

Actionscript 3 :: Error #1009 When Adding An FLVPlayback Via "Import Video" Into Another Scene

Dec 21, 2009

In Flash CS4, if I create a new AS3 file and use File > Import > Import Video to bring in an mp4 video it works great. However, if I create a new scene and import the video into that, I instantly get this error at runtime:

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at Untitled_fla::MainTimeline/__setProp___id0__Scene2_Layer1_0()
at Untitled_fla::MainTimeline/frame1()

Is this normal behaviour? I don't get this error using AS2. How can I add the FLVPlayback object to a different scene in AS3 without explosions?

View 1 Replies

Flash :: "TypeError: Error #1009: Cannot Access A Property Or Method Of A Null Object Reference." Error On AIR Project For Using A Button

Dec 29, 2010

So my problem here is, I'm working on my Adobe Air project, so I decided to code some buttons to be able to navigate. The problem here is that I get a error for trying to do so. Here is my code.

[Code]...

I do not see what is wrong actually, I tried this on a blank non-AIR file, and it worked well.

View 2 Replies

ActionScript 3.0 :: Flash Error #1009?

May 27, 2011

Class called 'bg' dynamically creates a background that varies depending on the stage width & height.

Code:
package
{

[code].....

View 3 Replies

Flash :: Error 1009 When Using A ScrollPane Component

May 6, 2010

I have the same problem of this post [url]...

But I try to put the component in the parent fla and it doesn't change anything and I still have the 1009 error. Any idea ?

View 1 Replies

Flash :: Getting An Error #1009 On A Timer Variable

Feb 22, 2011

I'm having Error #1009: Cannot access a property or method of a null object reference. I'm not exactly sure how to solve this problem myself, I've traced to see if the object var enemySpawnTimer:Timer is actually null and it isn't. So I don't understand why I'm getting this error.

Anyway here is my code, it's a class I use to spawn blocks that fall from the top of the screen to the bottom and is removed from the stage once it reaches the bottom of the screen.

[Code]...

View 2 Replies

IDE :: Flash Website Scripting And 1009 Error

Jun 27, 2009

I'm pretty new to flash and I'm trying to create a website in Flash CS3 using AS3. I've googled some tutorials and came up with a website that auto sizes to fit the browser screen. A full-browser website. I will add my sourcefiles as well as my code.

[Code]...

View 1 Replies

ActionScript 3.0 :: Flash Error #1009: Get On The....Stage?

Aug 9, 2010

keep getting the same error("TypeError: Error #1009: Cannot access a property or method of a null object reference.at FullFla$iinit()")-I gather that I am attempting to call an object that is not presently on the stage, BUT I am unclear exactly what steps to take to correct it?...Add a wrapper DisplayObject or do I change an the Event that I am listening for?

package {
import flash.display.StageAlign;
import flash.display.StageScaleMode;

[code]....

View 1 Replies

ActionScript 3.0 :: Flash - TypeError: Error #1009

Dec 14, 2010

Source File

Source Code

Code:
///////////////////////////////////////////POPUPS/////////////////////////////////////////////
img1_popup.visible = false;
img2_popup.visible = false;
img3_popup.visible = false;

[code].....

View 2 Replies

ActionScript 3.0 :: Error #1009 In Flash Menu For Website?

Mar 28, 2010

I can't for the life of me seem to find the problem with this 1009 error.I have a Flash Menu as a header for my website with the following actionscript:

//residential buttonresBtn.addEventListener(MouseEvent.CLICK, resLink);function resLink(event:MouseEvent):void {  navigateToURL(new URLRequest("residential.html"));}//commercial

[code]....

View 7 Replies

Media Server :: Use The Latest AMI On AWS For Flash - Error #1009 On 4.0.2 On AWS

Jul 12, 2011

When trying to use the latest AMI on AWS for Flash Media Server, everything seems to work right going upstream (server connects, stream goes to server), but the F4M file doesn't seem to make any client or OMFS happy. I get the following error - "The F4M document contains errors. Error #1009".

View 6 Replies

Flash - Error 1009 When Trying To Send Byte To Socket?

Oct 22, 2010

I'v been looking and below is my code.
import flash.net.Socket;
var mySocket = new Socket
mySocket.connect("127.0.0.1", 5331)
var sym:SimpleButton;
sym.addEventListener(MouseEvent.MOUSE_DOWN, symbtn);
function symbtn(event:MouseEvent):void {
mySocket.writeUTFBytes(1);
}

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved