CurrentTarget is undefined

HI I'm trying to make a game and when you click the mouse on a certain target it's suppose to set the currentTarget equal to a number that represents the movie clip you clicked but it's not working, the number comes up as "NaN" not a Number. Anyone know what I'm doing wrong? Thanks, here's the function I'm having trouble with:
public function clickBeast(event:MouseEvent) {
// prevent mouse clicks while showing sequence
if (gameMode != "replay") return;
var thisBeast:String;
var value1:Number = repeatOrder.shift();
if(value1 == 0){
thisBeast ="Cat1";
}else if((value1 == 1)||(value1 == 2)||(value1 == 3)||(value1 == 4)){
thisBeast ="Dog1";
}else if((value1 == 5)||(value1 == 6)||(value1 == 7)){
thisBeast = "Cat2";
}else if((value1 == 8)||(value1 == 9)){
thisBeast = "Dog2";
}else if(value1 == 10){
thisBeast ="Cat3";
trace (thisBeast);
var thisBeast2:String;
var value2:Number = event.currentTarget.beastNum;
if(value2 == 0){
thisBeast2 ="Cat1";
}else if((value2 == 1)||(value2 == 2)||(value2 == 3)||(value2 == 4)){
thisBeast2 ="Dog1";
}else if((value2 == 5)||(value2 == 6)||(value2 == 7)){
thisBeast2 = "Cat2";
}else if((value2 == 8)||(value2 == 9)){
thisBeast2 = "Dog2";
}else if(value2 == 10){
thisBeast2 ="Cat3";
trace (value2);
trace (thisBeast2);
// correct match
if (thisBeast2 == thisBeast) {
beastOn(event.currentTarget.beastNum);
// check to see if sequence is over
if (repeatOrder.length == 0) {
nextTurn();
// got it wrong
} else {
textMessage.text = "Game Over!";
gameMode = "gameover";

You cannot treat an interactive object as a Number, and I don't see where the code you have tries that.  If you are talking about the beastNum property that you try to utilize, it might be a case of how you define/assign that value.  So you might need to explain that.
For the first lines in that function put...
trace(event.currentTarget);
trace(event.currentTarget.beastNum);
For the first line it should output the object that was involved with the event.  What does the second line produce?

Similar Messages

  • Call to a possibly undefined method

    I am having a real problem with using two different Tile Lists in one movieClip I keep getting:
    call to a possibly undefined method trousers1
    call to a possibly undefined method trousers2
    call to a possibly undefined method trousers3
    call to a possibly undefined method trousers4
    call to a possibly undefined method trousers5
    package
    import flash.display.MovieClip;
    import flash.events.MouseEvent;
    import fl.controls.Slider;
    import fl.events.SliderEvent;
    import fl.controls.Label;
    import fl.controls.NumericStepper;
    import flash.events.Event;
    import fl.controls.TileList;
    import flash.display.DisplayObject;
    import fl.events.ListEvent;
    import flash.utils.getDefinitionByName;
    import flash.events.EventDispatcher;
    import fl.controls.SelectableList;
    public class Main extends MovieClip
       //Variables
       var startPage:StartPage;
       var tutorialPage:TutorialPage;
       var maleSizePage:MaleSizePage;
       var femaleSizePage:FemaleSizePage;
       var maleDragDropPage:MaleDragDropPage;
       var femaleDragDropPage:FemaleDragDropPage;
       var objTShirt:Object={};
       var objTrouser:Object={};
       //clothes variables
       var tshirt1:tShirt1;
       var tshirt2:tShirt2;
       var tshirt3:tShirt3;
       var tshirt4:tShirt4;
       var trousers1:Trousers1;
       var trousers2:Trousers2;
       var trousers3:Trousers3;
       var trousers4:Trousers4;
       var trousers5:Trousers5;
       var _isDragging:Boolean;
       public function Main()
        //Pages
        startPage = new StartPage;
        tutorialPage = new TutorialPage;
        maleSizePage = new MaleSizePage;
        femaleSizePage = new FemaleSizePage;
        maleDragDropPage = new MaleDragDropPage;
        femaleDragDropPage = new FemaleDragDropPage;
        objTShirt[0+"_"+0] = new tShirt1;
        objTShirt[1+"_"+0] = new tShirt2;
        objTShirt[2+"_"+0] = new tShirt3;
        objTShirt[3+"_"+0] = new tShirt4;
        objTrouser[0+"_"+0] = new trousers1;
        objTrouser[1+"_"+0] = new trousers2;
        objTrouser[2+"_"+0] = new trousers3;
        objTrouser[3+"_"+0] = new trousers4;
        objTrouser[4+"_"+0] = new trousers5;
        _isDragging = false;
        addChild(startPage);
        //Event Listeners Buttons
        startPage.startButton.addEventListener(MouseEvent.CLICK,startButtonClick);
        tutorialPage.continueButton.addEventListener(MouseEvent.CLICK,tutorialContinueButtonClick);
        maleSizePage.continueButton.addEventListener(MouseEvent.CLICK,maleSizeContinueButtonClick);
        femaleSizePage.continueButton.addEventListener(MouseEvent.CLICK,femaleSizeContinueButtonClick);
        //Size Page Event Listeners
        maleSizePage.heightSlider.addEventListener(SliderEvent.CHANGE,heightSlChange_M);
        maleSizePage.neckSlider.addEventListener(SliderEvent.CHANGE,neckSlChange_M);
        maleSizePage.chestSlider.addEventListener(SliderEvent.CHANGE,chestSlChange_M);
        maleSizePage.waistSlider.addEventListener(SliderEvent.CHANGE,waistSlChange_M);
        maleSizePage.armSlider.addEventListener(SliderEvent.CHANGE,armSlChange_M);
        maleSizePage.legSlider.addEventListener(SliderEvent.CHANGE,legSlChange_M);
        maleSizePage.heightValue.addEventListener(Event.CHANGE,heightVChange_M);
        maleSizePage.neckValue.addEventListener(Event.CHANGE,neckVChange_M);
        maleSizePage.chestValue.addEventListener(Event.CHANGE,chestVChange_M);
        maleSizePage.waistValue.addEventListener(Event.CHANGE,waistVChange_M);
        maleSizePage.armValue.addEventListener(Event.CHANGE,armVChange_M);
        maleSizePage.legValue.addEventListener(Event.CHANGE,legVChange_M);
        femaleSizePage.heightSlider.addEventListener(SliderEvent.CHANGE,heightSlChange_F);
        femaleSizePage.bustSlider.addEventListener(SliderEvent.CHANGE,bustSlChange_F);
        femaleSizePage.hipSlider.addEventListener(SliderEvent.CHANGE,hipSlChange_F);
        femaleSizePage.armSlider.addEventListener(SliderEvent.CHANGE,armSlChange_F);
        femaleSizePage.waistSlider.addEventListener(SliderEvent.CHANGE,waistSlChange_F);
        femaleSizePage.legSlider.addEventListener(SliderEvent.CHANGE,legSlChange_F);
        //Drag and Drop page Listeners
        maleDragDropPage.menuBar.stop();
        femaleDragDropPage.menuBar.stop();
        maleDragDropPage.menuBar.topsButton.addEventListener(MouseEvent.MOUSE_DOWN,topsMenuShow_M);
        maleDragDropPage.menuBar.trousersButton.addEventListener(MouseEvent.MOUSE_DOWN,trousersMenuShow_M);
        maleDragDropPage.menuBar.shoesButton.addEventListener(MouseEvent.MOUSE_DOWN,shoesMenuShow_M);
       //Event Button handlers
       function startButtonClick(event:MouseEvent):void
        addChild(tutorialPage);
       function tutorialContinueButtonClick(event:MouseEvent):void
        if (startPage.maleSelection.selected == true)
         addChild(maleSizePage);
         removeChild(startPage);
         removeChild(tutorialPage);
        if (startPage.femaleSelection.selected == true)
         addChild(femaleSizePage);
         removeChild(startPage);
         removeChild(tutorialPage);
       function maleSizeContinueButtonClick(event:MouseEvent):void
        addChild(maleDragDropPage)
        removeChild(maleSizePage)
       function femaleSizeContinueButtonClick(event:MouseEvent):void
        addChild(femaleDragDropPage)
        removeChild(femaleSizePage)
       // slider handlers
       function heightSlChange_M(event:SliderEvent):void
        maleSizePage.heightValue.value = maleSizePage.heightSlider.value;
        maleSizePage.maleCharacter.height = maleSizePage.heightSlider.value + 280;
       function neckSlChange_M(event:SliderEvent):void
        maleSizePage.neckValue.value = maleSizePage.neckSlider.value;
        maleSizePage.maleCharacter.neck.width = maleSizePage.neckSlider.value + 40;
       function chestSlChange_M(event:SliderEvent):void
        maleSizePage.chestValue.value = maleSizePage.chestSlider.value;
        maleSizePage.maleCharacter.chest.width = maleSizePage.chestSlider.value + 141;
       function waistSlChange_M(event:SliderEvent):void
        maleSizePage.waistValue.value = maleSizePage.waistSlider.value;
        maleSizePage.maleCharacter.waist.width = maleSizePage.waistSlider.value + 140;
       function armSlChange_M(event:SliderEvent):void
        maleSizePage.armValue.value = maleSizePage.armSlider.value;
        maleSizePage.maleCharacter.leftArm.height = maleSizePage.armSlider.value + 180;
        maleSizePage.maleCharacter.rightArm.height = maleSizePage.armSlider.value + 180;
       function legSlChange_M(event:SliderEvent):void
        maleSizePage.legValue.value = maleSizePage.legSlider.value;
        maleSizePage.maleCharacter.rightLeg.height = maleSizePage.legSlider.value + 250;
        maleSizePage.maleCharacter.leftLeg.height = maleSizePage.legSlider.value +250;
       function heightVChange_M(e:Event):void
        maleSizePage.heightSlider.value = maleSizePage.heightValue.value;
        maleSizePage.maleCharacter.height = maleSizePage.heightValue.value + 280;
       function neckVChange_M(e:Event):void
        maleSizePage.neckSlider.value = maleSizePage.neckValue.value;
        maleSizePage.maleCharacter.neck.width = maleSizePage.neckValue.value + 40;
       function chestVChange_M(e:Event):void
        maleSizePage.chestSlider.value = maleSizePage.chestValue.value;
        maleSizePage.maleCharacter.chest.width = maleSizePage.chestValue.value + 141;
       function waistVChange_M(e:Event):void
        maleSizePage.waistSlider.value = maleSizePage.waistValue.value;
        maleSizePage.maleCharacter.waist.width = maleSizePage.waistValue.value + 140
       function armVChange_M(e:Event):void
        maleSizePage.armSlider.value = maleSizePage.armValue.value;
        maleSizePage.maleCharacter.leftArm.height = maleSizePage.armValue.value + 180;
        maleSizePage.maleCharacter.rightArm.height = maleSizePage.armValue.value + 180;
       function legVChange_M(e:Event):void
        maleSizePage.legSlider.value = maleSizePage.legValue.value;
        maleSizePage.maleCharacter.leftLeg.height = maleSizePage.legValue.value + 240;
        maleSizePage.maleCharacter.rightLeg.height = maleSizePage.legValue.value + 240;
       function heightSlChange_F(e:Event):void
        femaleSizePage.heightValue.value = femaleSizePage.heightSlider.value;
        femaleSizePage.femaleCharacter.height = femaleSizePage.heightSlider.value + 250;
       function bustSlChange_F(e:Event):void
        femaleSizePage.bustValue.value = femaleSizePage.bustSlider.value;
        femaleSizePage.femaleCharacter.chest.width = femaleSizePage.bustSlider.value + 150;
       function waistSlChange_F(event:SliderEvent):void
        femaleSizePage.waistValue.value = femaleSizePage.waistSlider.value;
        femaleSizePage.femaleCharacter.waist.width = femaleSizePage.waistSlider.value + 140;
       function armSlChange_F(event:SliderEvent):void
        femaleSizePage.armValue.value = femaleSizePage.armSlider.value;
        femaleSizePage.femaleCharacter.leftArm.height = femaleSizePage.armSlider.value + 180;
        femaleSizePage.femaleCharacter.rightArm.height = femaleSizePage.armSlider.value + 180;
       function legSlChange_F(event:SliderEvent):void
        femaleSizePage.legValue.value = femaleSizePage.legSlider.value;
        femaleSizePage.femaleCharacter.rightLeg.height = femaleSizePage.legSlider.value + 250;
        femaleSizePage.femaleCharacter.leftLeg.height = femaleSizePage.legSlider.value +250;
       function hipSlChange_F(event:SliderEvent):void
        femaleSizePage.hipValue.value = femaleSizePage.hipSlider.value;
        femaleSizePage.femaleCharacter.hips.width = femaleSizePage.hipSlider.value + 160;
       function heightVChange_F(e:Event):void
        femaleSizePage.heightSlider.value = femaleSizePage.heightValue.value;
        femaleSizePage.femaleCharacter.height = femaleSizePage.heightValue.value + 280;
       function bustVChange_F(e:Event):void
        femaleSizePage.bustSlider.value = femaleSizePage.bustValue.value;
        femaleSizePage.femaleCharacter.chest.width = femaleSizePage.bustValue.value + 150;
       function hipsVChange_F(e:Event):void
        femaleSizePage.hipSlider.value = femaleSizePage.hipValue.value;
       function waistVChange_F(e:Event):void
        femaleSizePage.waistSlider.value = femaleSizePage.waistValue.value;
        femaleSizePage.femaleCharacter.waist.width = femaleSizePage.waistValue.value + 140;
       function armVChange_F(e:Event):void
        femaleSizePage.armSlider.value = femaleSizePage.armValue.value;
        femaleSizePage.femaleCharacter.leftArm.height = femaleSizePage.armValue.value + 180;
        femaleSizePage.femaleCharacter.rightArm.height = femaleSizePage.armValue.value + 180
       function legVChange_F(e:Event):void
        femaleSizePage.legSlider.value = femaleSizePage.legValue.value;
        femaleSizePage.femaleCharacter.rightLeg.height = femaleSizePage.legValue.value + 250;
        femaleSizePage.femaleCharacter.leftLeg.height = femaleSizePage.legValue.value +250;
       //Drag and Drop handlers
       function topsMenuShow_M(event:MouseEvent):void
        maleDragDropPage.menuBar.gotoAndStop(2);
        maleDragDropPage.menuBar.maleTops.addEventListener(ListEvent.ITEM_CLICK,addTshirt1_M)
       function trousersMenuShow_M(event:MouseEvent):void
        maleDragDropPage.menuBar.gotoAndStop(3);
        maleDragDropPage.menuBar.maleTrousers.addEventListener(ListEvent.ITEM_CLICK,addTrousers1_M)
       function shoesMenuShow_M(event:MouseEvent):void
        maleDragDropPage.menuBar.gotoAndStop(4);
       function addTshirt1_M(event:ListEvent):void
        trace(event.rowIndex,event.columnIndex)
        if (contains(objTShirt[0+"_"+0]))
         removeChild(objTShirt[0+"_"+0]);
        if (contains(objTShirt[1+"_"+0]))
         removeChild(objTShirt[1+"_"+0]);
        if (contains(objTShirt[2+"_"+0]))
         removeChild(objTShirt[2+"_"+0]);
        if (contains(objTShirt[3+"_"+0]))
         removeChild(objTShirt[3+"_"+0]);
        addChild(objTShirt[event.rowIndex+"_"+event.columnIndex] as DisplayObject).addEventListener(MouseEvent.MOUSE_DOWN,tShirtDragPickup);
       function tShirtDragPickup(event:Event):void
        var currentDragObject:MovieClip = event.currentTarget as MovieClip;
        currentDragObject.startDrag();
        setChildIndex(currentDragObject, numChildren-1);
        _isDragging = true;
        currentDragObject.addEventListener(MouseEvent.MOUSE_UP, tShirtDragDrop);
       function tShirtDragDrop(event:Event):void
        var currentDragObject:MovieClip = event.currentTarget as MovieClip;
        currentDragObject.stopDrag();
        _isDragging = false;
        currentDragObject.removeEventListener(MouseEvent.MOUSE_UP, tShirtDragDrop);
       function tShirtTarget(event:Event):void
        if (maleDragDropPage.objTShirt[0+"_"+0].hitTestObject(maleDragDropPage.maleCharacter.chest))
         if (! _isDragging)
          maleDragDropPage.objTShirt[0+"_"+0].x = maleDragDropPage.maleCharacter.chest.x;
          maleDragDropPage.objTShirt[0+"_"+0].y = maleDragDropPage.maleCharacter.chest.y;
        if (maleDragDropPage.objTShirt[1+"_"+0].hitTestObject(maleDragDropPage.maleCharacter.chest))
         if (! _isDragging)
          maleDragDropPage.objTShirt[1+"_"+0].x = maleDragDropPage.maleCharacter.chest.x;
          maleDragDropPage.objTShirt[1+"_"+0].y = maleDragDropPage.maleCharacter.chest.y;
        if (maleDragDropPage.objTShirt[2+"_"+0].hitTestObject(maleDragDropPage.maleCharacter.chest))
         if (! _isDragging)
          maleDragDropPage.objTShirt[2+"_"+0].x = maleDragDropPage.maleCharacter.chest.x;
          maleDragDropPage.objTShirt[2+"_"+0].y = maleDragDropPage.maleCharacter.chest.y;
        if (maleDragDropPage.objTShirt[3+"_"+0].hitTestObject(maleDragDropPage.maleCharacter.chest))
         if (! _isDragging)
          maleDragDropPage.objTShirt[3+"_"+0].x = maleDragDropPage.maleCharacter.chest.x;
          maleDragDropPage.objTShirt[3+"_"+0].y = maleDragDropPage.maleCharacter.chest.y;
       function addTrousers1_M(event:ListEvent):void
        trace(event.rowIndex,event.columnIndex)
        if (contains(objTrouser[0+"t"+0]))
         removeChild(objTrouser[0+"t"+0]);
        if (contains(objTrouser[1+"t"+0]))
         removeChild(objTrouser[1+"t"+0]);
        if (contains(objTrouser[2+"t"+0]))
         removeChild(objTrouser[2+"t"+0]);
        if (contains(objTrouser[3+"t"+0]))
         removeChild(objTrouser[3+"t"+0]);
        if (contains(objTrouser[4+"t"+0]))
         removeChild(objTrouser[4+"t"+0]);
        addChild(objTrouser[event.rowIndex+"t"+event.columnIndex] as DisplayObject).addEventListener(MouseEvent.MOUSE_DOWN,trouserDragPickup);
       function trouserDragPickup(event:Event):void
        var currentDragObject:MovieClip = event.currentTarget as MovieClip;
        currentDragObject.startDrag();
        setChildIndex(currentDragObject, numChildren-1);
        _isDragging = true;
        currentDragObject.addEventListener(MouseEvent.MOUSE_UP, trouserDragDrop);
       function trouserDragDrop(event:Event):void
        var currentDragObject:MovieClip = event.currentTarget as MovieClip;
        currentDragObject.stopDrag();
        _isDragging = false;
        currentDragObject.removeEventListener(MouseEvent.MOUSE_UP, trouserDragDrop);
       function trouserTarget(event:Event):void
        if (maleDragDropPage.objTrouser[0+"_"+0].hitTestObject(maleDragDropPage.maleCharacter.waist))
         if (! _isDragging)
          maleDragDropPage.objTrouser[0+"_"+0].x = maleDragDropPage.maleCharacter.waist.x;
          maleDragDropPage.objTrouser[0+"_"+0].y = maleDragDropPage.maleCharacter.waist.y;
        if (maleDragDropPage.objTrouser[1+"_"+0].hitTestObject(maleDragDropPage.maleCharacter.waist))
         if (! _isDragging)
          maleDragDropPage.objTrouser[1+"_"+0].x = maleDragDropPage.maleCharacter.waist.x;
          maleDragDropPage.objTrouser[1+"_"+0].y = maleDragDropPage.maleCharacter.waist.y;
        if (maleDragDropPage.objTrouser[2+"_"+0].hitTestObject(maleDragDropPage.maleCharacter.chest))
         if (! _isDragging)
          maleDragDropPage.objTrouser[2+"_"+0].x = maleDragDropPage.maleCharacter.chest.x;
          maleDragDropPage.objTrouser[2+"_"+0].y = maleDragDropPage.maleCharacter.chest.y;
        if (maleDragDropPage.objTShirt[3+"_"+0].hitTestObject(maleDragDropPage.maleCharacter.chest))
         if (! _isDragging)
          maleDragDropPage.objTrouser[3+"_"+0].x = maleDragDropPage.maleCharacter.chest.x;
          maleDragDropPage.objTrouser[3+"_"+0].y = maleDragDropPage.maleCharacter.chest.y;

    You are trying to assign undefined instances of class objects rather than define them...
        objTrouser[0+"_"+0] = new trousers1;
        objTrouser[1+"_"+0] = new trousers2;
        objTrouser[2+"_"+0] = new trousers3;
        objTrouser[3+"_"+0] = new trousers4;
        objTrouser[4+"_"+0] = new trousers5;
    should be
        objTrouser[0+"_"+0] = new Trousers1();
        objTrouser[1+"_"+0] = new Trousers2();
        objTrouser[2+"_"+0] = new Trousers3();
        objTrouser[3+"_"+0] = new Trousers4();
        objTrouser[4+"_"+0] = new Trousers5();
    and I didn't look deeper to see why you aren't creating the instances you declared (trousers1, etc) instead of objTrouser[0+"_"+0] etc.

  • 1119 Error help undefined property

    Here is my code:
    var gameSounds:Sound = new Sound(new URLRequest("inGame.mp3"));
    gameSounds.play();
    var gunShotSound:Sound = new Sound(new URLRequest("gunshot.mp3"));
    import flash.events.MouseEvent;
    import flash.display.MovieClip;
    import flash.geom.Point;
    stop();
    gunBarrel.addEventListener(Event.ENTER_FRAME,  gunEnterFrame);
    function gunEnterFrame(pEvt) {
        var mc = pEvt.currentTarget;
        var angleRadian = Math.atan2(mouseY - mc.y,mouseX - mc.x);
        var angleDegree = angleRadian * 180 / Math.PI;
        mc.rotation = angleDegree;
    Mouse.hide();
    main_crosshair.startDrag(true);
    main_crosshair.addEventListener(MouseEvent.MOUSE_DOWN, crosshairFX);
    function crosshairFX (e:MouseEvent):void{
              gunShotSound.play();
              var projectile:bullet = new bullet();
    //projectile.x = parent.mouseX;
    //          projectile.y = parent.mouseY;
              projectile.x = gunBarrel.x;
        projectile.y = gunBarrel.y;
        // Save the randian angle between the mouse and the tank
        // This angle will set the direction of the bullet
        projectile.angleRadian = Math.atan2(mouseY - gunBarrel.y, mouseX - gunBarrel.x);
        // Add an enter frame event on each bullet
        projectile.addEventListener(Event.ENTER_FRAME, bulletEnterFrame);
              addChild(projectile);
              main_crosshair.gotoAndPlay(3);
    // Velocity of each bullet
    var speed = 8;
    function bulletEnterFrame(pEvent) {
        // Get the current object (Bullet)
        var p = pEvent.currentTarget;
        // Move this bullet on each frames
        // On X axis use the cosinus angle
        p.x +=  Math.cos(p.angleRadian) * speed;
        // On Y axis use the sinus angle
        p.y +=  Math.sin(p.angleRadian) * speed;
        // Orient the bullet to the direction
        p.rotation = p.angleRadian * 180 / Math.PI;
        // You have to remove each created bullet
        // So after every moves you must check bullet position
        // If the bullet is out of the screen
        if (p.x < 0 || p.x > 400 || p.y < 0 || p.y > 400) {
            // Remove it from the display list
            removeChild(p);
            // /!\ AND REOMOVE HIS EVENT LISTER
            p.removeEventListener(Event.ENTER_FRAME, bulletEnterFrame);
    When I try to run it though I get "1119: Access of possibly undefined property angleRadian through a reference with static type bullet."
    What's wrong with my code?

    cast p as a MovieClip and retest.  if that fails, click file/publish settings/swf, tick "permit debugging" and retest to see the line number with the problematic code.
    function bulletEnterFrame(pEvent) {
        // Get the current object (Bullet)
        var p = MovieClip(pEvent.currentTarget);

  • Error 1180 : undefined method stop and gotoAndStop

    Error 1180 : undefined method stop and gotoAndStop
    i don't know why
    Here ,, it's my code is file [.as] and i use as3
    package {
              import flash.display.*;
              import flash.events.*;
              import flash.text.*;
              import flash.utils.Timer;
              import flash.media.Sound;
        import flash.media.SoundChannel;
              import flash.net.URLRequest;
              public class MemoryGame extends Sprite {
                        static const numLights:uint = 5;
                        private var lights:Array; // list of light objects
                        private var playOrder:Array; // growing sequence
                        private var repeatOrder:Array;
                        // timers
                        private var lightTimer:Timer;
                        private var offTimer:Timer;
                        var gameMode:String; // play or replay
                        var currentSelection:MovieClip = null;
                        var soundList:Array = new Array(); // hold sounds
                        public function MemoryGame() {
                                  //soundBG.load(new URLRequest("soundBG.mp3"));
                                  //soundBG.addEventListener(Event.COMPLETE,loadSoungBgComplete);
                                  stop();
                                  StartBtn.addEventListener(MouseEvent.CLICK, clickStart);
                                  function clickStart(e:MouseEvent){
                                            gotoAndStop("startPage");
                                  // load the sounds
                                  soundList = new Array();
                                  for(var i:uint=1;i<=5;i++) {
                                            var thisSound:Sound = new Sound();
                                            var req:URLRequest = new URLRequest("note"+i+".mp3");
                                            thisSound.load(req);
                                            soundList.push(thisSound);
                                  // make lights
                                  lights = new Array();
                                  for(i=0;i<numLights;i++) {
                                            var thisLight:Light = new Light();
                                            thisLight.lightColors.gotoAndStop(i+1); // show proper frame
                                            thisLight.x = i*90+100; // position
                                            thisLight.y = 175;
                                            thisLight.lightNum = i; // remember light number
                                            lights.push(thisLight); // add to array of lights
                                            addChild(thisLight); // add to screen
                                            thisLight.addEventListener(MouseEvent.CLICK,clickLight); // listen for clicks
                                            thisLight.buttonMode = true;
                                  // reset sequence, do first turn
                                  playOrder = new Array();
                                  gameMode = "play";
                                  nextTurn();
                        // add one to the sequence and start
                        public function nextTurn() {
                                  // add new light to sequence
                                  var r:uint = Math.floor(Math.random()*numLights);
                                  playOrder.push(r);
                                  // show text
                                  textMessage.text = "Watch and Listen.";
                                  textScore.text = "Sequence Length: "+playOrder.length;
                                  // set up timers to show sequence
                                  lightTimer = new Timer(1000,playOrder.length+1);
                                  lightTimer.addEventListener(TimerEvent.TIMER,lightSequence);
                                  // start timer
                                  lightTimer.start();
                        // play next in sequence
                        public function lightSequence(event:TimerEvent) {
                                  // where are we in the sequence
                                  var playStep:uint = event.currentTarget.currentCount-1;
                                  if (playStep < playOrder.length) { // not last time
                                            lightOn(playOrder[playStep]);
                                  } else { // sequence over
                                            startPlayerRepeat();
                        // start player repetion
                        public function startPlayerRepeat() {
                                  currentSelection = null;
                                  textMessage.text = "Repeat.";
                                  gameMode = "replay";
                                  repeatOrder = playOrder.concat();
                        // turn on light and set timer to turn it off
                        public function lightOn(newLight) {
                                  soundList[newLight].play(); // play sound
                                  currentSelection = lights[newLight];
                                  currentSelection.gotoAndStop(2); // turn on light
                                  offTimer = new Timer(500,1); // remember to turn it off
                                  offTimer.addEventListener(TimerEvent.TIMER_COMPLETE,lightOff);
                                  offTimer.start();
                        // turn off light if it is still on
                        public function lightOff(event:TimerEvent) {
                                  if (currentSelection != null) {
                                            currentSelection.gotoAndStop(1);
                                            currentSelection = null;
                                            offTimer.stop();
                        // receive mouse clicks on lights
                        public function clickLight(event:MouseEvent) {
                                  // prevent mouse clicks while showing sequence
                                  if (gameMode != "replay") return;
                                  // turn off light if it hasn't gone off by itself
                                  lightOff(null);
                                  // correct match
                                  if (event.currentTarget.lightNum == repeatOrder.shift()) {
                                            lightOn(event.currentTarget.lightNum);
                                            // check to see if sequence is over
                                            if (repeatOrder.length == 0) {
                                                      nextTurn();
                                  // got it wrong
                                  } else {
                                            textMessage.text = "Game Over!";
                                            gameMode = "gameover";
    and i don't push any code
    at fla file
    why i got that help me plss
    that is my homework and i must send it today TT

    can you write how to use ?
    i write
    "import the flash.display.MovieClip; "
    still error ahhh
    i try to change extends MovieClip instead Spirt
    and not error stop(); and gotoAndStop Already
    but
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
              at MemoryGame/nextTurn()
              at MemoryGame/clickStart()
    i got thissssssss TT
    import flash.display.Sprite;
    import flash.events.*;
    import flash.text.*;
    import flash.utils.Timer;
    import flash.media.Sound;
    import flash.media.SoundChannel;
    import flash.net.URLRequest;
    import flash.display.MovieClip;
    that i import

  • Undefined State

    I am trying to refer to States dynamically and keep getting
    an error telling me that the state is undefined.
    <mx:RadioButtonGroup id="affiliation" />
    <mx:Repeater id="rp" dataProvider="{acArtists}">
    <mx:RadioButton label="{rp.currentItem.grouptype}"
    groupName="affiliation"
    click="currentState='{rp.currentItem.grouptype}'"/>
    </mx:Repeater>
    How come it is defined for the label but not for current
    state?
    Below is the error.
    ArgumentError: Undefined state '{rp.currentItem.grouptype}'.
    at
    mx.core::UIComponent/getState()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\core\UI Component.as:7170]
    at
    mx.core::UIComponent/findCommonBaseState()[E:\dev\3.1.0\frameworks\projects\framework\src \mx\core\UIComponent.as:7190]
    at
    mx.core::UIComponent/commitCurrentState()[E:\dev\3.1.0\frameworks\projects\framework\src\ mx\core\UIComponent.as:7089]
    at
    mx.core::UIComponent/setCurrentState()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\ core\UIComponent.as:7053]
    at mx.core::UIComponent/set
    currentState()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\core\UIComponent.as:4339 ]
    at
    myfirstflex/___myfirstflex_RadioButton17_click()[N:\myfirstflex\src\myfirstflex.mxml:110]

    "rmorgan" <[email protected]> wrote in
    message
    news:gfa3dd$10l$[email protected]..
    >I am trying to refer to States dynamically and keep
    getting an error
    >telling me
    > that the state is undefined.
    > <mx:RadioButtonGroup id="affiliation" />
    > <mx:Repeater id="rp" dataProvider="{acArtists}">
    > <mx:RadioButton label="{rp.currentItem.grouptype}"
    groupName="affiliation"
    > click="currentState='{rp.currentItem.grouptype}'"/>
    > </mx:Repeater>
    >
    > How come it is defined for the label but not for current
    state?
    >
    > Below is the error.
    > ArgumentError: Undefined state
    '{rp.currentItem.grouptype}'.
    By the time you click, the repeater is done repeating and its
    currentItem
    property will be null. Try
    <mx:RadioButtonGroup id="affiliation" />
    <mx:Repeater id="rp" dataProvider="{acArtists}">
    <mx:RadioButton label="{rp.currentItem.grouptype}"
    groupName="affiliation"
    data="{rp.currentItem}"
    id="rb" click="changeState(event)">
    </mx:Repeater>
    and then
    private function changeState(e:Event) {
    var btn:RadioButton = e.currentTarget as RadioButton;
    currentState=btn.data.grouptype;
    HTH;
    Amy

  • Access of undefined property (loader)

    I am trying to run the simple code as following:
    <fx:Script>
    <![CDATA[
                                  import flash.display.*;
                                  import flash.net.URLRequest;
                                  Security.allowDomain("www.youtube.com");
                                  var url2:String = "image2.jpg";
                                  var urlRequest:URLRequest = new URLRequest(url2);   //problem code
                                  var loader:Loader = new Loader();     //problem code
                                  loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loader_complete);   //problem code
                                  loader.load(urlRequest);
                                  addChild(loader);
                                  function loader_complete(evt:Event):void {
                                            var target_mc:Loader = evt.currentTarget.loader as Loader;
                                            target_mc.x = (stage.stageWidth - target_mc.width) / 2;
                                            target_mc.y = (stage.stageHeight - target_mc.height) / 2;
                        ]]>
              </fx:Script>
    However, I got errors saying
        'access of undefined property 'loader_complete'
        'access of undefined property 'loader'
        'access of undefined property 'loader'
        'access of undefined property 'loader'
        'access of undefined property 'urlReguest'
    I haven't used Flash builder for a while and need some assistants. Any thoughts? Thanks for the help.

    I am just testing some codes for youtube api. It seems like that I can't use the Loader Class properties. Not sure why.
    I copied some code from the example in this website.
    https://developers.google.com/youtube/flash_api_reference

  • Undefined property?

    I have a slideshow app that I want to go to certain frames when a thumbnails button  is clicked. I get this error
    1119: Access of possibly undefined property targetPic through a reference with static type flash.display:SimpleButton.
    here is my inexperienced actionscript
    stop();
    var numFrames:Number = 14;
    tmb1_btn.targetPic = 1;
    tmb2_btn.targetPic = 2;
    right_btn.addEventListener(MouseEvent.CLICK, nextPic);
    left_btn.addEventListener(MouseEvent.CLICK,  prevPic);
    tmb1_btn.addEventListener(MouseEvent.CLICK,  picFrame);
    function nextPic(e:MouseEvent):void
    if (currentFrame < numFrames)
      nextFrame();
    else
      gotoAndStop(1);
    function prevPic(e:MouseEvent):void
    if (currentFrame > 1)
      prevFrame();
    else
      gotoAndStop(numFrames);
    function picFrame(e:MouseEvent):void
       gotoAndStop(e.currentTarget.targetPic);
    thanks for your time

    the simple button class won't allow you to add new properties like targetPic.  use a movieclip button.

  • Error while deploying a composite  (Message part "body" is undefined)

    Hi All,
    I am trying to deploy a composite but i am getting the following error.
    Buildfile: C:\Oracle\MiddlewareJdev\jdeveloper\bin\ant-sca-compile.xml
    scac:
    [scac] Validating composite "C:\JDeveloper\mywork\Sample\SampleDequeueBPEL\composite.xml"
    [scac] /C:/JDeveloper/mywork/Sample/SampleDequeueBPEL/Outputftp.wsdl: error: Message part "body" is undefined [element = EmpCollection
         [scac] Setting BPELC option 'classpath' to C:\Oracle\MiddlewareJdev\jdeveloper\jdev\extensions\oracle.sca.modeler.jar;C:\Oracle\MiddlewareJdev\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\fabric-runtime.jar;C:\Oracle\MiddlewareJdev\jdeveloper\soa\modules\oracle.soa.mgmt_11.1.1\soa-infra-mgmt.jar;C:\Oracle\MiddlewareJdev\oracle_common\modules\oracle.fabriccommon_11.1.1\fabric-common.jar;C:\Oracle\MiddlewareJdev\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\orabpel.jar;C:\Oracle\MiddlewareJdev\jdeveloper\soa\modules\oracle.soa.mediator_11.1.1\mediator_client.jar;C:\Oracle\MiddlewareJdev\oracle_common\modules\oracle.mds_11.1.1\mdsrt.jar;C:\Oracle\MiddlewareJdev\oracle_common\modules\oracle.adf.model_11.1.1\adfbcsvc.jar;C:\Oracle\MiddlewareJdev\oracle_common\modules\oracle.adf.model_11.1.1\adfbcsvc-share.jar;C:\Oracle\MiddlewareJdev\oracle_common\modules\commonj.sdo_2.1.0.jar;C:\Oracle\MiddlewareJdev\modules\org.eclipse.persistence_1.1.0.0_2-1.jar;C:\Oracle\MiddlewareJdev\oracle_common\modules\oracle.webservices_11.1.1\wsclient.jar;C:\Oracle\MiddlewareJdev\oracle_common\modules\oracle.web-common_11.1.1.jar;;C:\JDeveloper\mywork\Sample\SampleDequeueBPEL\SCA-INF\classes
    [scac] C:\JDeveloper\mywork\Sample\SampleDequeueBPEL\composite.xml:21: error: SCAC-50012
    BUILD FAILED
    C:\Oracle\MiddlewareJdev\jdeveloper\bin\ant-sca-compile.xml:272: Java returned: 1 Check log file : C:\JDeveloper\mywork\Sample\SampleDequeueBPEL\SCA-INF\classes\scac.log for errors
    Total time: 4 seconds
    This is an integration from Dequeue to FTP . Dequeue have a payload of message type which is transformed to Ftp message type. Below is the wsdl file where i am getting error
    <wsdl:definitions
         name="Outputftp"
         targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/ftp/Sample/SampleDequeueBPEL/Outputftp"
         xmlns:jca="http://xmlns.oracle.com/pcbpel/wsdl/jca/"
         xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
         xmlns:tns="http://xmlns.oracle.com/pcbpel/adapter/ftp/Sample/SampleDequeueBPEL/Outputftp"
         xmlns:plt="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
        >
      <plt:partnerLinkType name="Put_plt" >
        <plt:role name="Put_role" >
          <plt:portType name="tns:Put_ptt" />
        </plt:role>
      </plt:partnerLinkType>
        <wsdl:types>
          <schema targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/ftp/Sample/SampleDequeueBPEL/Outputftp"
                  xmlns="http://www.w3.org/2001/XMLSchema" >
            <include schemaLocation="xsd/FileFTP.xsd" />
          </schema>
        </wsdl:types>
        <wsdl:message name="Put_msg">
            <wsdl:part name="body" element="EmpCollection"/>
        </wsdl:message>
        <wsdl:portType name="Put_ptt">
            <wsdl:operation name="Put">
                <wsdl:input message="tns:Put_msg"/>
            </wsdl:operation>
        </wsdl:portType>
    </wsdl:definitions>XSD of FTP:
    <?xml version= '1.0' encoding= 'UTF-8' ?>
    <xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
        <xs:element name="EmpCollection">
            <xs:complexType>
                <xs:sequence>
                    <xs:element name="Emp" maxOccurs="unbounded" minOccurs="0">
                        <xs:complexType>
                            <xs:sequence>
                                <xs:element type="xs:string" name="name"/>
                                <xs:element type="xs:byte" name="id"/>
                                <xs:element type="xs:byte" name="dept"/>
                                <xs:element type="xs:string" name="address"/>
                            </xs:sequence>
                        </xs:complexType>
                    </xs:element>
                </xs:sequence>
            </xs:complexType>
        </xs:element>
    </xs:schema>Could someone help me on this. Thanks in advance.
    Thanks
    Gnanaprakasam R

    Gnanaprakasam ,
    Check log file : C:\JDeveloper\mywork\Sample\SampleDequeueBPEL\SCA-INF\classes\scac.log for errorsDid you managed to look into logs.
    Try to reconfigured the ftp adapter from scratch.
    I had ran into same error as yours what i did was, restarted the Jdeveloper and was able to compile !!
    Regards,
    Abhinav Gupta

  • Adobe Bridge CS6 undefined in not an object Help Please

    I am so sick and tired of getting this error message when I try to create a pdf contact sheet - undefined is not an object.  Can someone help me?
    What frustrates me the is there is no log file telling me what image has the problem which Bridge does not like.
    This example is of brand new eps files that were created in the last month
    I also have the same undefined object is not an object using AI files but none are shown in this example.
    If there is no solution to tell me what eps or ai file(s) bridge does not like - is there a setting I can change so Bridge skips the file it does not like?  Sorta silly skipping a file for a contact sheet but if that is a workaround to make it bridge work that would be a huge improvement versus the program not working at all, LOL...
    1. I have tried using another program to rename all my files to be sequential numbers too, so that is taking more time and I am losing the ability to find my files by name and I still get the undefined is not an object.
    2. I am to the point of using other programs to create jpeg images of AI and EPS files and then using bridge to make contact sheets and doing that takes a ton more time and is just silly to do so now I am to the point of asking for help. 
    3. Operating system is Wondows 7 - I use CS6 - Adobe Bridge for making contact sheets - screen shoot is attached - all CS6 items are up to date with updates.
    4. Yes, I have searched the internet for help and searched adobe for help --- seems like no one has posted a solution.

    I am having this same issue. I'm attempting to make a pdf in Bridge but am getting the error message "undefined is not an object." A log or a report of some kind would be very useful here to find out which object is the offender. Looking at my files they appear to be in order but obviously something is amiss....

  • Upgraded to Firefox 4 now can not access my inbox in email. Error message say I have undefined new mails in the inbox

    Downloaded update toi mFirewfox 4. ISP is Talktalk. Can open My mail and get to screen with inbox but page seems to stopp loading then as it doesa not show amount of space being used etc which it normally does. Instead message says 'You have undefined new mails in your inbox' Nothing then happens and the button to open the inbox does not work. Can however access my email and inbox through Outlook express. Contacted TalkTalk help line and after running some checks was told that the problem is with the browser. Canb anyone help solve this please.

    Me too, problem is being googled alot by other tiscali users also.

  • View attributes can not be retrieved. View instance not found or undefined

    Hi,
    I am creating a simple master detail OAF page. For this I have done following steps:
    1. Created ParentEO and ChildEO
    2. Created ParentVO with a transient attribute called "SelectFlag" with default value "Y" .
    3. Created ChildVO
    4. Created a UserViewLink.
    5. Created Application module (UserAM).
    6. New Page UserPG
    7. In the main region I have defined Application Module.
    8. Under the main region, I have created a new advanced table region with following properties:
    View Instance : ParentVO1
    Detail View Attribute : SelectFlag
    View Link Instance: UserViewLink.
    Now when I click to select the "Child View Attribute", it gives a pop up saying "View attributes can not be retrieved. View instance not found or undefined".
    Please help, I am not able to proceed on this.
    Thanks,
    Anupam

    Anupam,
    I do not see in your steps where you associated the VO with the AM. In order to select an attribute, the AM must have an instance of the VO associated with it. Double click the AM in the navigator. Click Data Model and shuttle the VO's you want to be available from the left to the right.
    Hope this helps.
    Kristofer

  • When I try to log on to my ichat I get the error message "An undefined AIM socket error has occurred.". How do I resolve this?

    The error message "An undefined AIM socket error has occurred." comes up when I try and log on to ichat.

    I have the same issue. Does anybody know why this has happened

  • The system has attempted to use an undefined value, which usually indicates a programming error, either in your code or

    I have taken the cfdump for tmpqry and it shows all data for
    the range ( No error at this step ) . But when we exceute this
    dbquery we get below mentioned error .
    <cfquery name="qry" dbtype="query" >
    SELECT *
    FROM tmpqry
    ORDER BY #arguments.colSort# ASC
    </cfquery>
    senerio:
    I am using createobject to create a reference for component
    and call MDArraySort function in the cfc and getting this error .
    'The system has attempted to use an undefined value, which
    usually indicates a programming error, either in your code or some
    system code.
    Null pointer is undefined.... '
    i am using this code in a cfc file.
    <cffunction name="MDArraySort" Returntype="query"
    access="public" >
    <cfargument name="colArray" type="array"
    required="true">
    <cfargument name="colNames" type="string"
    required="true">
    <cfargument name="colSort" type="string"
    required="true">
    <cfargument name="sensorIDs" type="string"
    required="true">
    <cfscript>
    var tmpqry = Querynew(arguments.colNames);
    var qRow = QueryAddRow(tmpqry, Arraylen(arguments.colArray)
    </cfscript>
    <cfloop from="1" to="#Arraylen(arguments.colArray)#"
    index="qRowIndex">
    <cfscript>
    sIndexinSensorIDs = colArray[qRowIndex]["SENSOR"]&"##";
    Temp_readin_code =
    colArray[qRowIndex]["READING_CODE"]&"##";
    QuerySetCell(tmpqry, 'SENSOR', sIndexinSensorIDs,
    qRowIndex);
    QuerySetCell(tmpqry,
    'TYPE',javacast('String',colArray[qRowIndex]["TYPE"]), qRowIndex);
    QuerySetCell(tmpqry, 'TIMESTAMP2',
    LSParseDateTime(colArray[qRowIndex]["TIMESTAMP2"]), qRowIndex);
    QuerySetCell(tmpqry,
    'ORDER_BY_PARAM',javacast('String',colArray[qRowIndex]["ORDER_BY_PARAM"]),
    qRowIndex);
    QuerySetCell(tmpqry, 'READING_CODE',Temp_readin_code ,
    qRowIndex);
    QuerySetCell(tmpqry,
    'READING',javacast('String',colArray[qRowIndex]["READING"]),
    qRowIndex);
    QuerySetCell(tmpqry,
    'PK_READING',javacast('String',colArray[qRowIndex]["PK_READING"]),
    qRowIndex);
    QuerySetCell(tmpqry,
    'ALARM_STATUS',javacast('String',colArray[qRowIndex]["ALARM_STATUS"]),
    qRowIndex);
    QuerySetCell(tmpqry, 'DURATION',
    javacast('String',colArray[qRowIndex]["DURATION"]), qRowIndex);
    QuerySetCell(tmpqry,
    'DESCRIPTION',javacast('String',colArray[qRowIndex]["DESCRIPTION"]),
    qRowIndex);
    </cfscript>
    </cfloop>
    <cfquery name="qry" dbtype="query" >
    SELECT *
    FROM tmpqry
    ORDER BY #arguments.colSort# ASC
    </cfquery>
    <cfreturn qry >
    </cffunction>
    It is working fine for some date range and and getting above
    mentioned error in sone situation .

    Hi All ,
    Thank you for your support ,
    Finally i have fix the issue using some changes in my
    function in cfc .
    <cffunction name="MDArraySort" Returntype="query"
    access="public" >
    <cfargument name="colArray" type="array"
    required="true">
    <cfargument name="colNames" type="string"
    required="true">
    <cfargument name="colSort" type="string"
    required="true">
    <cfargument name="sensorIDs" type="string"
    required="true">
    <cfscript>
    //Declare variable collection used in function as local
    --->
    var tmpqry =
    Querynew(arguments.colNames,"CF_SQL_VARCHAR,CF_SQL_VARCHAR,CF_SQL_DATE,CF_SQL_VARCHAR,CF_ SQL_VARCHAR,CF_SQL_VARCHAR,CF_SQL_VARCHAR,CF_SQL_VARCHAR,CF_SQL_VARCHAR,CF_SQL_VARCHAR");
    var qRow = QueryAddRow(tmpqry,
    Arraylen(arguments.colArray));
    </cfscript>
    <cfloop from="1" to="#Arraylen(arguments.colArray)#"
    index="qRowIndex">
    <cfscript>
    // Populate the query table
    QuerySetCell(tmpqry, 'SENSOR',
    colArray[qRowIndex]["SENSOR"], qRowIndex);
    QuerySetCell(tmpqry,
    'TYPE',arguments.colArray[qRowIndex]["TYPE"], qRowIndex);
    QuerySetCell(tmpqry, 'TIMESTAMP2',
    LSParseDateTime(arguments.colArray[qRowIndex]["TIMESTAMP2"]),
    qRowIndex);
    QuerySetCell(tmpqry,
    'ORDER_BY_PARAM',arguments.colArray[qRowIndex]["ORDER_BY_PARAM"],
    qRowIndex);
    QuerySetCell(tmpqry, 'READING_CODE',
    colArray[qRowIndex]["READING_CODE"] , qRowIndex);
    QuerySetCell(tmpqry,
    'READING',arguments.colArray[qRowIndex]["READING"], qRowIndex);
    QuerySetCell(tmpqry,
    'PK_READING',arguments.colArray[qRowIndex]["PK_READING"],
    qRowIndex);
    QuerySetCell(tmpqry,
    'ALARM_STATUS',arguments.colArray[qRowIndex]["ALARM_STATUS"],
    qRowIndex);
    QuerySetCell(tmpqry, 'DURATION',
    arguments.colArray[qRowIndex]["DURATION"], qRowIndex);
    QuerySetCell(tmpqry,
    'DESCRIPTION',arguments.colArray[qRowIndex]["DESCRIPTION"],
    qRowIndex);
    </cfscript>
    </cfloop>
    <cfquery name="qry" dbtype="query" >
    SELECT *
    FROM tmpqry
    ORDER BY #arguments.colSort# ASC
    </cfquery>
    <cfreturn qry >
    </cffunction>
    Rajesh
    SCMS
    India

  • Getting bobj is undefined when report is viewed in Internet Explorer 8

    Background
    We are running a web application on a server that has "BusinessObjects Enterprise XI 3.1 FP 2.6 Update" installed on it.
    The server uses the 1.1 .net framework.
    This web app can generate Crystal reports and display them either by exporting to pdf, or by using the CrystalReportViewer control.
    (The CrystalDecisions references in the sln for the website are using version 12.0.1100.0.
    The web app is a custom web app that is not defined in iis at the default level.  It lives as a virtual website under the default website and uses the crystalreportviewers12 virtual directory.) 
    when the browser displays a report by exporting to pdf, it works just fine.
    Here is our issue:
    When the browser displays a report by using the CrystalReportViewer control using Internet Explorer 8 (IE8), it generates a javascript error:
    'bobj' is undefined
    Here are a few peculiar things on this:
    - the report displays ok for other IE8 users (so the issue only occurs for select IE8 users).
    - the report displays ok in ie6.
    - One notable observation is that IE8 has different sets of options amongst browsers.  We compared 2 machines that didnu2019t work, with 1 machine that does work. All 3 sets of IE8 settings differ in one way or another.
    Does anyone know if this is an issue that that can be fixed through an IE8 setting?  Or does it need to be fixed elsewhere?  Thank you!

    Hi Brownie,
    We only support IE 8 in Compatibility mode. Try selecting that option in the Browser and test again
    Thank you
    Don

  • Unable to get value of the property 'nodeName': object is null or undefined  Error in apex_ns_3_1.js

    I am getting the following error with IE9 and Firefox 26 with application express 3.2:
    SCRIPT5007: Unable to get value of the property 'nodeName': object is null or undefined
    apex_ns_3_1.js, line 589 character 10
    this.dialog.check2 = function (e){
    var tPar = html_GetTarget(e);
    var lEl = $x('apexir_col_values_drop');
    var l_Test = true;
    ******  while(tPar.nodeName != 'BODY'){
    tPar = tPar.parentNode;
    if(tPar == lEl){l_Test = false;}
    if(l_Test){$x_Remove('apexir_col_values_drop')}
    This happens when I click the Gear Icon, then Filter, then I click the dropdown arrow under expressions and pick an expression from the list.
    If I set (through IE Developer tools) back to IE8 mode, I don't get the error.

    Guess no one is using 3.2 any longer or no one else gets this error.....  Guess I can edit the JavaScript file to trap the error since it really doesn't seem to cause an issue.  Just didn't want to have to go that route.

Maybe you are looking for

  • IPod Nano - Shuffle plays same songs over and over

    I have several playlists on my iPod Nano with varying numbers of songs.  But it seems that every time I use my iPod, no matter which playlist I'm using, I get some songs over and over.  I'll hear the same couple songs multiple times in a day/week.  

  • Problem cloning hard disk for 10.6 setup

    Hi all, I just got Snow Leopard for my office MacBook Pro and for my home MacBook. On both machines I got an error message when trying to install it that my partition scheme is not GUID, so 10.6 won't install. First I worked on the MBP. It has a 250

  • Rendering in FCP + Watching QT files online = Crashing

    Whenever I am rendering in FCP (and sometimes even when I am not), if I open a Quicktime file online it causes my computer to freeze. I know that FCP is QT too, but is there a way to avoid this...i.e. change settings, anything? Take pity on the ignor

  • Saving arrays in file and read it back

    I am planning to save some data that been insert by user and save it . Then try read it back using data from the user... I' m still having problem to save the array of data... Attachments: gui1.3.vi ‏331 KB

  • Transport issue - Objects being picked diffrently in Dev system

    Hello folks, We added some new custom fields to our 2lis_02 datasource and replicated the datasource into the BW side. Mapped the new objects in transfer rules and activate, when it prompts me for the transport and I give it a number it gives me an e