Error#1009. Actionscript error in Flash Game I'm making...

Hi,
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? So I'm looking at my AS3 and have NO idea. Here is what I have written:
stop();
//TITLE PAGE
play_game.addEventListener(MouseEvent.CLICK, startgame)
function startgame(evt:MouseEvent):void
    gotoAndStop("Name Input");
//Name and Gender input page
var userName:String;
inputField.addEventListener(Event.CHANGE, onInput)
function onInput(e:Event):void
     outputField.text = "So your name is " + inputField.text + " are you sure?";
     userName = inputField.text;
confirm_input.addEventListener(MouseEvent.CLICK, toCreationpg)
function toCreationpg(evt:MouseEvent):void
    gotoAndStop("Fem Creation");
    outputField.text = "So your name is "+ userName;
//Character Creation Page
readytostart.addEventListener(MouseEvent.CLICK, firstscene_plz)
function firstscene_plz(evt:MouseEvent):void
    gotoAndStop("Day03");
    outputField.text = "Let's make your character, "+ userName;
So, any ideas as to why I'm getting this error?
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.
Thanks in advance for any advice offered! I'll greatly appreciate it.

Yeah, that's what makes me even more confused. I have a seperate file where I'm testing the name input mechanics alone, just using this piece of actionscript, one input box with an instance inputField and a dynamic box outputField, a button, instance enter_name, that confirms and repeats the input on the next page. And it works.
inputField.addEventListener(Event.CHANGE, onInput)
var userName:String;
function onInput(e:Event):void
     outputField.text = "You typed " + inputField.text;
     userName = inputField.text;
enter_name.addEventListener(MouseEvent.CLICK, onClick)
function onClick(evt:MouseEvent):void
    gotoAndStop("frame two");
    outputField.text = "So your name is "+ userName;
So I don't get the error with that seperate file so could it be that other things are conflicting with this? Perhaps the order in which I've written my actionscript or the way I've organized my frames? In my other file, it says it's the inputField Event Listener but it'll work when I take out all the other frames and script...

