Type Error #1009

After updating Muse, I get the message "type error #1009" instantly, every time I try to open the application. I know it's not my .muse file, because the file runs fine on another machine with Muse. The problem wasn't caused by running the application on too many machines, it started happening while it was only installed on one machine. How do I fix this problem?

Hello,
Please refer to the forum post : http://forums.adobe.com/message/4919587#4919587
Please follow the steps mentioned by Adobelance and let us  know if it helps.
Regards,
Sachin

Similar Messages

  • Media Error  Type Error 1009

    When trying to play a video on a TV stations website I get a gray box that states "Media Error  Type Error 1009". The advertisement that precedes the news clip plays fine but once it's over the audio is fine but the video screen is black. No websites showed up. What can I do?

    This is a bug in the code running on the news site.  The content provider will need to fix this on their end.
    Thanks!

  • Website - Type Error#1009 and 1039

    I'm currently working on editing the pages on my website but for some reason these errors are apearing. Also some of the text that should be on the .swf disapears. Any help will be apreciated
    This is error I am getting:
    TypeError: Error #1034: Type Coercion failed: cannot convert flash.display::SimpleButton@40692fa1 to flash.display.MovieClip.
              at flash.display::Sprite/constructChildren()
              at flash.display::Sprite()
              at flash.display::MovieClip()
              at Create_fla::MainTimeline()
    TypeError: Error #1034: Type Coercion failed: cannot convert flash.display::SimpleButton@40692f41 to flash.display.MovieClip.
              at flash.display::Sprite/constructChildren()
              at flash.display::Sprite()
              at flash.display::MovieClip()
              at Create_fla::MainTimeline()
    TypeError: Error #1034: Type Coercion failed: cannot convert flash.display::SimpleButton@40692ee1 to btnWhiteAreaClose.
              at flash.display::Sprite/constructChildren()
              at flash.display::Sprite()
              at flash.display::MovieClip()
              at Create_fla::MainTimeline()
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
              at Create_fla::MainTimeline/frame10()
    I assume the issue is on Frame 10 which is where the coding is located so this is the coding for that frame.
    WhiteBlock.visible = false;
    btnCloseLarge.buttonMode = true;
    aPicArr[0] = new Array();
    aPicArr[1] = new Array();
    aPicArr[2] = new Array();
    aPicArr[3] = new Array();//large image
    aPicArr[4] = new Array();//large image captions
    aPicArr[5] = new Array();//number of images per menu item
    var xmlLoader:URLLoader = new URLLoader();
    var xmlData:XML = new XML();
    var incoming_lc:LocalConnection = new LocalConnection();
    incoming_lc.connect("lc_showreel");
    incoming_lc.client = this;
    xmlLoader.addEventListener(Event.COMPLETE, LoadXML); 
    xmlLoader.load(new URLRequest("create.xml"));
    function showreel(ShowReelName)
              var DoTween:Tween;
              removeEventListener(MouseEvent.MOUSE_DOWN,btnClientNamePress);
              outgoing_lc.send("lc_bkgnd", "setBlackout", "Dark");
              DoTween = new Tween(create, "alpha", Regular.easeOut, 1, 0.05, 0.5, true);
              if (placeholder)
                        placeholder.alpha = 0;
              var i:Number;
              for (i=0;i<clientCount; i++)
                        aClientInstance[i].alpha=0;
              showreelPlayer.alpha = 1;
              showreelPlayer.source = ShowReelName
              showreelPlayer.play();
              WhiteBlock.visible = true;
              DoTween = new Tween(WhiteBlock, "alpha", Regular.easeOut, 0, 1, 0.8, true);
              DoTween = new Tween(btnCloseLarge, "alpha", Regular.easeOut, 0, 1, 0.8, true);
              btnCloseLarge.addEventListener(MouseEvent.MOUSE_DOWN,btnCloseShowreel_Press);
    function btnCloseShowreel_Press(event:MouseEvent):void
              addEventListener(MouseEvent.MOUSE_DOWN,btnClientNamePress);
              btnCloseLarge.visible = false;
              WhiteBlock.visible = false;
              showreelPlayer.stop();
              showreelPlayer.alpha = 0;
              var DoTween:Tween;
              outgoing_lc.send("lc_bkgnd", "setBlackout", "Light");
              DoTween = new Tween(create, "alpha", Regular.easeOut, 0.05, 1, 0.5, true);
              if (placeholder)
                        placeholder.alpha = 1;
              sm.buttonMode = true;
              DoTween = new Tween(sm, "alpha", Regular.easeOut, 0, 1, 0.5, true);
              var i:Number;
              for (i=0;i<clientCount; i++)
                        aClientInstance[i].alpha=1;
              DoTween = new Tween(WhiteBlock, "alpha", Regular.easeOut, 1, 0, 0.8, true);
              DoTween = new Tween(btnCloseLarge, "alpha", Regular.easeOut, 1, 0, 0.8, true);
              DoTween = new Tween(btnCloseLarge, "alpha", Regular.easeOut, 1, 0, 0.8, true);
              DoTween = new Tween(ArrowRight_Lrg, "alpha", Regular.easeOut, 1, 0, 0.8, true);
              DoTween = new Tween(ArrowLeft_Lrg, "alpha", Regular.easeOut, 1, 0, 0.8, true);
              btnCloseLarge.removeEventListener(MouseEvent.MOUSE_DOWN,btnCloseShowreel_Press);
    function LoadXML(e:Event):void
              xmlData = new XML(e.target.data);
              ParseImages(xmlData);
    function ParseImages(textInput:XML):void
              var clientChildren:XMLList = textInput.clientDetails.children();
              var clientInfo:XML;
              var childName:String;
              var clientName:String;
              for each (clientInfo in clientChildren)
                        //trace(clientInfo.name() + "=" + clientInfo.text());
                        childName = clientInfo.name();
                        switch (childName)
                                  case "clientName":
                                  aClients[i] = clientInfo.text();
                                  i++;
                                  aPicArr[5][i] = j;
                                  break;
                                  case "image":
                                  aPicArr[0][j] = i;
                                  aPicArr[1][j] = clientInfo.text();
                                  break;
                                  case "image_lrg":
                                  aPicArr[3][j] = clientInfo.text();
                                  aLargePict[j] = clientInfo.text();
                                  break;
                                  case "caption_lrg":
                                  aLargeCapt[j] = clientInfo.text();
                                  aPicArr[4][j] = clientInfo.text();
                                  j++;
                                  break;
                                  case "caption":
                                  aPicArr[2][j] = clientInfo.text();
                                  break;
                                  //trace("(122) i,j: " + i,j);
                                  break;
              clientCount = i;
              /*for (i=1;i<clientCount+1; i++)
                        trace("129:"+i,aPicArr[5][i],aLargePict[aPicArr[5][i]]);
              /*for (i=1;i<aLargePict.length;i++)
                        trace("133:" + i,aLargePict[i]);
              for (i=0;i<clientCount; i++)
                        var cl:MovieClip = new ListName;
                        cl.ClientName.text = aClients[i];
                        cl.y = 245 + i*20;
                        cl.x = 150;
                        cl.buttonMode = true;
                        aClientInstance[i] = addChild(cl);
    addEventListener(MouseEvent.MOUSE_DOWN,btnClientNamePress);
    LeftArrow.addEventListener(MouseEvent.MOUSE_DOWN,btnLeftArrowPress);
    RightArrow.addEventListener(MouseEvent.MOUSE_DOWN,btnRightArrowPress);
    ArrowLeft_Lrg.addEventListener(MouseEvent.MOUSE_DOWN,btnArrowLeft_LrgPress);
    ArrowRight_Lrg.addEventListener(MouseEvent.MOUSE_DOWN,btnArrowRight_LrgPress);
    //(parent.parent as MovieClip).ShowAddressLine();
    function btnLeftArrowPress(evt:Event):void
              //trace("Got left arrow");
              showPrevImage();
    function btnRightArrowPress(evt:Event):void
              //trace("Got right arrow");
              showNextImage();
    function btnArrowRight_LrgPress(evt:Event):void
              //trace("Got ArrowRight_Lrg");
              Next_LargeImage();
    function btnArrowLeft_LrgPress(evt:Event):void
              //trace("Got ArrowLeft_Lrg");
              Prev_LargeImage();
    function btnClientNamePress(evt:Event):void
              var fmtDown:TextFormat = new TextFormat();
              fmtDown.color = 0xD7CE60;
              var fmtOut:TextFormat = new TextFormat();
              fmtOut.color = 0xFFFFFF;
              var st_target:String;
              var st_client:String;
              st_target = evt.target.name.substring(8)
              for (i=0; i<clientCount; i++)
                        st_client = aClientInstance[i].name.substring(8);
                        if (Number(st_target))
                                  if (Number(st_client) + 1 == Number(st_target))
                                            CurrentMenu = i;
                                            aPicList.length = 0;
                                            k = 0;
                                            for (j=0;j<aPicArr[0].length; j++)
                                                      if (aPicArr[0][j] == i+1)
                                                                aPicList[k] = aPicArr[1][j];
                                                                aPicCapt[k] = aPicArr[2][j];
                                                                aPicLarge[k] = aPicArr[3][j];
                                                                aPicCaptLarge[k] = aPicArr[4][j];
                                                                k++;
                                            if (aPicList.length > 0)
                                                      showFirstImage();
                                  else
                                            aClientInstance[i].alpha = 1;
    function showFirstImage():void
              var TweenArrow;
              setMenuAlpha();
              k=0;
              loadChild(ImageDir + aPicList[k]);
              if (LeftArrow.alpha == 1)
                                  TweenArrow = new Tween(LeftArrow, "alpha", Regular.easeOut, 1, 0, 0.8, true);
              LeftArrow.buttonMode = false;
              if (aPicList.length > 1)
                        RightArrow.buttonMode = true;
                        TweenArrow = new Tween(RightArrow, "alpha", Regular.easeOut, 0, 1, 0.8, true);
    function showNextImage():void
              var TweenArrow;
              setMenuAlpha();
              if (k < aPicList.length)
                        k++;
                        loadChild(ImageDir + aPicList[k]);
              if ((k +1) == aPicList.length)
                        RightArrow.buttonMode = false;
                        TweenArrow = new Tween(RightArrow, "alpha", Regular.easeOut, 1, 0, 0.8, true);
              if (k >0)
                        LeftArrow.buttonMode = true;
                        if (LeftArrow.alpha == 0)
                                  TweenArrow = new Tween(LeftArrow, "alpha", Regular.easeOut, 0, 1, 0.8, true);
    function showPrevImage():void
              var TweenArrow;
              setMenuAlpha();
              if (k > 0)
                        k--;
                        loadChild(ImageDir + aPicList[k]);
              if (k < 1)
                        LeftArrow.buttonMode = false;
                        TweenArrow = new Tween(LeftArrow, "alpha", Regular.easeOut, 1, 0, 0.5, true);
                        LeftArrow.alpha=0;
              if (k < aPicList.length)
                        RightArrow.buttonMode = true;
                        if (RightArrow.alpha == 0)
                                  TweenArrow = new Tween(RightArrow, "alpha", Regular.easeOut, 0, 1, 0.5, true);
    function loadChild(childSWF)
              ContentLdr = new Loader();
              ContentLdr.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,showProgress);
              ContentLdr.contentLoaderInfo.addEventListener(Event.COMPLETE,contentLoaded);
              pcLoaded.alpha = 1;
              request = new URLRequest(childSWF);
              ContentLdr.load(request);
    function loadLargeImage(childSWF)
              ContentLdr = new Loader();
              ContentLdr.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,showProgress);
              ContentLdr.contentLoaderInfo.addEventListener(Event.COMPLETE,LIcontentLoaded);
              pcLoaded.alpha = 1;
              request = new URLRequest(childSWF);
              ContentLdr.load(request);
    function showProgress(evt:ProgressEvent):void
              percentloaded = (Math.ceil((evt.bytesLoaded/evt.bytesTotal)*100));
              if (pcLoaded != null)
                        pcLoaded.text = percentloaded + "%";
    function contentLoaded(loadEvent:Event):void
              if (placeholder != null)
                        TransitionManager.start((placeholder as MovieClip), {type:Iris, direction:Transition.OUT, duration:0.5, easing:Strong.easeOut, startPoint:5, shape:Iris.CIRCLE});
                        TransitionManager.start((imageCaption as MovieClip), {type:Fade, direction:Transition.OUT, duration:0.8, easing:Strong.easeOut});
                        //removeChild(placeholder);
              placeholder = new MovieClip;
              placeholder.x = 351;
              placeholder.y = 153;
              sm = addChild(placeholder);
              sm.addEventListener(MouseEvent.MOUSE_DOWN,smallImagePress);
              sm.buttonMode = true;
              placeholder.addChild(ContentLdr.content);
              pcLoaded.alpha=0;
              imageCaption.CaptionTxt.text = aPicCapt[k];
              TransitionManager.start((placeholder as MovieClip), {type:Iris, direction:Transition.IN, duration:0.5, easing:Strong.easeIn, startPoint:5, shape:Iris.CIRCLE});
               TransitionManager.start((imageCaption as MovieClip), {type:Fade, direction:Transition.IN, duration:0.8, easing:Strong.easeIn});
              ContentLdr.contentLoaderInfo.removeEventListener(ProgressEvent.PROGRESS,showProgress );
              ContentLdr.contentLoaderInfo.removeEventListener(Event.COMPLETE,contentLoaded);
    function LIcontentLoaded(loadEvent:Event):void
              if (LI_holder != null)
                        TransitionManager.start((LI_holder as MovieClip), {type:Iris, direction:Transition.OUT, duration:0.5, easing:Strong.easeOut, startPoint:5, shape:Iris.CIRCLE});
                        TransitionManager.start((LrgImageCaption as MovieClip), {type:Fade, direction:Transition.OUT, duration:0.8, easing:Strong.easeOut});
                        //removeChild(placeholder);
              LI_holder = new MovieClip;
              LI_holder.x = 70;
              LI_holder.y = 60;
              largeImage = addChild(LI_holder);
              LI_holder.addChild(ContentLdr.content);
              pcLoaded.alpha=0;
              LrgImageCaption.CaptionTxt.text = aLargeCapt[k+1];
              TransitionManager.start((LI_holder as MovieClip), {type:Iris, direction:Transition.IN, duration:0.5, easing:Strong.easeIn, startPoint:5, shape:Iris.CIRCLE});
               TransitionManager.start((LrgImageCaption as MovieClip), {type:Fade, direction:Transition.IN, duration:0.8, easing:Strong.easeIn});
              ContentLdr.contentLoaderInfo.removeEventListener(ProgressEvent.PROGRESS,showProgress );
              ContentLdr.contentLoaderInfo.removeEventListener(Event.COMPLETE,contentLoaded);
    function smallImagePress(evt:Event):void
              var DoTween:Tween;
              outgoing_lc.send("lc_bkgnd", "setBlackout", "Dark");
              DoTween = new Tween(create, "alpha", Regular.easeOut, 1, 0.05, 0.5, true);
              if (placeholder)
                        placeholder.alpha = 0;
              sm.buttonMode = false;
              DoTween = new Tween(sm, "alpha", Regular.easeOut, 1, 0, 0.8, true);
              imageCaption.alpha = 0;
              header.alpha = 0;
              var i:Number;
              for (i=0;i<clientCount; i++)
                        aClientInstance[i].alpha = 0;
              WhiteBlock.alpha = 0;
              WhiteBlock.visible = true;
              DoTween = new Tween(WhiteBlock, "alpha", Regular.easeOut, 0, 1, 0.8, true);
              DoTween = new Tween(btnCloseLarge, "alpha", Regular.easeOut, 0, 1, 0.8, true);
              //ArrowRight_Lrg.alpha = 1;
              //ArrowLeft_Lrg.alpha = 1;
              btnCloseLarge.addEventListener(MouseEvent.MOUSE_DOWN,btnCloseLarge_Press);
              First_LargImage();
    function btnCloseLarge_Press(event:MouseEvent):void
              var DoTween:Tween;
              outgoing_lc.send("lc_bkgnd", "setBlackout", "Light");
              DoTween = new Tween(create, "alpha", Regular.easeOut, 0.05, 1, 0.5, true);
              if (placeholder)
                        placeholder.alpha = 0;
              sm.buttonMode = true;
              DoTween = new Tween(sm, "alpha", Regular.easeOut, 0, 1, 0.5, true);
              LrgImageCaption.alpha = 0;
              header.alpha = 1;
              var i:Number;
              for (i=0;i<clientCount; i++)
                        aClientInstance[i].alpha = 0;
              DoTween = new Tween(WhiteBlock, "alpha", Regular.easeOut, 1, 0, 0.8, true);
              DoTween = new Tween(btnCloseLarge, "alpha", Regular.easeOut, 1, 0, 0.8, true);
              WhiteBlock.visible = false;
              DoTween = new Tween(btnCloseLarge, "alpha", Regular.easeOut, 1, 0, 0.8, true);
              DoTween = new Tween(ArrowRight_Lrg, "alpha", Regular.easeOut, 1, 0, 0.8, true);
              DoTween = new Tween(ArrowLeft_Lrg, "alpha", Regular.easeOut, 1, 0, 0.8, true);
              btnCloseLarge.removeEventListener(MouseEvent.MOUSE_DOWN,btnCloseLarge_Press);
              removeChild(LI_holder);
    function setMenuAlpha()
              aClientInstance[CurrentMenu].alpha = 0.6;
    function First_LargImage():void
    /*for (i=0;i<aLargeCapt.length;i++)
              trace("430: " + i,aLargePict[i],aLargeCapt[i]);
              var TweenArrow;
              var DoTween:Tween;
              DoTween = new Tween(btnCloseLarge, "alpha", Regular.easeOut, 0, 1, 0.8, true);
              loadLargeImage(ImageDir + aLargePict[aPicArr[5][CurrentMenu+1]]);
              //trace("(436) " + aPicArr[5][CurrentMenu+1], CurrentMenu, aLargePict[CurrentMenu],aLargeCapt[CurrentMenu]);
              if (k == aLargePict.length)
                        ArrowRight_Lrg.buttonMode = false;
                        TweenArrow = new Tween(ArrowRight_Lrg, "alpha", Regular.easeOut, 1, 0, 0.8, true);
                        ArrowRight_Lrg.removeEventListener(MouseEvent.MOUSE_DOWN,btnArrowRight_LrgPress );
              else
                        ArrowRight_Lrg.buttonMode = true;
                        TweenArrow = new Tween(ArrowRight_Lrg, "alpha", Regular.easeOut, 0, 1, 0.8, true);
                        ArrowRight_Lrg.addEventListener(MouseEvent.MOUSE_DOWN,btnArrowRight_LrgPress);
              if (aPicArr[5][CurrentMenu+1]>0)
                        ArrowLeft_Lrg.buttonMode = true;
                        if (ArrowLeft_Lrg.alpha == 0)
                                  TweenArrow = new Tween(ArrowLeft_Lrg, "alpha", Regular.easeOut, 0, 1, 0.8, true);
                                  ArrowLeft_Lrg.addEventListener(MouseEvent.MOUSE_DOWN,btnArrowLeft_LrgPress );
              k = aPicArr[5][CurrentMenu+1];
    function Next_LargeImage():void
              var TweenArrow;
              if (k < aLargePict.length)
                        k++;
                        loadLargeImage(ImageDir + aLargePict[k]);
              if ((k ) == aLargePict.length)
                        ArrowRight_Lrg.buttonMode = false;
                        TweenArrow = new Tween(ArrowRight_Lrg, "alpha", Regular.easeOut, 1, 0, 0.8, true);
                        ArrowRight_Lrg.removeEventListener(MouseEvent.MOUSE_DOWN,btnArrowLeft_LrgPress) ;
              if (k >0)
                        ArrowLeft_Lrg.buttonMode = true;
                        if (ArrowLeft_Lrg.alpha == 0)
                                  TweenArrow = new Tween(ArrowLeft_Lrg, "alpha", Regular.easeOut, 0, 1, 0.8, true);
                                  ArrowLeft_Lrg.addEventListener(MouseEvent.MOUSE_DOWN,btnArrowLeft_LrgPress );
    function Prev_LargeImage():void
              var TweenArrow;
              if (k > 0)
                        k--;
                        loadLargeImage(ImageDir + aLargePict[k]);
              if (k < 1)
                        ArrowLeft_Lrg.buttonMode = false;
                        TweenArrow = new Tween(ArrowLeft_Lrg, "alpha", Regular.easeOut, 1, 0, 0.5, true);
                        ArrowLeft_Lrg.removeEventListener(MouseEvent.MOUSE_DOWN,btnArrowLeft_LrgPress);
                        ArrowLeft_Lrg.alpha=0;
              if (k < aLargePict.length)
                        ArrowRight_Lrg.buttonMode = true;
                        if (ArrowRight_Lrg.alpha == 0)
                                  TweenArrow = new Tween(ArrowRight_Lrg, "alpha", Regular.easeOut, 0, 1, 0.5, true);
                                  ArrowRight_Lrg.addEventListener(MouseEvent.MOUSE_DOWN,btnArrowRight_LrgPre ss);
                                  ArrowLeft_Lrg
    stop();
    The only other coding runs from frame 1 through to 9 which is here:
    import fl.transitions.*;
    import fl.transitions.easing.*;
    import flash.events.MouseEvent;
    import flash.net.LocalConnection;
    import flash.net.navigateToURL;
    import flash.net.URLRequest;
    var request:URLRequest
    var ContentLdr:Loader;
    var placeholder:Sprite;
    var LI_holder:Sprite;
    var percentloaded:int;
    var aPicArr:Array = new Array(3);
    var aClients: Array = new Array();
    var aClientInstance: Array = new Array();
    var aPicList: Array = new Array();
    var aPicCapt: Array = new Array();
    var aPicLarge: Array = new Array();
    var aPicCaptLarge: Array = new Array();
    var aLargePict: Array = new Array();
    var aLargeCapt: Array = new Array();
    var i:uint = 0;
    var j:uint = 0;
    var k:uint = 0;
    var clientCount:Number;
    var targetClient:String;
    var ImageDir:String = "images/";
    var CurrentMenu:Number;
    var outgoing_lc:LocalConnection = new LocalConnection();
    var sm;
    var largeImage;
    header.visible=false;
    LeftArrow.alpha=0;
    RightArrow.alpha=0;
    showreelPlayer.alpha=0;
    TransitionManager.start(header, {type:Fade, direction:Transition.IN, duration:0.8, easing:Strong.easeIn});

    As far as the 1034 error goes, it is indicating that somewhere in your codse you are trying to treat a button symbol as if it is a movieclip symbol.  You are likely the only one who is going to be able to find where.  It is possible that the recommendation below might help find which lines it is happening for.
    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).
    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.

  • Beginner: type error #1009 Please Help!

    I'm creating my first flash site in CS4 and I'm getting this message in the output window when I test my movie:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at Portfolio_fla::MainTimeline/frame273()
    Portfolio.fla is the name of my flash file. Anyone know what this means?
    I have only very simple code at frame 273:
    stop();
    bHome.addEventListener(MouseEvent.CLICK, goHome);
    function goHome(evt:Event) {
    this.gotoAndPlay("home");
    bPortfolio.addEventListener(MouseEvent.CLICK, goPortfolio);
    function goPortfolio(evt:Event) {
    this.gotoAndStop("confluence");
    That's it. The bHome button works if I just have that code by itself, but when i add the bPortfolio code, I get the #1009 error when I test the movie.
    Thanks in advance for any help! I'm so frustrated and lost.

    Just so you have an idea of what the 1009 error represents... the 1009 error indicates that one of the objects being targeted by your code is out of scope.
    This could mean that the object....
    - is not in the display list
    - doesn't have an instance name (or the instance name is mispelled)
    - does not exist in the frame where that code is trying to talk to it
    - is animated into place but is not assigned instance names in every keyframe for it
    - is one of two or more consecutive keyframes of the same objects with different names assigned.
    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.

  • Adobe Muse Type Error: #1009

    I have just bought single app subscription - Adobe Muse. But during use I get constantly this error. Man what is going on? Pretty bad that I have paid for the app and now can't use it :/

    Hi Robos,
    Can you please send your .muse file to [email protected], along with a link to this thread? If your file is too big for email (larger than 20mb) you can use a service like Adobe SendNow or SendThisFile. Please also send the MuseLog.txt file that should be in your documents folder.
    Regards,
    Aish

  • Error:error#1009 Connection type:live office conncetion

    i am using xceccious2008 SP3
    getting bellow error time to time on my Xcelcious dashboard.
    i am gathering data from sap table by using crystal reports to display in the dashboard.
    Need a solution from experts
    "For more information contact the file cerator or your system administrator
    Error:error#1009
    Connection type:live office conncetion:"

    Hi,
    Try with below steps.
        Open the Xcelsius
        Select the whole excel sheet
       go to Format cells
       Set to 'general'
        Preview the model
    Thanks,
    Amit

  • Another TypeError: Error #1009 Problem

    Hey all,   I've searched the 'net and searched these forums but can't seem to figure out what I'm doing wrong.  I'm creating a flash based game for school that so far has ten frames on the timeline.  I have buttons on frame one, frame 5, and frame 10. I have actionscript code to control those buttons on frame 1, frame 5, and frame 10 respectively.  The code is worded identically on each frame with the exception that I've changed the button names and the function names that are called when the mouse button is pressed.   The code works fine on frame 1 and on frame 5, but when I click the button on frame 5 that sends me to frame 10, I get this error immediately:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at keys2BibleTest_fla::MainTimeline/frame10()
        at flash.display::MovieClip/gotoAndStop()
        at keys2BibleTest_fla::MainTimeline/stormBtnHandler1()
    I have verified that each instance of the buttons do indeed have the name of the button being listened for in the event handlers. I can change the type from button to movieclip and it works fine.  I can also remove frames 1 through 9 and the code works.
    Here's the code:
    Frame 1:
    stop();
    enterBtn.addEventListener(MouseEvent.MOUSE_DOWN, enterBtnHandler1);
    function enterBtnHandler1(event:MouseEvent):void {
        gotoAndStop(5, "Scene 1");
    Frame 5:
    import flash.events.MouseEvent;
    stormBtn.addEventListener(MouseEvent.MOUSE_DOWN, stormBtnHandler1);
    function stormBtnHandler1(event:MouseEvent):void {
        gotoAndStop(10, "Scene 1");
    chickenOutBtn.addEventListener(MouseEvent.MOUSE_DOWN, chickenOutBtnHandler1);
    function chickenOutBtnHandler1(event:MouseEvent):void {
        gotoAndStop(1, "Scene 1");
    Frame 10:
    import flash.events.MouseEvent;
    creationBtn.addEventListener(MouseEvent.MOUSE_DOWN, creation);
    function creation(event:MouseEvent):void {
        gotoAndStop(3, "Scene 1");
    lifeBtn.addEventListener(MouseEvent.MOUSE_DOWN, lifeOfChrist);
    function lifeOfChrist(event:MouseEvent):void {
        navigateToURL(new URLRequest("http://www.ceoutreach.org"));
    I can't for the life of me figure out what's wrong.  Can anyone help?
    Thank you,
    Mike

    Ned,
    thank you for your reply. Unfortunately, my buttons are on separate layers and separated by blank keyframes to boot.  When I posted originally, the buttons were all on the same layer BUT separated by blank keyframes. After doing some research on the web, I moved the buttons to their own separate layers (one button per layer) and kept the blank keyframes as well.
    Currently, my only filled keyframes are one, five, and ten. All other keyframes are blank except for my labels and actionscript code. I'm using separate layers for labels and actions, too. I attempted to attach the file with my original post but received the message that .fla files are not allowed.  I don't know about your window, but mine says Max size 5.0 MB (my file is 2), All files types allowed except.... .fla is not one of those in the exception list so I expected it to go.
    It's got something to do with the two buttons on frame 10.... I just went into the actionscript and bypassed frame 5, going directly to frame 10 when the Enter button is depressed, and got the same error message.   There's something in the code I'm just not seeing.... when I comment out the code for the buttons, no error message.  Put the code back in, error message comes back.  Delete the buttons and the code and insert new ones, the error message comes back.
    It's got me totally stumped.
    Thank you for trying,
    Mike
    Edit: I forgot to mention, frame ten is the only place on the timeline where instances of these particular buttons are being used. The other frames are populated with different buttons.  Also, when I change the type to movieclip, everything works.  Weird, huh?

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

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

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

    Hi,
    I'm making a Flash game and rather than putting all the AS3 on a seperate .as file, I'm throwing it on the timeline, which may or may not be a mistake since this game is getting really big, really fast and messy.
    And so I'm getting this error when I test:
    TypeError: Error #1009: Cannot access a property or method of a null object reference at GameBeta_MainTimeline_fla::MainTimeline/frame1()
    From what I've read on this error, it refers to something that isn't instantiated yet, like something that's out of order? Like I'm referring to something that doesn't exist at the point in time that I'm referring to it? So I'm looking at my AS3 and have NO idea. Here is what I have written:
    stop();
    //TITLE PAGE
    play_game.addEventListener(MouseEvent.CLICK, startgame)
    function startgame(evt:MouseEvent):void
        gotoAndStop("Name Input");
    //Name and Gender input page
    var userName:String;
    inputField.addEventListener(Event.CHANGE, onInput)
    function onInput(e:Event):void
         outputField.text = "So your name is " + inputField.text + " are you sure?";
         userName = inputField.text;
    confirm_input.addEventListener(MouseEvent.CLICK, toCreationpg)
    function toCreationpg(evt:MouseEvent):void
        gotoAndStop("Fem Creation");
        outputField.text = "So your name is "+ userName;
    //Character Creation Page
    readytostart.addEventListener(MouseEvent.CLICK, firstscene_plz)
    function firstscene_plz(evt:MouseEvent):void
        gotoAndStop("Day03");
        outputField.text = "Let's make your character, "+ userName;
    So, any ideas as to why I'm getting this error?
    Before I had each page with it's own Actionscript and buttons inside their own movieclips on the timeline. That was getting confusing so I took everything out of the movieclips to place everything on one timeline and have one layer of Actionscript hoping to simplify things and find the problem easier. No luck. It's supposed to have a Title page and a button that goes to the 2nd page where you input your name, and while you type, it shows your name before you confirm by hitting another button that finally goes to the Character Creation page. When I test, I just get that Error#1009, it'll get to the 2nd page for the name input, but the text fields act wacky and the button to proceed isn't working. I'm hoping that when I find the source of this error, the rest will be fixed as well.
    Thanks in advance for any advice offered! I'll greatly appreciate it.

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

  • Error #1009 at mx.controls::DataGrid/mx.controls:DataGrid::mouseUpHandler()

    Hello.
    At first sorry for my english.
    I have encountered problem with DataGrid control.
    There is DataGrid control, which have custom ItemRenderer
    (MulticolorDataGridItemRenderer).
    This DataGrid control has several properties:
    1) click on a row changes it background color
    2) click on "Filter ON" button, filter DataGrid by "status"
    field
    "TypeError: Error #1009: Cannot access a property or method
    of a null object reference.
    at
    mx.controls::DataGrid/mx.controls:DataGrid::mouseUpHandler()"
    This error occure when filter is ON, by click on a row. It
    occures occasionally. I note that it
    occur when DataGrid's vertical scrollbar is not in top
    position.
    If I remove recovering of scroll position, this bug
    disappear.
    Sample code:
    ~~~~~~~~~~~~
    1. Application mxml:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute">
    <mx:Script>
    <![CDATA[
    import mx.collections.ArrayCollection;
    import mx.controls.List;
    private var objPrevSelectedItem:Object = null;
    private var arrList:Array = [{name: "Matt", lastname:
    "Chotin", status: "0", selected: "0"},
    {name: "Ely", lastname: "Greenfield", status: "1", selected:
    "0"},
    {name: "Christophe", lastname: "Coenraets", status: "2",
    selected: "0"},
    {name: "Sho", lastname: "Kuwamoto", status: "1", selected:
    "0"},
    {name: "Steven", lastname: "Webster", status: "4", selected:
    "0"},
    {name: "Alistair", lastname: "McLeod", status: "3",
    selected: "0"},
    {name: "Chafic", lastname: "Kazoun", status: "1", selected:
    "0"},
    {name: "Manish", lastname: "Jethani", status: "2", selected:
    "0"},
    {name: "Mike", lastname: "Chambers", status: "4", selected:
    "0"},
    {name: "Ted", lastname: "Patrick", status: "0", selected:
    "0"},
    {name: "Roger", lastname: "Gonzales", status: "1", selected:
    "0"},
    {name: "David", lastname: "Zuckerman", status: "3",
    selected: "0"},
    {name: "Alex", lastname: "Uhlmann", status: "3", selected:
    "0"},
    {name: "Peter", lastname: "Ent", status: "3", selected:
    "0"},
    {name: "Adobe", lastname: "Consulting", status: "2",
    selected: "0"},
    {name: "Marcel", lastname: "Boucher", status: "4", selected:
    "0"},
    {name: "Andrew", lastname: "Trice", status: "1", selected:
    "0"},
    {name: "Mike", lastname: "Morearty", status: "1", selected:
    "0"},
    {name: "Everything", lastname: "Flex", status: "0",
    selected: "0"},
    {name: "Jesse", lastname: "Warden", status: "3", selected:
    "0"},
    {name: "Richinternet", lastname: "Blog", status: "2",
    selected: "0"},
    {name: "Flex", lastname: "Daddy", status: "2", selected:
    "0"},
    {name: "Keun", lastname: "Lee", status: "0", selected: "0"},
    {name: "David", lastname: "Koletta", status: "4", selected:
    "0"},
    {name: "Brian", lastname: "Deitte", status: "1", selected:
    "0"},
    {name: "Darron", lastname: "Schal", status: "2", selected:
    "0"},
    {name: "Narciso", lastname: "Jaramillo", status: "3",
    selected: "0"},
    {name: "Kiwi", lastname: "Teamblog", status: "4", selected:
    "0"},
    {name: "Anthony", lastname: "Rumsey", status: "0", selected:
    "0"}];
    [Bindable]
    private var arrcollDP:ArrayCollection = new
    ArrayCollection(arrList);
    private function fnSelectRow(event:Event):void
    if (objPrevSelectedItem != null)
    objPrevSelectedItem["selected"] = new String("0");
    ArrayCollection(DataGrid(event.target).dataProvider).itemUpdated(objPrevSelectedItem);
    var numScrolPos:Number =
    DataGrid(event.target).verticalScrollPosition;
    Object(DataGrid(event.target).selectedItem)["selected"] =
    new String("1");
    ArrayCollection(DataGrid(event.target).dataProvider).itemUpdated(DataGrid(event.target).s electedItem);
    objPrevSelectedItem =
    Object(DataGrid(event.target).selectedItem);
    if (arrcollDP.filterFunction != null)
    arrcollDP.filterFunction = fnFilter;
    arrcollDP.refresh();
    DataGrid(event.target).verticalScrollPosition = numScrolPos;
    private function fnFilter(item:Object):Boolean
    var bResult:Boolean = new Boolean(false);
    if (String(item["status"]) == "0")
    bResult = true;
    return bResult;
    ]]>
    </mx:Script>
    <mx:DataGrid
    width="100%"
    height="100"
    dataProvider="{arrcollDP}"
    itemRenderer="MulticolorDataGridItemRenderer"
    draggableColumns="false"
    rowHeight="17"
    paddingTop="1"
    paddingBottom="1"
    horizontalGridLineColor="#a0a0a0"
    horizontalGridLines="true"
    change="fnSelectRow(event)">
    <mx:columns>
    <mx:DataGridColumn headerText="Name" dataField="name"
    width="250" textAlign="left" sortable="false"/>
    <mx:DataGridColumn headerText="Last Name"
    dataField="lastname" width="250" textAlign="left"
    sortable="false"/>
    <mx:DataGridColumn headerText="Status" dataField="status"
    width="80" textAlign="center" sortable="false"/>
    </mx:columns>
    </mx:DataGrid>
    <mx:Button label="Filter ON" y="110" x="5"
    click="arrcollDP.filterFunction = fnFilter;
    arrcollDP.refresh();"/>
    <mx:Button label="Filter OFF" y="110" x="105"
    click="arrcollDP.filterFunction = null; arrcollDP.refresh();"/>
    </mx:Application>
    2. MulticolorDataGridItemRenderer component mxml:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:DataGridItemRenderer xmlns:mx="
    http://www.adobe.com/2006/mxml"
    background="true" dataChange="fnChangeColor(event);">
    <mx:Script>
    <![CDATA[
    import mx.controls.dataGridClasses.DataGridColumn;
    import mx.events.FlexEvent;
    import mx.controls.Alert;
    private function fnChangeColor(event:FlexEvent):void
    if (Object(this.data) != null)
    if (!(this.data is DataGridColumn))
    var strTmp:String = String(Object(this.data)["status"]);
    if (strTmp == "0")
    this.backgroundColor = 0xccffcc;
    else if (strTmp == "1")
    this.backgroundColor = 0xffff99;
    else if (strTmp == "2")
    this.backgroundColor = 0x99ccff;
    else if (strTmp == "3")
    this.backgroundColor = 0xffcc99;
    else if (strTmp == "4")
    this.backgroundColor = 0xcc66ff;
    if (String(Object(this.data)["selected"]) == "1")
    this.backgroundColor = 0xff9933;
    ]]>
    </mx:Script>
    </mx:DataGridItemRenderer>
    And one another question: why did disappear standard DataGrid
    control selection mechanism, when I used custom
    DataGridItemRenderer? Try to use the sample code above withou
    fnSelectRow function.
    TIA

    Hi, I will try to explain what i have undestood about this issue.
    I have an application that loads at runtime some modules, and in my project configuration (Flex Modules), i specified some modules to compile optimizing to main application. Besides that, my project uses RSL to the framework linkage, and i perceived that the compiler output reports some warning messages just like "The CSS type selector 'DataGrid' was not processed, because the type was not used in the application." or others similars "The CSS type selector 'TextArea' was not processed, because the type was not used in the application.".
    When i run the application, and click the first time in some grid column, the error "Type Coercion failed: cannot convert ......@abcda2 to ........." happens.
    It happens because, these controls or components has not been linked in the main application compilation, and so, when you use the first module that uses one of these components, only the module loads an instance of these components and maintain on its part of memory.
    Dispite of being loaded in the main application, each module and main application has its SystemManager instance to register and load components, and because of it, when the application try to cast instances of the same component, but at differents SystemManager's singleton implementations, the above error occurs.
    So my solution was to add some reference of the controls or components that appears at the warning messages that was not compiled, to force the main application compilation to add these components at its SystemManager singletons first than any module.
    Only add the name of the component and import its package. Do not have to add to the stage. See below.
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" ....>
    <mx:Script>
            <![CDATA[
                        DataGrid;
                        TextArea;
            ]]>
        </mx:Script>
    </mx:Application>

  • Custom itemRenderer component based on cell value: error 1009

    I'm working on an item renderer for a dataGrid that has different states depending on the cell and row values.
    The cell value is a toggle (true or null), and sets whether content should be shown in the cell or not
    The row properties determine what is shown when the cell value is true.
    The dataGrid dataProvider is populated based on user id input.
    I created the itemRenderer as a custom actionscript component, closely following this example:
    360Flex Sample: Implementing IDropInListItemRenderer to create a reusable itemRenderer
    However, my component results in Error #1009 (Cannot access a property or method of a null object reference) when a user id is submitted.
    package components
         import mx.containers.VBox;
         import mx.controls.*;     import mx.controls.dataGridClasses.DataGridListData;
         import mx.controls.listClasses.BaseListData;
         import mx.core.*;
         public class toggleCellRenderer extends VBox
              public function ToggleCellRenderer()
              {super();}
              private var _listData:BaseListData;   
                   private var cellState:String;
                   private var cellIcon:Image;
                   private var imagePath:String;
                   private var imageHeight:int;
                   private var qty:String = data.qtyPerTime;
                   private var typ:String = data.type;
              public function get listData():BaseListData
                   {return _listData;}
              public function set listData(value:BaseListData):void
                   {_listData = value;}
              override public function set data(value:Object):void {
                   super.data = value;
                   if (value != null)
                   //errors on next line: Error #1009: Cannot access a property or method of a null object reference.
                   {cellState = value[DataGridListData(_listData).dataField]}
              override protected function createChildren():void {
                   removeAllChildren();
                   if(cellState=='true'){
                        cellIcon = new Image();
                        addChild(cellIcon);
                   //there is another state here that adds another child...
              //next overrides commitProperties()...
    There are no errors if I don't use an itemRenderer--the cells correctly toggle between "true" and empty when clicked.
    I also tried a simple itemRenderer component that disregards the cell value and shows in image based off row data--this works fine without errors or crashing. But I need to tie it to the cell value!
    I have very limited experience programming, in Flex or any other language. Any help would be appreciated.

    Your assumption that the xml file either loads with "true" or nothing  is right.
    After modifying the code to the following, I don't get the error, but it's still not reading the cell value correctly.
    package components
         import mx.containers.VBox;
         import mx.controls.*;   
         import mx.controls.dataGridClasses.DataGridListData;
         import mx.controls.listClasses.BaseListData;
         import mx.core.*;
         public class toggleCellRenderer extends VBox
              public function ToggleCellRenderer()
               super();
              private var _listData:BaseListData;   
              private var cellState:Boolean;
              private var cellIcon:Image;
              private var imagePath:String;
              private var imageHeight:int;
              private var qty:String;
              private var typ:String;
               public function get listData():BaseListData
                 return _listData;
              override public function set data(value:Object):void {
                   cellState = false;
                   if (listData && listData is DataGridListData && DataGridListData(listData).dataField != null){
                       super.data = value;
                       if (value[DataGridListData(this.listData).dataField] == "true"){
                           cellState = true;
              override protected function createChildren():void {
                   removeAllChildren();
                   if(cellState==true){
                        cellIcon = new Image();
                        addChild(cellIcon);
                   //there is another state here that adds another child...
              //next overrides commitProperties()...
    - didn't set the value of qty or typ in the variable declarations (error 1009 by this too--I removed this before but wanted to point out in case its useful)
    - added back in the get listData() function so I could use the listData
    - changed the null check
    All cells are still returning cellState = false when some are set to true, even if I comment out [if (value[DataGridListData(this.listData).dataField] == "true")] and just have it look for non-null data. That shouldn't make a difference anyway, but it confirms that all cells are returning null value.
    Swapping out the first if statement in set data with different variables results in the following:
    [if (listData != null)]  all cells return null (cellState=false for all)
    both [if (value != null)] and  [if (DataGridListData != null)]  results in error 1009 on a line following the if, so I assume they return non-null values.
    All rows have data, just not all fields in all rows, so shouldn't listData be non-null?  Could it be that the xml file hasn't fully loaded before the itemRenderer kicks in?
    I also realized  I had removed the item renderer from many of the columns for testing, and since some columns are hidden by default only one column in the view was using the itemRenderer--hence the single alert per row I was worried about earlier.
    Thanks for your help so far.

  • ActionScript TypeError: Error #1009?

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

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

  • Muse: error 1009: site doesn't open at all

    Hi,
    I've been working on a portfolio website with the muse beta version, but since yesterday I have been getting an error when I try to open it, I doesn't open at all any more.
    It gives the following error:
    Adobe Muse encountered an unexpected error and will have to be terminated.
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    I've tried updating Muse to the non-beta trial version (didn't help), and a friend tried to open it on his computer (didn't help either). I starting to run out of ideas of how to solve this. Does anyone know what I could do to fix this?
    Thanks

    I have emailed you with copy and paste log page.  No point in sending file as couldn't create one.
    On could almost figure a virus has crept into the programme as I cannot believe software engineering at this level could produce something so awful, presuming it went through the normal QA procedure.  The previous version worked well for me but now Muse is unusable:
    Since the 2014.2 update I get the same "error 1009" to practically everything I try to do - create/open site, drag widget onto page, align image, place image, every command link I click on etc etc. causes the programme to crash with an attempt to reopen site.  Going around in circles and it seems this problem has reared its ugly head some time ago looking at these pages with similar problems going back to 2011.
    I also get a strange message on each of the links from the custom welcome/start page  inviting you to create/open, or got to whats new or getting started pages.  On each of the pages connected to these links is a picture of a dog in a round window with the name "Sophie" curiously written under each dog - different dog on each page - nice - but more worryingly an  "err= URL/ blahh blah etc etc - stack overflow ding bat wotsit" computer says no message appears on each of the pages in gigantic type clearly screaming that all is not well ....
    I did manage to close the start page and start directly from the programme menu instead to open sites or try to create a new site but invariably, within minutes, it will crash with the same "error 1009" message which is clearly looking for something it cannot find.
    I would laugh my head off if it wasn't so tragic...... I need to move forward (not backwards) now I cannot use Flash for mobile web design projects without being subjected to another high learning curve. Not particularly impressed with HTML5 or Jqwerty so far and its generic, buggy accordion sites we are being forced to go to on our 336 ppi smartphones although I admit I am a graphic designer not a programmer.

  • Error #1009 Live Office Connections

    Hi,
    I created a dashboard in Xcelsius 2008, with live office connections.  When I'm testing (select an options with combo box, and show me tool bars, datasheets....)   it  on Infoview, the following message appears by surprise on a grey background:
    "An error has ocurred.
    For more information, contact the file creator or your system administrator.
    Error: Error #1009
    Connection type: Live Office Connection"
    When I try again (the same combination) , the results appears correctly.  
    Apparently, the live office connection doesn't return all query results at the first time.
    Any idea what's the problem? and how can I solved it?
    Thanks

    Hi,
    You Didn't mentioned the Xcelsius version you are using.
    I presume that you need to install the latest fix pack. This fix pack 3.1 addressed this problem.  I would suggest you to install all in a row (Hot Fix 3.4 is the latest one).
    Refer below document.
    [http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/e07efcdb-8740-2d10-05a0-da7988536781]
    Good Luck & Keep Posting.

Maybe you are looking for