How to get the property of the object by it's string name

Hi all!

There is a function that receiver of the string value = "propertyName", which is the name of the property.

and I have an element object with the name property is equal to "propertyName".

How can I get to the element ofvalue of this property?

I know that

ObjectUtil.getClassInfo (element) .properties

Returns an array of the properties of the element, but it's an easier way to do instead to search the table ditch?

Thank you, Alex.

the mounting of the parent of the object:

var yourObject:DisplayObject = getChildByName ("propertyName");

Tags: Adobe Animate

Similar Questions

  • How to get the decimal value of a string of international currency

    Hi all

    How to get the decimal values to a string of international currency.

    Finally, we get to the real problem.

    You can use location functions or write your own using string functions already mentioned...

    http://developer.BlackBerry.com/native/documentation/Cascades/device_platform/internationalization/

  • [CS5.5] [JS] how to get the object that is anchored by a text search result?

    Hello

    I need to get the object that is anchored by a text search result. It can be an image, textframe, group objects...

    It's my code...

    app.findTextPreferences = NothingEnum.nothing;

    app.findTextPreferences.findWhat = "< FFFC > ';

    var myResults = app.activeDocument.findText ();

    var currentParagrapfNum = - 1;

    for (var n = 0; n < myResults.length; n ++) {}

    var currentResult = myResults [n];

    currentParagrapfNum = currentResult.paragraphs [0] .index;

    var currentAnchoredObject =? ;

    currentAnchoredObject.anchoredObjectSettings.horizontalReferencePoint = AnchoredRelativeTo.TEXT_FRAME;

    currentAnchoredObject.anchoredObjectSettings.verticalReferencePoint = VerticallyRelativeTo.LINE_BASELINE

    }

    Can someone help me please?

    Thanx

    Yes, true, ^ anchor of finds, but they are of type character. What you need is

    myResults[n].pageItems[0].anchoredObjectSettings.horizontalReferencePoint = AnchoredRelativeTo.TEXT_FRAME;

    Peter

  • How to get the object request or session in action jpf in WebLogic Portal 8.1

    I am using WebLogic Portal 8.1. I want to get the parameters of query/attributes in the flow (jpf) page controller action method. Can someone help me how to get objects session or request to the page (CCP) flow control.

    getRequest() (inherited method gives extended request)
    ScopedServletUtils.getOuterRequest (scopedRequest) gives the main query

  • How to get the object all save as Png adobe Illustrator

    Hello

    I'm trying to save as adobe illustrator .ai file .png file

    but all the object in different png files is that poosible

    If possible can someone help me...

    var f = new File ("C:\\test.txt");
    f.Open ("a");

    Len = app.activeDocument.pageItems.length;

    for (i = 0; i<>
    {
    c = App.activeDocument.pathItems [i] .visibleBounds;

    f.writeln (c);
    }

    f.Close ();

  • E4X: How to get the items that contain a string pattern in the name of the node?

    Is there a way to retrieve the children of an XMLList where the name of the node of a child contains a template string?

    For example:

    account <>

    < XblahX / >

    < cow / >

    < YblahY / >

    < / recording >

    How to get items in folder which has a node name that contains the string "blah"?

    var rec: XML =

    ;

    var r: RegExp = / blah /;
    var elems:XMLList = rec.children (). (localName () *.search (r) >-1);
    trace (elems. ToXmlString())

  • How to get the jar file without knowing his name and any class on the inside?

    Hello, everyone!

    I would like to know if there is a way to get a reference programmatically in the original container without knowing his name and any class it contains. I mean by "initial pot" the pot that was called in the prompt, like this:
    java -jar jarfile.jar
    or in another way, in a graphics system. To be honest, what I really want is to get a reference to the manifest of the jar, but I know that if I can get a reference to the jar I can get a reference to its manifest file. Or if you know a way to get the manifest directly, it would also be useful. So, is there a way to do this?

    Thank you.

    Marcos

    Ah, so you want to find the calling class and get its source code.

    I managed to get the class calling on occasion, but this is probably a somewhat fragile solution. You must extend SecurityManager because getClassContext() is a protected method.

        private static class CallerFetch extends SecurityManager {
    
            public Class getCallerClass() {
                return getClassContext()[3];
            }
        }
        private static CallerFetch callerFetch =
                new CallerFetch();
    
        /**
         * Find the class of the code which called the
         * method that invokes this method.
         * @return The class of the caller's caller
         */
        public static Class getCallerClass() {
            return callerFetch.getCallerClass();
        }
    
  • How to get the static attribute by using its name as a string

    I have an app with about 100 boxes of single drop-down list (this is a requirement of the Government, I'm not that bad a designer) and I would like to define the choices in a single file separated like this:

    package components {}

    Import mx.collections.ArrayCollection;

    public class {choice}

    [Bindable] public static var A0310A: collection ArrayCollection = new ArrayCollection ([] collection
    {value: '01', label: 'Admission'},
    {value: "02", label: "Quarterly"},
    .. .snip...
    ([{value: "99", label: "NOT the OBRA required"}]) ;

    public static void getChoices(name:String):ArrayCollection {}
    var temp: ArrayCollection = collection?
    Return temp;
    }

    }//----------------end of class--------------------------------
    }//======================== end of package==============================

    I want to use it like this

    < my: ComboBox id = "mdscombo" tag = "A0310A" / >

    Where the definition of my: ComboBox includes the code like this

    var zz:ArrayCollection = Choices.getChoices (name);

    but I can not find any function that will allow me to do.  I don't want really clutter up the code by creating a name-> object mapping table.

    I had also considered using the XML data type, but I have the same question, unless I had all the choices under a single root (possible), but this could be a nightmare when debugging in typo XML file.

    Any suggestions?

    To answer your question, you can access static variables with a chain in this way:

    Choice ["A0310A"]

    However, you probably want to re-evaluate your design because this isn't a very desirable approach.

  • How to convert ManagedObjectReference specified object type (for example, Indexderecherche) and how to get the HostSystem object?

    Hello

    I met two problems when you use the SDK for JAVA,: (, so I come back here for help.)

    1. I use the method getSearchIndex() to get the object of the ServiceContent Indexderecherche , 'Indexderecherche' of ServiceContent property is set as 'com.vmware.vim25.ManagedObjectReference' and 'ManagedObjectReference' is not a subclass named "Indexderecherche", so how do I convert it to class "Indexderecherche" but I can't use the methods defined in the class "Indexderecherche".

    2. I want to retrieve information about my server ESX, and "Guide to programming Web Services SDK vShpere" tells me to do this work by accessing data objects defined for the HostSystem. But I don't know how to get the object "HostSystem.

    Can someone help me? Thanks in advance.

    Its part java java-sdk sample.

    path:

    vijava\src\com\vmware\sample\vi

    classpath:

    com.vmware.sample.vi.ViDiscovery

  • How to get the targeted object

    can you tell, how to get the object currently targeted in a class

    for example, if I use the labelfield that has his focus, how to get and make changes to the text of labelfield

    I hope that you can get that I tried 2 say

    Thank you

    Not in a class, screen...

    Features screen with a method called getFieldWithFocus...

    Check it out...

    See you soon...

  • Is it possible to get the object of doc JS of a PDF document that is opened in a web browser?

    As I mentioned in a previous post on the Scripting Forum (http://forums.adobe.com/thread/427791), methods that previously worked in Acrobat 8 to get the object of doc JS of a PDF document that is opened in a web browser - for example App.activeDocs . using the JS object and AcroApp.GetAVDoc (index). GetPDDoc using OLE automation - no longer works in Acrobat 9.  Therefore, in Acrobat 9, it is impossible to access a PDF file that is opened in a browser or in its annotations (except, of course, the PDF is downloaded to the computer and open through the NTFS, which kind of defeated the purpose).


    What is someone is aware can explain how to get the object of doc JS of a PDF document that is opened in a web browser?

    If the plugin exposes a DDE interface - of course.  But this assumes that he is there--it is not automatic.  You will need to write your own plugin or get an update if necessary.

    And thanks for the info: I'm passing along!

  • How to get the reference or the property of a member in OOP node?

    Hello world

    Is it possible to get the referral of a member in OOP?

    After you have created a class and an insert, a member of control in the cluster, I conclude that, when a right click on it, there is no element of "creat-> reference" or "create-> property node?

    So, how to get the reference or the property of a member in OOP node?

    Hello

    There are a few reasons that you can't do what you want to do:

    1 al ' LVOOP ordinary (as opposed to the DVRS in LabVIEW 2009, or some other framework / pattern design) are items of LabVIEW by value, as a cluster and therefore you can not create a reference to a class.

    2. a control of the object (this is what you get when you drop an object on a façade) is a 'black box' because you cannot look inside. This is to support the idea that the class data private. This means that you can't get a reference to all internal control when its on a façade

    3. check the references are valid only for the controls in the Panel before and therefore any class (or other piece of data of LabVIEW) on a wire / shift register / constant / anywhere other that of the façade, will have only the data portion of the available control.

    To access the items within a class, you create the accessor screws (you can create them easily by right-clicking a class (or the folder within the class) in the project tree and selecting New-> VI to access data members.) This VI would at least have a unbundle / bundle node (depending on whether its read/write) and could, if you have many more features such as range checking. You can use this VI whenever you want to read the Member your interested.

    I hope this helps.

    Shaun

  • How to get the maximum number of iterations in the property of TS

    I was put the loopType from one step to the count of success/failure. For example "stop after 1 iterations pass or a maximum of 3 iterations. The maximum iteration is 3. What my qustion is how to get the maximum iteration of TS property by codes of trial during the race. Thank you very much!

    Corey Chen

    The OPPO test developer

    Hello

    It may be a hack, but RunState.Step.LoopWhileExpression has information.  It will return a string like: "RunState.LoopIndex."< 69="" &&="" runstate.loopnumpassed=""><>

  • The knife tool develops a black line on the objects that I colored using the live paint bucket. How to get the tool knife to stop this and instead of being invisible?

    The knife tool develops a black line on the objects that I colored using the live paint bucket. How to get the tool knife to stop this and instead of being invisible?

    I understand that it is a live paint object you use.

    Try this:

  • How to get the values of the shape of the object in the form of process field?

    Hello

    I created the resource object and it has the shape of the object that are associated with him. When the user self praying for this user RO add information in the form object field ho can I get these values as a process?

    How to get the values of the shape of the object in the form of process field?

    Hello

    If you want to map the form field Number in the form of process field go process definition - Data Flow Mapping tab you can add the field map.

    Thank you
    Patricia

Maybe you are looking for

  • Reset foolproof Mid 2010 iMac

    Hey people and our apologies in advance to those of you who are aware, I am the fool who needs protection against I am trying to reset the iMac family as it has been rumbling along for close to 6 years accumulating all the usual garbage. Multiple use

  • slow web treatment

    I have a brand new HP Envy Phoenix 810 (12 G of Ram).  It should be a screamer.  However, when I have access to the web, it's pathetic.  I have a point of google search and response is fast, but when I try to navigate a given page it is painfully slo

  • How my VISA control can communicate with an instrument via TCP/IP?

    VISA controls are my GPIB instrument when I select "Refresh", but none of the instruments TCPIP. I know that the TCPIP instruments are connected because I can their ping.

  • Theming and Microsoft Windows applications.

    I recently started using VS2013 and fell in love with the Dark theme. It is much kinder on my eyes, and I find it easier to read. Is there a matching theme available for Windows and the other suites app (Office, IE etc.)?

  • Windows 7 does not start with the new msi motherboard

    Yesterday, I bought a new motherboard, processor and 8g of ram in my computer. After all what adjustment and replacement of my old motherboard with the new, I started my computer to find that Windows 7 unbootable not. Instead of windows 7, I get the