ReferenceError: Error #1069: property not found on flash.display.Stage length

Hi all

I have 3 input textfield. Each textfield has a string pre-loaded in it. When the user presses Tab, the focus must be cycled around textfield 1-3. Now, I'm trying to set the index of the caret to the last letter of the TextField. What is the problem with the code?

Code:

public function myTabKeyDown(event:KeyboardEvent):void
          {
             if (event.keyCode == Keyboard.TAB)
             {
                    //set caret selection
                    event.currentTarget.setSelection(event.currentTarget.length, event.currentTarget.length);
             }
          }

Error:

ReferenceError: Error #1069: the property not found on flash.display.Stage length and there is no default value.

Thank you

Zainuu

If your textfields are named (you went for each text field properties and gave it a unique name) you can use the Manager of Focus see IFF it has focus to set the selection to the end.

http://help.Adobe.com/en_US/FlashPlatform/reference/ActionScript/3/FL/managers/FocusManage r.html? filter_flash = cs5 & filter_flashplayer = 10.2 & filter_air = 2.6

Tags: Adobe Animate

Similar Questions

  • Error #1069: Property not found unloadAndStop on flash.display.Loader

    Hey all,.

    I have inhareted a flex application that was built in (I think) flex 3.x.  I am currently using Flash builder 4 and set the compiler settings to use flex 3.5.  as soon as I have for rund or debug the application, I get the following error:

    ReferenceError: Error #1069: property not found on flash.display.Loader unloadAndStop and there is no default value.

    to MethodInfo - 7)

    service /http://adobe.com/AS3/2006/builtin: apply)

    to SetIntervalTimer / onTimer)

    to::Timer/_timerDispatch() flash.utils

    to::Timer/tick() flash.utils

    I don't know what is the cause, the only thing I can think of at this point is that the app was built with a verson SDK before 3.5 and because I can't choose TI 3.5 throw this error. Can anyone confirm this or give me some advice on this.

    Thanks a ton.

    default project 3.x to assume the Flash Player 9, which did not have

    unloadAndStop on the charger.  Another code that you are running is assuming that player

    10. you want to either demote this code to take the Player 9, or set

    -target-Player = 10 on the compiler options.

  • Property not found on flash.display.Loader charger and there is no default value

    Hi, I want to drag a single image of set of images loaded via xml, but it is showing an error.

    ReferenceError: Error #1069: property not found on flash.display.Loader charger and there is no default value.

    "hand / mouseDownHandler ()" thanks in advance...

    XML

    /////////////////////////////////////

    <? XML version = "1.0" encoding = "utf-8" standalone = "yes"? >

    < GALLERY >

    < IMAGE THUMB = "photo_tb/pic1.jpg" / > "

    < IMAGE THUMB = "photo_tb/pic2.jpg" / > "

    < IMAGE THUMB = "photo_tb/pic3.jpg" / > "

    < IMAGE THUMB = "photo_tb/pic4.jpg" / > "

    < / GALLERY >

    /////////////////////////////////////////////

    package

    {

    import flash.display. *;

    import flash.events. *;

    flash.net import. *;

    import flash.display.Sprite;

    import flash.display.Loader;

    import flash.events.MouseEvent;

    main/public class extends MovieClip

    {

    private var levelXML:XML;

    private var myLoader:URLLoader;

    private var my_images:XMLList;

    private var my_total:Number;

    private var my_thumb_width:Number;

    private var container_mc:MovieClip;

    private var my_mc:MovieClip;

    public void main()

    {

    levelXML = new XML();

    var XML_URL:String = "data / data.xml."

    var myXMLURL:URLRequest = new URLRequest (XML_URL);

    myLoader = new URLLoader (myXMLURL);

    myLoader.addEventListener (Event.COMPLETE, lanceApp);

    }

    private void startApp(e:Event):void

    {

    var myXML:XML = new XML (e.target.data);

    my_images = myXML.IMAGE;

    my_total = my_images.length ();

    createContainer();

    callThumbs()

    for each {(var niveau: XML dans levelXML.level)}

    trace (Level.leveltitle);

    trace (Level.identifyme);

    //}

    }

    private function createContainer (): void

    {

    container_mc = new MovieClip();

    container_mc.x = 50;

    container_mc.y = 50;

    my_mc.x = 100

    my_mc.y = 100

    addChild (container_mc);

    }

    private function callThumbs (): void

    {

    trace (my_total)

    for (var i: Number = 0; i < my_total; i ++)

    {

    'loader_' + i

    my_thumb_width = 100

    var thumb_url = my_images[i].@THUMB;

    var thumb_loader = new Loader();

    thumb_loader. Load (new URLRequest (thumb_url));

    thumb_loader.contentLoaderInfo.addEventListener (Event.COMPLETE, thumbLoaded);

    thumb_loader. Name = i;

    thumb_loader.x = (my_thumb_width * I);

    }

    }

    private void thumbLoaded(e:Event):void

    {

    var my_thumb:Loader = Loader (e.target.loader);

    container_mc. AddChild (my_thumb);

    my_thumb.contentLoaderInfo.removeEventListener (Event.COMPLETE, thumbLoaded);

    Sprite: var loader = Loader (e.target);

    var my_thumb:Loader = Loader (e.target);

    trace (my_thumb)

    my_thumb.addEventListener (MouseEvent.MOUSE_DOWN, mouseDownHandler);

    my_thumb.addEventListener (MouseEvent.MOUSE_UP, mouseUpHandler);

    }

    private void mouseDownHandler(e:MouseEvent):void {}

    var my_thumb:Loader = Loader (e.target.loader);

    container_mc. AddChild (my_thumb);

    e.target.startDrag ();

    }

    private void mouseUpHandler(e:MouseEvent):void {}

    trace ("mouseUpHandler");

    var sprite: Sprite = Sprite (event.target);

    sprite.removeEventListener (MouseEvent.MOUSE_MOVE, OnMouseMoveHandler);

    sprite.stopDrag ();

    }

    private void mouseMoveHandler(event:MouseEvent):void {}

    trace ("mouseMoveHandler");

    event.updateAfterEvent ();

    }

    }

    }

    In your function mouseDownHandler target you 'e.target.loader', however, e.target is a Loader and Chargers have no property loader.

    private void mouseDownHandler(e:MouseEvent):void {}

    var my_thumb:Loader = Loader (e.target.loader);

    Try just "e.target" instead since this should be your code is looking for.

    var my_thumb:Loader = Loader (e.target);

    Although you might find you need to use "e.currentTarget" instead since e.target can point to the content of the loader instead of the charger itself

  • ReferenceError: Error #1069: m_viewerController property not found on flash.display.AVM1Movie and there is no default value.      at intro_fla::MainTimeline/_onEnterFrame()

    (1) what is flash.display.AVM1Movie? I'm using as3

    (2) what is m_viewerController?

    (3) _onEnterFrame is usually a function name that by default it needs?

    function onMclLoaded(event:Event):void

    {

    This.MCL.Visible = false;

    this.addEventListener (Event.ENTER_FRAME, _onEnterFrame);

    }

    Maybe it's part of a component any which is used in the file that you upload.  Code is associated with this object is unable to find it.

  • ReferenceError: Error #1069: property... problems

    Hello

    I still shoot on this problem and it intrigued me. Now, I get this message.

    ReferenceError: Error #1069: Score property not found on the drink and there is no default value.

    i = Army.Length - 1;
    While (I >-1) {}
    drink Army = [i];
    trace ((MovieClip (Drink). Score));
    MovieClip (drink). MoveAcross (null);
    If (drink.x < 50) {}
    removeChild (drink);
    Army.splice (i, 1);
    }

    If (165 > drink.x & & drink.x > 155) {}
    If (5 > currentPos & & currentPos >-5) {}
    trace ((MovieClip (Drink). Score));
    removeChild (drink);
    gameScore.addToValue ((MovieClip (drink). Score));
    / / trace ((MovieClip (drink). Score));
    Army.splice (i, 1);

    }
    }

    I have = i-1;
    }

    earlier in this code, the variable drink is defined

    public var drink: drink;

    What intrigues me is if I use the first line with *, I get this error and if I use the second it works fine. Any idea on what could be the problem? Thanks for all the help I received on this forum!, maybe someday I will be wise enough to contribute in return.

    It is difficult to guess the small part of the cord, but expand the items in the "Army" table has MovieClip typed objects.

    Since you say

    drink Army = [i]

    drinking can either type MovieClip. So the compiler generates an error when you try to assign variables for any other type except MovieClips, unless you specifically declared as a dedicated custom class.

  • Error message 404 not found nginx is displayed when I try to access you tube or google search

    When I try to visit Google, Youtube and other sites I get this 404 not found, nginx page rather than the requested Web sites.

    Hello

    • What browser do you use?
     
    HTTP errors are sent to your browser from a Web site, if a problem occurs when you try to view a Web page. If unable to view the Web page, Internet Explorer displays the error page sent by the Web site or a friendly error message built into Internet Explorer. Below you will find some errors and ideas on how to solve the problem which is originally common.
    See also:
    Note: This article assumes also on Windows XP
     
    If you use Internet explorer, you can check this link:
  • Property not found on flash.desktop.nativeExtensions on iOS ExecuteInBackground

    Hello

    I can't set this property in my app iOS in accordance with the documentation. I'm on AIR version 3.3.0.3650 but cannot read or write to this property (although he appeared in code completion in Flash Builder.

    How do I access it?

    Thank you

    Please make sure you use the swf-16 version in the compiler settings.

    If this isn't the case, then please add - swf-version 16 in the Flex compiler settings. executeinbackground property will be only works with swfversion 16.

    A similar forum post can be found at http://forums.adobe.com/message/4359474#4359474

  • ReferenceError: Error #1069

    ReferenceError: Error #1069: Stop property not found on flash.display.SimpleButton and there is no default value.

    to AS3RPG_fla::MainTimeline/switchToFHero()

    Im still new to As3 eventho not, I have some decent experience in As2, I understand the problem im just do not know how to fix since As2 buttons obviously didn't need this.

    Delete this gotoAndStop() your button or use a movieclip instead of a button.

  • Type of property not found on...

    A function I want to watch a bunch of objects and drop your properties when they are there - and em are unaware when they are not so I...

    Suppose I have an array of flavored multiple objects - objects of class custom sprites and shapes, etc.
    for (var i = 0; i < objects.length; i ++) {}
    trace (object, , .property1);
    }

    «ReferenceError: Error #1069: type property not found on flash.display.Sprite and there is no default value.»


    So I try this to see if I can find only the value of the property if its there, but by checking if it exists, I get the same exact error.

    for (var i = 0; i < objects.length; i ++) {}
    If (items
    .property1) {}
    trace (object, , .property1);
    }
    }


    Is there a way around this, or a way to do better? Thank you
    HmcH

    Oops - Here is the answer for all those which navigation...

    for (var i = 0; i)
    If (objects.hasOwnProperty ("property1")) {}
    trace (Objects.property1);
    }
    }

  • Extension of class Array, get Error #1069: property 0 not found with indexOf appeal

    I'm using inheritance to extend the Array class to create a class of paths that moves of Sprites/MovieClips around on the screen. I get a weird error on a call to indexOf. Here is the error:

    ReferenceError: Error #1069: property 0 not found on paths and there is no default value.
    to Array$ / _indexOf)
    table / http://Adobe.com/AS3/2006/builtin:IndexOf ()
    to Paths / Next () [D:\Stephen\Documents\Flash\TossGame\TossGameFirstPerson\Paths.as:40]

    Here is the corresponding code in the class of paths:

    SerializableAttribute public class paths extends Array
    {
    private var cCurrentPath:Path;

    public function () following: path
    {
    var lArray:Array =;
    var lNextIndex:int is indexOf (cCurrentPath) + 1;.
    If (lNextIndex == length) lNextIndex = 0;
    var lPath:Path = lArray [lNextIndex];
    lPath return;
    }
    } / / class

    I get the error in the highlighted line. cCurrentPath is filled with a trace object that corresponds to the object at position 0 of the this object (paths). I tried the following variants of the Next() function:

    public function () following: path
    {
    var lArray:Array =;
    var lNextIndex:int =
    lArray. indexOf (cCurrentPath) + 1;
    If (lNextIndex ==
    lArray. length ) lNextIndex = 0;
    var lPath:Path = lArray [lNextIndex];
    lPath return;
    }

    public function () following: path
    {
    var lArray:Array =;
    var lNextIndex:int = this
    . indexOf (cCurrentPath) + 1;
    If (lNextIndex == this
    . length ) lNextIndex = 0;
    var lPath:Path = lArray [lNextIndex];
    lPath return;
    }

    public function () following: path
    {
    var lArray:Array =;
    var lNextIndex:int = super
    . indexOf (cCurrentPath) + 1;
    If (lNextIndex == super
    . length ) lNextIndex = 0;
    var lPath:Path = lArray [lNextIndex];
    lPath return;
    }


    Same product if mistake it I try. Anyone got any ideas?

    Stephen

    Flash CS3 Pro (Version 9.0)

    Mark your dynamic class.

    class dynamic public railways extends from table

  • ReferenceError: Error #1069: y property not found on string and there is no default value.

    can someone tell me why I get this error?

    ReferenceError: Error #1069: y property not found on string and there is no default value.

    import flash.events.Event;

    var control = false

    var balls: Array = [one, two, three];

    var which_balloon =""

    tec.addEventListener (MouseEvent.CLICK, moveit)

    one.oney.addEventListener (Event.ENTER_FRAME, kav);

    two.twoy.addEventListener (Event.ENTER_FRAME, kav);

    three.threey.addEventListener (Event.ENTER_FRAME, kav);

    function moveit (MouseEvent) {}

    which_balloon = Balloons [Math.Round (Math.Random () * 2)]

    check = true

    }

    function kav(e:Event) {}

    {if(Checks==true)}

    which_balloon.y-= 5

    }

    If (which_balloon.y < = 100) {}

    check = false

    which_balloon.y = 350

    }

    }

    When you set which_balloon to line 3 of your code, you set it to an empty string. This will type the variable as a string. The strings cannot have a property there.

    What you probably want to do is type your which_balloon to the same variable type as some one and two and three are.

  • Error 1069 property 0 not found on flash.text.TextField and there is no default value

    So, I worked on it for a few days and what makes me crazy is this is a simple file with many simple script and I still can't seem to understand what is this error and how to fix it: property 0 not found on flash.text.TextField and there is no default

    The script below what we look at, everything is drawn with AS3, there is no object library (except for the police). I little understand what means the error, but I do not understand it or how to fix it.

    import flash.display.MovieClip;
    import flash.events.MouseEvent;
    import flash.events.Event;
    import flash.filters.BlurFilter;
    import flash.display.Shape;
    
    import flash.display.Sprite;
    import flash.display.Graphics;
    import flash.events.*;
    import flash.geom.*;
    import flash.events.*;
    
    var boxBg:Shape = new Shape();
        
    boxBg.graphics.lineStyle(1, 0x000000, .5, true);
    boxBg.graphics.beginFill(0xff6600);
    boxBg.graphics.drawRect(0, 0, 50, 50);
    boxBg.graphics.endFill();
    
    var box:Sprite = new Sprite();
    box.x = 335;
    box.y = 245;
    
    addChild(box);
    box.addChild(boxBg);
    
    var toggleBg:Shape = new Shape();
    var toggleBtn:Sprite = new Sprite();
        
    toggleBg.graphics.lineStyle(1, 0xefefef, .5, true);
    toggleBg.graphics.beginFill(0xffffff);
    toggleBg.graphics.drawCircle(0, 0, 25);
    toggleBg.graphics.endFill();
    toggleBtn.buttonMode = true;
    toggleBtn.mouseChildren = false;
    
    toggleBtn.x = stage.stageWidth - 75;
    toggleBtn.y = 25;
    
    addChild(toggleBtn);
    toggleBtn.addChild(toggleBg);
    
    for (var i:int = 0; i < 10; i++) {
        var btnBg:Shape = new Shape();
        
        btnBg.graphics.lineStyle(1, 0xefefef, .5, true);
        btnBg.graphics.beginFill(0xffffff);
        btnBg.graphics.moveTo(12, 0);
        btnBg.graphics.lineTo(24, 20);
        btnBg.graphics.lineTo(0, 20);
        btnBg.graphics.lineTo(12,0);
        btnBg.graphics.endFill();
        
        var btnFont = new Myriad();
        
        var btnFormat:TextFormat = new TextFormat();
        btnFormat.font = btnFont.fontName;
        btnFormat.size = 12;
        btnFormat.align = "center";
        btnFormat.color = 0xffffff;
        
        var btnTxt:TextField = new TextField();
        btnTxt.defaultTextFormat = btnFormat;
        btnTxt.width = 50;
        btnTxt.height = 20;
        btnTxt.y = 5;
        
        var myBtn:Sprite = new Sprite();
        
        myBtn.name = ("Blend " + (i + 1));
        myBtn.buttonMode = true;
        myBtn.mouseChildren = false;
        
        addChild(myBtn);
        
        myBtn.x = 10 + (i * 75);
        myBtn.y = 500;
        
        myBtn.addChild(btnBg);
        myBtn.addChild(btnTxt);
        
        btnTxt.text = myBtn.name;
        
        myBtn.addEventListener(MouseEvent.CLICK, btnHandler);
        myBtn.addEventListener(MouseEvent.ROLL_OVER, btnHandler);
        myBtn.addEventListener(MouseEvent.ROLL_OUT, btnHandler);
        toggleBtn.addEventListener(MouseEvent.MOUSE_DOWN, onToggleVisible);
    }
    
    function btnHandler(event:MouseEvent):void {
        if(event.type == MouseEvent.CLICK){
            if(event.currentTarget == btnTxt[0]){
                box.blendMode = BlendMode.NORMAL;
            }
            
            if(event.currentTarget == btnTxt[1]){
                box.blendMode = BlendMode.DARKEN;
            }
            
            if(event.currentTarget == btnTxt[2]){
                box.blendMode = BlendMode.DIFFERENCE;
            }
            if(event.currentTarget == btnTxt[3]){
                box.blendMode = BlendMode.HARDLIGHT;
            }
            
            if(event.currentTarget == btnTxt[4]){
                box.blendMode = BlendMode.INVERT;
            }
            
            if(event.currentTarget == btnTxt[5]){
                box.blendMode = BlendMode.LIGHTEN;
            }
            
            if(event.currentTarget == btnTxt[6]){
                box.blendMode = BlendMode.MULTIPLY;
            }
            
            if(event.currentTarget == btnTxt[7]){
                box.blendMode = BlendMode.OVERLAY;
            }
            
            if(event.currentTarget == btnTxt[8]){
                box.blendMode = BlendMode.SCREEN;
            }
            
            if(event.currentTarget == btnTxt[9]){
                box.blendMode = BlendMode.SUBTRACT;
            }
        }
    }
        
    function onToggleVisible(event:MouseEvent):void {
        box.visible = !box.visible;
    }
    

    I have made through problems similar, but could not find an adequate solution. If anyone can help me identify the problem and the solution, I would be extremely grateful.

    The following code makes more sense, it is more efficient (although it may be more efficient), and it is better organized:

    import flash.display.Shape;
    import flash.display.Sprite;
    import flash.events.*;
    import flash.geom.*;
    import flash.events.*;
    import flash.text.*;
    
    var box:Sprite;
    var toggleBtn:Sprite;
    var btnFont:Font;
    var btnFormat:TextFormat;
    
    init();
    
    function init():void
    {
         initFormat();
         makeBox();
         makeToggleButton();
         makeButtons();
    }
    
    function initFormat():void
    {
         btnFont = new Myriad();
         btnFormat = new TextFormat();
         btnFormat.font = btnFont.fontName;
         btnFormat.size = 12;
         btnFormat.align = "center";
         btnFormat.color = 0xffffff;
    }
    
    function makeToggleButton():void
    {
         toggleBtn = new Sprite();
         toggleBtn.graphics.lineStyle(1, 0xefefef, .5, true);
         toggleBtn.graphics.beginFill(0xffffff);
         toggleBtn.graphics.drawCircle(0, 0, 25);
         toggleBtn.graphics.endFill();
         toggleBtn.buttonMode = true;
         toggleBtn.mouseChildren = false;
         toggleBtn.addEventListener(MouseEvent.MOUSE_DOWN, onToggleVisible);
         addChild(toggleBtn);
    
         toggleBtn.x = stage.stageWidth - 75;
         toggleBtn.y = 25;
    }
    
    function makeBox():void
    {
         box = new Sprite();
         box.graphics.lineStyle(1, 0x000000, .5, true);
         box.graphics.beginFill(0xff6600);
         box.graphics.drawRect(0, 0, 50, 50);
         box.graphics.endFill();
    
         addChild(box);
    
         box.x = 335;
         box.y = 245;
    }
    
    function makeButtons():void
    {
         var myBtn:Sprite;
         for (var i:int = 0; i < 10; i++)
         {
              myBtn = drawButton("Blend " + (i + 1));
              addChild(myBtn);
              myBtn.x = 10 + i * 75;
              myBtn.y = 500;
              myBtn.addEventListener(MouseEvent.CLICK, btnHandler);
              myBtn.addEventListener(MouseEvent.ROLL_OVER, btnHandler);
              myBtn.addEventListener(MouseEvent.ROLL_OUT, btnHandler);
         }
    }
    
    function btnHandler(e:MouseEvent):void
    {
         if (e.type == MouseEvent.CLICK)
         {
              switch (e.currentTarget.name)
              {
                   case "Blend 1":
                        box.blendMode = BlendMode.NORMAL;
                        break;
                   case "Blend 2":
                        box.blendMode = BlendMode.DARKEN;
                        break;
                   case "Blend 3":
                        box.blendMode = BlendMode.DIFFERENCE;
                        break;
                   case "Blend 4":
                        box.blendMode = BlendMode.HARDLIGHT;
                        break;
                   case "Blend 5":
                        box.blendMode = BlendMode.INVERT;
                        break;
                   case "Blend 6":
                        box.blendMode = BlendMode.LIGHTEN;
                        break;
                   case "Blend 7":
                        box.blendMode = BlendMode.MULTIPLY;
                        break;
                   case "Blend 8":
                        box.blendMode = BlendMode.OVERLAY;
                        break;
                   case "Blend 9":
                        box.blendMode = BlendMode.SCREEN;
                        break;
                   case "Blend 10":
                        box.blendMode = BlendMode.SUBTRACT;
                        break;
              }
         }
    }
    
    function onToggleVisible(e:MouseEvent):void
    {
         box.visible = !box.visible;
    }
    
    function drawButton(buttonName:String):Sprite
    {
         var btnTxt:TextField = new TextField();
         btnTxt.defaultTextFormat = btnFormat;
         btnTxt.width = 50;
         btnTxt.height = 20;
         btnTxt.y = 5;
         btnTxt.text = buttonName;
    
         var myBtn:Sprite = new Sprite();
         myBtn.graphics.lineStyle(1, 0xefefef, .5, true);
         myBtn.graphics.beginFill(0xffffff);
         myBtn.graphics.moveTo(12, 0);
         myBtn.graphics.lineTo(24, 20);
         myBtn.graphics.lineTo(0, 20);
         myBtn.graphics.lineTo(12, 0);
         myBtn.graphics.endFill();
    
         myBtn.name = buttonName;
         myBtn.buttonMode = true;
         myBtn.mouseChildren = false;
    
         myBtn.addChild(btnBg);
         myBtn.addChild(btnTxt);
    
         return myBtn;
    }
    
  • 1119: access of nativeWindow property possibly not defined through a reference with static type flash.display:Stage.

    I tried this code:

    http://help.Adobe.com/en_US/AS3/dev/WS5b3ccc516d4fbf351e63e3d118666ade46-7e08.html

    but it displays error: 1119: access of nativeWindow property possibly not defined through a reference with static type flash.display:Stage.

    package

    {

    import flash.display.Sprite;

    import flash.events.MouseEvent;

    import flash.text.TextField;

    SerializableAttribute public class MinimizeExample extends Sprite

    {

    public void MinimizeExample (): void

    {

    var minTextBtn:TextField = new TextField();

    minTextBtn.x = 10;

    minTextBtn.y = 10;

    minTextBtn.text = "minimize";

    minTextBtn.background = true;

    minTextBtn.border = true;

    minTextBtn.selectable = false;

    addChild (minTextBtn);

    minTextBtn.addEventListener (MouseEvent.CLICK, onMinimize);

    var maxTextBtn:TextField = new TextField();

    maxTextBtn.x = 120;

    maxTextBtn.y = 10;

    maxTextBtn.text = "zoom";

    maxTextBtn.background = true;

    maxTextBtn.border = true;

    maxTextBtn.selectable = false;

    addChild (maxTextBtn);

    maxTextBtn.addEventListener (MouseEvent.CLICK, onMaximize);

    var restoreTextBtn:TextField = new TextField();

    restoreTextBtn.x = 230;

    restoreTextBtn.y = 10;

    restoreTextBtn.text = "restore";

    restoreTextBtn.background = true;

    restoreTextBtn.border = true;

    restoreTextBtn.selectable = false;

    addChild (restoreTextBtn);

    restoreTextBtn.addEventListener (MouseEvent.CLICK, onRestore);

    var closeTextBtn:TextField = new TextField();

    closeTextBtn.x = 340;

    closeTextBtn.y = 10;

    closeTextBtn.text = 'close this window ';

    closeTextBtn.background = true;

    closeTextBtn.border = true;

    closeTextBtn.selectable = false;

    addChild (closeTextBtn);

    closeTextBtn.addEventListener (MouseEvent.CLICK, onCloseWindow);

    }

    function onMinimize(event:MouseEvent):void

    {

    this.stage.nativeWindow.minimize ();

    }

    function onMaximize(event:MouseEvent):void

    {

    this.stage.nativeWindow.maximize ();

    }

    function onRestore(event:MouseEvent):void

    {

    this.stage.nativeWindow.restore ();

    }

    function onCloseWindow(event:MouseEvent):void

    {

    this.stage.nativeWindow.close ();

    }

    }

    }

    You can not force-close a browser with the exception of a window with javascript window.

  • Error 404 page not found when changing the target agent owner

    I use OEM 12.1.0.3. For all other target (DB, earphone, host, etc), I was able to change my account to another account owner.

    I sailed to targets-> all targets-> (right click on the target)-> target-> administrator access implementation.

    I used the "Change owner" button on this page for all the targets successfully. However, when I click on "Change in ownership" for the target of the agent, I get an error page 404 not found error. Has anyone seen this happen before? Is there a workaround to emcli that I can use?

    You can use the verb emcli change_target_owner to change the property of a target.

    Syntax:

    emcli change_target_owner

    -target = "target_name:target_type".

    [- target = "target_name:target_type"]

    -owner = "current_target_owner_name."

    -new_owner = "new_owner_name".

    EX:

    emcli change_target_owner-target = "myhost.oracle.com:3872:oracle_emd"- owner = "SYSMAN" - new_owner = "LNHAN"

    For more information on the verb, see:

    The verb reference

    Yes, I saw the "Not found" error when you attempt to change the property of a target of the agent from the console in EM 12.1.0.3. The operation works very well in 12.1.0.4 EM well.

    Kind regards

    -Loc

  • 'Property not found on String currentLabel '.

    This is the error message I receive with the following configuration:

    I have several instances of the button on the stage named '1gun', '2gun', "3gun" and so on.

    There are also several instances of the button on the stage, named "1bullseye", "2bullseye" and so on.

    When I use this code and click a button that contains an index of firearm, it returns the number preceding the string 'gun', just as I want to do. :

    {trace (e.currentTarget.name.slice (0,1))}

    When I use this code and click a button on the gun, it returns the name of the "bullseye" button that corresponds with the 'gun': button:

    {trace ("bullseye" + e.currentTarget.name.slice (0,1))}

    However, when I use this code, I get the output in the title of this thread error:

    {trace ("bullseye" + e.currentTarget.name.slice (0.1) .currentLabel)}

    CurrentLabel property not found on string and there is no default value.

    The code is intended to draw the current framework of a bubble when you click on the corresponding weapon. So if you click on "1gun", it would trace the currentFrame of '1bullseye '.

    Any ideas on why it doesn't work?


    What follows is just a String that has no property named currentLabel...

    "bullseye" + e.currentTarget.name.slice (0.1)

    If there is a MovieClip that has an instance name of bubble # (where # is a number), then you must use the notation of support to have this string interpreted as an instance of an object...

    {trace (this [ 'bullseye' + .currentLabel e.currentTarget.name.slice (0.1)])}

Maybe you are looking for