Similar Messages

  • Learning ActionScript for developing FLASH Games

    Hi ,
    I dont whether i can post this question here or there is any other Forum for ActionScript , if so sorry for that .
    Now to the question , I know some what ActionScript like Events , custom UI Components , and classes  as required for simple FLEX development .
    To what extent we need to learn ActionScript to develop Flash Games ??
    Can anybody suggest me as where to start with , what is the correct approach and is there any IDE avialable for that .
    Please share your ideas on this     

    hi,
    Depends on what sort of games you want to write, firstly you will definitely need to become familiar with actionscript, most gaming and 3d engines for flash games are done in pure actionscript. You can developer your games in flex even if you don't uses mxml basically the real power of games is in the code which means actionscript.
    http://pushbuttonengine.com/  a gaming engine for flex/ flash
    http://away3d.com/  3d engine for flex/flash
    http://www.flashrealtime.com/flash-game-library-engine-list/   a site that will have you reading lots of interesting stuff.
    David.

  • Errors in Maze Wall in Flash Game

    Hi - I put in the codes for the upPressed, downPressed, rightPressed, and leftPressed (to test it) and these are the errors that came up. (these are the errors for the (upPressed) but the other keys are having the same errors.  I put the font in bold text the errors lines starts with.  My goal is to not have the car go through the wall --which it still does.  Could someone please let me know how to fix the errors, thanks.   
    Errors:
    Scene 1, Layer 'Actions', Frame 1, Line 110
    1120: Access of undefined property speed.
    Scene 1, Layer 'Actions', Frame 1, Line 110
    1120: Access of undefined property i.
    Scene 1, Layer 'Actions', Frame 1, Line 110
    1120: Access of undefined property i.
    Scene 1, Layer 'Actions', Frame 1, Line 114
    1120: Access of undefined property wallhitBool.
    Scene 1, Layer 'Actions', Frame 1, Line 112
    1120: Access of undefined property i.
    Scene 1, Layer 'Actions', Frame 1, Line 110
    1120: Access of undefined property i.
    Here is the program:
    import flash.events.KeyboardEvent;
    stop();
    /* Move with Keyboard Arrows
    Allows the specified symbol instance to be moved with the keyboard arrows.
    Instructions:
    1. To increase or decrease the amount of movement, replace the number 5 below with the number of pixels you want the symbol instance to move with each key press.
    Note the number 5 appears four times in the code below.
    wallDet1_mc.enabled= false;
    wallDet2_mc.enabled= false;
    wallDet3_mc.enabled= false;
    wallDet4_mc.enabled= false;
    wallDet5_mc.enabled= false;
    wallDet6_mc.enabled= false;
    wallDet7_mc.enabled= false;
    wallDet8_mc.enabled= false;
    wallDet9_mc.enabled= false;
    wallDet10_mc.enabled= false;
    var upPressed:Boolean = false;
    var downPressed:Boolean = false;
    var leftPressed:Boolean = false;
    var rightPressed:Boolean = false;
    carP_mc.addEventListener(Event.ENTER_FRAME, fl_MoveInDirectionOfKey_3);
    stage.addEventListener(KeyboardEvent.KEY_DOWN, fl_SetKeyPressed_3);
    stage.addEventListener(KeyboardEvent.KEY_UP, fl_UnsetKeyPressed_3);
    stage.addEventListener(Event.ENTER_FRAME, everyFrame);
    function fl_MoveInDirectionOfKey_3(event:Event)
        if (upPressed)
            carP_mc.y -= 5;
        if (downPressed)
            carP_mc.y += 5;
        if (leftPressed)
            carP_mc.x -= 5;
        if (rightPressed)
            carP_mc.x += 5;
    function fl_SetKeyPressed_3(event:KeyboardEvent):void
        switch (event.keyCode)
            case Keyboard.UP:
                upPressed = true;
                break;
            case Keyboard.DOWN:
                downPressed = true;
                break;
            case Keyboard.LEFT:
                leftPressed = true;
                break;
            case Keyboard.RIGHT:
                rightPressed = true;
                break;
    function fl_UnsetKeyPressed_3(event:KeyboardEvent):void
        switch (event.keyCode)
            case Keyboard.UP:
                upPressed = false;
                break;
            case Keyboard.DOWN:
                downPressed = false;
                break;
            case Keyboard.LEFT:
                leftPressed = false;
                break;
            case Keyboard.RIGHT:
                rightPressed = false;
                break;
    function everyFrame(event:Event):void {
    var mazehit:Boolean = false;
    if (upPressed) {
    mazehit=false
    for(i = 0; i < speed; i++) {
    if(carP_mc.hitTestObject(this["wallDet"+i+"_mc"])){
    wallhitBool=true;
    break;
    if(mazehit){
    carP_mc.x += 5;
    if (downPressed) {
    mazehit=false
    for(i = 0; i < speed; i++) {
    if(carP_mc.hitTestObject(this["wallDet"+i+"_mc"])){
    wallhitBool=true;
    break;
    if(mazehit){
    carP_mc.x -= 5;
    if (leftPressed) {
    mazehit=false
    for(i = 0; i < speed; i++) {
    if(carP_mc.hitTestObject(this["wallDet"+i+"_mc"])){
    wallhitBool=true;
    break;
    if(mazehit){
    carP_mc.x += 5;
    if (rightPressed) {
    mazehit=false
    for(i = 0; i < speed; i++) {
    if(carP_mc.hitTestObject(this["wallDet"+i+"_mc"])){
    wallhitBool=true;
    break;
    if(mazehit){
    carP_mc.x -= 5;
    /**onClipEvent(enterFrame){
        if(this.hitArea(carP_mc._x,carP_mc._y, true)){                   
            carP_mc._x=carP_mc._x;
            carP_mc._y=carP_mc._y;
    //Keyboard Listener on stage
    //stage.addEventListener(KeyboardEvent.KEY_DOWN, theKeysDown);
    //stage.addEventListener(KeyboardEvent.KEY_UP, theKeysUp);
    //Makes MazeArt follow the movement of the path_mc
    /*addEventListener(Event.ENTER_FRAME, onNewFrame01);
    function onNewFrame01(e:Event):void{
        maze_mc.x=wallDet1_mc.x;
        maze_mc.y=wallDet1_mc.y
    function Car_P(e:KeyboardEvent):void
        //maze_mc.addEventListener(KeyboardEvent, wallDet1_mc);
        //wallDet1_mc.addEventListener(KeyboardEvent.KEY_DOWN, maze_mc);

    After making the revisions.  Here are the latest errors:
    TypeError: Error #2007: Parameter hitTestObject must be non-null.
        at flash.display::DisplayObject/_hitTest()
        at flash.display::DisplayObject/hitTestObject()
        at MazeProject4_fla::MainTimeline/everyFrame()
    TypeError: Error #2007: Parameter hitTestObject must be non-null.
        at flash.display::DisplayObject/_hitTest()
        at flash.display::DisplayObject/hitTestObject()
        at MazeProject4_fla::MainTimeline/everyFrame()
    TypeError: Error #2007: Parameter hitTestObject must be non-null.
        at flash.display::DisplayObject/_hitTest()
        at flash.display::DisplayObject/hitTestObject()
        at MazeProject4_fla::MainTimeline/everyFrame()
    revised Program:
    import flash.events.KeyboardEvent;
    import flash.display.MovieClip;
    import flash.events.Event;
    stop();
    /* Move with Keyboard Arrows
    Allows the specified symbol instance to be moved with the keyboard arrows.
    Instructions:
    1. To increase or decrease the amount of movement, replace the number 5 below with the number of pixels you want the symbol instance to move with each key press.
    Note the number 5 appears four times in the code below.
    wallDet1_mc.enabled= false;
    wallDet2_mc.enabled= false;
    wallDet3_mc.enabled= false;
    wallDet4_mc.enabled= false;
    wallDet5_mc.enabled= false;
    wallDet6_mc.enabled= false;
    wallDet7_mc.enabled= false;
    wallDet8_mc.enabled= false;
    wallDet9_mc.enabled= false;
    wallDet10_mc.enabled= false;
    var speed:Number=5;
    var upPressed:Boolean = false;
    var downPressed:Boolean = false;
    var leftPressed:Boolean = false;
    var rightPressed:Boolean = false;
    //var i;
    var wallhit;
    var mazehit;
    carP_mc.addEventListener(Event.ENTER_FRAME, fl_MoveInDirectionOfKey_3);
    stage.addEventListener(KeyboardEvent.KEY_DOWN, fl_SetKeyPressed_3);
    stage.addEventListener(KeyboardEvent.KEY_UP, fl_UnsetKeyPressed_3);
    stage.addEventListener(Event.ENTER_FRAME, everyFrame);
    function fl_MoveInDirectionOfKey_3(event:Event)
        if (upPressed)
            carP_mc.y -= 5;
        if (downPressed)
            carP_mc.y += 5;
        if (leftPressed)
            carP_mc.x -= 5;
        if (rightPressed)
            carP_mc.x += 5;
    function fl_SetKeyPressed_3(event:KeyboardEvent):void
        switch (event.keyCode)
            case Keyboard.UP:
                upPressed = true;
                break;
            case Keyboard.DOWN:
                downPressed = true;
                break;
            case Keyboard.LEFT:
                leftPressed = true;
                break;
            case Keyboard.RIGHT:
                rightPressed = true;
                break;
    function fl_UnsetKeyPressed_3(event:KeyboardEvent):void
        switch (event.keyCode)
            case Keyboard.UP:
                upPressed = false;
                break;
            case Keyboard.DOWN:
                downPressed = false;
                break;
            case Keyboard.LEFT:
                leftPressed = false;
                break;
            case Keyboard.RIGHT:
                rightPressed = false;
                break;
    function everyFrame(event:Event):void {
    var mazehit:Boolean = false;
    var wallhit:Boolean = false;
    if (upPressed) {
    mazehit=true
    for(var i:int=0; i < speed; i++) {
    if(carP_mc.hitTestObject(this["wallDet"+i+"_mc"])){
    wallhit=true
    break;
    if(mazehit){
    carP_mc.x += 5;
    if (downPressed) {
    mazehit=true
    //for(var i:int=0; i < speed; i++) {
    if(carP_mc.hitTestObject(this["wallDet"+i+"_mc"])){
    wallhit=true
    //break;
    if(mazehit){
    carP_mc.x -= 5;
    if (leftPressed) {
    mazehit=true
    //for(var i:int=0; i < speed; i++)
    //for(var i:int=0; i < speed; i++) {
    if(carP_mc.hitTestObject(this["wallDet"+i+"_mc"])){
    wallhit=true
    //break;
    if(mazehit){
    carP_mc.x += 5;
    if (rightPressed) {
    mazehit=true
    //for(var i:int=0; i < speed; i++)
    //for(var i:int=0; i < speed; i++) {
    if(carP_mc.hitTestObject(this["wallDet"+i+"_mc"])){
    wallhit=true
    //break;
    if(mazehit){
    carP_mc.x -= 5;
    /**onClipEvent(enterFrame){
        if(this.hitArea(carP_mc._x,carP_mc._y, true)){                   
            carP_mc._x=carP_mc._x;
            carP_mc._y=carP_mc._y;
    //Keyboard Listener on stage
    //stage.addEventListener(KeyboardEvent.KEY_DOWN, theKeysDown);
    //stage.addEventListener(KeyboardEvent.KEY_UP, theKeysUp);
    //Makes MazeArt follow the movement of the path_mc
    /*addEventListener(Event.ENTER_FRAME, onNewFrame01);
    function onNewFrame01(e:Event):void{
        maze_mc.x=wallDet1_mc.x;
        maze_mc.y=wallDet1_mc.y
    function Car_P(e:KeyboardEvent):void
        //maze_mc.addEventListener(KeyboardEvent, wallDet1_mc);
        //wallDet1_mc.addEventListener(KeyboardEvent.KEY_DOWN, maze_mc);

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

    hello,
    I am trying to load a menu as an external file ....  and getting this :  TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at com::menu()
    here is my code:
    if(!menuLoader){   
    var menuRequest:URLRequest = new URLRequest("menu.swf");
    var menuLoader:Loader = new Loader();
    menuLoader.load(menuRequest);
    container.addChild(menuLoader);
    menuLoader.x = 700;
    menuLoader.y = 50;
    can anyone give me a helping hand?
    thanks in advance.

    use:
    here is my code:
    if(menuLoader!=null){   
    var menuRequest:URLRequest = new URLRequest("menu.swf");
    var menuLoader:Loader = new Loader();
    menuLoader.load(menuRequest);
    container.addChild(menuLoader);
    menuLoader.x = 700;
    menuLoader.y = 50;

  • Error 1009 when run on different server

    My app has a master detail layout populated by remote calls
    to cfcs.
    A cfc returns a query for the master list and that part works
    fine. After the master list is populated or when selecting any row
    in the master list another cfc is called to return an object to
    populate the detail area.
    This part also works fine on our testing server but when I
    try it on our production server I get an error 1009:
    TypeError: Error #1009: Cannot access a property or method of
    a null
    object reference.
    at orders::OrdersList/::showOrder()
    at orders::OrdersList/___Operation2_result()
    Both servers appear to be identical (Windows 2003, CF version
    7.02
    latest hotfixes)
    I've checked the cfc and it work as expected on both
    machines. Both machines have identical files, i.e., cfc's and swf.
    Any idea why the application would work on one server but not
    on the
    other?
    Thanks

    Hi Tracy,
    Both the testing and production servers are separate from my
    development environment. I'm not using a security sandbox. Other
    cfc's which return queries (not objects) work ok.
    This is the data service call:
    <mx:method name="getOrder" result="showOrder(event.result
    as ORDERS)" fault="FAB.faultHandler(event)" />
    The faultHandler doesn't get called.
    showOrder starts like this:
    private function showOrder(result:ORDERS):void
    Alert.show('showing order');
    currentOrder = result;
    The alert displays after the error message so I assume that
    showOrder is not receiving the result.
    Bob

  • Error #1009 in my Platform Game! Please Help!!!

    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
    Here is the code for Scene 1:
    hero.gotoAndStop('still');
    var Key:KeyObject = new KeyObject(stage);
    var vy:Number=0;
    var gravity:Number=2;
    var jumped:Boolean = false;
    stage.addEventListener(Event.ENTER_FRAME,onenter)(true);
    function onenter(e:Event):void{
    vy+=gravity;
    if(! ground.hitTestPoint(hero.x,hero.y,true)) {
      hero.y+vy;
    if(ground.hitTestPoint(hero.x+(hero.width/2), hero.y-(hero.height/2), true)) {
      hero.x-=13;
    if(ground.hitTestPoint(hero.x-(hero.width/2), hero.y-(hero.height/2), true)) {
      hero.x+=13;
    if (vy>10) {
      vy=10;
    for (var i:int = 0; i<10; i++) {
      if (ground.hitTestPoint(hero.x,hero.y,true)) {
       hero.y--;
       vy=6;
       jumped=true;
    if(door.hitTestObject(hero)){
        gotoAndPlay(1,"Scene 2");
    if(hero.y>300){
      vy=6;
      jumped=true;
      if(Key.isDown(Key.UP) && jumped){
       vy=-13;
       jumped=false;
       hero.y+=vy;
    if(Key.isDown(Key.RIGHT)){
      hero.x+=10;
      hero.scaleX=1;
      hero.gotoAndStop('walking');
      }else if(Key.isDown(Key.LEFT)){
      hero.x-=10;
      hero.scaleX=-1;
      hero.gotoAndStop('walking');
      }else{
       hero.gotoAndStop('still');
    And for Scene 2...
    hero.gotoAndStop('still');
    var Key1:KeyObject =KeyObject(stage);
    var vy1:Number=0;
    var gravity1:Number=2;
    var jumped1:Boolean = false;
    stage.addEventListener(Event.ENTER_FRAME,onenter1)(true);
    function onenter1(e:Event):void{
    vy1+=gravity;
    if(! ground.hitTestPoint(hero.x,hero.y,true)) {
      hero.y+vy;
    if(ground.hitTestPoint(hero.x+(hero.width/2), hero.y-(hero.height/2), true)) {
      hero.x-=13;
    if(ground.hitTestPoint(hero.x-(hero.width/2), hero.y-(hero.height/2), true)) {
      hero.x+=13;
    if (vy1>10) {
      vy1=10;
    for (var i:int = 0; i<10; i++) {
      if (ground.hitTestPoint(hero.x,hero.y,true)) {
       hero.y--;
       vy1=6;
       jumped1=true;
    if(door.hitTestObject(hero)){
        gotoAndPlay(1,"Scene 2");
    if(hero.y>300){
      vy1=6;
      jumped1=true;
      if(Key.isDown(Key.UP) && jumped1){
       vy1=-13;
       jumped1=false;
       hero.y+=vy;
    if(Key.isDown(Key.RIGHT)){
      hero.x+=10;
      hero.scaleX=1;
      hero.gotoAndStop('walking');
      }else if(Key.isDown(Key.LEFT)){
      hero.x-=10;
      hero.scaleX=-1;
      hero.gotoAndStop('walking');
      }else{
       hero.gotoAndStop('still');
    Please reply as soon as possible, and thanks for your time
    swiatekalex555

    Ok sorry about my misunderstanding. Here's the code with the errors Highlighted. I also downloaded a "KeyObject.as" package, and the contents of that are on the bottom.
    hero.gotoAndStop('still');
    var Key:KeyObject = new KeyObject(stage);
    var vy:Number=0;
    var gravity:Number=2;
    var jumped:Boolean = false;
    stage.addEventListener(Event.ENTER_FRAME,onenter)(true);
    function onenter(e:Event):void{
    vy+=gravity;
    if(! ground.hitTestPoint(hero.x,hero.y,true)) {
      hero.y+vy;
    if(ground.hitTestPoint(hero.x+(hero.width/2), hero.y-(hero.height/2), true)) {
      hero.x-=13;
    if(ground.hitTestPoint(hero.x-(hero.width/2), hero.y-(hero.height/2), true)) {
      hero.x+=13;
    if (vy>10) {
      vy=10;
    for (var i:int = 0; i<10; i++) {
      if (ground.hitTestPoint(hero.x,hero.y,true)) {
       hero.y--;
       vy=6;
       jumped=true;
    if(door.hitTestObject(hero)){
        gotoAndPlay(1,"Scene 2");
    if(hero.y>300){
      vy=6;
      jumped=true;
      if(Key.isDown(Key.UP) && jumped){
       vy=-13;
       jumped=false;
       hero.y+=vy;
    if(Key.isDown(Key.RIGHT)){
      hero.x+=10;
      hero.scaleX=1;
      hero.gotoAndStop('walking');
      }else if(Key.isDown(Key.LEFT)){
      hero.x-=10;
      hero.scaleX=-1;
      hero.gotoAndStop('walking');
      }else{
       hero.gotoAndStop('still');
    And for Scene 2...
    hero.gotoAndStop('still');
    var Key1:KeyObject =KeyObject(stage);
    var vy1:Number=0;
    var gravity1:Number=2;
    var jumped1:Boolean = false;
    stage.addEventListener(Event.ENTER_FRAME,onenter1)(true);
    function onenter1(e:Event):void{
    vy1+=gravity;
    if(! ground.hitTestPoint(hero.x,hero.y,true)) {
      hero.y+vy;
    if(ground.hitTestPoint(hero.x+(hero.width/2), hero.y-(hero.height/2), true)) {
      hero.x-=13;
    if(ground.hitTestPoint(hero.x-(hero.width/2), hero.y-(hero.height/2), true)) {
      hero.x+=13;
    if (vy1>10) {
      vy1=10;
    for (var i:int = 0; i<10; i++) {
      if (ground.hitTestPoint(hero.x,hero.y,true)) {
       hero.y--;
       vy1=6;
       jumped1=true;
    if(door.hitTestObject(hero)){
        gotoAndPlay(1,"Scene 2");
    if(hero.y>300){
      vy1=6;
      jumped1=true;
      if(Key.isDown(Key.UP) && jumped1){
       vy1=-13;
       jumped1=false;
       hero.y+=vy;
    if(Key.isDown(Key.RIGHT)){
      hero.x+=10;
      hero.scaleX=1;
      hero.gotoAndStop('walking');
      }else if(Key.isDown(Key.LEFT)){
      hero.x-=10;
      hero.scaleX=-1;
      hero.gotoAndStop('walking');
      }else{
       hero.gotoAndStop('still');
    the KeyObject.as
    package {
    import flash.display.Stage;
    import flash.events.KeyboardEvent;
    import flash.ui.Keyboard;
    import flash.utils.Proxy;
    import flash.utils.flash_proxy;
      * The KeyObject class recreates functionality of
      * Key.isDown of ActionScript 1 and 2
      * Usage:
      * var key:KeyObject = new KeyObject(stage);
      * if (key.isDown(key.LEFT)) { ... }
    dynamic public class KeyObject extends Proxy {
      private static var stage:Stage;
      private static var keysDown:Object;
      public function KeyObject(stage:Stage) {
       construct(stage);
      public function construct(stage:Stage):void {
       KeyObject.stage = stage;
       keysDown = new Object();
       stage.addEventListener(KeyboardEvent.KEY_DOWN, keyPressed);
       stage.addEventListener(KeyboardEvent.KEY_UP, keyReleased);
      flash_proxy override function getProperty(name:*):* {
       return (name in Keyboard) ? Keyboard[name] : -1;
      public function isDown(keyCode:uint):Boolean {
       return Boolean(keyCode in keysDown);
      public function deconstruct():void {
       stage.removeEventListener(KeyboardEvent.KEY_DOWN, keyPressed);
       stage.removeEventListener(KeyboardEvent.KEY_UP, keyReleased);
       keysDown = new Object();
       KeyObject.stage = null;
      private function keyPressed(evt:KeyboardEvent):void {
       keysDown[evt.keyCode] = true;
      private function keyReleased(evt:KeyboardEvent):void {
       delete keysDown[evt.keyCode];
    Help if you can,
    swiatekalex555

  • Adobe Air + Box2D.swc = TypeError: Error #1009 // New way to handle .swc files in Flash for iOS Apps?

    Hi,
    I need your help please - I have to update one of my iOS Apps. In this App I use Box2d for a simple maze game (it's an app for kids). When I publish & test this game on my Mac it works fine. I can drag my Hero (fish) through this Maze and all collision detections, gravity etc. work perfect.
    When I test it on my iPad it doesn't work. The device debugger shows this error message:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
      at global$init()
      at global$init()
      at Box2DAS.Common::b2Base$/initialize()[/Users/jan/Documents/_Projekte/Spielplatz/Universal_ Retina/src/com/Box2DAS/Common/b2Base.as:31]
      at wck::WCK/create()[/Users/jan/Documents/_Projekte/Spielplatz/Universal_Retina/src/com/wck/ WCK.as:26]
      at misc::Entity/ensureCreated()[/Users/jan/Documents/_Projekte/Spielplatz/Universal_Retina/s rc/com/misc/Entity.as:50]
      at misc::Entity/handleAddedToStage()[/Users/jan/Documents/_Projekte/Spielplatz/Universal_Ret ina/src/com/misc/Entity.as:100]
      at misc::Entity/handleAddedToStage()
    Line 31: loader = new CLibInit();
    I guess "CLibInit" should come from the .swc file.
    The thing is:
    I didn't change anything in this maze game - it seems this has to do something with the new Flash and/or Adobe Air version. Box2D.swc file is included:
    It always worked like this - and it works when testing it on my Mac - but it is no longer working on my current system.
    So I started my Mac from an older system (10.9.5 on an external HD) and published the App from Flash CS6 and Adobe Air 13.0 - then it suddenly worked on my iPad as before. I was able to tap an the fish and drag it arround.
    The same project / app published from my current OS X 10.10 + Flash CC 2014 + Adobe Air 15.0.0.302 is not working. I always receive this Error Message - I can not drag the fish - nothing happens. And I have no idea why this happens and what else I could do. I searched the whole day for a solution but didn't find anything.
    So did anything change by the way Flash and/or Air handles .swc files? Is there an other way to include: import cmodule.Box2D.* / CLibInit ?
    Please - if anyone has a clue - please let me know!!
    Best regards
    Jan

    Update:
    There is also an Android Version of this App. I just published and tested a new version of it on my kindle fire & Samsung Galaxy Tab 2. On both Tablets the maze works perfect. I'm able to drag the fish around etc.
    Then I published this Android Version for iOS and tested it on my iPad. Again I'm getting the Error message:
    TypeError: Error #1009: Cannot access a property or method of a null object reference. 
      at global$init() 
      at global$init() 
      at Box2DAS.Common::b2Base$/initialize()[/Users/jan/Documents/_Projekte/Spielplatz/Universal_ Retina/src/com/Box2DAS/Common/b2Base.as:31] 
      at wck::WCK/create()[/Users/jan/Documents/_Projekte/Spielplatz/Universal_Retina/src/com/wck/ WCK.as:26] 
      at misc::Entity/ensureCreated()[/Users/jan/Documents/_Projekte/Spielplatz/Universal_Retina/s rc/com/misc/Entity.as:50] 
      at misc::Entity/handleAddedToStage()[/Users/jan/Documents/_Projekte/Spielplatz/Universal_Ret ina/src/com/misc/Entity.as:100] 
      at misc::Entity/handleAddedToStage
    ...and the fish is stuck - I can't drag it - nothing happens. So this error only occurs when I publish the App for iOS - as an .ipa. Did anything change in the way Air handles .swc files?
    I'm totally confused
    If anybody has an idea what I could try - PLEASE LET ME KNOW!!

  • ActionScript TypeError: Error #1009?

    Okay, so I was on this website earlier, www.peterdavid.net and tried to view a video that Vevo was hosting directly on the site's homepage, when it loaded up till about 56% an ActionScript error came up saying basicallly something like:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at com.vevo.mx::MenuScreenContainer/setModelInfo()
        at EmbeddedPlayer/bootstrapCompleteHandler()
        at flash.events::EventDispatcher/dispatchEventFunction()
        at flash.events::EventDispatcher/dispatchEvent()
        at org.swizframework::Swiz$/dispatchEvent()
        at com.vevo.controller::BootstrapController/checkAsyncCalls()
        at com.vevo.controller::BootstrapController/youTubeReadyHandler()
        at flash.events::EventDispatcher/dispatchEventFunction()
        at flash.events::EventDispatcher/dispatchEvent()
        at org.swizframework::Swiz$/dispatchEvent()
        at EmbeddedPlayer/playerReadyHandler()
        at EmbeddedPlayer/__corePlayer_playerReady()
        at flash.events::EventDispatcher/dispatchEventFunction()
        at flash.events::EventDispatcher/dispatchEvent()
        at mx.core::UIComponent/dispatchEvent()
        at com.vevo.view.controls::CorePlayer/playerReadyHandler()
        at flash.events::EventDispatcher/dispatchEventFunction()
        at flash.events::EventDispatcher/dispatchEvent()
        at mx.core::UIComponent/dispatchEvent()
        at com.vevo.view.controls::AS3YouTubePlayer/onPlayerReady()
        at flash.events::EventDispatcher/dispatchEventFunction()
        at flash.events::EventDispatcher/dispatchEvent()
        at com.google.youtube.application::SwfProxy/onExternalEvent()
        at flash.events::EventDispatcher/dispatchEventFunction()
        at flash.events::EventDispatcher/dispatchEvent()
        at com.google.youtube.model::YouTubeEnvironment/broadcastExternal()
        at com.google.youtube.application::VideoApplication/build()
        at com.google.youtube.application::Application/onInited()
        at com.google.youtube.application::VideoApplication/onInited()
        at com.google.youtube.application::Application/initData()
        at com.google.youtube.application::VideoApplication/initData()
        at com.google.youtube.application::Application/init()
        at com.google.youtube.application::VideoApplication/init()
        at com.google.youtube.application::Application/onInit()
    Now my question is really, first of all, is this a problem with the website or with my computer, second, how do I fix this, and yeah I don't know anything about ActionScript, I was not trying to write one at all I simply came across a website and this happened during the video playing. Any thoughts?
    EDIT: not sure if it would help, but the options I had were to Dismiss All and Continue.
    Thanks in advance.

    Usually this type of error is caused by the website, rather than your Flash Player installation.  If you tell us what video on the website is causing it, someone here can test it.
    What OS and browser are you using?
    Also, is 'third-party content' checked on the Flash Player Settings Manager at http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager.html ?

  • Actionscript is on main timeline: Error #1009 comes up.

    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at neonSign_fla::MainTimeline/flickerIt()
    The Code on Frame 1:
    import flash.filters.*;
    var audio:Sound = new Sound();
    var req:URLRequest = new URLRequest("Buzz.mp3");
    audio.load(req);
    audio.play();
    //var channel:SoundChannel= new SoundChannel();
    addEventListener(Event.ENTER_FRAME, flickerIt);
    //addEventListener(Event.EXIT_FRAME, killIt);
    function flickerIt(evt:Event):void{
    var filters:Array = sign.filters;
    var glow:GlowFilter = filters[2];
    glow.strength = Math.random()*.5 + .35;
    sign.filters = filters ;
    So Why am I receiving the error when the actionscript is on the main timeline.

    The 1009 error indicates that one of the objects being targeted by your code is out of scope.  This could mean that the object....
    - is not in the display list
    - doesn't have an instance name (or the instance name is mispelled)
    - does not exist in the frame where that code is trying to talk to it
    - is animated into place but is not assigned instance names in every keyframe for it
    - is one of two or more consecutive keyframes of the same objects with no name assigned in the preceding frame(s).
    If you go into your Publish Settings Flash section and select the option to Permit debugging, your error message should have a line number following the frame number which will help you isolate which object is involved.

  • TypeError: Error #1009: Cannot access a property or method of a null object reference. at code::Game

    Hi, I’m doing a game for an assignment for college. Using Flash CS 5. I got this error
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at code::Game1()
    When I tried to go to the next page, I thought I linked correctly. Can anyone help me? Thanks
    you can find the coding here http://pastebin.com/iz8a6w6Z

    click file>publish settings>swf and tick "permit debugging".  retest.
    the problematic line number will be in the error message.  that will tell you which reference you're trying to use that is null.

  • OpenScript ActionScript Error from Adobe Flash Player 9

    I get a popup ActionScript Error from Adobe Flash Player 9 when trying to record a Flex Tree object using OpenScript 9.2.1.0 Production. Specifically, I click on the Triangle that opens/closes the view of the child nodes underneath the parent node of a Tree. Initially, the triangle arrow already pointing down and the child node is already showing. When I click on the triangle, the node underneath goes up and disappears under its parent node and the traingle is then pointing to the parent node.
    When I click this triangle in Firefox without OpenScript recording, I don't get any errors, popups, or issues. It seems to work correctly. During OpenScript recording, the recording seems to crash with a popup that is titled "Adobe Flash Player 9" and has the text "An ActionScript error has occurred" with the following error message:
    Error: Unable to find automation method 'mx.events.TreeEvent' for class '[object OSAutomationClass]'.
         at mx.automation::AutomationManager/recordAutomatableEvent()[C:\work\flex\dmv_automation\projects\automation\src\mx\automation\AutomationManager.as:1680]
         at mx.automation.delegates.core::UIComponentAutomationImpl/recordAutomatableEvent()[C:\work\flex\dmv_automation\projects\automation\src\mx\automation\delegates\core\UIComponentAutomationImpl.as:281]
         at flash.events::EventDispatcher/dispatchEventFunction()
         at flash.events::EventDispatcher/dispatchEvent()
         at mx.core::UIComponent/dispatchEvent()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\core\UIComponent.as:9156]
         at mx.controls::Tree/http://www.adobe.com/2006/flex/mx/internal::dispatchTreeEvent()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\controls\Tree.as:3334]
         at mx.controls::Tree/http://www.adobe.com/2006/flex/mx/internal::onTweenEnd()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\controls\Tree.as:2193]
         at mx.effects::Tween/endTween()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\effects\Tween.as:524]
         at mx.effects::Tween/http://www.adobe.com/2006/flex/mx/internal::doInterval()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\effects\Tween.as:565]
         at mx.effects::Tween$/timerHandler()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\effects\Tween.as:179]
         at flash.utils::Timer/_timerDispatch()
         at flash.utils::Timer/tick()
    I can click "Dismiss All" from the Adobe popup and Firefox isn't affected. Openscript doesn't appear to have any issues and the recording can be continued or stopped. It records the click on the tree and the "Dismiss All" from the popup both as "Click object("@id='main'") as type "web" instead of "flexFT".
    I am using OATS 9.2.1.0 with Firefox 3.6.17. I am testing a Flex 3.3 SDK built application. I installed the Adobe Flash Player 9 that came with the Flex SDK 3.3 before installing OATS.
    Any help on this issue is greatly appreciated.
    Some other information that may prove to be useful: I cannot seem to get OpenScript to consistently play back the actions on the same tree described above. Sometimes it works and sometimes it does not. I've tried using "Select Tree", "Select List", and "Click Tree" and each one is inconsistent on playback. It will report "Target Not Found".
    I have the console output for a "Target Not Found" failure below, where line 100 is ".select("GRID1>server1", TriggerEvent.Mouse," from the following Java generated on recording with OpenScript:
    flexFT
    .list(
    15,
         "/web:window[@index='0' or @title='My Title']/web:document[@index='0']/flex:application[@automationIndex='index:-1' and @label='' and @className='main' and @automationName='main' and @automationClassName='FlexApplication' and @id='main']/flex:canvas[@automationIndex='index:1' and @label='' and @className='mx.containers.Canvas' and @automationName='mainCanvas' and @automationClassName='FlexCanvas' and @id='mainCanvas']/flex:dividedBox[@automationIndex='index:16' and @label='' and @className='view.MainMediator' and @automationName='mediator' and @automationClassName='FlexDividedBox' and @id='mediator']/flex:accordion[@label='' and @automationName='index:0' and @id='null' and @automationIndex='index:0' and @className='mx.containers.Accordion' and @automationClassName='FlexAccordion']/flex:canvas[@automationIndex='index:1' and @label='My%20View2' and @className='view.my.MyNavigator' and @automationName='My%20View2' and @automationClassName='FlexCanvas' and @id='null']/flex:canvas[@label='' and @automationName='index:1' and @id='null' and @automationIndex='index:1' and @className='mx.containers.Canvas' and @automationClassName='FlexCanvas']/flex:list[@automationIndex='index:2' and @className='view.MyGridTree' and @automationName='index:2' and @automationClassName='FlexList' and @id='null']")
    .select("GRID1>server1", TriggerEvent.Mouse,
         KeyModifier.None);
    think(1.0);
    Console Output:
    11:29:09,093 INFO [EntryPoint] Started with arguments: -port 7777 -jwg C:\OracleATS\OFT\test06_ff\test06_ff.jwg
    11:29:09,250 INFO [EntryPoint] Received StartScriptEvent
    11:29:09,250 INFO [EntryPoint] Running "test06_ff" ...
    11:29:09,453 INFO [1] Initialized script service "oracle.oats.scripting.modules.utilities.api.UtilitiesService"
    11:29:09,453 INFO [1] Initialized script service "oracle.oats.scripting.modules.browser.api.BrowserService"
    11:29:09,453 INFO [1] Initialized script service "oracle.oats.scripting.modules.functionalTest.api.FunctionalTestService"
    11:29:09,484 INFO [1] Initialized script service "oracle.oats.scripting.modules.webdom.api.WebDomService"
    11:29:09,484 INFO [1] Initialized script service "oracle.oats.scripting.modules.flexFT.api.FlexFTService"
    11:29:09,484 INFO [1] Initializing VU 1 for script test06_ff
    11:29:21,546 INFO [1] Step: [1] Redirect (/Page1/)
    11:29:21,718 INFO [1] Step: [2] Login Page (/main.html)
    11:29:32,218 INFO [1] Step: [3] My Title (/main.html)
    11:30:11,453 ERROR [1] Error in section Run at line (script.java:100). Target not found
    oracle.oats.scripting.modules.flexFT.common.api.internal.exceptions.FlexFTException: Target not found
         at oracle.oats.scripting.modules.flexFT.common.api.internal.utilities.FlexUtil.checkResults(FlexUtil.java:293)
         at oracle.oats.scripting.modules.flexFT.api.elements.AbstractFlexFTElement.replayEvent(AbstractFlexFTElement.java:99)
         at oracle.oats.scripting.modules.flexFT.api.elements.ListBase.select(ListBase.java:170)
         at script.run(script.java:100)
         at oracle.oats.scripting.modules.basic.api.IteratingVUser.run(IteratingVUser.java:325)
         at oracle.oats.scripting.modules.basic.api.internal.IteratingAgent.run(IteratingAgent.java:717)
         at java.lang.Thread.run(Thread.java:619)
    11:30:11,453 ERROR [1] Iteration 1 failed at line (script.java:100). Target not found
    oracle.oats.scripting.modules.flexFT.common.api.internal.exceptions.FlexFTException: Target not found
         at oracle.oats.scripting.modules.flexFT.common.api.internal.utilities.FlexUtil.checkResults(FlexUtil.java:293)
         at oracle.oats.scripting.modules.flexFT.api.elements.AbstractFlexFTElement.replayEvent(AbstractFlexFTElement.java:99)
         at oracle.oats.scripting.modules.flexFT.api.elements.ListBase.select(ListBase.java:170)
         at script.run(script.java:100)
         at oracle.oats.scripting.modules.basic.api.IteratingVUser.run(IteratingVUser.java:325)
         at oracle.oats.scripting.modules.basic.api.internal.IteratingAgent.run(IteratingAgent.java:717)
         at java.lang.Thread.run(Thread.java:619)
    11:30:12,468 INFO [1] Finished VU 1 for script test06_ff
    Thanks,
    John

    I get a popup ActionScript Error from Adobe Flash Player 9 when trying to record a Flex Tree object using OpenScript 9.2.1.0 Production. Specifically, I click on the Triangle that opens/closes the view of the child nodes underneath the parent node of a Tree. Initially, the triangle arrow already pointing down and the child node is already showing. When I click on the triangle, the node underneath goes up and disappears under its parent node and the traingle is then pointing to the parent node.
    When I click this triangle in Firefox without OpenScript recording, I don't get any errors, popups, or issues. It seems to work correctly. During OpenScript recording, the recording seems to crash with a popup that is titled "Adobe Flash Player 9" and has the text "An ActionScript error has occurred" with the following error message:
    Error: Unable to find automation method 'mx.events.TreeEvent' for class '[object OSAutomationClass]'.
         at mx.automation::AutomationManager/recordAutomatableEvent()[C:\work\flex\dmv_automation\projects\automation\src\mx\automation\AutomationManager.as:1680]
         at mx.automation.delegates.core::UIComponentAutomationImpl/recordAutomatableEvent()[C:\work\flex\dmv_automation\projects\automation\src\mx\automation\delegates\core\UIComponentAutomationImpl.as:281]
         at flash.events::EventDispatcher/dispatchEventFunction()
         at flash.events::EventDispatcher/dispatchEvent()
         at mx.core::UIComponent/dispatchEvent()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\core\UIComponent.as:9156]
         at mx.controls::Tree/http://www.adobe.com/2006/flex/mx/internal::dispatchTreeEvent()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\controls\Tree.as:3334]
         at mx.controls::Tree/http://www.adobe.com/2006/flex/mx/internal::onTweenEnd()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\controls\Tree.as:2193]
         at mx.effects::Tween/endTween()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\effects\Tween.as:524]
         at mx.effects::Tween/http://www.adobe.com/2006/flex/mx/internal::doInterval()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\effects\Tween.as:565]
         at mx.effects::Tween$/timerHandler()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\effects\Tween.as:179]
         at flash.utils::Timer/_timerDispatch()
         at flash.utils::Timer/tick()
    I can click "Dismiss All" from the Adobe popup and Firefox isn't affected. Openscript doesn't appear to have any issues and the recording can be continued or stopped. It records the click on the tree and the "Dismiss All" from the popup both as "Click object("@id='main'") as type "web" instead of "flexFT".
    I am using OATS 9.2.1.0 with Firefox 3.6.17. I am testing a Flex 3.3 SDK built application. I installed the Adobe Flash Player 9 that came with the Flex SDK 3.3 before installing OATS.
    Any help on this issue is greatly appreciated.
    Some other information that may prove to be useful: I cannot seem to get OpenScript to consistently play back the actions on the same tree described above. Sometimes it works and sometimes it does not. I've tried using "Select Tree", "Select List", and "Click Tree" and each one is inconsistent on playback. It will report "Target Not Found".
    I have the console output for a "Target Not Found" failure below, where line 100 is ".select("GRID1>server1", TriggerEvent.Mouse," from the following Java generated on recording with OpenScript:
    flexFT
    .list(
    15,
         "/web:window[@index='0' or @title='My Title']/web:document[@index='0']/flex:application[@automationIndex='index:-1' and @label='' and @className='main' and @automationName='main' and @automationClassName='FlexApplication' and @id='main']/flex:canvas[@automationIndex='index:1' and @label='' and @className='mx.containers.Canvas' and @automationName='mainCanvas' and @automationClassName='FlexCanvas' and @id='mainCanvas']/flex:dividedBox[@automationIndex='index:16' and @label='' and @className='view.MainMediator' and @automationName='mediator' and @automationClassName='FlexDividedBox' and @id='mediator']/flex:accordion[@label='' and @automationName='index:0' and @id='null' and @automationIndex='index:0' and @className='mx.containers.Accordion' and @automationClassName='FlexAccordion']/flex:canvas[@automationIndex='index:1' and @label='My%20View2' and @className='view.my.MyNavigator' and @automationName='My%20View2' and @automationClassName='FlexCanvas' and @id='null']/flex:canvas[@label='' and @automationName='index:1' and @id='null' and @automationIndex='index:1' and @className='mx.containers.Canvas' and @automationClassName='FlexCanvas']/flex:list[@automationIndex='index:2' and @className='view.MyGridTree' and @automationName='index:2' and @automationClassName='FlexList' and @id='null']")
    .select("GRID1>server1", TriggerEvent.Mouse,
         KeyModifier.None);
    think(1.0);
    Console Output:
    11:29:09,093 INFO [EntryPoint] Started with arguments: -port 7777 -jwg C:\OracleATS\OFT\test06_ff\test06_ff.jwg
    11:29:09,250 INFO [EntryPoint] Received StartScriptEvent
    11:29:09,250 INFO [EntryPoint] Running "test06_ff" ...
    11:29:09,453 INFO [1] Initialized script service "oracle.oats.scripting.modules.utilities.api.UtilitiesService"
    11:29:09,453 INFO [1] Initialized script service "oracle.oats.scripting.modules.browser.api.BrowserService"
    11:29:09,453 INFO [1] Initialized script service "oracle.oats.scripting.modules.functionalTest.api.FunctionalTestService"
    11:29:09,484 INFO [1] Initialized script service "oracle.oats.scripting.modules.webdom.api.WebDomService"
    11:29:09,484 INFO [1] Initialized script service "oracle.oats.scripting.modules.flexFT.api.FlexFTService"
    11:29:09,484 INFO [1] Initializing VU 1 for script test06_ff
    11:29:21,546 INFO [1] Step: [1] Redirect (/Page1/)
    11:29:21,718 INFO [1] Step: [2] Login Page (/main.html)
    11:29:32,218 INFO [1] Step: [3] My Title (/main.html)
    11:30:11,453 ERROR [1] Error in section Run at line (script.java:100). Target not found
    oracle.oats.scripting.modules.flexFT.common.api.internal.exceptions.FlexFTException: Target not found
         at oracle.oats.scripting.modules.flexFT.common.api.internal.utilities.FlexUtil.checkResults(FlexUtil.java:293)
         at oracle.oats.scripting.modules.flexFT.api.elements.AbstractFlexFTElement.replayEvent(AbstractFlexFTElement.java:99)
         at oracle.oats.scripting.modules.flexFT.api.elements.ListBase.select(ListBase.java:170)
         at script.run(script.java:100)
         at oracle.oats.scripting.modules.basic.api.IteratingVUser.run(IteratingVUser.java:325)
         at oracle.oats.scripting.modules.basic.api.internal.IteratingAgent.run(IteratingAgent.java:717)
         at java.lang.Thread.run(Thread.java:619)
    11:30:11,453 ERROR [1] Iteration 1 failed at line (script.java:100). Target not found
    oracle.oats.scripting.modules.flexFT.common.api.internal.exceptions.FlexFTException: Target not found
         at oracle.oats.scripting.modules.flexFT.common.api.internal.utilities.FlexUtil.checkResults(FlexUtil.java:293)
         at oracle.oats.scripting.modules.flexFT.api.elements.AbstractFlexFTElement.replayEvent(AbstractFlexFTElement.java:99)
         at oracle.oats.scripting.modules.flexFT.api.elements.ListBase.select(ListBase.java:170)
         at script.run(script.java:100)
         at oracle.oats.scripting.modules.basic.api.IteratingVUser.run(IteratingVUser.java:325)
         at oracle.oats.scripting.modules.basic.api.internal.IteratingAgent.run(IteratingAgent.java:717)
         at java.lang.Thread.run(Thread.java:619)
    11:30:12,468 INFO [1] Finished VU 1 for script test06_ff
    Thanks,
    John

  • Using papervision in flash builder and getting TypeError: Error #1009: when using object.pitch(5)

    When i use papervision in flash builder and i am doing a test, when i render a sphere using papervision with the following code it renders me the sphere.
    When i add a line sphere.pitch(2);      ||
    sphere.yaw(2);
    sphere.roll(2);
    i get the following error,
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at PvTest/onRenderTick()[D:\Android 3D\PvTest\src\PvTest.as:39]
    Can anyone help me figure out the error
    For additional Info, these are the imports i am doing:
    import org.papervision3d.objects.primitives.Sphere;
    import org.papervision3d.view.BasicView;

    I followed the steps and read some of your comments on the same top topic in another thread. When I put it on the first frame it was okay but the next button on that page had the same problem.  So what I am guessing is that I have to either create a document class or put the actions where the buttons are.  Am I understanding that correctly?  In the other thread in which you helped someone else; there was so comments about document class.  I found a tutorial on it and the way I understand it is that it you can put you actions in an external document.  But you have to include in the event listener the frame in which you want that action to happen.
    Thaks for your help.  And patience.

  • Flash Error #1009 -- NEED HELP!

    Okay.  I am relatively new to AS3 and I have been working on creating a visual timer.  My code is very simple, and I can't figure out why Flash Pro CS6  is giving this error message in the Output:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
              at TMR_fla::MainTimeline/timer1hit()
    My code looks exactly like the following:
    import flash.events.Event;
    stop();
    function timer1move():void {
              timer1.x-= 8;
    var MyInterval1:uint = setInterval(timer1move, 50);
    timer1.addEventListener(Event.ENTER_FRAME, timer1hit);
    function timer1hit(e:Event) {
              if(timer1.hitTestObject(finish1)) {
                        gotoAndStop(2);
                        clearInterval(MyInterval1);
    I cannot figure out why FLash is giving me this error.  Mainly because my code works great!  It does exactly what I told it to do, it goes to Frame 2 and stops.  But in the Output the error message just keeps repeating forever.  I have looked all over this forum and found multiple topics on this problem but none of them help.  Few extra key notes:
    1.  My second frame has absolutely ZERO code.  Just some scribbles on stage to indicate that I've made it to the 2nd Frame.
    2.  My stage for frame 1 looks like this:
    The object on the right is my timer.  The rectangle on the left is my finish.
    Rectangle has an instance name of finish1
    Timer has an instance name of timer1
    I have triple checked the instance names, I know that they are all spelled right.  Can somone help me? 

    If the error is repeating forever, it is probably because you have tha ENTER_FRAME listener continuing on.  If you are in frame 2 and any of the objects that the ENTER_FRAME event handler function is targeting are only in frame 1, then that will be the source of the error.  In your event handler you should remove that listener before you change frames.
    timer1.addEventListener(Event.ENTER_FRAME, timer1hit);
    function timer1hit(e:Event) {
              if(timer1.hitTestObject(finish1)) {
                        timer1.removeEventListener(Event.ENTER_FRAME, timer1hit);
                        clearInterval(MyInterval1);
                        gotoAndStop(2);

  • Chart causing error 1009 when enabling compatibility mode in Flash Builder 4

    Hello.
    I'm trying to use the chart components in Flash Builder 4. I'm using Flex SDK 4, but had to turn on the "Flex 3 compatibility mode" for some off-topic reasons.
    I simply created a new application and copied the code from the DateTimeAxis class example: http://www.codigoactionscript.org/langref/as3/mx/charts/DateTimeAxis.html#includeExamplesS ummary
    When running the example, the following error is reported (sorry, it is in italian: it's simply the "null object" error):
    TypeError: Error #1009: Impossibile accedere a una proprietà o a un metodo di un riferimento oggetto null.
    at mx.charts.chartClasses::CartesianChart/updateMultipleAxesStyles()[E:\dev\4.0.0\frameworks \projects\datavisualization\src\mx\charts\chartClasses\CartesianChart.as:2598]
    at mx.charts.chartClasses::CartesianChart/commitProperties()[E:\dev\4.0.0\frameworks\project s\datavisualization\src\mx\charts\chartClasses\CartesianChart.as:1360]
    at mx.core::UIComponent/validateProperties()[E:\dev\4.0.0\frameworks\projects\framework\src\ mx\core\UIComponent.as:7772]
    at mx.managers::LayoutManager/validateProperties()[E:\dev\4.0.0\frameworks\projects\framewor k\src\mx\managers\LayoutManager.as:572]
    at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.0.0\frameworks\projects\frame work\src\mx\managers\LayoutManager.as:700]
    at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.0.0\frameworks\projec ts\framework\src\mx\managers\LayoutManager.as:1072]
    Is there a solution to this bug? We really need to use charts AND keep the Flex 3 compatibility mode.

    I use SDK 4.1 but I also get the error: (Flashbuilder 4.0.1 in Flex 3 compatibility mode)
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at mx.charts.chartClasses::CartesianChart/updateMultipleAxesStyles()[E:\dev\4.0.0\frameworks \projects\datavisualization\src\mx\charts\chartClasses\CartesianChart.as:2598]
        at mx.charts.chartClasses::CartesianChart/commitProperties()[E:\dev\4.0.0\frameworks\project s\datavisualization\src\mx\charts\chartClasses\CartesianChart.as:1360]
        at mx.core::UIComponent/validateProperties()[E:\dev\4.0.0\frameworks\projects\framework\src\ mx\core\UIComponent.as:7772]
        at mx.managers::LayoutManager/validateProperties()[E:\dev\4.0.0\frameworks\projects\framewor k\src\mx\managers\LayoutManager.as:572]
        at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.0.0\frameworks\projects\frame work\src\mx\managers\LayoutManager.as:700]
        at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.0.0\frameworks\projec ts\framework\src\mx\managers\LayoutManager.as:1072]
    So I guess it is not solved....
    regards,

  • TypeError: Error #1009 - (Null reference error) With Flash.

    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() --"
    The structure of the project is like, it has the different 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 one another. 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.
    http://tinyurl.com/2alvlfx
    I really got stuck at this point. Any help will be great.I had not seen the particular solution i am looking for anywhere yet, though Error #1009 is common.

    Thanks, for putting effort in helping me. I debugged the movie.The line of code being shown is this >>
    if(__setPropDict[ContactOutP1]== undefined ||  ! ((int(__setPropDict[ContactOutP1]) >= 1 && int(__setPropDict[ContactOutP1]) <=5))){
          __setPropDict[ContactOutP1] = currentFrame;
         __setProp_ContactOutP1_ContactOut_Contents_0();
    And i think this third line of code is where the exception is being thrown. But as i understood, this code is not written by the developer. I had nto seen this code, anywhere in the actions. Hopefully this will give you hint about what is exactly causing the issue and what can be done to resolve it.

Maybe you are looking for

  • Can't get quick time to work with windows thumbnail

    When I purchased a new camera, unlike my old camera that saved files as .avi and which allowed me to use the files with all software and which allowed me to view automatically the thumbnails for the .avi file, my new camera used the garbage .mov from

  • Unable to see the BPM Flow Trace

    Hi, can anybody help,I'm not get the BPM flow trace in EM console but I'm able to see the BPEL flow trace,currently I'm working in 11.1.1.5.Thanks in advance.

  • Problem Running a Batch Input!

    Good Morning My Friends! Let me explain how I work today. I am running an RFC. This RFC executes a JOB. JOB executes a Batch Input BACK GROUND. My problem is this. If I only run the batch input it works, but when I call the RFC and it creates the job

  • Required Field name

    Hi,    I am creating  a report for FI module.   Using the Transaction code KSH3 we are getting the cost center group with discription. I need the node and discriptions field name. I tried with F1, but its going a structure area. So how to get the det

  • Error message after downloading e book

    Can somebody help me : after downloading a ebook by bol.com I have to download the adobe digital editions. everytime Im doing this i receive the error message: e_adapt_request_expired and a lot of text behind this. Can somebody help me .... Pauline