'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)])}

Tags: Adobe Animate

Similar Questions

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

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

  • Property not found (member) on a sprite

    Hey, I have the following script against a sprite:


    property pMyMemberCount, pMyMember, MySpriteNum

    on beginSprite me
    MySpriteNum = me.spriteNum
    pMyMemberCount = 1
    end

    end

    on exitframe me
    pMyMemberCount = (pMyMemberCount mod 2) + 1
    pMyMember = "GravPush" & pMyMemberCount

    MySpriteNum.member = member (pMyMember)
    end

    Which is supposed to change a sprite member between 2 images in the cast that I named 'GravPush1' and 'GravPush2 '.

    Whenever I'm going to make the movie, I get an error:


    Script error: property not found

    MySpriteNum.member = member (pMyMember)


    #member

    Does anyone know how to fix this? Thank you

    I think you want that last line to be:

    Sprite (MySpriteNum) .member = member (pMyMember)

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

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

  • LineCount property not found

    Hello

    I have a cast member of text on screen called 'round of text '. I placed it on the stage. When the user proceeds to various things, the text in the cast member is updated. I am looking for a way to determine the height of the sprite on stage as the text changes.

    I tried .height sprite (25) and it always returns the height of the sprite sprite was when it was added.

    I tried member("cycle_text").lineCount, but get an error "property not found".

    I'm sure I'm missing something obvious, but he can not see. Does anyone have any suggestions?

    Thank you

    Patch

    Try this:

    Member("cycle Text"). Line.Count

    The property 'lineCount' is only available for the members of #field, not #text
    members.

  • Impossible to install Oracle JDeveloper on Windows 7, 'Property not found in autorun.inf CMD'

    I try to install Oracle JDeveloper 12 c on Windows 7, but I get the error 'Property CMD' not found in autorun.inf, when I run the file directly.

    CMD property not found.PNG

    If I run Oracle installer (as an administrator), I get the file "corrupted", but I think it is misleading.

    JDeveloper corrupt file.PNG

    Google search, this seems to always point to that here where it says

    CMD property not found solution.PNG

    Previously, I had a compatibility issue when installing Oracle Developer (forms, Designer, reports and JDeveloper10g), I corrected as saying that must be run on Windows XP SP2, and that did the trick. But I don't see anything about compatibility via the google search for this problem.

    When the exe file is run some tests pre - req gets run as 64-bit JVM and Swap space. The other machine may not have the pre - req.

  • 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

  • Property not found in the object?

    My Document class is an object called Allegheny, which extends MovieClip.

    Within the Allegheny, I set values variable _d static string and _g.

    Allegheny, I call several times in another object called MuniAllegheny.

    In MuniAllegheny, I need to call to use the _d value and the value of _g.

    I can do that if I write:

    muniallegheny_g = Allegheny._g;

    But if I spend Allegheny as a parameter to MuniAllegheny and I try to write:

    muniallegheny_g = thisMuni._g;

    You made them static... If you need to access through the class itself, not an instance of it. Make static, or access it through Allegheny.

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

  • Adobe Cirrus not found error on Direct Connect 'property startTransmit ".

    My Direct connect p2p works by two android phone, the communication process the following error, please help, thank you.

    ReferenceError: Error #1069: property not found on flash.net.NetStream startTransmit and there is no default value.

    The error indicates that your code is trying to treat the NetStream class as if it has a startTransmit property.  As far as I can see it doesn't have such a property.

  • Backing bean that reference not found

    Hello

    I'm working on a migrated application of 10.1.3 to 11.1.1.4.

    In all pages jspx for any EL as #{backingBean.property}, is to show the source of the page as reference backingBean.property * not found warning. Backingbean is not absent in faces - config.Xml. The app can work very well, so I think that the EL cannot be resolved in the period but not the design time. But if the bean to support application scopt and the EL as #{backingBean.property} displays the warning message. This confuses me as different scope is resolved differently.

    However, if I change the EL to look like to #{requestScope.backingBean.property}, the warning message is gone. Given the multitude of EL in all jspx, it is not possible to add the requestScope in EL all. Besides, I'm not sure if this is the right approach.

    Can someone let me know why it behaves like this? Is it possible a bug in Jdeveloper? Is there anyway to disable this warning?

    Thank you

    Published by: user878161 on November 18, 2011 08:11

    Uh, all beans are brought 'runtime '. But agreed, in 11.1.1.4.0, it was a bug in the drafting of EL that is troublesome for beginners.

    CM.

  • addEventListner not found on mx.rpc.remoting.Operation

    Hello

    I am just starting out with Flex using Weborb to post a link to PHP. I was doing well, but I hit a brick wall with this bug.

    ReferenceError: Error #1069: property not found on mx.rpc.remoting.Operation addEventListner, and there is no default value.
    to SuperiorReporting / onCreationComplete)
    to SuperiorReporting / ___Application1_creationComplete)
    at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.core::UIComponent/dispatchEvent()
    to mx.core::UIComponent / set initialized()
    at mx.managers::LayoutManager/::doPhasedInstantiation()
    function / http://adobe.com/AS3/2006/builtin::apply()
    at mx.core::UIComponent/::callLaterDispatcher2()
    at mx.core::UIComponent/::callLaterDispatcher()

    Here's the secion of the code it refers to:

    Mx.rpc.remoting import. *;
    Mx.controls import. *;
    Mx.rpc.events import. *;
    import flash.events.Event;
    Import mx.collections.ArrayCollection;
    Import mx.utils.ArrayUtil;

    private var remoteObject:RemoteObject;

    [Bindable] public var barData:ArrayCollection;

    public function onCreationComplete (): void {}
    remoteObject = new RemoteObject;
    remoteObject.destination = "Superior."
    remoteObject.source = "dbio_superior";
    remoteObject.getData.addEventListner ("result", getDataResult);
    remoteObject.getData.addEventListner (ResultEvent.RESULT, getData);
    remoteObject.addEventListener ("fault", onFault);
    remoteObject.addEventListener (FaultEvent.FAULT, onFault);

    barData = new ArrayCollection();
    getData();
    }

    Any help would be great.

    Hello

    I am just starting out with Flex using Weborb to post a link to PHP. I was doing well, but I hit a brick wall with this bug.

    ReferenceError: Error #1069: property not found on mx.rpc.remoting.Operation addEventListner, and there is no default value.
    to SuperiorReporting / onCreationComplete)
    to SuperiorReporting / ___Application1_creationComplete)
    at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.core::UIComponent/dispatchEvent()
    to mx.core::UIComponent / set initialized()
    at mx.managers::LayoutManager/::doPhasedInstantiation()
    function / http://adobe.com/AS3/2006/builtin::apply()
    at mx.core::UIComponent/::callLaterDispatcher2()
    at mx.core::UIComponent/::callLaterDispatcher()

    Here's the secion of the code it refers to:

    Mx.rpc.remoting import. *;
    Mx.controls import. *;
    Mx.rpc.events import. *;
    import flash.events.Event;
    Import mx.collections.ArrayCollection;
    Import mx.utils.ArrayUtil;

    private var remoteObject:RemoteObject;

    [Bindable] public var barData:ArrayCollection;

    public function onCreationComplete (): void {}
    remoteObject = new RemoteObject;
    remoteObject.destination = "Superior."
    remoteObject.source = "dbio_superior";
    remoteObject.getData.addEventListner ("result", getDataResult);
    remoteObject.getData.addEventListner (ResultEvent.RESULT, getData);
    remoteObject.addEventListener ("fault", onFault);
    remoteObject.addEventListener (FaultEvent.FAULT, onFault);

    barData = new ArrayCollection();
    getData();
    }

    Any help would be great.

Maybe you are looking for

  • I have a G4 laptop.  I put a new hard drive in it?

    I have a G4 laptop in very good condition, but there is very little space on the hard disk.  Can I put a new one in it?

  • QTVR

    I wish to see a QTVR on a page that has not updated its content for HTML5 or anything else. Apple support pages suggest its possible, but the instructions don't work for me. Any suggestions?

  • HP psc 1205 all-in-one, will not print copy.

    my printer is connected to my computer, normally when I want to make a copy (ie) using the upper part of the printer, I had no problem but now it does everything it is supposed to do, but does not print, (ie) no copy ink cartridge is full. I can prin

  • Driver deleted

    Formatting a drive external hard (from FAT 32 to NTFS) connected to the drive E:, the disc has been removed and I can not restore the drive.

  • My CD reading/writing does not (Vista)

    My CD RW does not work. The DVD but works. I have VISTA Home Premium in a machine of a1710N HP improved to 3 GB of RAM. This problem has just popped up one day earlier among the so-called "fixes" was to remove a filter file in the registry. I also us