Troubled table and error #1010.

Copy the following code...

var myArray:Array = new Array(heartsA, hearts2, hearts3, hearts4, hearts5, hearts6, hearts7, hearts8, hearts9, hearts10, heartsJ, heartsK, heartsQ);
arrayFunction();

function arrayFunction():void {
trace(myArray.length);
     for (var i:Number = 1; i < myArray.length; i++){
          this[myArray[i]].buttonMode = true;
          this[myArray[i]].useHandCursor = true;
     }
}

throw this error:

TypeError: Error #1010: A term is undefined and has no properties.
     at mth125_cards_b_fla::MainTimeline/arrayFunction()
     at mth125_cards_b_fla::MainTimeline/frame2()

I came to two conclusions about the reasons.

1. I don't have a solid understanding about things of code for tables to do something like that.

OR

2 buttonMode and useHandCursor fail to be deployed.

.. somehow, I feel as if #1 is the right answer. What I am doing wrong?

Bonus question: the great tutorials out there that covers the tables?

After defining the function, not in front of it, try moving thr function call.  In addition, you probably don't need to use the notation of support around the values in the table, unless the values in the table are actually strings (should have citations) and not the name of the instances.

var myArray:Array = new Array (heartsA, hearts2 hearts3, hearts4, hearts5, hearts6, hearts7, hearts8, hearts9, hearts10, heartsJ, heartsK, heartsQ);

function arrayFunction (): void {}
trace (myArray.Length);
for (var i: Number = 1; i< myarray.length;="">
myArray [i] .buttonMode = true;
myArray [i] .useHandCursor = true;
}
}

arrayFunction();

