Error #1010: A term is undefined and has no properties. When he is not yet on the scene

This is an error that I can't even explain to me why it fires, because it fires every time - that when I take like 1 or the last ship of table and it changes in some way and is not splice itself or something like that.

So I have a doShips function:

function doShips() {
          for (var i:int = shipArray.length - 1; i >= 0; i--) {
                    shipArray[i].moveDown() //what the code in the Ship and Ship2 class does -> only: this.y += 3
                    for (var bcount= _bulletsArray.length-1; bcount >= 0; bcount--) {
                              //if the bullet is touching the ship

                                        if (shipArray[i].hitTestObject(_bulletsArray[bcount])) {
                                        //if we get here it means there`s is a collision

                                                  removeChild(_bulletsArray[bcount]);
                                        _bulletsArray.splice(bcount,1);
                                        removeChild(shipArray[i]);
                                        shipArray.splice(i,1);
                              }
                    }
          }
}

When the FLA to debug the error comes from

 at ArrayOfShips_newG_withTurret_fla::MainTimeline/doShips()[ArrayOfShips_newG_withTurret_fla.MainTimeline::frame1:100]

line 100 is

if (shipArray[i].hitTestObject(_bulletsArray[bcount])) {

prior to this, there is a player on the stage that takes balls

//handling the bullets
function doBullets(){
          //make a for loop to iterate all  the _bulletsArray on the screen
          for (var bcount:int = _bulletsArray.length-1; bcount>=0; bcount--) {
                    //make the bullets move Up
                    _bulletsArray[bcount].y -=20;
                    //if the bullet is beyond the screen remove from the stage and the Array
                    if(_bulletsArray[bcount].y < 0) {
                              removeChild(_bulletsArray[bcount])
                              _bulletsArray.splice(bcount,1);
                    }
          }
}

also a function to move the player to the X coordinate.

and also a function that ships positions, but they are not important because I don't think they have anything to do with the error.

I can show all of the code in the FLA if it will help in some way to solve this problem.

Try using the index loops as little as possible. Use pipes for... each:

a. they are faster

b. they do not just depend on/pause on the removing items from tables in the middle of the iterations.

Try this code:

function doShips():void
{
          for each(var ship:MovieClip in shipArray)
          {
                    Object(ship).moveDown() ;
                    for each(var bullet:MovieClip in _bulletsArray)
                    {
                              //if the bullet is touching the ship
                              if (ship.hitTestObject(bullet))
                              {
                                        //if we get here it means there's is a collision
                                        removeChild(bullet);
                                        _bulletsArray.splice(_bulletsArray.indexOf(bullet), 1);
                                        removeChild(ship);
                                        shipArray.splice(shipArray.indexOf(ship), 1);
                              }
                    }
          }
}

Tags: Adobe Animate

Similar Questions

  • What does the error message mean? TypeError: Error #1010: a term is undefined and has no properties.

    Please can you tell me what does the following error code and what should I do to fix it.

    TypeError: Error #1010: a term is undefined and has no properties.

    Thank you very much

    Hello

    • When you get this error?
    • How long you have been facing this problem?
    • What were the changes made before the problem occurred?

    Reply back with more information, helping us to better understand the issue.

    See also:

    http://support.Microsoft.com/kb/555375

  • This new - TypeError: Error #1010: a term is undefined and has no properties

    Hi all I know that there are several threads on this.  I have a file with three frames: frame 1 is a main menu with buttons linking to frame 2 (an English menu) or in a frame 3 (a french).

    Within each sub menu is a code that loads various external swf.  Whenever the playhead passes these submenus in frames 2 or 3, I get the following output error.

    TypeError: Error #1010: a term is undefined and has no properties.

    at LungCancer_index_fla::English_mc_14/frame1()

    or

    TypeError: Error #1010: a term is undefined and has no properties.

    at LungCancer_index_fla::French_mc_21/frame1()

    If its going to the French menu.

    I do not understand what the 14 or the _21 is, beside the French_ or English_mc

    Otherwise, the file works just fine and I'm tempted to just ignore the error but I would still like to know.

    Thanks in advance

    Here's the code for English menu if it helps.

    .......................................................

    Stop();

    main menu button

    FrenchBtn.addEventListener (MouseEvent.CLICK, gotoFr);

    homeBtn.addEventListener (MouseEvent.CLICK, gotoMainMenu);

    function gotoFr(event:MouseEvent):void

    {

    MovieClip (this.root) .gotoAndStop ("French");

    }

    function gotoMainMenu(event:MouseEvent):void

    {

    MovieClip (this.root) .gotoAndStop ("top");

    }

    CHAPTER MENU: Event listeners.

    brainCancer.addEventListener (MouseEvent.CLICK, ch1);

    medication.addEventListener (MouseEvent.CLICK, ch2);

    surgery.addEventListener (MouseEvent.CLICK, ch3);

    radiotherapy.addEventListener (MouseEvent.CLICK, ch4);

    chemotherapy.addEventListener (MouseEvent.CLICK, ch5);

    support.addEventListener (MouseEvent.CLICK, ch6);

    //----------------------------------------------

    function ch1(e:MouseEvent):void {}

    subMenu.x = - 25;

    subMenu.y = - 115;

    }

    function ch2(e:MouseEvent):void {}

    subMenu.x = - 25;

    subMenu.y = 135;

    }

    function ch3(e:MouseEvent):void {}

    subMenu.x = - 25;

    subMenu.y = 385;

    }

    function ch4(e:MouseEvent):void {}

    subMenu.x = - 25;

    subMenu.y = 635;

    }

    function ch5(e:MouseEvent):void {}

    subMenu.x = - 25;

    subMenu.y = 885;

    }

    function ch6(e:MouseEvent):void {}

    subMenu.x = - 25;

    subMenu.y = 1135;

    }

    -external SWF call.

    var Xpos:Number = - 250;

    var Ypos:Number = - 350;

    var swf:MovieClip;

    var loader: Loader = new Loader();

    var defaultSWF:URLRequest = new URLRequest("swfs/cover.swf");

    Loader.Load (defaultSWF);

    Loader.x = Xpos;

    Loader.y = Ypos;

    addChild (loader);

    Function universal BTNS

    function btnClick(event:MouseEvent):void {}

    removeChild (loader);

    var newSWFRequest:URLRequest = new URLRequest ("SWFs /" + event.target.name + ".swf");

    Loader.Load (newSWFRequest);

    Loader.x = Xpos;

    Loader.y = Ypos;

    addChild (loader);

    }

    // ------------- BTN LISTENERS ---------------------------//

    Chapter 1: what is the gliomas

    subMenu.chapter1_1.addEventListener (MouseEvent.CLICK, btnClick);

    subMenu.chapter1_2.addEventListener (MouseEvent.CLICK, btnClick);

    subMenu.chapter1_3.addEventListener (MouseEvent.CLICK, btnClick);

    subMenu.chapter1_4.addEventListener (MouseEvent.CLICK, btnClick);

    subMenu.chapter1_5.addEventListener (MouseEvent.CLICK, btnClick);

    Chapter 2: drugs

    subMenu.chapter2_1.addEventListener (MouseEvent.CLICK, btnClick);

    subMenu.chapter2_2.addEventListener (MouseEvent.CLICK, btnClick);

    subMenu.chapter2_3.addEventListener (MouseEvent.CLICK, btnClick);

    subMenu.chapter2_4.addEventListener (MouseEvent.CLICK, btnClick);

    subMenu.chapter2_5.addEventListener (MouseEvent.CLICK, btnClick);

    Chapter 3: surgery

    subMenu.chapter3_1.addEventListener (MouseEvent.CLICK, btnClick);

    subMenu.chapter3_2_1.addEventListener (MouseEvent.CLICK, btnClick);

    subMenu.chapter3_2_2.addEventListener (MouseEvent.CLICK, btnClick);

    subMenu.chapter3_2_3.addEventListener (MouseEvent.CLICK, btnClick);

    subMenu.chapter3_3.addEventListener (MouseEvent.CLICK, btnClick);

    subMenu.chapter3_4_1.addEventListener (MouseEvent.CLICK, btnClick);

    subMenu.chapter3_4_2.addEventListener (MouseEvent.CLICK, btnClick);

    subMenu.chapter3_4_3.addEventListener (MouseEvent.CLICK, btnClick);

    subMenu.chapter3_5.addEventListener (MouseEvent.CLICK, btnClick);

    subMenu.chapter3_6_1.addEventListener (MouseEvent.CLICK, btnClick);

    subMenu.chapter3_6_2.addEventListener (MouseEvent.CLICK, btnClick);

    subMenu.chapter3_6_3.addEventListener (MouseEvent.CLICK, btnClick);

    Chapter 4: radiation therapy

    subMenu.chapter4_1.addEventListener (MouseEvent.CLICK, btnClick);

    subMenu.chapter4_2_1.addEventListener (MouseEvent.CLICK, btnClick);

    subMenu.chapter4_2_2.addEventListener (MouseEvent.CLICK, btnClick);

    subMenu.chapter4_3.addEventListener (MouseEvent.CLICK, btnClick);

    subMenu.chapter4_4.addEventListener (MouseEvent.CLICK, btnClick);

    Chapter 5: chemotherapy

    subMenu.chapter5_1.addEventListener (MouseEvent.CLICK, btnClick);

    subMenu.chapter5_2_1.addEventListener (MouseEvent.CLICK, btnClick);

    subMenu.chapter5_2_2.addEventListener (MouseEvent.CLICK, btnClick);

    subMenu.chapter5_3.addEventListener (MouseEvent.CLICK, btnClick);

    subMenu.chapter5_4_1.addEventListener (MouseEvent.CLICK, btnClick);

    subMenu.chapter5_4_2.addEventListener (MouseEvent.CLICK, btnClick);

    subMenu.chapter5_5.addEventListener (MouseEvent.CLICK, btnClick);

    subMenu.chapter5_6.addEventListener (MouseEvent.CLICK, btnClick);

    subMenu.chapter5_7.addEventListener (MouseEvent.CLICK, btnClick);

    Chapter 6: support

    subMenu.chapter6_1_1.addEventListener (MouseEvent.CLICK, btnClick);

    subMenu.chapter6_1_2.addEventListener (MouseEvent.CLICK, btnClick);

    subMenu.chapter6_1_3.addEventListener (MouseEvent.CLICK, btnClick);

    subMenu.chapter6_2.addEventListener (MouseEvent.CLICK, btnClick);

    subMenu.chapter6_4.addEventListener (MouseEvent.CLICK, btnClick);

    Go to your settings Flash publish and select the option to enable debugging.  Then tun the file so that the errors occur again.  If lucky the error message includes a number line just after the frame number.

  • TypeError: Error #1010: a term is undefined and has no properties.

    Error:

    TypeError: Error #1010: a term is undefined and has no properties.

    at BreedingSandbox_fla::MainTimeline/frame1() [BreedingSandbox_fla. MainTimeline::frame1:12]

    Code:

    Stop();

    mainMenu.menu1_mc.mc01.alpha = 0.4;

    mainMenu.menu2_mc.mc02.alpha = 0.4;

    mainMenu.menu1_mc.pane11.pane1.alpha = 0.6;

    mainMenu.menu1_mc.pane12.pane2.alpha = 0.6;

    mainMenu.menu1_mc.pane13.pane3.alpha = 0.6;

    mainMenu.menu1_mc.pane14.pane4.alpha = 0.6;

    mainMenu.menu1_mc.pane15.pane5.alpha = 0.6;

    mainMenu.menu1_mc.pane16.pane6.alpha = 0.6;

    mainMenu.menu1_mc.pane17.pane7.alpha = 0.6;

    mainMenu.menu1_mc.pane18.pane8.alpha = 0.6;

    mainMenu.menu1_mc.pane18.pane9.alpha = 0.6;

    mainMenu.menu1_mc.pane110.pane10.alpha = 0.6;

    var btnNum:int;

    var btnNumBig:int;

    var menu1Open:Boolean = false;

    var menu2Open:Boolean = false;

    var menu3Open:Boolean = false;

    var menu4Open:Boolean = false;

    var menu5Open:Boolean = false;

    var menu6Open:Boolean = false;

    var menu7Open:Boolean = false;

    var menu8Open:Boolean = false;

    var menu9Open:Boolean = false;

    var menu10Open:Boolean = false;

    var bg:MovieClip = new MovieClip();

    bg.graphics.beginFill (0 x 999999, 1);

    bg.graphics.drawRect (0, 0, stage.stageWidth, stage.stageHeight);

    bg.graphics.endFill ();

    BG.alpha = 0;

    mainMenu.addChildAt(bg,1);

    stage.addEventListener (MouseEvent.MOUSE_OVER, overBtn);

    function overBtn(evt:MouseEvent):void

    {

    switch (evt.target)

    {

    case mainMenu.menu1_mc.btnEarth1:

    btnNumBig = 1;

    openMenuBig();

    menu1Open = true;

    closeOtherMenus();

    break;

    case mainMenu.menu1_mc.btnFlame1:

    btnNum = 2;

    openMenu();

    menu2Open = true;

    closeOtherMenus();

    break;

    case mainMenu.menu1_mc.btnWater1:

    btnNum = 3;

    openMenu();

    menu3Open = true;

    closeOtherMenus();

    break;

    case mainMenu.menu1_mc.btnPlant1:

    btnNum = 4;

    openMenu();

    menu4Open = true;

    closeOtherMenus();

    break;

    case mainMenu.menu1_mc.btnElectric1:

    btnNum = 5;

    openMenu();

    menu5Open = true;

    closeOtherMenus();

    break;

    case mainMenu.menu1_mc.btnIce1:

    btnNum = 6;

    openMenu();

    menu6Open = true;

    closeOtherMenus();

    break;

    case mainMenu.menu1_mc.btnMetal1:

    btnNum = 7;

    openMenu();

    menu7Open = true;

    closeOtherMenus();

    break;

    case mainMenu.menu1_mc.btnDark:

    btnNum = 8;

    openMenu();

    menu8Open = true;

    closeOtherMenus();

    break;

    case mainMenu.menu1_mc.btnLegend1:

    btnNum = 9;

    openMenu();

    menu9Open = true;

    closeOtherMenus();

    break;

    case mainMenu.menu1_mc.btnPure1:

    btnNum = 10;

    openMenu();

    menu10Open = true;

    closeOtherMenus();

    break;

    }

    }

    bg.addEventListener (MouseEvent.MOUSE_OVER, leaveMenu);

    function leaveMenu(evt:MouseEvent):void

    {

    If (bg.hitTestPoint (mouseX, mouseY, true))

    {

    closeMenu();

    menu1Open = false;

    menu2Open = false;

    menu3Open = false;

    menu4Open = false;

    menu5Open = false;

    menu6Open = false;

    menu7Open = false;

    menu8Open = false;

    menu9Open = false;

    menu10Open = false;

    }

    }

    function openMenuBig (): void

    {

    mainMenu.menu1_mc.tween1.tweenLeftOut2.addTarget (mainMenu.menu1_mc.getChildByName ("p ane1" + btnNumBig), 1);

    }

    function openMenu (): void

    {

    mainMenu.menu1_mc.tween1.tweenLeftOut1.addTarget (mainMenu.menu1_mc.getChildByName ("p ane1" + btnNum), 1);

    }

    function closeMenu (): void

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.getChildByName ("pa ne1" + btnNum), 1);

    }

    function closeOtherMenus (): void

    {

    If (btnNumBig == 1 & & menu2Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane12, 1);

    menu2Open = false;

    }

    If (btnNumBig == 1 & & menu3Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane13, 1);

    menu3Open = false;

    }

    If (btnNumBig == 1 & & menu4Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane14, 1);

    menu4Open = false;

    }

    If (btnNumBig == 1 & & menu5Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane15, 1);

    menu5Open = false;

    }

    If (btnNumBig == 1 & & menu6Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane16, 1);

    menu6Open = false;

    }

    If (btnNumBig == 1 & & menu7Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane17, 1);

    menu7Open = false;

    }

    If (btnNumBig == 1 & & menu8Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane18, 1);

    menu8Open = false;

    }

    If (btnNumBig == 1 & & menu9Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane19, 1);

    menu9Open = false;

    }

    If (btnNumBig == 1 & & menu10Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane110, 1);

    menu10Open = false;

    }

    If (btnNum == 2 & & menu1Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane11, 1);

    menu1Open = false;

    }

    If (btnNum == 2 & & menu3Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane13, 1);

    menu3Open = false;

    }

    If (btnNum == 2 & & menu4Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane14, 1);

    menu4Open = false;

    }

    If (btnNum == 2 & & menu5Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane15, 1);

    menu5Open = false;

    }

    If (btnNum == 2 & & menu6Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane16, 1);

    menu6Open = false;

    }

    If (btnNum == 2 & & menu7Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane17, 1);

    menu7Open = false;

    }

    If (btnNum == 2 & & menu8Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane18, 1);

    menu8Open = false;

    }

    If (btnNum == 2 & & menu9Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane19, 1);

    menu9Open = false;

    }

    If (btnNum == 2 & & menu10Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane110, 1);

    menu10Open = false;

    }

    If (btnNum == 3 & & menu1Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane11, 1);

    menu1Open = false;

    }

    If (btnNum == 3 & & menu2Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane12, 1);

    menu2Open = false;

    }

    If (btnNum == 3 & & menu4Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane14, 1);

    menu4Open = false;

    }

    If (btnNum == 3 & & menu5Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane15, 1);

    menu5Open = false;

    }

    If (btnNum == 3 & & menu6Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane16, 1);

    menu6Open = false;

    }

    If (btnNum == 3 & & menu7Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane17, 1);

    menu7Open = false;

    }

    If (btnNum == 3 & & menu8Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane18, 1);

    menu8Open = false;

    }

    If (btnNum == 3 & & menu9Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane19, 1);

    menu9Open = false;

    }

    If (btnNum == 3 & & menu10Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane110, 1);

    menu10Open = false;

    }

    If (btnNum == 4 & & menu1Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane11, 1);

    menu1Open = false;

    }

    If (btnNum == 4 & & menu2Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane12, 1);

    menu2Open = false;

    }

    If (btnNum == 4 & & menu3Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane13, 1);

    menu3Open = false;

    }

    If (btnNum == 4 & & menu5Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane15, 1);

    menu5Open = false;

    }

    If (btnNum == 4 & & menu6Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane16, 1);

    menu6Open = false;

    }

    If (btnNum == 4 & & menu7Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane17, 1);

    menu7Open = false;

    }

    If (btnNum == 4 & & menu8Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane18, 1);

    menu8Open = false;

    }

    If (btnNum == 4 & & menu9Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane19, 1);

    menu9Open = false;

    }

    If (btnNum == 4 & & menu10Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane110, 1);

    menu10Open = false;

    }

    If (btnNum == 5 & & menu1Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane11, 1);

    menu1Open = false;

    }

    If (btnNum == 5 & & menu2Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane12, 1);

    menu2Open = false;

    }

    If (btnNum == 5 & & menu3Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane13, 1);

    menu3Open = false;

    }

    If (btnNum == 5 & & menu4Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane14, 1);

    menu4Open = false;

    }

    If (btnNum == 5 & & menu6Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane16, 1);

    menu6Open = false;

    }

    If (btnNum == 5 & & menu7Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane17, 1);

    menu7Open = false;

    }

    If (btnNum == 5 & & menu8Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane18, 1);

    menu8Open = false;

    }

    If (btnNum == 5 & & menu9Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane19, 1);

    menu9Open = false;

    }

    If (btnNum == 5 & & menu10Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane110, 1);

    menu10Open = false;

    }

    If (btnNum == 6 & & menu1Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane11, 1);

    menu1Open = false;

    }

    If (btnNum == 6 & & menu2Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane12, 1);

    menu2Open = false;

    }

    If (btnNum == 6 & & menu3Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane13, 1);

    menu3Open = false;

    }

    If (btnNum == 6 & & menu4Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane14, 1);

    menu4Open = false;

    }

    If (btnNum == 6 & & menu5Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane15, 1);

    menu5Open = false;

    }

    If (btnNum == 6 & & menu7Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane17, 1);

    menu7Open = false;

    }

    If (btnNum == 6 & & menu8Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane18, 1);

    menu8Open = false;

    }

    If (btnNum == 6 & & menu9Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane19, 1);

    menu9Open = false;

    }

    If (btnNum == 6 & & menu10Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane110, 1);

    menu10Open = false;

    }

    If (btnNum == 7 & & menu1Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane11, 1);

    menu1Open = false;

    }

    If (btnNum == 7 & & menu2Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane12, 1);

    menu2Open = false;

    }

    If (btnNum == 7 & & menu3Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane13, 1);

    menu3Open = false;

    }

    If (btnNum == 7 & & menu4Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane14, 1);

    menu4Open = false;

    }

    If (btnNum == 7 & & menu5Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane15, 1);

    menu5Open = false;

    }

    If (btnNum == 7 & & menu6Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane16, 1);

    menu6Open = false;

    }

    If (btnNum == 7 & & menu8Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane18, 1);

    menu8Open = false;

    }

    If (btnNum == 7 & & menu9Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane19, 1);

    menu9Open = false;

    }

    If (btnNum == 7 & & menu10Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane110, 1);

    menu10Open = false;

    }

    If (btnNum == 8 & & menu1Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane11, 1);

    menu1Open = false;

    }

    If (btnNum == 8 & & menu2Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane12, 1);

    menu2Open = false;

    }

    If (btnNum == 8 & & menu3Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane13, 1);

    menu3Open = false;

    }

    If (btnNum == 8 & & menu4Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane14, 1);

    menu4Open = false;

    }

    If (btnNum == 8 & & menu5Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane15, 1);

    menu5Open = false;

    }

    If (btnNum == 8 & & menu6Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane16, 1);

    menu6Open = false;

    }

    If (btnNum == 8 & & menu7Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane17, 1);

    menu7Open = false;

    }

    If (btnNum == 8 & & menu9Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane19, 1);

    menu9Open = false;

    }

    If (btnNum == 8 & & menu10Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane110, 1);

    menu10Open = false;

    }

    If (btnNum == 9 & & menu1Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane11, 1);

    menu1Open = false;

    }

    If (btnNum == 9 & & menu2Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane12, 1);

    menu2Open = false;

    }

    If (btnNum == 9 & & menu3Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane13, 1);

    menu3Open = false;

    }

    If (btnNum == 9 & & menu4Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane14, 1);

    menu4Open = false;

    }

    If (btnNum == 9 & & menu5Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane15, 1);

    menu5Open = false;

    }

    If (btnNum == 9 & & menu6Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane16, 1);

    menu6Open = false;

    }

    If (btnNum == 9 & & menu7Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane17, 1);

    menu7Open = false;

    }

    If (btnNum == 9 & & menu8Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane18, 1);

    menu8Open = false;

    }

    If (btnNum == 9 & & menu10Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane110, 1);

    menu10Open = false;

    }

    If (btnNum == 10 & & menu1Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane11, 1);

    menu1Open = false;

    }

    If (btnNum == 10 & & menu2Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane12, 1);

    menu2Open = false;

    }

    If (btnNum == 10 & & menu3Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane13, 1);

    menu3Open = false;

    }

    If (btnNum == 10 & & menu4Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane14, 1);

    menu4Open = false;

    }

    If (btnNum == 10 & & menu5Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane15, 1);

    menu5Open = false;

    }

    If (btnNum == 10 & & menu6Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane16, 1);

    menu6Open = false;

    }

    If (btnNum == 10 & & menu7Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane17, 1);

    menu7Open = false;

    }

    If (btnNum == 10 & & menu8Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane18, 1);

    menu8Open = false;

    }

    If (btnNum == 10 & & menu9Open)

    {

    mainMenu.menu1_mc.tween1.tweenLeftIn1.addTarget (mainMenu.menu1_mc.pane19, 1);

    menu9Open = false;

    }

    }

    can someone help me with this error? I am trying to create a drop-down menus bar

    Please help me

    If I had to guess I would say here is line 12 and it should be changed since...

    mainMenu.menu1_mc.pane18.pane9.alpha = 0.6;

    TO

    mainMenu.menu1_mc.pane19.pane9.alpha = 0.6;

    But this assumption is based on respecting the encoding scheme by which it is surrounded

  • Error #1010: A term is undefined and has no properties.

    Status display of twitter in flash via twitter with URLLoader.

    Line 394:


    Note: xml.status [num].user.statuses_count is 21, however when the flash I tried to retrieve the last State, which is number 21, it crashes with error #1010. Why he won't get the latest status? But when xml.status [num].user.statuses_count is equal to 20, it will retrieve all the 20 situation, including the latest status without error. It's very weird, I have no idea of what is happening is there any error event listener can I use to catch this type of error, so that my flash will always be operational when it happens again?


    for (var i = 0; i < xml.status [num].user.statuses_count; i ++)

    {

    post_array [i] = ContentCount;

    ContentCount ++;

    content_string += getContent (post_array [i]);

    }

    Line 450:

    private void getContent(num:Number) {}

    View all month, day and hour

    var posted: String = xml.status [num] .created_at;

    var content: String = "< font color =" #00000 ' > < a href = "+" "" http://Twitter.com/ « ' USER name "/ statutes / ' + xml.status [num] user.user + '" target = "_blank" > ' + xml.status [num] .text + ' < /a > < / fonts > < br / > < font size = "9" color = "#333333" > "+" posted the: "+ posted.substr (0, posted.length - 11) + ';' + '" of: "+ xml.status [num] .source +" < / fonts > < br / > < br / > '; »»

    Returns information

    return the content;

    }

    TypeError: Error #1010: a term is undefined and has no properties.

    at::MainClass/getContent() [C:\Users\xx\xx\xx\xx\xx\xx\xx\MainClass.as:450] fladev.twitter

    at::MainClass/displayInfo() [C:\Users\xx\xx\xx\xx\xx\xx\xx\MainClass.as:394] fladev.twitter

    at flash.events::EventDispatcher/dispatchEventFunction()

    at flash.events::EventDispatcher/dispatchEvent()

    at flash.net::URLLoader/onComplete()

    Like I said, your results can be limited to these sites. For example wordpress WHAT FEED generally send only 10 flow. The fact that you get exactly 20 RSS (0-19 = 20) tells me that Twitter is likely to limit what he sends you.

    You can always look in the API of twitter for an argument to send to twitter when you request workflows to send more then the amount of the default value.

  • TypeError: Error #1010: a term is undefined and has no properties.      in Main()

    Hello world!

    I am currently working on my final year project and it's my first time using Adobe Flash.Therefore I'm looking for your kind assistance to solve my problem.

    In fact, I want my home page a link to another page with a button. The two page created using movieclip. This error "TypeError: Error #1010: a term is undefined and has no properties." " in Main() ' a pop out output.

    package

    {

    import flash.display.MovieClip;

    import flash.events.MouseEvent;

    /public class Main extends MovieClip

    {

    var mainPage:MainPage;

    var tutOne:TutOne;

    public void Main()

    {

    mainPage = new MainPage();

    tutOne = new TutOne();

    addChild (mainPage);

    mainPage.btnTutorial.addEventListener (MouseEvent.CLICK,

    onbtnTutorialClick);

    }

    int onbtnTutorialClick(event:MouseEvent):void

    {

    addChild (tutOne);

    removeChild (mainPage);

    }

    }

    }

    Why is it so? How to remove this error?

    Can someone help me please .

    It is possible that you have lack of naming or misnamed the button inside the movieclip.  Just to be sure that the main page exists at this time in your code, use a front track of this line of code... you can also check for the button in this trace...

    trace (mainPage, mainPage.btnTutorial);

  • Error #1010 (a term is undefined and has no properties) in a simple HTTPService via POST

    I get the #1010 error (a term is undefined and has no properties):

    to flexGraph / httpResultHandlerUserInfo)

    to flexGraph / __userInfoXML_result)

    etc.

    I deleted some parts of the code is easier to read, if you can help me. I am filling a datagrid with information from a database, according to the alias I choose in the drop-down list. I get the error when I take an alias from the drop-down list.

    < mx:Script >

    <! [CDATA]

    Import mx.collections.ArrayCollection;

    Import mx.rpc.events.FaultEvent;

    Import mx.rpc.events.ResultEvent;

    Import mx.events.DropdownEvent;

    [Bindable] private var Usersinfo: ArrayCollection collection;

    private void httpResultHandlerUserInfo(event:ResultEvent):void {}

    Usersinfo = event.result.users.user;

    }

    private void httpFaultHandlerUserInfo(event:FaultEvent):void {}

    Alert.Show ("Unable to load the information of the user", "Error");

         }

    private void chooseUserCB(event:DropdownEvent):void {}

    userInfoXML. send();

    }

    }

    []] >

    "< mx:HTTPService id ="userInfoXML"url ="http://www.mysecondplace.org/flex/userInfo.php"" "

    "result =" httpResultHandlerUserInfo (Event) "fault =" httpFaultHandlerUserInfo (event) ".

    useProxy = "false" method = "POST" >

    < mx:request xmlns = "" > < alias > {usersAliasCB. selectedItem.alias} < / alias > < / mx:request >

    < / mx:HTTPService >

    "" < mx:ComboBox id = "usersAliasCB"

    x = "10" y = "10".

    labelField = 'alias '.

    Close = "chooseUserCB (Event)" / >

    < mx:DataGrid id = 'test '.

    x = "10" y = "100".

    dataProvider = "{Usersinfo}" / >

    Here is an example of the PHP file:

    $query_user = "SELECT * WHERE = alias USERS '." $_POST ["alias"]. " » ;

    Queries are working, help me please (if I test it with a correct alias) and I don't get the Alert.show ("Unable to load the information of the user", "Error");

    I had the problem...

    what I would do is I would create a tag counter in php, as well as other tags.

    $xml = '';
    $xml .= "";
    $xml .= "";
    
    $query = "select * from usertable";
    
    while(/* records */ )
    {
         $xml .= "";
              $xml .= "".$row[0]."";//..................all other fields you need
         $xml .= "";
    }
    
    $xml .= "";
    $xml .= "".mysql_num_rows()/* like that, i forgot, hope you get it.*/."";
    $xml .= "";
    
    echo $xml;
    

    now, in flex, check the count field, then:

    if(e.result.root.count == 1)
         usersInfo  = new ArrayCollection([e.result.root.items.item]);
    else if(e.result.root.count > 1)
         usersInfo  = e.result.root.items.item;
    else
         usersInfo  = new ArrayCollection();
    

    hope that it fixes.

  • A term is undefined and has no properties

    So I try to make a matching game where I match food with the country that came from the bowl. For example, pizza, Italy. I also did another game where you must click on 4 of the ingredients needed to make a pizza. I know that the game works but after I tried to do the second game, it gives me this error "a term is undefined and has no properties." What I am doing wrong? Here is my code

    package {}

    import flash.display.MovieClip;

    import flash.events.MouseEvent;

    import flash.ui.Keyboard;

    import flash.events.KeyboardEvent;

    import flash.events.Event;

    SerializableAttribute public class Game1 extends MovieClip {}

    Game1 var = new Gamenumber1;

    var gameover1 = new GameOverGame1;

    nextlevel var = new TheNextLevel;

    game2 var = new Gamenumber2;

    var: County: uint;

    public void Game1() {}

    addChild (game1);

    Game1.tomato.addEventListener (MouseEvent.Click, TomatoRight);

    Game1.cheese.addEventListener (MouseEvent.Click, CheeseRight);

    Game1.flour.addEventListener (MouseEvent.Click, FlourRight);

    Game1.yeast.addEventListener (MouseEvent.Click, YeastRight);

    Game1.lettuce.addEventListener (MouseEvent.Click, LettuceWrong);

    Game1.chicken.addEventListener (MouseEvent.Click, ChickenWrong);

    Game1.beef.addEventListener (MouseEvent.Click, BeefWrong);

    Game1.rice.addEventListener (MouseEvent.Click, RiceWrong);

    gameover1.startoverbutton.addEventListener (MouseEvent.CLICK, StartOverButto n);

    nextlevel.nextlevelbutton.addEventListener (MouseEvent.CLICK, NextLevelButto n);

    GaMe2. USAFlag.addEventListener (MouseEvent.CLICK, USA123);

    GaMe2. ChinaFlag.addEventListener (MouseEvent.CLICK, China123);

    GaMe2. MexicoFlag.addEventListener (MouseEvent.CLICK, Mexico123);

    GaMe2. JapanFlag.addEventListener (MouseEvent.CLICK, Japan123);

    GaMe2. GermanyFlag.addEventListener (MouseEvent.CLICK, Germany123);

    GaMe2. ItalyFlag.addEventListener (MouseEvent.CLICK, Italy123);

    addEventListener (Event.ENTER_FRAME, EnterFrame);

    }

    function TomatoRight(event:MouseEvent):void {}

    Game1. Correct1.text = "CORRECT!"

    Count += 1;

    }

    function CheeseRight(event:MouseEvent):void {}

    Game1. Correct2.text = "CORRECT!"

    Count += 1;

    }

    function FlourRight(event:MouseEvent):void {}

    Game1. Correct3.text = "CORRECT!"

    Count += 1;

    }

    function YeastRight(event:MouseEvent):void {}

    Game1. Correct4.text = "CORRECT!"

    Count += 1;

    }

    function EnterFrame(event:Event):void {}

    If (count == 4) {}

    addChild (nextlevel);

    removeChild (game1);

    }

    }

    function LettuceWrong(event:MouseEvent):void {}

    addChild (gameover1);

    removeChild (game1);

    }

    function ChickenWrong(event:MouseEvent):void {}

    addChild (gameover1);

    removeChild (game1);

    }

    function BeefWrong(event:MouseEvent):void {}

    addChild (gameover1);

    removeChild (game1);

    }

    function RiceWrong(event:MouseEvent):void {}

    addChild (gameover1);

    removeChild (game1);

    }

    function StartOverButton(event:MouseEvent):void {}

    addChild (game1);

    removeChild (gameover1);

    } //End of the #1 game

    function NextLevelButton(event:MouseEvent):void {}

    addChild (game2);

    removeChild (nextlevel);

    }

    function USA123(event:MouseEvent):void {}

    GaMe2. USA.text = "USA and?

    }

    function China123(event:MouseEvent):void {}

    GaMe2. China.Text = ' China and?

    }

    function Mexico123(event:MouseEvent):void {}

    GaMe2. Mexico.Text = "Mexico and?

    }

    function Japan123(event:MouseEvent):void {}

    GaMe2. Japan.Text = ' Japan and?

    }

    function Germany123(event:MouseEvent):void {}

    GaMe2. Germany.Text = ' Germany and?

    }

    function Italy123(event:MouseEvent):void {}

    GaMe2. Italy.Text = "Italy and?

    }

    }

    }

    Click file > publishing settings > swf and check the box "enable debugging".  Repeat the test.

    the line of problematic code number will be in the error message.  If you need more information, indicate which line of code is the problem.

  • Error1010: A term is undefined and has no properties

    This error has been driving me crazy! The debug don't tell me what term I have a problem with. Here is the code, it is a class that defines the movement and behavior of these elements I've created on stage. I get the error twice, once for the avoidMe function and the other for the checkCollision function. AvoidMe makes these items away a movieclip on stage user controls, and the checkCollision function checks if the movieclip hits one of these items and remove them from the scene. Help me!

    package 
    {
              import flash.display.MovieClip;
              import flash.events.Event;
              import flash.geom.Rectangle;
    
    
              public class itemBehavior extends MovieClip
              {
                        var aRandomNumber:Number = randomNumber(1,3);
                        //Rectangle boundaries
                        var xLocation:Number = 0;
                        var yLocation:Number = 0;
                        var widthOfRect:Number = 450;
                        var heightOfRect:Number = 450;
                        var rectBoundary:Rectangle = new Rectangle(xLocation,yLocation,widthOfRect,heightOfRect);
                        var itemSpeed:Number = 5;
                        var minDistanceBetweenItems:Number = 20;
    
    
                        public function itemBehavior():void
                        { 
                                  //Have each item have a random position on the stage
                                  this.x = Math.round(Math.random() * 500) + 20;
                                  this.y = Math.round(Math.random() * 500) + 20;
    
    
                                  //Have each item have a different size
                                  this.scaleX = scaleX * aRandomNumber;
                                  this.scaleY = scaleY * aRandomNumber;
    
    
                                  //Add listener to move items away from cat
                                  addEventListener(Event.ENTER_FRAME,avoidCat);
    
    
                                  //Add listener to remove items from stage when they hit the cat
                                  addEventListener(Event.ENTER_FRAME,checkCollision);
                        }
    
    
                        function randomNumber(min:Number, max:Number):Number
                        {
                                  return Math.floor(Math.random() * (1 + max - min) + min);
                        }
    
    
                        function avoidCat(event:Event):void
                        {
                                  // Calculate the distance between the cat and the items
                                  var distanceX:Number = MovieClip(parent).cat_mc.x - this.x;
                                  var distanceY:Number = MovieClip(parent).cat_mc.y - this.y;
                                  var distanceXY:Number = Math.sqrt(distanceX*distanceX+distanceY*distanceY);
    
    
                                  // Check if distance is small enough
                                  if (distanceXY <= minDistanceBetweenItems)
                                  {
                                            // Calculate direction between cat and the items
                                            var currDirection:Number = Math.atan2(distanceY,distanceX);
    
    
                                            // Move items to opposite direction
                                            this.x -=  itemSpeed * Math.cos(currDirection);
                                            this.y -=  itemSpeed * Math.sin(currDirection);
                                  }
    
    
                                  //Restrict items in rectangle boundaries
                                  if (this.x < xLocation)
                                  {
                                            this.x = widthOfRect;
                                  }
    
    
                                  if (this.x > widthOfRect)
                                  {
                                            this.x = xLocation;
                                  }
    
    
                                  if (this.y < yLocation)
                                  {
                                            this.y = heightOfRect;
                                  }
    
    
                                  if (this.y > heightOfRect)
                                  {
                                            this.y = yLocation;
                                  }
                        }
    
    
                        //Function to check for collision and remove item
                        function checkCollision(event:Event):void
                        {
                                  if (MovieClip(parent).cat_mc.hitTestObject(this))
                                  {
                                            parent.removeChild(this);
                                            removeEventListener(Event.ENTER_FRAME,checkCollision);
                                  }
                        }
              }
    }
    
    

    OK, this really simple bug on your side.

    Look here:

    if (MovieClip(parent).cat_mc.hitTestObject(this))
          {
              parent.removeChild(this);
              removeEventListener(Event.ENTER_FRAME,checkCollision);
           }

    You remove the object and remove ENTER_FRAME listener. But you're wrong 2. Firstly - delete you only checkCollision but you also avoidCat. And second, you must first remove all listeners and only then remove object. On your code now that remove you object but the listener in memory trying to run avoidCat and checkCollision function. And he executed but could not find object.

    Here is the solution:

    (1) remove headphones

    (2) remove the object

    Simply make the code below, and you will correct all of the problems.

    If (MovieClip (parent).cat_mc.hitTestObject (this))

    {

    removeEventListener (Event.ENTER_FRAME, checkCollision);

    removeEventListener (Event.ENTER_FRAME, avoidCat);

    parent.removeChild (this);

    }

  • Device simulated in MAX, auto test without error and has work Test panels, but is not displayed in the DAQ assistant.

    I am trying to create a development machine, where we can test the new code without using our physical hardware. I followed this guide to set up a system of simulation. I get to step 3.2 b, but the device does not appear in the DAQ assistant. MAX, the device self test and gites calibrated successfully, and when I open the test panels, I see some sort of signal. I guess that's a default entry simulated since I didn't that device to look for anything? Note that two devices, I am creating the show upward into the devices section and Interfaces, but that, even after running auto calibrate, automatic Calibration date is not yet specified.

    When I try to test the device and create a voltage according to the guide, I can't see a device in the creator of data acquisition task.

    Steps 1 and 2 of this guide are of course met. Step 3 is not, but this is not surprising because a simulated device is in device in any case manager. Also, I'm not under RT, so step 4 is satisfied.

    Someone at - it ideas?

    That would be because the PXI-5124 is a digitizer not an analog input device.  You must use the NI SCOPE not NOR DAQmx driver

  • Windows 10 has been approved and has been downloaded but 2 does not install error codes, 80070002 & 80246007.

    Original title: windows updates 7

    Updates to the computer have been OK until MS net framework has been improved from 3.5.1 to Ms. Net framework 4 who do not go in. several attempts have been made to install but still got error codes. . Since then, updates only install are removals of malware. Silverlight will not install either.    Windows 10 has been approved and has been downloaded but 2 does not install error codes, 80070002 & 80246007.

    I am at a loss... Anly help would be welcome.

    1. navigate until "C:\Windows\SoftwareDistribution\Download" and delete the contents of the folder.
    2. press on the Windows key + X > click (Admin) command prompt and then type "wuauclt.exe /updatenow.

    Press enter

    3. open Control Panel > Windows Update and Windows 10 should begin to download...

    If this does not work:

    Please be aware, even if you do not get the Windows 10 app, you can always download Windows 10 as one. ISO file, create a bootable copy and update your system.

    See the instructions: How to download official Windows 10 ISO files

    Task of pre-required

    When you make significant changes to your computer for example updated operating system, you must always back up. See the links to resources on the backup by clicking the link for each version of Windows you are using: Windows XP, Windows Vista, Windows 7, Windows 8/8.1

  • We have made a purchase of the gems on the Cammand of Star Wars app.  Although us have been billed double and no has not yet obtained the gems.  Please help.

    We have made a purchase of the gems on the Cammand of Star Wars app.  Although us have been billed double and no has not yet obtained the gems.  Please help.

    Contact iTunes supports http://www.apple.com/emea/support/itunes/contact.html for assistance.

  • 1st problem = Error 1606% APPDATA % and 2nd problem = WARNING Logger: initialize() is not yet known. The log file may experience corruption...

    1st problem = Error 1606% APPDATA % and 2nd problem = WARNING Logger: initialize() is not yet known. The log file may experience corruption...

    Try this FixIt:

    Code error '0 x 80070646', '646', or '1606 ' when you try to install Office updates

    http://support.Microsoft.com/kb/2258121

    André

    "A programmer is just a tool that converts the caffeine in code" Deputy CLIP - http://www.winvistaside.de/

  • my browser cannot open google and facebook and other https sites that it does not open even the app store does not work, I tried to change my DNS google DNS and disable IPv6 but still no use, help PLZ!

    my browser cannot open google and facebook and other https sites that it does not open even the app store does not work, I tried to change my DNS google DNS and disable IPv6 but still no use, help PLZ!

    You may have installed one or more variants of the malware "VSearch' ad-injection. Please back up all data, and then take the steps below to disable it.

    Do not use any type of product, "anti-virus" or "anti-malware" on a Mac. It is never necessary for her, and relying on it for protection makes you more vulnerable to attacks, not less.

    Malware is constantly evolving to work around defenses against it. This procedure works now, I know. It will not work in the future. Anyone finding this comment a couple of days or more after it was published should look for a more recent discussion, or start a new one.

    Step 1

    VSearch malware tries to hide by varying names of the files it installs. It regenerates itself also if you try to remove it when it is run. To remove it, you must first start in safe mode temporarily disable the malware.

    Note: If FileVault is enabled in OS X 10.9 or an earlier version, or if a firmware password is defined, or if the boot volume is a software RAID, you can not do this. Ask for other instructions.

    Step 2

    When running in safe mode, load the web page and then triple - click on the line below to select. Copy the text to the Clipboard by pressing Control-C key combination:

    /Library/LaunchDaemons

    In the Finder, select

    Go ▹ go to the folder...

    from the menu bar and paste it into the box that opens by pressing command + V. You won't see what you pasted a newline being included. Press return.

    A folder named "LaunchDaemons" can open. If this is the case, press the combination of keys command-2 to select the display of the list, if it is not already selected.

    There should be a column in the update Finder window. Click this title two times to sort the content by date with the most recent at the top. Please don't skip this step. Files that belong to an instance of VSearch will have the same date of change for a few minutes, then they will be grouped together when you sort the folder this way, which makes them easy to identify.

    Step 3

    In the LaunchDaemons folder, there may be one or more files with the name of this form:

    com Apple.something.plist

    When something is a random string, without the letters, different in each case.

    Note that the name consists of four words separated by dots. Typical examples are:

    com Apple.builins.plist

    com Apple.cereng.plist

    com Apple.nysgar.plist

    There may be one or more items with a name of the form:

    com.something.plist

    Yet once something is a random string, without meaning - not necessarily the same as that which appears in one of the other file names.

    These names consist of three words separated by dots. Typical examples are:

    com.semifasciaUpd.plist

    com.ubuiling.plist

    Sometimes there are items (usually not more than one) with the name of this form:

    com.something .net - preferences.plist

    This name consists of four words (the third hyphen) separated by periods. Typical example:

    com.jangly .net - preferences.plist

    Drag all items in the basket. You may be prompted for administrator login password.

    Restart the computer and empty the trash.

    Examples of legitimate files located in the same folder:

    com.apple.FinalCutServer.fcsvr_ldsd.plist

    com Apple.Installer.osmessagetracing.plist

    com Apple.Qmaster.qmasterd.plist

    com Apple.aelwriter.plist

    com Apple.SERVERD.plist

    com Tether.plist

    The first three are clearly not VSearch files because the names do not match the above models. The last three are not easy to distinguish by the name alone, but the modification date will be earlier than the date at which VSearch has been installed, perhaps several years. None of these files will be present in most installations of Mac OS X.

    Do not delete the folder 'LaunchDaemons' or anything else inside, unless you know you have another type of unwanted software and more VSearch. The file is a normal part of Mac OS X. The "demon" refers to a program that starts automatically. This is not inherently bad, but the mechanism is sometimes exploited by hackers for malicious software.

    If you are not sure whether a file is part of the malware, order the contents of the folder by date modified I wrote in step 2, no name. Malicious files will be grouped together. There could be more than one such group, if you attacked more than once. A file dated far in the past is not part of the malware. A folder in date dated Middle an obviously malicious cluster is almost certainly too malicious.

    If the files come back after you remove the, they are replaced by others with similar names, then either you didn't start in safe mode or you do not have all the. Return to step 1 and try again.

    Step 4

    Reset the home page in each of your browsers, if it has been modified. In Safari, first load the desired home page, then select

    ▹ Safari preferences... ▹ General

    and click on

    Set on the current Page

    If you use Firefox or Chrome web browser, remove the extensions or add-ons that you don't know that you need. When in doubt, remove all of them.

    The malware is now permanently inactivated, as long as you reinstall it never. A few small files will be left behind, but they have no effect, and trying to find all them is more trouble that it's worth.

    Step 5

    The malware lets the web proxy discovery in the network settings. If you know that the setting was already enabled for a reason, skip this step. Otherwise, you should undo the change.

    Open the network pane in system preferences. If there is a padlock icon in the lower left corner of the window, click it and authenticate to unlock the settings. Click the Advanced button, and then select Proxies in the sheet that drops down. Uncheck that Auto Discovery Proxy if it is checked. Click OK, and then apply.

    Step 6

    This step is optional. Open the users and groups in the system preferences and click on the lock icon to unlock the settings. In the list of users, there may be some with random names that have been added by the malware. You can remove these users. If you are not sure whether a user is legitimate, do not delete it.

  • How can I get rid of the file name, date and size of the photo in the upper left corner of the module develop when I'm not working on the photos?

    How can I get rid of the file name, date and size of the photo in the upper left corner of the module develop when I'm not working on the photos?

    All shortcuts are listed on the view > menu Info Magnifier.

Maybe you are looking for

  • Display profile

    Hello I have an iMac 27 "3.4 Ghz Intel Core i7 (November 2011), OSX 10.11.6 Since I have the pain my eyes (working too in front of the screen, even with low light and black background), I change the profile of the screen (System preferences/display/c

  • any USB device USB not Republic United Nations notes senza

    Without some special USB device USB no Republic - Cosa fare UN notes? Grazie leopoldo Rogante

  • automatically default mto "my user name.

    When I boot my windows desktop xp home, the screen open to my username and his guest. I have to choose my user name to load my settings. How can I automatically make my default username and eliminate the step of selection between comments and my user

  • Windows media player will not install due to incompatibility of the language.

    I have windows XP sp3 and when I tried to update my Windows Media Player (WMP), I first installed the wrong language. So I downloaded the English version which indicated to me, due to a mismatch of language, uninstall current WMP to procceed. so I us

  • ScriptException: No detail message

    Hello! I have my BrowserField, I have some HTML and JavaScript responsible, I have a JavaScript function which must be performed through: public void executeJS(String javascript) { try { ScriptEngine engine = mdBrowserField.getScriptEngine(); Object