Trouble accessing a property of an instance inside a dynamically created MC.

I’m dynamically creating an instance of a movieclip, call it a game piece. This game piece has 4 frames, each with a movieclip called “base” (although one is red, one blue, one green, one yellow). When the game piece is created I set the frame to indicate player color. I’m also changing the alpha of “base” to 1.0 when it’s being dragged, 0.5 when it’s dropped.
Using the following code, everything works fine if the game piece color is set to the base in frame 1 (red). If the game piece is created and the timeline moved to a frame other than 1, I throw an error when trying to access base.alpha (this would be the second, third, and fourth instances of base in the game piece timeline). Here’s the strange part, this is only a problem when the game piece is first created and added to the display list. Once created, even after the error has been thrown, I can access the alpha of bases 2, 3, and 4 in the drag start/stop listeners. Here’s a link to the work in progress, and the relevant sections of code (shortened for brevity, t1 is the top left piece on the pallet, others just repeat the same code):
http://www.appliedcd.com/stormbringergrey/cw/CW_Combat_Sim.html
var gUnitArray:Array = new Array();
function initUnitPallet():void {
     t1.addEventListener(MouseEvent.MOUSE_DOWN,popNewUnit);
     // other pieces the same as above
     clanSelect.addEventListener(Event.CHANGE,changeClan);
function popNewUnit(e:MouseEvent):void {
     var isBase:String = e.target.name;
     var unitType:String = e.target.parent.name;
     if (isBase=="base") {
          var classRef:Class = getDefinitionByName(unitType + "master") as Class;
          var newUnit:MovieClip = new classRef();
          gUnitArray.push(newUnit);
          var newUnitIndex:uint = gUnitArray.length-1;
          this.addChild(gUnitArray[newUnitIndex]);
          gUnitArray[newUnitIndex].gotoAndPlay(clanSelect.selectedItem.data);
          // the following line is a problem if the above gotoAndPlay is anything other than frame 1
          gUnitArray[newUnitIndex].base.alpha = 1.0;
          gUnitArray[newUnitIndex].x = e.stageX;
          gUnitArray[newUnitIndex].y = e.stageY;
          gUnitArray[newUnitIndex].addEventListener(MouseEvent.MOUSE_DOWN,startUnitDrag);
          gUnitArray[newUnitIndex].addEventListener(MouseEvent.MOUSE_UP,stopUnitDrag);
          gUnitArray[newUnitIndex].startDrag();
function startUnitDrag(e:MouseEvent):void {
     e.currentTarget.base.alpha = 1.0;
     e.currentTarget.startDrag();
function stopUnitDrag(e:MouseEvent):void {
     e.currentTarget.base.alpha = 0.5;
     e.currentTarget.stopDrag();
function changeClan(e:Event):void {
     var myClanColor:String = e.target.selectedItem.data
     t1.gotoAndPlay(myClanColor);
     // other pieces the same as above

Thanks, pointed me in the right direction. I tried implementing a RENDER listener (see commented code below), and it worked, but unreliably. In my case the RENDER event fired before the entire frame was instantiated in about 1 out of 10 tries. I found a bunch of old posts (2007 or so) implying the RENDER event is buggy in Flash at best (apparently it has a better history in Flex). I couldn’t find more recent posts indicating better behavior, but I was unable to eliminate the residual errors in my project.
Fortunately, while reading I was reminded of the EXIT_FRAME event which seems to work perfectly (but forces me to player 10, not a big deal). Final code below along with proper Z-order control.
(BTW: I really miss the old forum's code box)
function initUnitPallet():void {
     t1.addEventListener(MouseEvent.MOUSE_DOWN,popNewUnit);
     clanSelect.addEventListener(Event.CHANGE,changeClan);
function changeClan(e:Event):void {
     var myClanColor:String = e.target.selectedItem.data
     t1.gotoAndPlay(myClanColor);
function popNewUnit(e:MouseEvent):void {
     var isBase:String = e.target.name;
     var unitType:String = e.currentTarget.name;
     if (isBase=="base") {
          var classRef:Class = getDefinitionByName(unitType + "master") as Class;
          var newUnit:MovieClip = new classRef();
          gUnitArray.push(newUnit);
          var newUnitIndex:uint = gUnitArray.length-1;
          this.addChild(gUnitArray[newUnitIndex]);
          gUnitArray[newUnitIndex].gotoAndPlay(clanSelect.selectedItem.data);
          gUnitArray[newUnitIndex].x = e.stageX;
          gUnitArray[newUnitIndex].y = e.stageY;
          gUnitArray[newUnitIndex].addEventListener(MouseEvent.MOUSE_DOWN,startUnitDrag);
          gUnitArray[newUnitIndex].addEventListener(MouseEvent.MOUSE_UP,stopUnitDrag);
          gUnitArray[newUnitIndex].addEventListener(Event.EXIT_FRAME,renderUnit);
          // gUnitArray[newUnitIndex].addEventListener(Event.RENDER,renderUnit);
          // stage.invalidate();
          gUnitArray[newUnitIndex].startDrag();
function renderUnit(e:Event):void {
     e.currentTarget.removeEventListener(Event.EXIT_FRAME,renderUnit);
     // e.currentTarget.removeEventListener(Event.RENDER,renderUnit);
     e.currentTarget.base.alpha = 1.0;
function startUnitDrag(e:MouseEvent):void {
     if(this.numChildren > 1){
          e.currentTarget.parent.setChildIndex(e.currentTarget,this.numChildren-1);
     e.currentTarget.base.alpha = 1.0;
     e.currentTarget.startDrag();
function stopUnitDrag(e:MouseEvent):void {
     e.currentTarget.base.alpha = 0.5;
     e.currentTarget.stopDrag();

Similar Messages

  • How to create table field inside the dynamically created table?

    Hi, All!
    I have created dynamic internal table (using field catalog and CALL METHOD cl_alv_table_create=>create_dynamic_table )
    and put this table  into FM REUSE_ALV_GRID_DISPLAY. ALV grid work. Now I need to color rows of my ALV, therefore  I have to insert new column with name "COLORS" and type lvc_t_scol. I  see three ways to do it , but all ones are unsuccessful:
    1. Insert column into field catalog. FM REUSE_ALV_FIELDCATALOG_MERGE does not return info about "COLORS" I guess because COLORS is a table.
    2. Insert column into field catalog manually. It provides a short dump during dynamic table creating or during call of REUSE_ALV_GRID_DISPLAY.
    3. Create dyn table first, then add new field . I could not find a way how to do it :(((((((
    Can somebody help me?
    Tatiana

    Hi,
    Here is the solution for this problem, Sample code:
    *& Report  ZCHA_ALV_GRID_CELL_COLOR                                    *
    REPORT  ZCHA_ALV_GRID_CELL_COLOR                .
    TABLES:MARA.
    DATA: W_CONTAINER         TYPE SCRFNAME VALUE 'ALV_CONTAINER',
          W_GRID              TYPE REF TO CL_GUI_ALV_GRID,
          W_CUSTOM_CONTAINER  TYPE REF TO CL_GUI_CUSTOM_CONTAINER.
         W_EVENT_RECEIVER    TYPE REF TO LCL_EVENT_RECEIVER.
    *layout
    DATA: WA_LAYOUT           TYPE LVC_S_LAYO.
    *field catalog
    DATA: IT_FIELDCAT_WRT_OFF TYPE LVC_T_FCAT,
          WA_FIELDCAT_WRT_OFF TYPE LVC_S_FCAT.
    DATA:BEGIN OF IT_MARA OCCURS 0,
         MATNR LIKE MARA-MATNR,
         MAKTX LIKE MAKT-MAKTX,
         CELLCOLORS TYPE LVC_T_SCOL,
         END OF IT_MARA.
    SELECT P~MATNR
           Q~MAKTX
           INTO CORRESPONDING FIELDS OF TABLE IT_MARA
           FROM MARA AS P INNER JOIN
                MAKT AS Q ON
                PMATNR = QMATNR.
    CALL SCREEN 100.
    *&      Module  STATUS_0100  OUTPUT
          text
    MODULE STATUS_0100 OUTPUT.
      SET PF-STATUS 'STATUS'.
    SET TITLEBAR 'xxx'.
      IF NOT W_CONTAINER IS INITIAL.
        CREATE OBJECT W_CUSTOM_CONTAINER
                 EXPORTING CONTAINER_NAME = W_CONTAINER.
        CREATE OBJECT W_GRID
                 EXPORTING I_PARENT = W_CUSTOM_CONTAINER.
      ENDIF.
      CLEAR IT_FIELDCAT_WRT_OFF.
      REFRESH IT_FIELDCAT_WRT_OFF.
      WA_FIELDCAT_WRT_OFF-FIELDNAME = 'MATNR'.
      WA_FIELDCAT_WRT_OFF-COL_POS   = '1'.
      WA_FIELDCAT_WRT_OFF-OUTPUTLEN = '35'.
      WA_FIELDCAT_WRT_OFF-SCRTEXT_L = 'Material No'.
      APPEND WA_FIELDCAT_WRT_OFF TO IT_FIELDCAT_WRT_OFF.
      CLEAR WA_FIELDCAT_WRT_OFF.
      WA_FIELDCAT_WRT_OFF-FIELDNAME = 'MAKTX'.
      WA_FIELDCAT_WRT_OFF-COL_POS   = '2'.
      WA_FIELDCAT_WRT_OFF-OUTPUTLEN = '45'.
      WA_FIELDCAT_WRT_OFF-SCRTEXT_L = 'Material Desc'.
      APPEND WA_FIELDCAT_WRT_OFF TO IT_FIELDCAT_WRT_OFF.
      CLEAR WA_FIELDCAT_WRT_OFF.
      DATA LS_CELLCOLOR TYPE LVC_S_SCOL.
      READ TABLE IT_MARA INDEX 5 .
      LS_CELLCOLOR-FNAME = 'MATNR'.
      LS_CELLCOLOR-COLOR-COL = '3'.
      LS_CELLCOLOR-COLOR-INT = '1'.
      APPEND LS_CELLCOLOR TO IT_MARA-CELLCOLORS.
      MODIFY IT_MARA INDEX 5.
      WA_LAYOUT-CTAB_FNAME = 'CELLCOLORS'.
      CALL METHOD W_GRID->SET_TABLE_FOR_FIRST_DISPLAY
        EXPORTING
          IS_LAYOUT       = WA_LAYOUT
        CHANGING
          IT_FIELDCATALOG = IT_FIELDCAT_WRT_OFF
          IT_OUTTAB       = IT_MARA[].
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
          text
    MODULE USER_COMMAND_0100 INPUT.
      CASE SY-UCOMM.
        WHEN 'BACK'.
          LEAVE TO SCREEN 0.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    Try to assign appropriate points.
    Regards,
    Suman

  • Bug or feature? Direct access to private property in other instance.

    This is example code:
    public class SomeClass {
        private String property;
        public String getProperty() {
            return property;
        public void setProperty(String property) {
            this.property = property;
        @Override
        public boolean equals(Object o){
            if (null == o) return false;
            if (!(o instanceof SomeClass)) return false;
            SomeClass someClass = (SomeClass)o;
            if (null != property && !property.equals(someClass.property) ||
                null == property && null != someClass.property) return false;
            return true;
        @Override
        public int hashCode(){
            int hash = 0;
            if (null != property) hash = property.hashCode();
            return hash;
    }In equals method you can clearly see "someClass.property" which means accessing private property in someClass, which is other instance than that one, where is equals invoked.
    This code is compilable, runable (1.5), but obviously didn't do right job.
    To do right job, you must use "someClass.getProperty()".
    How can this be compilable and runable?

    endasil wrote:
    georgemc wrote:
    I'd say one could argue this violates encapsulation if you really wanted to, but it's certainly not a bug, it's well-known and documented. At the very worst, it's a compromise. Probably something to do with the fact that Java objects do not have their own copy of the bytecode of the class they're an instance of.I don't really think you could argue that. From class A, being able to access members of an instance of class A isn't against encapsulation since, being class A, you already know all of the intimate details! It's not seeing inside the black box, it's being inside the black box. Or rather, it's being the box!You already know all the intimate details, because each instance of a class in Java shares the class bytes with other instances of that class. That's because of the design of the language. Encapsulation (really, we're talking about data-hiding here, not encapsulation) is about hiding an objects data from other objects. The fact that all instances of a class can see each other's fields just makes things convenient for language and runtime designers. The original spec for object-oriented programming talked about objects communicating with each other by message-passing, which we see as method invocations. Accessing data directly is just a relaxation of that stricture, for convenience.
    Accessing the private members is a completely fine and actually very normal case, especially in equals() methods. I still favour accessors in that instanceWhy? Seems like pointless overhead. And due to symmetry, you would probably want to use accessors for this's members as well. Otherwise, changing an accessor will break your equals implementation.It's no overhead at all. The method will probably be inlined. Suppose you subclass. Your member variables now have to be protected, not private. But what if your subclass changes how one of those fields is returned by the accessor?
    Look, I'm not saying "Java should not allow instances of the same class to access each others' private members (oo-er)" but I can certainly understand why someone might be surprised that it does.

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

    Dear Sir,
    I really need your valuable assistance i was about to finish a project but at very last moment i am stuck. Here is the explanation below...
    I have two files called "holder.swf" and "slide.swf" i want to improt the "slide.swf" using this action below
    var myLoader:Loader = new Loader();
    var url:URLRequest = new URLRequest("slide.swf");
    myLoader.load(url);
    addChild(myLoader);
    myLoader.x = 2;
    myLoader.y = 2;
    Also i have attached the flash file of "holder.swf". My concern is the moment i am calling the "slide.swf" inside the "holder.swf" it is showing the following error...
    " TypeError: Error #1009: Cannot access a property or method of a null object reference.
              at FC_Home_Ads_Holder_v2_fla::MainTimeline() "
    Here are the files uploaded for your reference, please download this file http://www.touchpixl.com/ForumsAdobecom.zip
    This error is being occured from "MainTimeline.as" file here is the code been use inside of this file below....
    package FC_Home_Ads_Holder_v2_fla
        import __AS3__.vec.*;
        import adobe.utils.*;
        import com.danehansen.*;
        import com.greensock.*;
        import com.greensock.easing.*;
        import com.greensock.plugins.*;
        import flash.accessibility.*;
        import flash.desktop.*;
        import flash.display.*;
        import flash.errors.*;
        import flash.events.*;
        import flash.external.*;
        import flash.filters.*;
        import flash.geom.*;
        import flash.globalization.*;
        import flash.media.*;
        import flash.net.*;
        import flash.net.drm.*;
        import flash.printing.*;
        import flash.profiler.*;
        import flash.sampler.*;
        import flash.sensors.*;
        import flash.system.*;
        import flash.text.*;
        import flash.text.engine.*;
        import flash.text.ime.*;
        import flash.ui.*;
        import flash.utils.*;
        import flash.xml.*;
        public dynamic class MainTimeline extends flash.display.MovieClip
            public function MainTimeline()
                new Vector.<String>(6)[0] = "Productivity";
                new Vector.<String>(6)[1] = "Leadership";
                new Vector.<String>(6)[2] = "Execution";
                new Vector.<String>(6)[3] = "Education";
                new Vector.<String>(6)[4] = "Speed of Trust";
                new Vector.<String>(6)[5] = "Sales";
                super();
                addFrameScript(0, this.frame1);
                return;
            public function init():void
                var loc1:*=null;
                com.greensock.plugins.TweenPlugin.activate([com.greensock.plugins.Aut oAlphaPlugin]);
                loc1 = new flash.net.URLLoader(new flash.net.URLRequest(this.XML_LOC));
                var loc2:*;
                this.next_mc.buttonMode = loc2 = true;
                this.prev_mc.buttonMode = loc2;
                stage.scaleMode = flash.display.StageScaleMode.NO_SCALE;
                stage.align = flash.display.StageAlign.TOP_LEFT;
                loc1.addEventListener(flash.events.Event.COMPLETE, this.xmlLoaded, false, 0, true);
                this.prev_mc.addEventListener(flash.events.MouseEvent.CLICK, this.minusClick, false, 0, true);
                this.next_mc.addEventListener(flash.events.MouseEvent.CLICK, this.plusClick, false, 0, true);
                return;
            public function xmlLoaded(arg1:flash.events.Event):void
                var loc1:*=null;
                var loc2:*=0;
                this.xmlData = new XML(arg1.target.data);
                loc2 = 0;
                while (loc2 < this.LABELS.length)
                    loc1 = new Btn(this.LABELS[loc2], loc2);
                    this.btnHolder_mc.addChild(loc1);
                    this.BTNS.push(loc1);
                    trace(this.LABELS[loc2]);
                    ++loc2;
                this.current = uint(this.xmlData.@firstPick);
                trace("-----width-----");
                trace(this.contentMask.width);
                var loc3:*=this.contentMask.width / this.LABELS.length;
                trace(loc3);
                loc2 = 0;
                while (loc2 < this.BTNS.length)
                    this.BTNS[loc2].width = loc3;
                    this.BTNS[loc2].x = loc3 * loc2;
                    ++loc2;
                this.btnHolder_mc.addEventListener(flash.events.MouseEvent.CLICK, this.numClick, false, 0, true);
                this.selectMovie();
                return;
            public function numClick(arg1:flash.events.MouseEvent):void
                this.killTimer();
                this.current = arg1.target.i;
                this.selectMovie();
                return;
            public function killTimer():void
                this.timerGoing = false;
                if (this.timer)
                    this.timer.reset();
                    this.timer.addEventListener(flash.events.TimerEvent.TIMER, this.plusClick, false, 0, true);
                    this.timer = null;
                return;
            public function selectMovie():void
                if (this.timerGoing)
                    this.timer = new flash.utils.Timer(uint(this.xmlData.ad[com.danehansen.MyMath.modulo(t his.current, this.xmlData.ad.length())].@delay), 1);
                    this.timer.start();
                    this.timer.addEventListener(flash.events.TimerEvent.TIMER, this.plusClick, false, 0, true);
                while (this.holder_mc.numChildren > 0)
                    this.holder_mc.removeChild(this.holder_mc.getChildAt(0));
                var loc1:*=new flash.display.Loader();
                loc1.load(new flash.net.URLRequest(this.xmlData.ad[com.danehansen.MyMath.modulo(thi s.current, this.xmlData.ad.length())].@loc));
                this.holder_mc.addChild(loc1);
                var loc2:*=0;
                while (loc2 < this.BTNS.length)
                    this.BTNS[loc2].deselect();
                    ++loc2;
                this.BTNS[com.danehansen.MyMath.modulo(this.current, this.xmlData.ad.length())].select();
                var loc3:*=this.BTNS[com.danehansen.MyMath.modulo(this.current, this.xmlData.ad.length())].x + this.BTNS[com.danehansen.MyMath.modulo(this.current, this.xmlData.ad.length())].width / 2 + this.btnHolder_mc.x;
                trace("addLength:" + this.xmlData.ad.length());
                trace(loc3, com.danehansen.MyMath.modulo(this.current, this.xmlData.ad.length()));
                com.greensock.TweenLite.to(this.indicator_mc, 0.3, {"x":loc3, "ease":com.greensock.easing.Cubic.easeOut});
                loc1.contentLoaderInfo.addEventListener(flash.events.Event.COMPLETE, this.adLoaded, false, 0, true);
                return;
            public function adLoaded(arg1:flash.events.Event):void
                var evt:flash.events.Event;
                var loc1:*;
                evt = arg1;
                try
                    evt.target.content.xmlData = this.xmlData.ad[com.danehansen.MyMath.modulo(this.current, this.xmlData.ad.length())];
                catch (er:Error)
                return;
            public function minusClick(arg1:flash.events.MouseEvent):void
                this.killTimer();
                var loc1:*;
                var loc2:*=((loc1 = this).current - 1);
                loc1.current = loc2;
                this.selectMovie();
                return;
            public function plusClick(arg1:flash.events.Event):void
                if (arg1.type != "timer")
                    this.killTimer();
                var loc1:*;
                var loc2:*=((loc1 = this).current + 1);
                loc1.current = loc2;
                this.selectMovie();
                trace("next");
                return;
            public function ENDED(arg1:flash.events.Event):void
                if (arg1.type != "timer")
                    this.killTimer();
                var loc1:*;
                var loc2:*=((loc1 = this).current + 1);
                loc1.current = loc2;
                this.selectMovie();
                trace("next");
                return;
            public function STARTED(arg1:flash.events.Event):void
                this.killTimer();
                return;
            function frame1():*
                this.timerGoing = true;
                addEventListener("endNow", this.ENDED, false, 0, true);
                addEventListener("startNow", this.STARTED, false, 0, true);
                this.init();
                return;
            public const XML_LOC:String=stage.loaderInfo.parameters.xmlLoc ? stage.loaderInfo.parameters.xmlLoc : "home_ads.xml";
            public const LABELS:__AS3__.vec.Vector.<String>=new Vector.<String>(6);
            public const BTNS:__AS3__.vec.Vector.<Btn>=new Vector.<Btn>();
            public const TRANSITION_TIME:Number=0.2;
            public var contentMask:flash.display.MovieClip;
            public var btnHolder_mc:flash.display.MovieClip;
            public var holder_mc:flash.display.MovieClip;
            public var indicator_mc:flash.display.MovieClip;
            public var prev_mc:flash.display.MovieClip;
            public var next_mc:flash.display.MovieClip;
            public var current:int;
            public var xmlData:XML;
            public var timer:flash.utils.Timer;
            public var timerGoing:Boolean;
    Here is the folder uploaded on the server for you to get clear picture, please click on this link to download the entire folder. http://www.touchpixl.com/ForumsAdobecom.zip
    I am not being able to resolve the issue, it needs a master to get the proper solution. I would request you to help me.
    Thanks & Regards
    Sanjib Das

    Here is the entire code of MainTimeline.as below, please correct it.
    package FC_Home_Ads_Holder_v2_fla
        import __AS3__.vec.*;
        import adobe.utils.*;
        import com.danehansen.*;
        import com.greensock.*;
        import com.greensock.easing.*;
        import com.greensock.plugins.*;
        import flash.accessibility.*;
        import flash.desktop.*;
        import flash.display.*;
        import flash.errors.*;
        import flash.events.*;
        import flash.external.*;
        import flash.filters.*;
        import flash.geom.*;
        import flash.globalization.*;
        import flash.media.*;
        import flash.net.*;
        import flash.net.drm.*;
        import flash.printing.*;
        import flash.profiler.*;
        import flash.sampler.*;
        import flash.sensors.*;
        import flash.system.*;
        import flash.text.*;
        import flash.text.engine.*;
        import flash.text.ime.*;
        import flash.ui.*;
        import flash.utils.*;
        import flash.xml.*;
        public dynamic class MainTimeline extends flash.display.MovieClip
            public function MainTimeline()
                new Vector.<String>(6)[0] = "Productivity";
                new Vector.<String>(6)[1] = "Leadership";
                new Vector.<String>(6)[2] = "Execution";
                new Vector.<String>(6)[3] = "Education";
                new Vector.<String>(6)[4] = "Speed of Trust";
                new Vector.<String>(6)[5] = "Sales";
                super();
                addFrameScript(0, this.frame1);
                return;
            public function init():void
                var loc1:*=null;
                com.greensock.plugins.TweenPlugin.activate([com.greensock.plugins.AutoAlphaPlugin]);
                loc1 = new flash.net.URLLoader(new flash.net.URLRequest(this.XML_LOC));
                var loc2:*;
                this.next_mc.buttonMode = loc2 = true;
                this.prev_mc.buttonMode = loc2 = true;
                stage.scaleMode = flash.display.StageScaleMode.NO_SCALE;
                stage.align = flash.display.StageAlign.TOP_LEFT;
                loc1.addEventListener(flash.events.Event.COMPLETE, this.xmlLoaded, false, 0, true);
                this.prev_mc.addEventListener(flash.events.MouseEvent.CLICK, this.minusClick, false, 0, true);
                this.next_mc.addEventListener(flash.events.MouseEvent.CLICK, this.plusClick, false, 0, true);
                return;
            public function xmlLoaded(arg1:flash.events.Event):void
                var loc1:*=null;
                var loc2:*=0;
                this.xmlData = new XML(arg1.target.data);
                loc2 = 0;
                while (loc2 < this.LABELS.length)
                    loc1 = new Btn(this.LABELS[loc2], loc2);
                    this.btnHolder_mc.addChild(loc1);
                    this.BTNS.push(loc1);
                    trace(this.LABELS[loc2]);
                    ++loc2;
                this.current = uint(this.xmlData.@firstPick);
                trace("-----width-----");
                trace(this.contentMask.width);
                var loc3:*=this.contentMask.width / this.LABELS.length;
                trace(loc3);
                loc2 = 0;
                while (loc2 < this.BTNS.length)
                    this.BTNS[loc2].width = loc3;
                    this.BTNS[loc2].x = loc3 * loc2;
                    ++loc2;
                this.btnHolder_mc.addEventListener(flash.events.MouseEvent.CLICK, this.numClick, false, 0, true);
                this.selectMovie();
                return;
            public function numClick(arg1:flash.events.MouseEvent):void
                this.killTimer();
                this.current = arg1.target.i;
                this.selectMovie();
                return;
            public function killTimer():void
                this.timerGoing = false;
                if (this.timer)
                    this.timer.reset();
                    this.timer.addEventListener(flash.events.TimerEvent.TIMER, this.plusClick, false, 0, true);
                    this.timer = null;
                return;
            public function selectMovie():void
                if (this.timerGoing)
                    this.timer = new flash.utils.Timer(uint(this.xmlData.ad[com.danehansen.MyMath.modulo(this.current, this.xmlData.ad.length())].@delay), 1);
                    this.timer.start();
                    this.timer.addEventListener(flash.events.TimerEvent.TIMER, this.plusClick, false, 0, true);
                while (this.holder_mc.numChildren > 0)
                    this.holder_mc.removeChild(this.holder_mc.getChildAt(0));
                var loc1:*=new flash.display.Loader();
                loc1.load(new flash.net.URLRequest(this.xmlData.ad[com.danehansen.MyMath.modulo(this.current, this.xmlData.ad.length())].@loc));
                this.holder_mc.addChild(loc1);
                var loc2:*=0;
                while (loc2 < this.BTNS.length)
                    this.BTNS[loc2].deselect();
                    ++loc2;
                this.BTNS[com.danehansen.MyMath.modulo(this.current, this.xmlData.ad.length())].select();
                var loc3:*=this.BTNS[com.danehansen.MyMath.modulo(this.current, this.xmlData.ad.length())].x + this.BTNS[com.danehansen.MyMath.modulo(this.current, this.xmlData.ad.length())].width / 2 + this.btnHolder_mc.x;
                trace("addLength:" + this.xmlData.ad.length());
                trace(loc3, com.danehansen.MyMath.modulo(this.current, this.xmlData.ad.length()));
                com.greensock.TweenLite.to(this.indicator_mc, 0.3, {"x":loc3, "ease":com.greensock.easing.Cubic.easeOut});
                loc1.contentLoaderInfo.addEventListener(flash.events.Event.COMPLETE, this.adLoaded, false, 0, true);
                return;
            public function adLoaded(arg1:flash.events.Event):void
                var evt:flash.events.Event;
                var loc1:*;
                evt = arg1;
                try
                    evt.target.content.xmlData = this.xmlData.ad[com.danehansen.MyMath.modulo(this.current, this.xmlData.ad.length())];
                catch (er:Error)
                return;
            public function minusClick(arg1:flash.events.MouseEvent):void
                this.killTimer();
                var loc1:*;
                var loc2:*=((loc1 = this).current - 1);
                loc1.current = loc2;
                this.selectMovie();
                return;
            public function plusClick(arg1:flash.events.Event):void
                if (arg1.type != "timer")
                    this.killTimer();
                var loc1:*;
                var loc2:*=((loc1 = this).current + 1);
                loc1.current = loc2;
                this.selectMovie();
                trace("next");
                return;
            public function ENDED(arg1:flash.events.Event):void
                if (arg1.type != "timer")
                    this.killTimer();
                var loc1:*;
                var loc2:*=((loc1 = this).current + 1);
                loc1.current = loc2;
                this.selectMovie();
                trace("next");
                return;
            public function STARTED(arg1:flash.events.Event):void
                this.killTimer();
                return;
            function frame1():*
                this.timerGoing = true;
                addEventListener("endNow", this.ENDED, false, 0, true);
                addEventListener("startNow", this.STARTED, false, 0, true);
                this.init();
                return;
            public const XML_LOC:String=stage.loaderInfo.parameters.xmlLoc ? stage.loaderInfo.parameters.xmlLoc : "home_ads.xml";
            public const LABELS:__AS3__.vec.Vector.<String>=new Vector.<String>(6);
            public const BTNS:__AS3__.vec.Vector.<Btn>=new Vector.<Btn>();
            public const TRANSITION_TIME:Number=0.2;
            public var contentMask:flash.display.MovieClip;
            public var btnHolder_mc:flash.display.MovieClip;
            public var holder_mc:flash.display.MovieClip;
            public var indicator_mc:flash.display.MovieClip;
            public var prev_mc:flash.display.MovieClip;
            public var next_mc:flash.display.MovieClip;
            public var current:int;
            public var xmlData:XML;
            public var timer:flash.utils.Timer;
            public var timerGoing:Boolean;

  • Having trouble accessing photos

    Ever since updating my 4s to the ios7, I am having trouble accessing my photos when using apps such as Facebook, text messaging, and Google hangouts.  It says that the app cannot access my photos and to change my setting in privacy settings.  When I go to the privacy settings and click on photos I get a message saying that if an app wants to access my photos it will be listed and I can change the setting, however none of the apps are ever listed.  How do I change my setting so I can upload pictures that I have already taken on my phone?

    The ! turns up when iPhoto loses the connection between the thumbnail in the iPhoto Window and the file it represents.
    This is not necessarily a permissions issue, but could also be a corrupt library.
    To repair permissions in the iPhoto Library: Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. You'll see the option to check and repair Library permissions.
    If that doesn't help, what version of iphoto do you have? Assuming 09 or later...
    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Rebuild iPhoto Library Database from automatic backup.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. .
    Regards
    TD

  • Accessing buttons on main stage from inside of a movie clip

    Greetings...
          here is the scenario:
                 - I have buttons on main stage, and a swf file which is loaded to scene using a LOADER in AS3
                 - this is a website, so the problem rises when user moves its cursor around the page and now  buttons in main stage,
                    are still active since they are behind the loaded swf file.
                 - i would like to learn, how can i CODE inside the loaded SWF file, to either remove the buttons in main page, or remove
                    the event listeners. not sure if my case has anything to do with .Parent or .roo, (I want to access those main stage
                    buttons from the SWF file which is loaded)
                 - The general case is, i have SWF files loading inside another SWF files, is it possible to access items on each stage from
                    inside of loaded SWF files on that specific stage. Similarly i would be interested to learn about accessing main stage from inside
                    of movieclips running on stage. how can i access something not in present FLA file yet, in FLA file that is loading the page as SWF.
                    Thanks.

    If you load an swf into another using the Loader class, then the Loader itself is the parent of the loaded swf., so MovieClip(parent.parent) might help you to target the timeline that the Loader was born from.  The more proper way to have a loaded file talk to a parent file is thru dispatching events that the parent assigns listeners for after the file has loaded.  Here's a link to a posting that might help explain how to implement this.
    http://forums.adobe.com/thread/470135?tstart=120
    As for the buttons that you want to disable, you could either use the removeEventListener() method to remove the listeners you have assigned, or you could set their mouseEnabled property to false, or you could set their visible property to false.

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

    Hi,
    I'm having a lot of trouble getting a preloader to work on my Flash website. I'm new to actionscript, the site works fine but when I place the preloader in frame 1, I get.
    Error#1009: Cannot access a property or method of a null object reference.
    Then it lists three areas. The buttons on the site don't work anymore.
    I've followed the Lynda com tutorials so don't know what is causing this error.
    Included is the word.doc with the error code, preloader code, the main flash frame 2 code and the debug information.
    Any help would be great.
    Thanks!

    You need to make sure 'cards' is named properly and is present when that line of code executes.  If it is somewhere down a timeline, it is not present.
    As far as your preloader code goes, what is infoLoader.  I have to assume it's some form of component since you don't have any code to instantiate it.

  • Trouble accessing - KM content

    Hello All,
    Currently we are have a trouble accessing the KM contents , We are getting the following error
    RuntimeException: InitialConfigException: Configuration framework system error : "A problem during initialization of the configuration Framework has been detected . Possible reason can be failure discovering of the sources."
    Could anyone please let me know the cause of the problem. And the possible resolution for the same .
    Regards,
    Ronniee.

    Hello All,
    The resolution for the problem is as follows :
    The initial problem was , We were not able to View KMC iViews (providing a Runtime Exception)
    java.lang.RuntimeException: InitialConfigException: Configuration framework system error: "A Problem during initialization of the Configuration Framework has been detected. Possible reason can be failure during discovering of the sources."
    The cause of the actual problem was  - The Write-protect Mode for the PCD was activated , due to which the config framework cannot start thus preventing the entire KMC from starting up.
    Please perform the following steps :
    1: Start the Visual Administrator.
    2: Navigate to Global Configuration -> Server -> Services -> com.sap.portal.pcd.gl.
    3: If Pcd.Pl.WriteProtectActivated is set to 'True', click the Reset Default Global Properties icon.
    4: This property should now be restored to it's default value (False).
    5: Save changes.
    6: Restart the J2EE engine.
    Regards,
    Ronniee.

  • 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.

  • Asa 5505, the outside cant access to a server in the inside

    hi, i have an Asa 5505, a pc in the outside with the ip 10.1.1.6 cant access to a server in the inside 192.168.1.4, pls help...
    this is my conf:
    ASA Version 8.0(4)
    hostname ciscoasa
    domain-name default.domain.invalid
    enable password 8Ry2YjIyt7RRXU24 encrypted
    passwd 2KFQnbNIdI.2KYOU encrypted
    names
    interface Vlan1
    nameif inside
    security-level 0
    ip address 192.168.1.1 255.255.255.0
    interface Vlan2
    nameif outside
    security-level 0
    ip address 10.1.1.2 255.255.255.0
    interface Ethernet0/0
    switchport access vlan 2
    interface Ethernet0/1
    interface Ethernet0/2
    interface Ethernet0/3
    interface Ethernet0/4
    interface Ethernet0/5
    interface Ethernet0/6
    interface Ethernet0/7
    boot system disk0:/asa804-k8.bin
    ftp mode passive
    dns server-group DefaultDNS
    domain-name default.domain.invalid
    object-group protocol TCPUDP
    protocol-object udp
    protocol-object tcp
    access-list 100 extended permit tcp any host 10.1.1.3 eq www
    pager lines 24
    logging enable
    logging asdm debugging
    mtu inside 1500
    <--- More --->
    mtu outside 1500
    no failover
    icmp unreachable rate-limit 1 burst-size 1
    asdm image disk0:/asdm-613.bin
    no asdm history enable
    arp timeout 14400
    nat-control
    global (outside) 1 interface
    nat (inside) 1 0.0.0.0 0.0.0.0
    static (inside,outside) 10.1.1.3 192.168.1.4 netmask 255.255.255.255
    access-group 100 in interface outside
    timeout xlate 3:00:00
    timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 icmp 0:00:02
    timeout sunrpc 0:10:00 h323 0:05:00 h225 1:00:00 mgcp 0:05:00 mgcp-pat 0:05:00
    timeout sip 0:30:00 sip_media 0:02:00 sip-invite 0:03:00 sip-disconnect 0:02:00
    timeout sip-provisional-media 0:02:00 uauth 0:05:00 absolute
    dynamic-access-policy-record DfltAccessPolicy
    http server enable
    http 192.168.1.0 255.255.255.0 inside
    no snmp-server location
    no snmp-server contact
    snmp-server enable traps snmp authentication linkup linkdown coldstart
    crypto ipsec security-association lifetime seconds 28800
    crypto ipsec security-association lifetime kilobytes 4608000
    <--- More --->
    telnet timeout 5
    ssh timeout 5
    console timeout 0
    dhcpd auto_config outside
    dhcpd address 192.168.1.2-192.168.1.254 inside
    dhcpd enable inside
    threat-detection basic-threat
    threat-detection statistics access-list
    no threat-detection statistics tcp-intercept
    class-map inspection_default
    match default-inspection-traffic
    policy-map type inspect dns preset_dns_map
    parameters
    message-length maximum 512
    policy-map global_policy
    class inspection_default
    inspect dns preset_dns_map
    inspect ftp
    <--- More --->
    inspect h323 h225
    inspect h323 ras
    inspect rsh
    inspect rtsp
    inspect esmtp
    inspect sqlnet
    inspect skinny
    inspect sunrpc
    inspect xdmcp
    inspect sip
    inspect netbios
    inspect tftp
    service-policy global_policy global
    prompt hostname context
    Cryptochecksum:14e7b74fabc386613ae646b915f60e9e
    : end
    ciscoasa#

    Andres
    The security level for your inside interface should be 100 ie.
    interface Vlan1
    nameif inside
    security-level 100
    ip address 192.168.1.1 255.255.255.0
    After changing that can you
    1) ping the outside interface of the ASA from the pc or ping the PC from the ASA
    2) I'm assuming you are trying to connect to 10.1.1.3 when you attempt the connection ?
    Jon

  • Trouble accessing photos.

    Hello! Need help! Having trouble accessing photos from Adobe Photoshop Album Starter Edition 3.0, I had a free trial but never registered the program because I was not using it. The other day I was taking pics off a Canon camera, & they automatically loaded into that site. I selected cancel several times, but the program did not respond. Once they completely loaded in, the program asked if I wanted to erase photos from the camera, I selected no but it started erasing them, I was able to stop it but 44 were erased off the camera. I can see the photos in the program but can not access them since I never registered. I tried to register now but received email saying that program has expired. So how do I get my photos? Please help! The photos are not mine, I was loading them from a friends camera, & they are important vacation memories to her! Thanks! Ruth

    When you click on one of the thumbnails do you see a blank window where the full sized image?  Or do you see this in the window:
    In either case make a temporary, backup copy (select the library and type Command+D) and  apply the two fixes below in order as needed:
    Fix #1
    Launch iPhoto with the Command+Option keys held down and rebuild the library.
    Since only one option can be run at a time start with Option #1, followed by #3 and then #4.
    Fix #2
    Using iPhoto Library Manager  to Rebuild Your iPhoto Library
    Download iPhoto Library Manager and launch.
    Click on the Add Library button, navigate to your Home/Pictures folder and select your iPhoto Library folder.
    Now that the library is listed in the left hand pane of iPLM, click on your library and go to the File ➙ Rebuild Library menu option
    In the next  window name the new library and select the location you want it to be placed.
    Click on the Create button.
    Note: This creates a new library based on the LIbraryData.xml file in the library and will recover Events, Albums, keywords, titles and comments but not books, calendars or slideshows. The original library will be left untouched for further attempts at fixing the problem or in case the rebuilt library is not satisfactory.
    OT

  • TS3899 Having trouble accessing my email account thru the mail app, after entering the account information in the settings page, hotmail returns with the error message " The user name or password for Hotmail is incorrect

    Having trouble accessing my email account thru the mail app, after entering the account information in the settings page, hotmail returns with the error message " The user name or password for Hotmail is incorrect". Help

    Hotmail is having problems:
    http://bostinno.streetwise.co/2013/08/15/hotmail-outage-hotmail-is-down-for-user s-still-photos/
    http://www.engadget.com/2013/08/14/outlook-outage/
    http://www.infoworld.com/d/applications/microsofts-skydrive-outlookcom-are-down- some-users-224940
    http://mashable.com/2013/08/14/outlook-down/
    http://techcrunch.com/2013/08/14/microsoft-acknowledges-outlook-com-messenger-sk ydrive-outages/

  • Error #1009: Cannot access a property or method

    Here's the context of the problem, in which I will try to include as much information as possible while keeping the explanation brief.
    I am trying to make a portfolio website (architectural design + concept art).  Flash / programing are not my focus and this is my first go at learning the software.  Due to the nature of the content and my (lack) of ability in AS3, I want the the coding to be really simple and still let the site look good.  The way the site is currently structured:
    1) Basic menu buttons that navigate to sections of the site (brings up a new page).
    2) Example, clicking on <Graphics> takes you to a new page and a sub-menu animates in (simple motion tween for the buttons to cascade down).  This animation is a movie clip placed on the main timeline.
    3) On the screen is also a slideshow for all the images within <Graphics>.  Instead of multiple small slideshows, I combined them all into one, so as to avoid complications with add / remove from stage.  There are prev / next buttons that keep images within their sub section (ie 1->2->3->1).  The sub-menu buttons are suppose to link to the start of each sub section, much like chapters on a DVD.  (The slideshow is a movieclip sub-nested in the menu movieclip).
    Main menu buttons work.
    Sub-menu animation works.
    Slideshow works.
    Can't get the sub-menu buttons to access the slideshow chapters.
    I have created and solved about half a dozen errors, and each time I fix something, it just causes another point to break.  I've gone around in circles for days, and not sure which was is up anymore.  So, while the slideshow works independently of the rest of the content, and I think I have the parent referencing correct, the problem I am currently facing is thus:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at 03graphics_fla::MainTimeline/frame1()
    I've browsed some other threads, and I think I know what the problem is.  Since the sub-menu is animated, the buttons do not appear on frame 1 of the nested timeline, while the actionscript is on frame 1 of the main timeline - thus the code doesn't exist yet when I click the button.
    Is this indeed the problem?  If so, how do I go about fixing it?
    Additionally, does the structure makes sense on how my site is organized?  Is there an easier / cleaner way to code it?
    (This thing is completely ghetto-rigged, I just need it to function - it's like my own little Millenium Falcon...)
    Cheers,
    Andy

    Try following this posting, which is just a posting or two away from your own in the forum...
    http://forums.adobe.com/thread/748542?tstart=0

  • First flexunit test is always failing with Error Error #1009: Cannot access a property or method of

    Hi,
    I have flexunit project which I am trying to run on linux server.
    1. I have Tests project.
    2. I am trying to compile it on linux server and creating Tests.swf file and then executing Tests.swf using ant on 64 bit linux server using standalone flash debug player.
    3. Tests project contains 4 tests and first tests always fail with following error,
        test:
         [flexunit] Validating task attributes ...
         [flexunit] Generating default values ...
         [flexunit] Using default working dir [/mnt/build/VinitFlexUnitBranch/workspace/src/Tests]
         [flexunit] Using the following settings for the test run:
         [flexunit] FLEX_HOME: [/var/lib/flex4.1sdk]
         [flexunit] haltonfailure: [true]
         [flexunit] headless: [false]
         [flexunit] display: [99]
         [flexunit] localTrusted: [true]
         [flexunit] player: [flash]
         [flexunit] port: [1024]
         [flexunit] swf: [/mnt/build/VinitFlexUnitBranch/workspace/bin/Tests.swf]
         [flexunit] timeout: [60000ms]
         [flexunit] toDir: [/mnt/build/VinitFlexUnitBranch/workspace/src/Tests/report]
         [flexunit] Setting up server process ...
         [flexunit] Entry [/mnt/build/VinitFlexUnitBranch/workspace/bin] already available in local trust file at [/home/deploy/.macromedia/Flash_Player/#Security/FlashPlayerTrust/flexUnit.cfg].
         [flexunit] Executing 'gflashplayer' with arguments:
         [flexunit] '/mnt/build/VinitFlexUnitBranch/workspace/bin/Tests.swf'
         [flexunit]
         [flexunit] The ' characters around the executable and arguments are
         [flexunit] not part of the command.
         [flexunit]
         [flexunit] Starting server ...
         [flexunit] Opening server socket on port [1024].
         [flexunit] Waiting for client connection ...
         [flexunit] Client connected.
         [flexunit] Setting inbound buffer size to [262144] bytes.
         [flexunit] Receiving data ...
         [flexunit] Sending acknowledgement to player to start sending test data ...
         [flexunit]
         [flexunit] FlexUnit test pause in suite Tests.Classes.DummyASyncTest had errors.
         [flexunit]
         [flexunit] Stopping server ...
         [flexunit] End of test data reached, sending acknowledgement to player ...
         [flexunit] Closing client connection ...
         [flexunit] Closing server on port [1024] ...
         [flexunit] <testcase classname="Tests.Classes::DummyASyncTest" name="pause" time="8" status="error"><error message="Error #1009: Cannot access a property or method of a null object reference." type="Tests.Classes::DummyASyncTest.pause" ><![CDATA[TypeError: Error #1009: Cannot access a property or method of a null object reference.
         [flexunit] at org.fluint.uiImpersonation.flex::FlexEnvironmentBuilder/buildVisualTestEnvironment()
         [flexunit] at org.fluint.uiImpersonation::VisualTestEnvironmentBuilder/buildVisualTestEnvironment()
         [flexunit] at org.flexunit.internals.runners.watcher::FrameWatcher/getStage()
         [flexunit] at org.flexunit.internals.runners.watcher::FrameWatcher()
         [flexunit] at org.flexunit.internals.runners.statements::StackAndFrameManagement()
         [flexunit] at org.flexunit.runners::BlockFlexUnit4ClassRunner/withStackManagement()
         [flexunit] at org.flexunit.runners::BlockFlexUnit4ClassRunner/withDecoration()
         [flexunit] at org.flexunit.runners::BlockFlexUnit4ClassRunner/methodBlock()
         [flexunit] at org.flexunit.runners::BlockFlexUnit4ClassRunner/runChild()
         [flexunit] at org.flexunit.internals.runners::ChildRunnerSequencer/executeStep()
         [flexunit] at org.flexunit.internals.runners.statements::StatementSequencer/handleChildExecuteComplete( )
         [flexunit] at org.flexunit.internals.runners.statements::StatementSequencer/evaluate()
         [flexunit] at org.flexunit.runners::ParentRunner/run()
         [flexunit] at org.flexunit.runners::Suite/runChild()
         [flexunit] at org.flexunit.internals.runners::ChildRunnerSequencer/executeStep()
         [flexunit] at org.flexunit.internals.runners.statements::StatementSequencer/handleChildExecuteComplete( )
         [flexunit] at org.flexunit.internals.runners.statements::StatementSequencer/evaluate()
         [flexunit] at org.flexunit.runners::ParentRunner/run()
         [flexunit] at org.flexunit.runners::Suite/runChild()
         [flexunit] at org.flexunit.internals.runners::ChildRunnerSequencer/executeStep()
         [flexunit] at org.flexunit.internals.runners.statements::StatementSequencer/handleChildExecuteComplete( )
         [flexunit] at org.flexunit.internals.runners.statements::StatementSequencer/evaluate()
         [flexunit] at org.flexunit.runners::ParentRunner/run()
         [flexunit] at org.flexunit.runner::FlexUnitCore/beginRunnerExecution()
         [flexunit] at org.flexunit.runner::FlexUnitCore/verifyRunnerCanBegin()
         [flexunit] at org.flexunit.token::AsyncCoreStartupToken/sendReady()
         [flexunit] at org.flexunit.runner.notification.async::AsyncListenerWatcher/sendReadyNotification()
         [flexunit] at org.flexunit.runner.notification.async::AsyncListenerWatcher/handleListenerReady()
         [flexunit] at flash.events::EventDispatcher/dispatchEventFunction()
         [flexunit] at flash.events::EventDispatcher/dispatchEvent()
         [flexunit] at org.flexunit.listeners::CIListener/setStatusReady()
         [flexunit] at org.flexunit.listeners::CIListener/dataHandler()
         [flexunit] at flash.events::EventDispatcher/dispatchEventFunction()
         [flexunit] at flash.events::EventDispatcher/dispatchEvent()
         [flexunit] at flash.net::XMLSocket/scanAndSendEvent()]]></error></testcase>
         [flexunit] <endOfTestRun/>
         [flexunit] Analyzing reports ...
         [flexunit]
         [flexunit] Suite: Tests.Classes.DummyASyncTest
         [flexunit] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.008 sec
         [flexunit]
         [flexunit] Results :
         [flexunit]
         [flexunit] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.008 sec
         [flexunit]
        BUILD FAILED
        /mnt/build/VinitFlexUnitBranch/workspace/src/Tests/build.xml:26: FlexUnit tests failed during the test run.
        at org.flexunit.ant.tasks.TestRun.analyzeReports(Unknown Source)
        at org.flexunit.ant.tasks.TestRun.run(Unknown Source)
        at org.flexunit.ant.tasks.FlexUnitTask.execute(Unknown Source)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:390)
        at org.apache.tools.ant.Target.performTasks(Target.java:411)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
        at org.apache.tools.ant.Main.runBuild(Main.java:809)
        at org.apache.tools.ant.Main.startAnt(Main.java:217)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
        Total time: 1 second
    Exited with status 1
    [deploy]$
    4. Everytime I run this, any test which is run first will fail and all other tests will pass.
    My Tests.as file is as below:
    * Tests.as
    package
    import Tests.XTestSuite;
    import flash.display.Sprite;
    import mx.core.FlexSprite;
    import org.flexunit.listeners.CIListener;
    import org.flexunit.listeners.UIListener;
    import org.flexunit.runner.FlexUnitCore;
    public class Tests extends Sprite
    public var flexSprite:FlexSprite;
    public function Tests()
    onCreationComplete();
    public function onCreationComplete() : void {
    var core : FlexUnitCore = new FlexUnitCore();
    core.addListener(new CIListener());
    core.runClasses(Tests.XTestSuite);
    public function currentRunTestSuite():Array
    var testsToRun:Array = new Array();
    testsToRun.push(Tests.XTestSuite);
    return testsToRun;
    XTestSuite try to run 4 flexunit test classes.
    one of that flexunit test script class is as below:
    package Tests.Classes
    import flexunit.framework.Assert;
    import org.flexunit.Assert;
    import org.flexunit.asserts.assertEquals;
    public class DummyASyncTest
    [Test]
    public function pause() : void
    assertEquals(true, true);
    trace("I M in dummy");
    All other tests are dummy tests which just asserts(true, true).
    I am not sure if I doing something wrong or forgot to take care of something.

    Hi,
    I have flexunit project which I am trying to run on linux server.
    1. I have Tests project.
    2. I am trying to compile it on linux server and creating Tests.swf file and then executing Tests.swf using ant on 64 bit linux server using standalone flash debug player.
    3. Tests project contains 4 tests and first tests always fail with following error,
        test:
         [flexunit] Validating task attributes ...
         [flexunit] Generating default values ...
         [flexunit] Using default working dir [/mnt/build/VinitFlexUnitBranch/workspace/src/Tests]
         [flexunit] Using the following settings for the test run:
         [flexunit] FLEX_HOME: [/var/lib/flex4.1sdk]
         [flexunit] haltonfailure: [true]
         [flexunit] headless: [false]
         [flexunit] display: [99]
         [flexunit] localTrusted: [true]
         [flexunit] player: [flash]
         [flexunit] port: [1024]
         [flexunit] swf: [/mnt/build/VinitFlexUnitBranch/workspace/bin/Tests.swf]
         [flexunit] timeout: [60000ms]
         [flexunit] toDir: [/mnt/build/VinitFlexUnitBranch/workspace/src/Tests/report]
         [flexunit] Setting up server process ...
         [flexunit] Entry [/mnt/build/VinitFlexUnitBranch/workspace/bin] already available in local trust file at [/home/deploy/.macromedia/Flash_Player/#Security/FlashPlayerTrust/flexUnit.cfg].
         [flexunit] Executing 'gflashplayer' with arguments:
         [flexunit] '/mnt/build/VinitFlexUnitBranch/workspace/bin/Tests.swf'
         [flexunit]
         [flexunit] The ' characters around the executable and arguments are
         [flexunit] not part of the command.
         [flexunit]
         [flexunit] Starting server ...
         [flexunit] Opening server socket on port [1024].
         [flexunit] Waiting for client connection ...
         [flexunit] Client connected.
         [flexunit] Setting inbound buffer size to [262144] bytes.
         [flexunit] Receiving data ...
         [flexunit] Sending acknowledgement to player to start sending test data ...
         [flexunit]
         [flexunit] FlexUnit test pause in suite Tests.Classes.DummyASyncTest had errors.
         [flexunit]
         [flexunit] Stopping server ...
         [flexunit] End of test data reached, sending acknowledgement to player ...
         [flexunit] Closing client connection ...
         [flexunit] Closing server on port [1024] ...
         [flexunit] <testcase classname="Tests.Classes::DummyASyncTest" name="pause" time="8" status="error"><error message="Error #1009: Cannot access a property or method of a null object reference." type="Tests.Classes::DummyASyncTest.pause" ><![CDATA[TypeError: Error #1009: Cannot access a property or method of a null object reference.
         [flexunit] at org.fluint.uiImpersonation.flex::FlexEnvironmentBuilder/buildVisualTestEnvironment()
         [flexunit] at org.fluint.uiImpersonation::VisualTestEnvironmentBuilder/buildVisualTestEnvironment()
         [flexunit] at org.flexunit.internals.runners.watcher::FrameWatcher/getStage()
         [flexunit] at org.flexunit.internals.runners.watcher::FrameWatcher()
         [flexunit] at org.flexunit.internals.runners.statements::StackAndFrameManagement()
         [flexunit] at org.flexunit.runners::BlockFlexUnit4ClassRunner/withStackManagement()
         [flexunit] at org.flexunit.runners::BlockFlexUnit4ClassRunner/withDecoration()
         [flexunit] at org.flexunit.runners::BlockFlexUnit4ClassRunner/methodBlock()
         [flexunit] at org.flexunit.runners::BlockFlexUnit4ClassRunner/runChild()
         [flexunit] at org.flexunit.internals.runners::ChildRunnerSequencer/executeStep()
         [flexunit] at org.flexunit.internals.runners.statements::StatementSequencer/handleChildExecuteComplete( )
         [flexunit] at org.flexunit.internals.runners.statements::StatementSequencer/evaluate()
         [flexunit] at org.flexunit.runners::ParentRunner/run()
         [flexunit] at org.flexunit.runners::Suite/runChild()
         [flexunit] at org.flexunit.internals.runners::ChildRunnerSequencer/executeStep()
         [flexunit] at org.flexunit.internals.runners.statements::StatementSequencer/handleChildExecuteComplete( )
         [flexunit] at org.flexunit.internals.runners.statements::StatementSequencer/evaluate()
         [flexunit] at org.flexunit.runners::ParentRunner/run()
         [flexunit] at org.flexunit.runners::Suite/runChild()
         [flexunit] at org.flexunit.internals.runners::ChildRunnerSequencer/executeStep()
         [flexunit] at org.flexunit.internals.runners.statements::StatementSequencer/handleChildExecuteComplete( )
         [flexunit] at org.flexunit.internals.runners.statements::StatementSequencer/evaluate()
         [flexunit] at org.flexunit.runners::ParentRunner/run()
         [flexunit] at org.flexunit.runner::FlexUnitCore/beginRunnerExecution()
         [flexunit] at org.flexunit.runner::FlexUnitCore/verifyRunnerCanBegin()
         [flexunit] at org.flexunit.token::AsyncCoreStartupToken/sendReady()
         [flexunit] at org.flexunit.runner.notification.async::AsyncListenerWatcher/sendReadyNotification()
         [flexunit] at org.flexunit.runner.notification.async::AsyncListenerWatcher/handleListenerReady()
         [flexunit] at flash.events::EventDispatcher/dispatchEventFunction()
         [flexunit] at flash.events::EventDispatcher/dispatchEvent()
         [flexunit] at org.flexunit.listeners::CIListener/setStatusReady()
         [flexunit] at org.flexunit.listeners::CIListener/dataHandler()
         [flexunit] at flash.events::EventDispatcher/dispatchEventFunction()
         [flexunit] at flash.events::EventDispatcher/dispatchEvent()
         [flexunit] at flash.net::XMLSocket/scanAndSendEvent()]]></error></testcase>
         [flexunit] <endOfTestRun/>
         [flexunit] Analyzing reports ...
         [flexunit]
         [flexunit] Suite: Tests.Classes.DummyASyncTest
         [flexunit] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.008 sec
         [flexunit]
         [flexunit] Results :
         [flexunit]
         [flexunit] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.008 sec
         [flexunit]
        BUILD FAILED
        /mnt/build/VinitFlexUnitBranch/workspace/src/Tests/build.xml:26: FlexUnit tests failed during the test run.
        at org.flexunit.ant.tasks.TestRun.analyzeReports(Unknown Source)
        at org.flexunit.ant.tasks.TestRun.run(Unknown Source)
        at org.flexunit.ant.tasks.FlexUnitTask.execute(Unknown Source)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:390)
        at org.apache.tools.ant.Target.performTasks(Target.java:411)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
        at org.apache.tools.ant.Main.runBuild(Main.java:809)
        at org.apache.tools.ant.Main.startAnt(Main.java:217)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
        Total time: 1 second
    Exited with status 1
    [deploy]$
    4. Everytime I run this, any test which is run first will fail and all other tests will pass.
    My Tests.as file is as below:
    * Tests.as
    package
    import Tests.XTestSuite;
    import flash.display.Sprite;
    import mx.core.FlexSprite;
    import org.flexunit.listeners.CIListener;
    import org.flexunit.listeners.UIListener;
    import org.flexunit.runner.FlexUnitCore;
    public class Tests extends Sprite
    public var flexSprite:FlexSprite;
    public function Tests()
    onCreationComplete();
    public function onCreationComplete() : void {
    var core : FlexUnitCore = new FlexUnitCore();
    core.addListener(new CIListener());
    core.runClasses(Tests.XTestSuite);
    public function currentRunTestSuite():Array
    var testsToRun:Array = new Array();
    testsToRun.push(Tests.XTestSuite);
    return testsToRun;
    XTestSuite try to run 4 flexunit test classes.
    one of that flexunit test script class is as below:
    package Tests.Classes
    import flexunit.framework.Assert;
    import org.flexunit.Assert;
    import org.flexunit.asserts.assertEquals;
    public class DummyASyncTest
    [Test]
    public function pause() : void
    assertEquals(true, true);
    trace("I M in dummy");
    All other tests are dummy tests which just asserts(true, true).
    I am not sure if I doing something wrong or forgot to take care of something.

  • New to action script and getting: TypeError: Error #1009: Cannot access a property or method of a nu

    I am getting this message in the output tab for buttons that I am trying to create.  Here's the code:
    import flash.events.MouseEvent;
    stop();
    function goHome(myEvent:MouseEvent):void {
    gotoAndStop("home");
    SoundMixer.stopAll();
    function goAbout(myEvent:MouseEvent):void {
    gotoAndStop("about");
    SoundMixer.stopAll();
    function goBusiness(myEvent:MouseEvent):void {
    gotoAndStop("business");
    SoundMixer.stopAll();
    function goContact(myEvent:MouseEvent):void {
    gotoAndStop("contact");
    SoundMixer.stopAll();
    function goArchives(myEvent:MouseEvent):void {
    gotoAndStop("archives");
    SoundMixer.stopAll();
    function goBioTech(myEvent:MouseEvent):void {
    gotoAndStop("bioTech");
    SoundMixer.stopAll();
    function goRealEstate(myEvent:MouseEvent):void {
    gotoAndStop("realEstate");
    SoundMixer.stopAll();
    function goTechnology(myEvent:MouseEvent):void {
    gotoAndStop("technology");
    SoundMixer.stopAll();
    function goEnergy(myEvent:MouseEvent):void {
    gotoAndStop("energy");
    SoundMixer.stopAll();
    home_btn.addEventListener(MouseEvent.CLICK, goHome);
    about_btn.addEventListener(MouseEvent.CLICK, goAbout);
    business_btn.addEventListener(MouseEvent.CLICK, goBusiness);
    contact_btn.addEventListener(MouseEvent.CLICK, goContact);
    archives_btn.addEventListener(MouseEvent.CLICK, goArchives);
    bioTech_btn.addEventListener(MouseEvent.CLICK, goBioTech);
    realEstate_btn.addEventListener(MouseEvent.CLICK, goRealEstate);
    technology_btn.addEventListener(MouseEvent.CLICK, goTechnology);
    energy_btn.addEventListener(MouseEvent.CLICK, goEnergy);
    I ran the debugger and got this:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at peakInsights_fla::MainTimeline/frame1()[peakInsights_fla.MainTimeline::frame1:48]
    I guess it's telling me there's a problem with line 48 but what?
    The home, about, business, contact, and archives button works. On the business page there are the remaining buttons biotech, technology, real estate, and energy. when i test it; i get the finger but the buttons don't work. this is my first flash site so I'am new, new.

    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.

Maybe you are looking for