Edit... assuming you want all objects for the properties affected, you should start with i = 0... berries to start with an index of 0

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

  • How to check the value of the space of the tablespaces and tables when errors occur?

    Hi Experts,

    For example, lets say we get ORA-01653: unable to extend table of error. How to check the size of the table and a tablespace? And how understanding is full?

    Thanks for your help

    Hello

    Select df.tablespace_name "Tablespace"

    totalusedspace 'Used MB',

    (df.totalspace - tu.totalusedspace) "MB free.

    DF. TotalSpace 'Total MB. "

    round (100 * ((df.totalspace-tu.totalusedspace) / df.totalspace))

    "PCT free."

    Of

    (select nom_tablespace,

    Round (Sum (bytes) / 1048576) TotalSpace

    from dba_data_files

    Group by tablespace_name) df,.

    (select round (sum (bytes) /(1024*1024)) totalusedspace, nom_tablespace)

    from dba_segments

    you group by tablespace_name)

    where df.tablespace_name = tu.tablespace_name

    and df.tablespace_name = "";

    For example, lets say we get ORA-01653: unable to extend table of error. How to check the size of the table and a tablespace? And how understanding is full?

    Is to say clearly to the question (you can let us know what you have understood so we can fix)

    [oracle@machine1 ~] $01653 oerr ora

    01653, 00000, "impossible to extend %s.%s table by %s in %s tablespace»

    * Cause: Failed to allocate a certain measure the required number of blocks for

    a segment of the table in the specified tablespace.

    * Action: Use ALTER TABLESPACE ADD DATAFILE statement to add one or more

    storage of files indicate.

    -Thank you

    Pavan Kumar N

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

  • 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);
                                  }
                        }
              }
    }
    
  • 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 on a dynamic array of labels?

    I want to create an array of words labels also created dynamically which act like buttons (ie. they are plain text, but are clickable and will highlight the passage of the mouse).  This method works (using names like "word1' 'word2 '... ("' wordN" as the index) for the insertion of the word in a BorderContainer... labels so the table seems to be OK. However, when I go on mouseover, I get TypeError: Error #1010: a term is undefined and has no property.

    Rather enigmatic. This term is undefined and has no properties? I'm assuming I could self-reference events triggering element using 'this'... that is the problem? Do not know why the label can be added as a child element OK, but when I try to access one of the labels in the table, it gives "indefinite term and has no property '...

    private void mouseoverWord(event:Event):void {}
    Event handler for what happens when a mouse over a Word
    clickableArray [this.id] .setStyle ("color", "blue");
    }

    private void mouseclickWord(event:Event):void {}
    Handler for when the word is clicked
    }

    private void createTextWord(word:String,_num:int):void {}
    var wordLabel:spark.components.Label = new spark.components.Label;
    wordLabel.text = Word;
    wordLabel.buttonMode = true;
    wordLabel.addEventListener (MouseEvent.MOUSE_OVER, mouseoverWord);
    wordLabel.addEventListener (MouseEvent.CLICK, mouseclickWord);
    wordLabel.id = "word" + num.toString ()";
    clickableArray [wordLabel.id] = wordLabel;
    }

    > I was assuming that I could self-reference events triggering element using 'this'... that is the problem?

    Perhaps. If this code is in MyApp.mxml (and not in a or , then "it" is a reference to the instance of MyApp.) The object that sent the event's event.target.

    Gordon Smith

    Adobe Flex SDK team

  • book catalog error #1010, u can give me some advice please

    Hi, this is my .fla, some images of book file and catalogue xml with 6 pounds (2 for the political class, romance, and science)

    testing123. Pondi.hr/Books/Catalog.zip

    and you can download it to see and try.

    his simple book subject list dynamically file Ext. xml as you can see on

    http://testing123.Pondi.HR/books/index.html

    problem: when you click on the category on the right button, sometimes nothing happens, you have to click several times until you get result (list of books according to the corresponding category) and after that everything goes well, as you see... when publish you in flash and make this category button by clicking on, you can see error th output that says :

    TypeError: Error #1010: a term is undefined and has no properties.
    function / < anonymous >)
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at flash.net::URLLoader/onComplete()

    PS: If anyone can give me some advice on this (img probbably charger difficulties) I would be so grateful and blessed

    THIS CODE from the EAST (I'm a bit new to this so have mercy with your comments ):

    Stop();
    flash.net import. *;
    import flash.events.EventDispatcher;
    Import fl.containers.UILoader;
    Import fl.containers.ScrollPane;
    import flash.display.MovieClip;
    import flash.display.Shape;
    import flash.events.MouseEvent;
    import flash.events.Event;

    var myScrollPane:ScrollPane = new ScrollPane();
    var arrUILoaders:Array = new Array();
    var fontStyleAlignL:TextFormat = new TextFormat();
    var fontStyleAlignR:TextFormat = new TextFormat();

    STYLE OF FONT FOR ALL PRICES (ALIGN = LEFT)
    fontStyleAlignL.size = 11;
    fontStyleAlignL.color = 0xAAAAAA;
    fontStyleAlignL.font = "Tahoma";

    FOR THE PRICE (ALIGN = RIGHT) FONT STYLE
    fontStyleAlignR.size = 11;
    fontStyleAlignR.color = 0xAAAAAA;
    fontStyleAlignR.font = "Tahoma";
    fontStyleAlignR.align = 'right ';

    politics_mc.addEventListener (MouseEvent.CLICK, workWantedCat);
    romance_mc.addEventListener (MouseEvent.CLICK, workWantedCat);
    science_mc.addEventListener (MouseEvent.CLICK, workWantedCat);

    function workWantedCat(event:MouseEvent):void {}

    myScrollPane.refreshPane ();

    var xPlacement:int = 10;
    var yPlacement:int = 0;
    var distance: int = 15;

    var wantedCat:String = "";

    Switch (event.target.name) {}
    case "politics_mc": wantedCat = "policy";        break;
    case "romance_mc": wantedCat = "romance";        break;
    case "science_mc": wantedCat = "Science";        break;
    }

    var myXML:XML;
    var url: URLRequest = new URLRequest ("catalog.xml");
    var loader: URLLoader = new URLLoader (url);
    loader.addEventListener (Event.COMPLETE, onLoadComplete);

    function onLoadComplete(event:Event):void {}

    var rowShape:Sprite = new Sprite();

    If {(loader.data)
    myXML = XML (loader.data);
    var books: XMLList = myXML.book;
    }

    for (var i: uint = 0; i < Books.length (); i ++) {}

    If (Books [i].category.toString () == wantedCat) {}

    FORM FOR EACH LINE OF THE BOOK
    rowShape.graphics.lineStyle (1, 0 x 333333);
    rowShape.graphics.drawRoundRect (xPlacement, yPlacement, 820, 15, 15, 15);

    SUPPORT FOR THE LEFT IMG THUMBNAIL
    var newUILoader:UILoader = new UILoader();
    arrUILoaders.push (newUILoader);
    arrUILoaders [i] .source = .photo books [i];
    arrUILoaders [i] .scaleContent = true;
    arrUILoaders [i] .setSize (12,12);
    arrUILoaders [i] .visible = true;
    arrUILoaders [i] .x = xPlacement + 4;
    arrUILoaders [i] there = yPlacement + 2;
    arrUILoaders [i] .buttonMode = true;
    arrUILoaders [i] .addEventListener (MouseEvent.MOUSE_OVER, ToolTip);

    TEXT FIELD FOR THE TITLE OF THE BOOK
    var titleField:TextField = new TextField();
    titleField.text = books [i]. Title;
    titleField.x = xPlacement + 20;
    titleField.y = yPlacement-1;
    titleField.selectable = true;
    titleField.wordWrap = false;
    titleField.setTextFormat (fontStyleAlignL);
    titleField.width = 250;
    titleField.height = 17;

    TEXT FIELD FOR THE AUTHOR OF THE BOOK
    var authorField:TextField = new TextField();
    authorField.text = .author books [i];
    authorField.x = xPlacement + 275;
    authorField.y = yPlacement-1;
    authorField.selectable = true;
    authorField.wordWrap = false;
    authorField.setTextFormat (fontStyleAlignL);
    authorField.width = 150;
    authorField.height = 17;

    TEXT FIELD FOR THE BOOK EDITOR
    var publisherField:TextField = new TextField();
    publisherField.text = .publisher [i] books;
    publisherField.x = xPlacement + 430;
    publisherField.y = yPlacement-1;
    publisherField.selectable = true;
    publisherField.wordWrap = false;
    publisherField.setTextFormat (fontStyleAlignL);
    publisherField.width = 125;
    publisherField.height = 17;

    TEXT FIELD FOR THE YEAR OF THE BOOK
    var yearField:TextField = new TextField();
    yearField.text = books [i]. Year;
    yearField.x = xPlacement + 560;
    yearField.y = yPlacement-1;
    yearField.selectable = true;
    yearField.wordWrap = false;
    yearField.setTextFormat (fontStyleAlignL);
    yearField.width = 50;
    yearField.height = 17;

    TEXT FIELD FOR THE COMMENT BOOK
    var commentField:TextField = new TextField();
    commentField.text = books [i]. Comment;
    commentField.x = xPlacement + 615;
    commentField.y = yPlacement-1;
    commentField.selectable = true;
    commentField.wordWrap = false;
    commentField.setTextFormat (fontStyleAlignL);
    commentField.width = 150;
    commentField.height = 17;

    TEXT FIELD FOR THE PRICE OF THE BOOK
    var priceField:TextField = new TextField();
    priceField.text = [i] books list;
    priceField.x = xPlacement + 770;
    priceField.y = yPlacement-1;
    priceField.selectable = true;
    priceField.wordWrap = false;
    priceField.setTextFormat (fontStyleAlignR);
    priceField.width = 50;
    priceField.height = 17;

    ADD TEXT FIELD CHILDS TO LINE SHAPE
    rowShape.addChild (arrUILoaders [i]);
    rowShape.addChild (titleField);
    rowShape.addChild (authorField);
    rowShape.addChild (publisherField);
    rowShape.addChild (yearField);
    rowShape.addChild (commentField);
    rowShape.addChild (priceField);

    SETTING LINES AND FIELDS TXT PLACEMENT
    yPlacement = yPlacement + distance;
    }
    }

    ROWSHAPE SETTING IN SCROLLPANE
    myScrollPane.source = rowShape;
    myScrollPane.setSize (865, 500);
    myScrollPane.move (30: 20);
    addChild (myScrollPane);
    }
    }

    FUNCTION OF THE TOOLTIP FOR IMG THUMBNAIL MOUSE_OVER
    var bookImg_tt:UILoader = new UILoader();
    function tooltip(event:MouseEvent):void {}
    var imgPath:String = event.currentTarget.source;
    bookImg_tt.enabled = true;
    bookImg_tt.source = imgPath;
    bookImg_tt.scaleContent = true;
    bookImg_tt.startDrag ();
    bookImg_tt.x = mouseX;
    bookImg_tt.y = mouseY;
    bookImg_tt.visible = true;
    event.currentTarget.addEventListener (MouseEvent.MOUSE_OUT, noTooltip);
    addChild (bookImg_tt);
    }

    WITHDRAWAL OF TOOLTIP FOR IMG THUMBNAIL MOUSE_OUT FUNCTION
    function noTooltip(event:MouseEvent):void {}
    bookImg_tt.enabled = false;
    bookImg_tt.source = "";
    bookImg_tt.visible = false;
    removeChild (bookImg_tt);
    }

    TNX A LOT

    The problem occurs when you move a series of books in the list and is located mainly between those lines...

    for (var i: uint = 0; i

    arrUILoaders.push (newUILoader);

    arrUILoaders [i] .source = .photo books [i];

    If you select the category romance everything first, the value of i is already 4 via the closure, when it is finally found, but because you push() shippers in the table, there is no arrUILoader [4]... There is only arrUILoader [0] as it was the first to be pressed.  If you change the line in bold to be...

    arrUILoaders [i] = newUILoader;

    You will have the UILoader your search code in all lines that target arrUILoaders [i] that follow.  Otherwise, using push(), you must target the last UILoader pushed, not one designated by I, which would mean that your table would grow whenever you choose a new category.

  • Problem: Build a VI to display a string in the table of the lights. Each letter must be posted in a separate table and letters must move from one table to the other in the direction from left to right.

    Hi all

    Problem: Build a VI to display a string in the table of the lights. Each letter must be posted in a separate table and letters must move from one table to the other in the direction from left to right.

    I did program mentioned above but it does not work. Can you tell me what is the problem?

    There is no error is indicated in the program. If someone knows about it please try to find solutions and help me out of this problem.

    I have attached my program with this message.

    Thank you in advance!

    (1) FOR loops are your friend here.  You can make a slight restructuring using loops, and then you will have less mess to deal with, the inner loop through tunnels of autoindexing to make it even simpler.

    (2) I would only treat the numeric values of the characters.  So go terminal of control of the chain, the capital letters and byte array to before the outer loop.  You can use a size of Board over there to tell how many times the outer loop to iterate.

    (3) the Index table is extensible.  So you only need over the index of the first, and it will increment itself, as it develops.

    (4) you need to finish the lookup table (table 3D)

  • Error 1074000000 has occurred in a place not identified and error 1073807339 occurred at VISA read

    I worked with it for a few weeks. I am a student doing research for a professor and I'm new to LabVIEW (about a month).

    We calculate impedance in an object with a pulsar. The pulsar will pass through an area of resistance before and after the charge for the calculation of v1 and v2. This will help us to find the current which will help us to find the impedance of the load. In this case, the charge will be a potato. The pulsar will send piulses so we want the program to record the waveform on the trigger.  We have v2 and v1 of two channels. We must record the results of v1 and v2, more than an hour. In addition, if v1, v2, and timestamp are in the same excel file then our lives would be easier. A waveform by file.

    -TL; DR Two channels to be recorded with a timestamp

    The oscilloscope is the WaveRunner LeCroy_64xi.

    We use LabVIEW 2014 SP1.

    I connect to an oscilloscope via an ethernet connection. The connection should not be the problem, but I connected the oscilloscope using NOR-MAX. The oscilloscope is an ACIP device with a remote system, passport and alias. The instructions step by step are http://forums.ni.com/ni/attachments/ni/140/43120/1/VICP-NI-MAX.doc.

    After you connect the oscilloscope, we took a sample program from the driver and changed that to do what we want. We got a few results. FetchWaveform strives to get the shape of wave, but after four or so waveforms, it gives two errors. We tried to add delays, loops and run the program once at a time. I'm willing to start one of these well. This worked well enough at some point, but I think it was because we had a few labVIEW programs open and he was capture the waveform at every second. I think it was because the LABVIEW program has been slowed by the natural delay. It was exactly what we were looking for, but mistakes don't happen often. After the computer restarts and the program, the waveforms are extremely fast registered and errors occur. It is not consistent and we do not know how to register only when the waveform is triggered. Trouble downloading my code here.

    Moving this, we tried ReadWaveform. For some reason, we cannot get readWaveform to work. It does not display the waveform and gives the second error or timeout error. We understand why he will not really connect with the oscilloscope. I do not change one of the examples that use readWaveform for this problem.

    I'll be here tomorrow, but I'm almost done for today. If there is anything I missed, I'm sorry and I'll it download tomorrow. I'm out of ideas. To message me please and thank you very much for your effort.

    Hi Tnorm007,

    I appreciate the level of detail you have included; It seems that there are a lot of things here.  However, it still seems to be inconsistencies and ambiguities in the errors that you receive.  You are able to get a consistent result by running the code you provided?

    For example, if you run the code once, it works as you want?

    If you press run is once again, it works the way you want?  (I assume that you configure the writing on a measure VI file to add the data to the current file?)

    Does it fail after a number of iterations, or it does not depend on the speed at which it runs, back to back?  Which two errors are thrown into this case?

    Also, just a general tip, if you want to receive signals continuously, you want only portions of reading/writing the code of the loop (and initialize/close the task only once), rather than put all the code in a large loop or by pressing the button several times run

    Best,

    David Randolph

    Engineering applications

    National Instruments

    www.NI.com/support

  • Problem of sorting of tables and... Using the functionality of the case

    OK, so im do this bit of code that solves the linear equations of 3 x 3, I have most of the code actually lack just 2 small pieces for value of ascetics, garlic try to describe them as detailed as I can, no matter what type of advice or advice with any of them would be greatly appreciated

    Some details of the program:

    Equation MUST be entered in a string and not must (and probably should) be able to do some difficult fixing

    It will be limited to the +'s and-'s signs

    Problem 1.

    I don't really know how to 'sort' my equation according to their variables, example:

    User input: - 2 y + 1 * x z - 1 = 2

    I can make it look like: - 2 y + z - 1 x 1 = 2

    I want what it looks like: 1 x-2 y - 1 z = 2

    I can handle sort the equation, IF I knew the order the user will add variables, the only thing that comes to mind is turning them into a table and make a case for each (x, y, z - x, z, y - etc.) and by using some kind of process of elimination to choose the table 'longer or shorter', I really haven't got much if this because it seems like a stupid idea , but it's the only thing it comes to my mind.

    Problem 2.

    So as im fixing the spaces between characters, at least, I find a '10', I don't want one "1 0", very roughly, I managed to work around this problem by using a "find and replace String", but I'm having trouble making a "case" for her, as in, I can't understand the entry of 'right' to a string of cases. " example:

    User input: 1 x-2 y - 1 z = 12

    The result inside the box is correct and resembles a '12', but as I don't know the correct entry, obviously my default case is empty, and it passes through, so the result on the outside is a '1 2 '.

    Any link for someone who fixed a similar problem or guides would be great, I'd also like to announce that 3 weeks ago, I've not even knew what was "LabVIEW", if you can 'dumb down' a little explanation would be greatly appreciated.

    You can try to use php code Analyzer to help analyze. The joint was a quickly hacked together solution that makes several assumptions (a big one being that the entry is correct and equal to is the last thing). This isn't really a complete solution.

    Sorry I didn't have the time to comment on it. If it seems odd, I was using money orders that got lost, when I recorded it for the previous version.

  • Problem with table/table and past data capture

    Hi all

    Newbie is back and I have a problem with my program.

    A brief introduction of what I'm trying to do.

    I'll show you a failure to a system event.

    Based on each event, I will need to connect the error description, the tag, the fault start time and duration.

    All the event information will be displayed on the front table and this table will increase when new event occurred.

    For descriptions and tags - this is fixed based on what fault affects, respectively.

    The issue I'm having is to capture time.

    What I have in mind is to use the time to enter the start time and duration also.

    Departure time is not question because once I press boolean = true, it gives the start time.

    For the duration, when I press boolean = false, it wil give the total duration.

    However, I have a problem as follows:

    (1) to capture what a comprehensive data set (for example / / Desc: fault 1, Tag: one, start time: 2008-12-16 11:15:06 duration: 0 00:00:05) and it passed inside the trap fault Table.

    (2) if the same failure has occurred, it will overwrite the latest information. However, I need to keep the display of old and new events.

    Please notify.

    Opinions and suggestions are welcome mosssssst.

    Million thanks in advance.

    Hi Roziela,

    Thanks for the post and I hope that your well today.

    You must add logic to detect the change of the event (no fault to fault) and produce a Boolean result by 'raising' edge.

    I have a code to do this,

    Let me know what you think,

  • Subinacl grants no permissions to system and administrators and error 0 x 80070005

    My troubles are 80070005 error which does not update my server and clients on a private LAN. I use wusus for updating systems. just criticism of security and service pack...

    system are only 2008 r2 enterprise and enterprise 7.

    When I try you update domain servers to respond with error 0x80070005 on another server and on the clients error appear 0x800B0001

    I have run some AV and anti malaware, but nothing...

    on the servers are impossible to install any hotfix or upgrade (kb947821 still gives me denied auth) but I m able to install other things.

    I had a fresh 2008r2 installed, set area and updated via gpo... result: after reboot and update 0x800B0001 error. I was able to install kb947821 but no way.

    on the customers even question... so I think that there is an update on wsus, which does not work well, or I did a missconfiguration on wusus... :(

    Finally I tried to restore the permissions with subinacl... it's possible accomplice it as in some articles there is no permission for system... just trustedinstaller are allowed and subinacl returns

    error 0 x 80070005... I tried to change it manually in the new facility (none given and not problems if the system die: D):

    Regedit hkey_local_machine\software\microsoft\assistance rigth click and add the system and administrators full access... restart and... still the same problem...

    Subinacl /errorlog = a.txt /subkeyreg HKEY_LOCAL_MACHINE/Grant = administrators = f/Grant = system = f

    Subinacl /errorlog = b.txt /subkeyreg HKEY_CURRENT_USER/Grant = administrators = f/Grant = system = f

    Subinacl /errorlog = c.txt /subkeyreg HKEY_CLASSES_ROOT/Grant = administrators = f/Grant = system = f

    /errorlog = d.txt Subinacl % lecteur_systeme % /subDIRECTORIES / Grant = administrators = f/Grant = system = f

    errors are present only in HKEY_LOCAL_MACHINE and HKEY_CLASSES_ROOT more a warning in HKEY_CURRENT_USER, where it is said there is a wild char *.

    You will have to go on Support of Windows 7 forums on the following link to help solve your problem:

    Technet forums - WSUS

Maybe you are looking for

  • No soound

    I had to reload XP without the original back-up to the top of the tower. There is no volume control or mixing unit. I can't get the audio driver to install. It took foreveer to recover XP SP3. Is this a Microsoft problem or the top manufacturer of To

  • Get the 43 pilot error after installing new graphics card

    Original title: graphics card problem Help, please. I just put in my new nvidia Geforce GT 430 graphics card. It came with a disc that would install all necessary records, when the computer has restarted a message says that the driver has been arrest

  • What is com.sonyericsson.startupflagservice 2?

    'Turn OFF' in this picture is a "soft" button and when I hit nothing DON'T get PAST. I hit the 'return' 'soft button' on the left on the side of angle so I can 'Quit' (by-pass) this screen and continues the startup of my phone...                     

  • Dell Diagnostics online

    I was running the Dell diagnostics online on a remote desktop connection. About a minute after the start of diagnosis, it filled the entire screen. I immediately stopped the machine and restarted. Everything seemed normal, and I'm running a deep anal

  • all distorted screen colors

    The default background is turned on and then could not display all images without multi color pixel showing instead of images.  Anyone have any ideas?