How to access a property in a static vi reference

Hi,
I'm completely new to Labview and I'm working on a project that includes controlling CANalyzer from LabView by an ActiveX control.
In CANalyzer I have a CAPL function that I need to call from LV. The problem is that the function must be created in the onInit event when starting a canalyzer measurement. The only way I have found to create the function is to use a "reg event call back" and create the function in a "static vi reference". This works and I can call the funtion from that vi, but I'm not able to call the function from anywhere else but from the "static vi reference" and since it must be strictly typed I can not add any output connector where I can add a reference.
I've been trying to solve this for thee days now and it's starting to feel hope less.
In VB the complete code would look something like:
    Dim WithEvents gCANApp As CANalyzer.Application
    Dim WithEvents gMeasurement As CANalyzer.Measurement
    Dim gSendFunction As CANalyzer.CAPLFunction
    Dim Y
    Set gCANApp = New CANalyzer.Application
    gCANApp.Open ("C:\...xxxx.cfg")
    Set gMeasurement = gCANApp.Measurement
    gMeasurement.Start
    gSendFunction.Call
   'Measurement OnInit event handler
   Private Sub gMeasurement_OnInit()
       Set gSendFunction = gCANApp.CAPL.GetFunction("MyFunction")
   End Sub
This would work fine since I have a reference to gSendFunction in my main code.
My LV code looks like this:
and my static vi ref looks like this:
What I think I need is a reference to the data thread coming from "GetFunction"
If any one can help me solve this I would be very happy!
Best Regards
Henrik

Hi,
you could add another input to your static vi ref where you input the reference to a reference display element which sits in your other vi (upper image).
Then you could make a signaling value change to the reference display element from within your static vi ref.
In your other vi set up an event structure to detect the value change. In that event close the vi - this will let you have the desired reference as output of that vi.
Regards Florian

Similar Messages

  • Cannot access a property of a null object reference

    Hi guys:)
    I am trying to make a platform game with obstacles and coins. The coins are defined in a class. The code works fine until the player has lost all his health and is gameover. Then I get the error message that I have written above.
    Here the code:
    stop();
    import flash.events.KeyboardEvent;
    import flash.events.Event;
    import flash.display.MovieClip;
    import flash.utils.Timer;
    import flash.display.Sprite;
    //vars (define events and functions)
    var bulletHolder:Sprite=new Sprite();
    addChild(bulletHolder);
    var KeyThatIsPressed:uint;
    var rightKeyIsDown:Boolean=false;
    var leftKeyIsDown:Boolean=false;
    var upKeyIsDown:Boolean=false;
    var downKeyIsDown:Boolean=false;
    var spaceKeyIsDown:Boolean=false;
    var cantShoot:Boolean=false;
    var canShoot:Boolean=false;
    var pistolCounter:int=0;
    var pistolCountFrame:int=12;
    var coinCount:int;
    var hitObstacle:Boolean=false; // keeps track if obstacle is hit
    var health=6;
    health_txt.text=health.toString();
    //propreties for player
    stage.addEventListener(KeyboardEvent.KEY_DOWN, PressAKey);
    stage.addEventListener(KeyboardEvent.KEY_UP, ReleaseAKey);
    stage.addEventListener(Event.ENTER_FRAME, moveThePlayer);
    function PressAKey(event:KeyboardEvent):void
              if(event.keyCode==Keyboard.RIGHT)
                        rightKeyIsDown=true;
              if(event.keyCode==Keyboard.LEFT)
                        rightKeyIsDown=true;
              if(event.keyCode==Keyboard.UP)
                        upKeyIsDown=true;
              if(event.keyCode==Keyboard.DOWN)
                        downKeyIsDown=true;
              if(event.keyCode==Keyboard.SPACE)
                        spaceKeyIsDown=true;
    function ReleaseAKey(event:KeyboardEvent):void
              if(event.keyCode==Keyboard.RIGHT)
                        rightKeyIsDown=false;
              if(event.keyCode==Keyboard.LEFT)
                        rightKeyIsDown=false;
              if(event.keyCode==Keyboard.UP)
                        upKeyIsDown=false;
              if(event.keyCode==Keyboard.DOWN)
                        downKeyIsDown=false;
              if(event.keyCode==Keyboard.SPACE)
                        spaceKeyIsDown=false;
                        cantShoot=false;
    function moveThePlayer(event:Event):void {
              if(rightKeyIsDown)
              player_mc.gotoAndStop(2);
              if(leftKeyIsDown)
    player_mc.gotoAndStop(2);
              if(downKeyIsDown)
              player_mc.gotoAndStop(2)
              if(upKeyIsDown)
    player_mc.gotoAndStop (3);
              if(spaceKeyIsDown)
    player_mc.gotoAndStop(3);
              if(pistolCounter<pistolCountFrame)
                        pistolCounter++
              if(pistolCounter>=pistolCountFrame)
                        canShoot=true;
                        pistolCounter=0;
              if(spaceKeyIsDown&&!cantShoot&&canShoot)
              var bullet_mc:MovieClip=new Bullet();
              bullet_mc.x=player_mc.x
              bullet_mc.y=player_mc.y
              bullet_mc.rotation=player_mc.rotation_mc.rotation
              bulletHolder.addChild(bullet_mc);
              cantShoot=true;
              canShoot=false;
              if(rightKeyIsDown)
                        player_mc.rotation_mc.rotation=0
              if(leftKeyIsDown)
                        player_mc.rotation_mc.rotation=180
    //defines player
    stage.addEventListener(KeyboardEvent.KEY_UP, run);
    function run(e:KeyboardEvent):void{
              player_mc.gotoAndStop(1);
    stage.addEventListener(KeyboardEvent.KEY_UP, checkkeysup);
    var speed=10;
    var moveright=false;
    function checkkeysdown(mykey:KeyboardEvent) {
    if (mykey.keyCode==Keyboard.RIGHT) {
    moveright=true;
    function checkkeysup(mykey:KeyboardEvent) {
    if (mykey.keyCode==Keyboard.RIGHT) {
    moveright=false;
    //defines obstacles
    stage.addEventListener(Event.ENTER_FRAME, gameloop);
    function gameloop(e:Event):void{
    obstacle_mc.x-=20;
    if (obstacle_mc.x<-100){
    obstacle_mc.x=650;
    hitObstacle=false;
    if (player_mc.hitTestObject(obstacle_mc)) {
    if (hitObstacle==false){ // only subtract health if hitObstacle is false
    health--;
    hitObstacle=true;
    health_txt.text=health.toString();
    if (health<=0){
    stage.removeEventListener(KeyboardEvent.KEY_DOWN, PressAKey);
    stage.removeEventListener(KeyboardEvent.KEY_UP, ReleaseAKey);
    stage.removeEventListener(Event.ENTER_FRAME, moveThePlayer);
    stage.removeEventListener(KeyboardEvent.KEY_UP, run);
    stage.removeEventListener(KeyboardEvent.KEY_UP, checkkeysup);
    stage.removeEventListener(Event.ENTER_FRAME, gameloop);
    stage.removeEventListener(Event.ENTER_FRAME, axtloop);
    gotoAndStop(1, "Scene 3");
    stage.addEventListener(Event.ENTER_FRAME, axtloop);
    function axtloop(e:Event):void{
    axt_mc.x-=20;
    if (axt_mc.x<-100){
    axt_mc.x=650;
    hitObstacle=false;
    if (player_mc.hitTestObject(axt_mc)) {
    if (hitObstacle==false){ // only subtract health if hitObstacle is false
    health--;
    hitObstacle=true;
    health_txt.text=health.toString();
    if (health<=0){
    stage.removeEventListener(KeyboardEvent.KEY_DOWN, PressAKey);
    stage.removeEventListener(KeyboardEvent.KEY_UP, ReleaseAKey);
    stage.removeEventListener(Event.ENTER_FRAME, moveThePlayer);
    stage.removeEventListener(KeyboardEvent.KEY_UP, run);
    stage.removeEventListener(KeyboardEvent.KEY_UP, checkkeysup);
    stage.removeEventListener(Event.ENTER_FRAME, gameloop);
    stage.removeEventListener(Event.ENTER_FRAME, axtloop);
    gotoAndStop(1, "Scene 3");
    //counts coins
    coinCount_txt.text="coins:"+coinCount;
    The code for the coins:
    package 
              import flash.display.MovieClip;
              import flash.events.*;
              import flash.net.dns.AAAARecord;
              public class Coin extends MovieClip
              var player_mc:MovieClip;
              public var MainTimeLine=MovieClip(root);
                        public function Coin()
                                  // constructor code
                                  this.addEventListener(Event.ENTER_FRAME, update);
              function update(event:Event):void
              player_mc=MovieClip(root).player_mc
              if(this.hitTestObject(player_mc))
              this.removeEventListener(Event.ENTER_FRAME, update);
              parent.removeChild(this);
              MainTimeLine.coinCount++;
    I really would appreciate some help because I am trying now since 5 days to solve the problem without success.
    Many thanks in advance

    Hi Ned
    many thanks for the reply.
    this is the full error message:
    Fonts should be embedded for any text that may be edited at runtime, other than text with the "Use Device Fonts" setting. Use the Text > Font Embedding command to embed fonts.[SWF] Game%20copy%202.swf - 191091 bytes after decompressionTypeError: Error #1009: Cannot access a property or method of a null object reference.     at Gamecopy2_fla::MainTimeline/axtloop()[Gamecopy2_fla.MainTimeline::frame1:213]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Bullet/update()[/Users/sonjacerny/Desktop/Platform Game/Bullet.as:30]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Bullet/update()[/Users/sonjacerny/Desktop/Platform Game/Bullet.as:30]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Bullet/update()[/Users/sonjacerny/Desktop/Platform Game/Bullet.as:30]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Bullet/update()[/Users/sonjacerny/Desktop/Platform Game/Bullet.as:30]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Bullet/update()[/Users/sonjacerny/Desktop/Platform Game/Bullet.as:30]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Bullet/update()[/Users/sonjacerny/Desktop/Platform Game/Bullet.as:30]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Bullet/update()[/Users/sonjacerny/Desktop/Platform Game/Bullet.as:30]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Bullet/update()[/Users/sonjacerny/Desktop/Platform Game/Bullet.as:30]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Bullet/update()[/Users/sonjacerny/Desktop/Platform Game/Bullet.as:30]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Bullet/update()[/Users/sonjacerny/Desktop/Platform Game/Bullet.as:30]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Bullet/update()[/Users/sonjacerny/Desktop/Platform Game/Bullet.as:30]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Bullet/update()[/Users/sonjacerny/Desktop/Platform Game/Bullet.as:30]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Bullet/update()[/Users/sonjacerny/Desktop/Platform Game/Bullet.as:30]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Bullet/update()[/Users/sonjacerny/Desktop/Platform Game/Bullet.as:30]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Bullet/update()[/Users/sonjacerny/Desktop/Platform Game/Bullet.as:30]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Bullet/update()[/Users/sonjacerny/Desktop/Platform Game/Bullet.as:30]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Bullet/update()[/Users/sonjacerny/Desktop/Platform Game/Bullet.as:30]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Bullet/update()[/Users/sonjacerny/Desktop/Platform Game/Bullet.as:30]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Bullet/update()[/Users/sonjacerny/Desktop/Platform Game/Bullet.as:30]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Bullet/update()[/Users/sonjacerny/Desktop/Platform Game/Bullet.as:30]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Bullet/update()[/Users/sonjacerny/Desktop/Platform Game/Bullet.as:30]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Bullet/update()[/Users/sonjacerny/Desktop/Platform Game/Bullet.as:30]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Bullet/update()[/Users/sonjacerny/Desktop/Platform Game/Bullet.as:30]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Bullet/update()[/Users/sonjacerny/Desktop/Platform Game/Bullet.as:30]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23]TypeError: Error #1009: Cannot access a property or method of a null object reference.     at Coin/update()[/Users/sonjacerny/Desktop/Platform Game/Coin.as:23][UnloadSWF] Game%20copy%202.swfTest Movie terminated.Debug session terminated.
    Could you help me solve the problem? Would mean a lot to me. Spend a lot of time and on that code and I am just not capable of solving the problem by myself:(
    Date: Tue, 22 Apr 2014 10:37:26 -0700
    From: [email protected]
    To: [email protected]
    Subject: cannot access a property of a null object reference
        Re: cannot access a property of a null object reference
        created by Ned Murphy in ActionScript 3 - View the full discussion
    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 declared but not instantiated
    - 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)
    - is an object that was removed but code is still trying to target it
    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.
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/6320249#6320249
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/6320249#6320249
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/6320249#6320249. In the Actions box on the right, click the Stop Email Notifications link.
               Start a new discussion in ActionScript 3 at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • How to access custom property for attribute and control in .vm file?

    Hi,
    I have created custom properties in OPM for attribute and apply also that properties to attribute.
    But if how to access that value in .vm file?
    I accessed using
    $attribute.getProperty("ScreenProp", "default value")
    but it's not working but same is worked for screen custom property

    $control.getProperties().get("PropertyName") works for custom properties on a control
    If you output $control and $control.getProperties() to the html you can lookup the API for the used classes.
    I can't give an example of the html because it's stripped in this forum
    Edited by: Peter van de Riet on 20-mei-2011 14:18

  • How to access id property

    I have created my own class NoCacheService in AS-3 that
    extends httpService. It works fine. I invoke in a .mxml file via:
    <utils:NoCacheService id="xyz" url="/url/here"
    resultFormat="e4x" result="resultHandler(event)"
    fault="faultHandler(event)" />
    Now, I want to display some error messages from functions
    within the NoCacheService class that include the id. I assumed this
    would be trivial. Something like this.id + "error message". But
    no....
    I am new to flex, so must be missing something obvious. How
    to do I access the id property given in the mxml component
    declaration from within the actionscript?
    Thanks!

    I understand your point, but my new class is defined in a .as
    file, not a .mxml file. I've attached the NoCacheService class just
    to be clear.
    The attached code will not compile. Each instance of this.id
    generates the error:
    "1178: Attempted access of inaccessible property id through a
    reference with static type"
    Thanks!

  • USB (Raw) - How to access VISA property: USB Bulk-Out pipe?!?

    I'm trying to use my own USB device. Since I'd like to use more then one USB In/Out Endporint I need to change that Atribute in NI VISA using LabVIEW (afaik. NI VISA uses the lowest Endpoint Number as defualt).
    According to LabVIEW 7.1 Help > VISA > I/O Session there is a VISA property which should be accessible via VISA Property node. That Property should be SUB Settings:USB Bulk-Out Pipe and USB Bulk-In Pipe.
    Hoewever when schaning through the available properties I only get the following 4:
    USB Intfc Num, USB Max Intr Size USB Port, USB Serial Num
    How can I cahnge the Property USB Bulk-Out Pipe ?
    Thanx,
    Rainer

    Thanks a lot - I knew it must have been some stupid small detail I didn't know ;-)
    Thanx,
    Rainer
    Message Edited by rrawer on 08-26-2005 11:25 AM

  • How to Read a Property called "due date"

    I want to create a AppleScript that reads the to dos in the Today list of Things and display a Growl message which works but then I wanted to put into the title the due date. In the the 'Open Dictionary" for Things' To Do class there is a property called 'due date'. But when I try to read it out I cannot compile the script:
    set taskDueDate to due date of taskItem
    I get this dialog box error:
    Syntax Error: Expected end of line, etc. but found class name.
    and the cursor ends up on the 'date' token.
    Any idea how to access that property?
    Thanks - Andy

    I added this line but it did not work for me either.
    Here is the entire script (which I have taken from the Things wiki):
    -- Checks to see if GrowlHelperApp is running, then registers this script with Growl
    tell application "System Events"
    if application process "GrowlHelperApp" exists then
    tell application "GrowlHelperApp" to register as application "Things" all notifications {"Reminder"} default notifications {"Reminder"} icon of application "Things"
    end if
    end tell
    tell application "System Events"
    if application process "Things" exists then
    tell application "Things"
    set todayTasksCount to (count to do of list "Today")
    set todayTasks to to dos of list "Today"
    end tell
    if todayTasksCount is greater than 0 then
    set fullTaskName to ""
    set fullTaskTitle to ""
    repeat with taskItem in todayTasks
    set taskName to name of taskItem
    set fullTaskName to fullTaskName & "; " & taskName
    set taskDueDate to current date
    -- get due date of to do 1
    set taskDueDate to due date of taskItem
    set fullTaskTitle to "Reminder: " & taskDueDate
    -- tell application "GrowlHelperApp" to notify with name "Reminder" title "Reminder" description taskName application name "Things" icon of application "Things"
    tell application "GrowlHelperApp" to notify with name "Reminder" title fullTaskTitle description taskName application name "Things" icon of application "Things"
    end repeat
    end if
    end if
    end tell
    Let me know if you have any ideas.
    BTW I use AppleScript Editor 2.3 (118) and AppleScript 2.1.2.

  • How to change parameters of Static VI Reference

    Can anyone let me know how to change the parameters of a static vi reference please? right now when I right click on it, just says "Strictly Typed VI". I don't know how to add/delete/change the parameters of it.
    Thanks,
    Solved!
    Go to Solution.

    Hello Triple H,
    This is Andrew Brown, an Applications Engineer with National Instruments. You will need to go through the process to create a new strictly typed VI reference in order to update the parameters of your Call by Reference Node. An article that details this process is Creating a Strictly Typed VI Reference That Calls VIs Dynamically. 
    Please let me know if you have additional questions or issues in this area.
    Regards,
    Andrew Brown
    Applications Engineer
    National Instruments

  • No Internet Access while Apps configure with Static IP - How to resolve?

    Dear Legends,
    I have installed a development instance which my configuration as follows:
    OS - Oracle Enterprise Linux 5.7 64 bit
    Instance - R12.1.3
    HDD - 500 GB
    RAM - 8GB
    IP - static - 192.168.1.10
    Subnet mask - 255.255.255.0
    Gateway - 192.168.1.1 --> router ip
    I need to setup a static ip only, but if i setup a static ip am able to access instance but no internet access, so that if i need to do any automation work like cron and sendmail is not working. How do i resolve this?
    1. I tried to setup a static ip configuration as editing the /etc/hosts and entry as
    192.168.1.10 hostname alias
    2. edited the resolv.conf for adding a nameserver as follows
    search hostname
    nameserver primary dns
    nameserver secondary dns
    but these entries are not available when i issue a service network restart
    3. Edited /etc/sysconfig/network-scripts/ifcfg-eth0
    # Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller
    DEVICE=eth0
    BOOTPROTO=none --> even i have changed this to STATIC/none but no change
    HWADDR=B8:88:E3:30:1A:ED
    ONBOOT=yes
    TYPE=Ethernet
    USERCTL=no
    IPV6INIT=no
    PEERDNS=yes
    HOSTNAME=devl.rel.net
    IPADDR=192.168.1.10
    NETMASK=255.255.255.0
    GATEWAY=192.168.1.1
    Since i'm trying to update my old threads if it is similar to this but i dont find any old threads, please kindly request you to provide your valuable suggestions.
    Regards,
    Karthik Singh

    karthiksingh_dba wrote:
    Hi Hussein,
    As per your request i am continuing this thread in the followiing link HOW TO ACCESS MY VISION INSTANCE GLOBALLY? is it correct?
    Regards,
    Karthik SinghYes.
    Thanks,
    Hussein

  • Re: How to access Property meta data for KM in webdynpro

    Hi Friends,
    I have created a custom property System admin- system configuartion - KM content - Content management - Global service - property meta data .
    I have assigned this property to a Folder , Now I want to access this property in my code .
    How can this can be possible ??
    Thanks in advance

    Hi Mayank,
    have a look below to call property
    /message/1193263#1193263 [original link is broken]
    Koti Reddy

  • How to access the Requirements property (& subproperties) of steps and sequences with the TestStand API

    The concept of associating teststand objects to unit requirements for traceability purposes was added to TS 3.5, and I need to find out how to access the array of strings used to store unit requirements in step objects, sequence objects and sequencefile objects. The teststand help file points out that the requirements list of a sequencefile object is accessible using the PropertyObjectFile interface, and also points out that Requirements is a property of the sequence and step classes. Furthermore it implicitly states that the requirements property has a Links subproperty which is an array of strings, but that is pretty much the extent of the documentation on this new feature so far. There seems to be no expression function available to get to those requirements either.
    I know that this feature was added to allow TestStand to interface with RG, and I am planning on using RG, but I would also like to do things with the requirements information within TestStand.
    Anyone? 

    Are you talking about the Requirements Gateway?  It is a separate product from NI that will do what you are looking for.  I haven't used it so I am not sure of the API chain to make it work.  Take a look and see if that is what you were thinking of.
    Hope that this helps,
    Bob Young
    Sorry, I just re-read your original post and see that you are looking to also use the Requirements Gateway, so you obviously know about it.  I don't know what the API changes were that made it work so I am not going to be much help.
    Sorry about posting before getting the correct information from the original.
    Bob Young
    Message Edited by Bob Y. on 08-24-2006 04:54 PM
    Bob Young - Test Engineer - Lapsed Certified LabVIEW Developer
    DISTek Integration, Inc. - NI Alliance Member
    mailto:[email protected]

  • AS3: How to access and control embedded sounds in an external swf?

    I rarely use sounds in AS3/Flash. I am using Flash Pro CS6, but I can't seem to figure out how to access, control (play, stop, etc) sounds embedded in an external SWF loaded into the main SWF.
    It's easy to control them when embedded on the main swf. However, on an externally loaded SWR, I get all kinds of errors. For this app, I really need to embed them in the external SWF.
    I read several solutions, but none seem to work.
    I embed the sound an mp3 file called soundSegment1.mp3 using Flash CS6 import tool and then open the actionscript properties panel on flash to select the class name: SoundSegment1. Then I edit the class code and create a file called SoundSegment1.as and it's saved right next to my document class main.as in the same directory. The code of the SoundSegment1 class looks like this:
    package  {
        import flash.media.*;
        public class SoundSegment1 extends Sound
            public function SoundSegment1 ()
                // no code in here
            public function playSound()
                var soundSegment1:Sound = new SoundSegment1();
                var channel:SoundChannel = soundSegment1.play();
    Then, in my main.as, I have done several attempts to play this sound such as:
    var fileLocation:URLRequest = new URLRequest(SWFToLoad); loader.load(fileLocation); loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, progressListener); loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeListener); loader.contentLoaderInfo.addEventListener(Event.INIT, initListener); 
    function initListener(e:Event):void // I also placed this code on the completeListener and it didn't work {      loader.content.soundSegment1.playSound(); // doesn't work.  }
    I get:
    Line XXX 1061: Call to a possibly undefined method playSound through a reference with static type flash.display:DisplayObject.
    or, I also read that I should be able to do something like this anywhere in the Main.as file:
    var theClass:Class = Class(loader.content.getDefinitionByName("SoundSegment1")); var theSound:theClass = new theClass(); theSound.play()  //doesn't work either.
    I also tried on the completeListener:
    var TheClass:Class = e.target.applicationDomain.getDefinition("SoundSegment1") as Class; var theSound:TheClass = new TheClass();
    theSound.play()  //doesn't work either.
    I get:
    ReferenceError: Error #1065: Variable SoundSegment1 is not defined. at flash.system::ApplicationDomain/getDefinition()
    I am stuck and I really need to get this to work. I would be genuinely grateful for your help.
    Thank you in advance for any help provided. I really need to get it to work, because I can't simply embed them in the main SWF or load them individually externally one by one.
    Thanks again!

    THANK YOU!
    I think your code may be over my head though. I think you are using an anonymous function which is not something I am familiar with (but I want to learn about if it's useful).
    I also don't know where the classS came from. I see that it's a parameter sent along with the event, but I don't really see where that came from.
    Someone at: http://www.kirupa.com/forum/showthread.php?305098-Playing-a-embedded-sound-in-an-external- swf&p=2658098#post2658098
    Is showing what seems to be an easier solution, but my problem there is I can't access the source file of the "child" swf....  ayayay.....
    I am going to tinker with your solution and see if it gets me anywhere. Thanks so much for your help again.

  • How to read a property in XSL?

    Hi
    I am trying to access a property in xsl and then invoke a service if the property value is set to true.
    Here is what I have done until now:
    1. Create a Normalized message nm
    2. Set the property: nm.setProperty("ABC", "TRUE")3. nm.setConten(message)4. request.setInMessage(nm)5. send(request)Now I want to access the property in xsl to test a condition, how do I do this? Please help me;....

    i dont remember from the top of my head + i'm falling asleep. but.. try this
    IPortalComponentContext ctx = componentRequest.getComponentContext();
    IPortalComponentProfile profile = ctx.getProfile();
    String value = profile.getProperty("propertyID");
    componentRequest is avaiable in JSP just like the response object. You need not to instantiate it.
    getProperty("propertyID") is used to retrieve whatever propertyid you have in your portalapp.xml for that particular component you are executing.
    goodluck

  • How to access a Access array in flex

    Hi
          Guys can any body explain me how to access an array.Actually i am succsufully getting value from array named Dynamic array.
                       DynamicArray[i].language_1[0].translation;
    here the node language_1 is not static it may be language_2 or language_3 or language_4 ect.. so i put that getting value in a variable named key
    var key:String = 'language_1'; //Suppose i am getting right value here in key
    So please guide me how i access my dynamic array using key so that i got same value as previous code give.
    i already tried:-DynamicArray[i].key.translation;
                           DynamicArray[i][key].translation;
    but every time got error.
    for more clarity i put array structure here
    DynamicArr= Array (@43b1271)   
        [0] = Object (@43ad219)   
            contentlanguage_1 = Array (@43b1431)   
                [0] = Object (@4417a11)   
                    choice_id = "0"   
                    deleted = "N"   
                    downloadurl = "http://94.126.48.105:80/cgi-bin/WebObjects/DataVit.woa/wa/Download/getImage?imageId=1281&f ilename="   
                    selected = "Y"   
                    translation = "2_486"   
                length = 1   
        [1] = Object (@4417949)  
    please Help me out
    Thanks In Advance
       Vineet Osho

    Hi Vineet Osho,
    You haven't tried ---> DynamicArray[i][key][0].translation; This will work
    You tried -> DynamicArray[i][key].translation; (This is wrong as you havent specified on which index you want to access)
    If still doesn't work ty this...
    Try  (DynamicArray[i])[key][0].translation;
    If the above one doesn't work then try the below one...
    var obj:Object = DynamicArray[i];
    var translation:String = obj[key][0].translation;
    Thanks,
    Bhasker

  • How to access checkbox in mx:list

    I'm trying to access the checkboxes in my list
    <mx:List itemRenderer="mx.controls.CheckBox" x="0" y="153" id="listVocab" height="297" width="313"></mx:List>
    but I can't find a way. This is what I'm doing
            for(var i:int = 0 ; i < listVocab.numChildren; i++)
                    if (  I want to access the checkbox here to see if it's checked  then do the below but I don't know how to access the checkboxes??? )
                    // This gives me access to the text but                 
                   var word:String = listVocab.dataProvider[i].toString() ;

    Problem is with dataProvider your assigning to dataGrid is of type Array of Strings so thats why its saying selected property is not available on String.
    Code given above by me will work for arrayCollection having objects of following type instead of just plain strings:
    public class CustomClass
             public var data:String; // here id you can store
            public var label:String; // here word you can store
            public var selected:Boolean;
    You can make modification to
    public class CustomVocabulary
            public var sentence:String;
            public var type:String;
            public var dbId:String;
            public var words:ArrayCollection; // this will contain objects of type CustomClass.
    <mx:List id="list" dataProvider="{ customVocabulary.words }"

  • How to access var in outter class inside inner class

    I've problem with this, how to access var number1 and number2 at outter class inside inner class? what statement do i have to use to access it ? i tried with " int number1 = Kalkulator1.this.number1; " but there no value at class option var y when the program was running...
    import java.io.*;
    public class Kalkulator1{
    int number1,number2,x;
    /* The short way to create instance object for input console*/
    private static BufferedReader stdin =
    new BufferedReader( new InputStreamReader( System.in ) );
    public static void main(String[] args)throws IOException {
    System.out.println("---------------------------------------");
    System.out.println("Kalkulator Sayur by Cumi ");
    System.out.println("---------------------------------------");
    System.out.println("Tentukan jenis operasi bilangan [0-4] ");
    System.out.println(" 1. Penjumlahan ");
    System.out.println(" 2. Pengurangan ");
    System.out.println(" 3. Perkalian ");
    System.out.println(" 4. Pembagian ");
    System.out.println("---------------------------------------");
    System.out.print(" Masukan jenis operasi : ");
    String ops = stdin.readLine();
         int numberops = Integer.parseInt( ops );
    System.out.print("Masukan Bilangan ke-1 : ");
    String input1 = stdin.readLine();
    int number1 = Integer.parseInt( input1 );
    System.out.print("Masukan Bilangan ke-2 : ");
    String input2 = stdin.readLine();
    int number2 = Integer.parseInt( input2 );     
         Kalkulator1 op = new Kalkulator1();
    Kalkulator1.option b = op.new option();
         b.pilihan(numberops);
    System.out.println("Bilangan yang dimasukkan adalah = " + number1 +" dan "+ number2 );
    class option{
    int x,y;
         int number1 = Kalkulator1.this.number1;
         int number2 = Kalkulator1.this.number2;
    void pilihan(int x) {
    if (x == 1)
    {System.out.println("Operasi yang digunakan adalah Penjumlahan");
            int y = (number1+number2);
            System.out.println("Hasil dari operasi adalah = " + y);}
    else
    {if (x == 2) {System.out.println("Operasi yang digunakan adalah Pengurangan");
             int y = (number1-number2);
             System.out.println("Hasil dari operasi adalah = " + y);}
    else
    {if (x == 3) {System.out.println("Operasi yang digunakan adalah Perkalian");
             int y = (number1*number2);
             System.out.println("Hasil dari operasi adalah = " + y);}
    else
    {if (x == 4) {System.out.println("Operasi yang digunakan adalah Pembagian ");
             int y = (number1/number2);
             System.out.println("Hasil dari operasi adalah =" + y);}
    else {System.out.println( "Operasi yang digunakan adalah Pembagian ");
    }

    Delete the variables number1 and number2 from your inner class. Your inner class can access the variables in the outer class directly. Unless you need the inner and outer class variables to hold different values then you can give them different names.
    In future place code tags around your code to make it retain formatting. Highlight code and click code button.

Maybe you are looking for

  • T-code kbk6 (actual posting price)  error " Layout 1-N01 does not exist. "

    i tried to see t-code kbk6   (actual posting - actual price) it's have error Layout 1-N01 does not exist. full error message i show you below. how should i do.  i tried to create 1-N01 in KP65 (create planning layouts for cost element planning) i got

  • Nokia XL not detected by pc after update 1.2.3.1

    I recently updated my nokia xl to software version to 1.2.3.1. But now it is not detected by the PC. It was working fine before the update. I tried reinstalling the usb driver according to the instructions available at http://developer.nokia.com/reso

  • Iphone vibrate only on incoming mail?

    I can't get my iphone 5s to only vibrate on incoming email.  This is a business phone so I want it to only vibrate when getting new mail.

  • Firefox CSS problem

    For some reason Firefox does not display my web page correctly and IE7 does. The problem is that the page border (given the id of 'wrapper') does not enclose the page's divs (indicated by white box), as seen on http://users.bigpond.net.au/csteed/merc

  • After having a virus, my PC can't open Firefox from the icon anymore. Help!

    I can still open firefox from a hyperlink I have in a word document. But this isn't a long-term solution. Uninstalling and reinstalling firefox didn't solve the problem either. When I click on the firefox icon I get "This operation has been cancelled