Returns the name of the MovieClip to an instance symbol

I have variables that _level0.mcContainer.mcSquare, _level0.mcContainer.mcTriangle, etc. These are instances of the MovieClips mcSquare, mcTriangle, etc.

Is it possible to take the variables and return the name of MovieClip, exactly as it appears in the library?

Any help is appreciated.

Why not:

Tags: Adobe Animate

Similar Questions

  • Return the movieclip horizontally

    Hello. I'm trying to return my video clip horizontally, so he will lead in the opposite direction.

    Any ideas?

    Thank you.

    It is easier to use the bitmapdata class. You can use the scale to return:

  • Need help return correct name of a created the code clip

    Hello. I'm a n00b AS3 with fortunately we a simple question I am designing a simple flash game. Copy the following code creates an array of video clips and the bsigns a photo for each of them. It is a map screen. What I need, it is when I click on one of the created movie clips, I need to return either the index of the item in the table or the name of the clip. Basically everything that I can use to differentiate them in the code. Here is the code:

    import flash.display.MovieClip;
    var MapLoader:Array = new Array();
    var strJPGext:String = ".jpg";
    var intContTileNumber:int;
    var strContTilePath:String;
    var intDistStartX:int = 63;
    var intDistStartY:int = 64;
    var intDistMultiplyY:int = 0;
    var intDistMultiplyX:int = 0;
    var intDistCount:int = 0;
    var MapSquare:Array = new Array();

    for (var i: int = 0; i < 729; i ++)
    {
    var MapSquare:MovieClip = new MovieClip();
    MapSquare.push (new MovieClip());
    MapSquare [i] .x = intDistStartX + (intDistMultiplyX * 30);
    MapSquare [i] there = intDistStartY + (intDistMultiplyY * 30);
    MapSquare [i] .name = "MapSquare" + i;
    addChild (MapSquare [i]);
    intContTileNumber = i;
    MapLoader.push (new Loader);
    strContTilePath = intContTileNumber + strJPGext;
    MapLoader [i] .load (new URLRequest (strContTilePath));
    MapSquare [i] .addChild (MapLoader [i]);

    intDistCount ++;
    intDistMultiplyX ++;

    If {(intDistCount > 26)
    intDistCount = 0;
    intDistMultiplyX = 0;
    intDistMultiplyY ++;
    }

    }

    stage.addEventListener (MouseEvent.CLICK, reportClick);
    function reportClick(event:MouseEvent):void
    {
    trace ("name of the movieClip Instance =" + event.target.name);
    }

    Now, it all works very well, it creates the plan and assigns the correct image and places them in the good X, position Y and this is the good 27 x 27 squares grid. The problem is with the name, when I click on the clip, it returns "Instance2" or "Instance5" or something else. It starts by 2 and then increases each number by 3 for each clip, so the first is 2, then 5, then 8 and so on. This is not good. I need to return the name I have given
    . If I put the code in trace(MapSquare[1]) it will return the name 'MapSquare1' so I know has been assigned the name, but it is not returning.

    Please help

    Thank you

    -Red

    Add event listeners just like anything else you set in the loop for...

    MapSquare [i] .addEventListener (MouseEvent.CLICK, reportClick);

    They can all use the same event handler function, so there is no problem.

  • Why is the "Called" property returns a name with *: Instance: 0?

    I'm building a VI that returns a list of all the side screws and their auxiliary screws, etc., a given top-level VI.  I first open a reference giving the path to the top-level VI, and then use the property 'Called' to get the subVIs. I then (in a loop) get all each Subvi conscripts by opening a reference using the name of the previous output called string. I noticed something when I ask for conscripts by the string name of XYZ.vi, that I get all its subvis, but I also have a XYZ.vi:Instance:0 name returned. What is the purpose of the proceeding: 0 and why is it happening? I like understand why Instance: x would never get added to the name, and also why VI would return his name in the property called? The VI is not defined as re-enterent or calling themselves dynamically or anything like that.

    Hope someone can explain that.

    Thank you

    James

    Hi ejb068,

    Hello and I hope that your well today.

    I continued to study your issue now I am back in the office, with my LabVIEW machine and resources OR. I concluded and also since found a confirmation of this issue.

    For a first level VI which has a few express screws on its block diagram, the names of the callee property currently includes a single instance of the upper level for each express VI VI.
    For example, if a VI has two ExpressVIs in the block diagram. The property called node will return two instances of the toplevel VI.

    First level VI = mainVI.vi

    Express VI = delay

    Result name called: mainVI:Instance0 (number lists according to the order screw Express are deleted from the diagram.)

    : first level VI name: InstanceX

    The problem is if you use VI server that this name is not valid - and causes a VI Server error. So I think it would be pretty safe filter these names.

    Please let me know what you think,

  • Columns of folder: by default, how can return the first column 'Name' without having to move it manually every time?

    Something's happened awhile and when I create a folder which appears the first column is the column 'Date modified '. By default, how can return the first column 'Name' without having to move it manually every time?

    Hello

    I suggest you to visit these links and check if it helps:

    http://Windows.Microsoft.com/en-us/Windows-Vista/working-with-files-and-folders#section_4

    http://Windows.Microsoft.com/en-us/Windows-Vista/folders-frequently-asked-questions

    It will be useful.

  • PowerShell - returns the name of the model of a virtual computer running

    Anyone know / got the (powershell) command to return the name of the model of a virtual machine?

    Sorry, I couldn't make it work. In the near future, we'll miss vW 8.6, I'll try again then.

    For now I fixed it with the HyperV 2012 R2 cmdlets

    $VMTemplate = ((get-VM-nom $VM).) ID | Get - VHD). ParentPath

    I've split and convert the correct model name.

  • Place SelectedPlace name attribute selector control does not always return the name as the url of the map

    Hello.

    When I search for and select a place from the UI of the PlacePicker, then function name() the class' SelectedPlace returns the name of the place. But this name isn't blue, when I show on a text box so that when its clicked it opens the card upward and show this place. But when I select the location by clicking the default button "my position", it shows my position as ' 446, Philip St, Warloo, ON, Canada,"which is blue color when displayed in the TextArea component. How can I also do the name formatted as it is formatted when chosed through the option 'my location '?

    Also my site is not canada. It is Bangladesh. So why it shows canada?

    My implementation is

    placePicker = new PlacePicker(locationRuleAddPageContainer);
        selectedPlace = placePicker->show();
        if (selectedPlace != NULL)
        {
          // Extract details from SelectedPlace object.
            locationText->setText(selectedPlace->name().append("\nLatitude: ").append(QString::number(selectedPlace->latitude())).append("\nLongitude: ").append(QString::number(selectedPlace->longitude())));
            qDebug()<<"Selected Location: "<description()();
            chooseActions->setEnabled(true);
        }
        else
        {
          // Either the user has canceled the operation or the location capability is not enabled.
        }
    

    Thank you.

    Just need to change the

    selectedPlace->name()
    

    TO

    selectedPlace->addressLabel()
    
  • Formula to return the name of the hierarchy to another node

    People,

    I thought it would be easier explained with a mock excel upward. I hope you understand.

    Background:

    Two hierarchies are ministries, the two beeding seeded in diferent target system.  When a new Member is added in the TFTP hierarchy, she also will be added to the hierarchy of Essbase, but with a different number. Custom.EssbaseName is in the TFTP hierarchy and contains the Convention of naming its equal TFTP Essbase.

    I need to create a property derived for my Essbase hierarchy. This property must evaluate each node in the hierarchy of Essbase, he must go to the TFTP hierarchy and finds its node name as the value in the Custom.EssbaseName property and then return its name of node TFTP.

    Please see the cells in gray, I hope that some of you are able to help this pressing issue!

    Hello

    Assuming you'd be on 11.1.2.3 and above all, try this.

    var worm is node. Version;

    var essnodename is node. ABBREV;

    var esspropval ="";

    var psftHier = worm. HierByAbbrev ("TFTP");

    var psftTop = psftHier.TopNode;

    var arrpsft = psftTop.GetDescendants ();

    for (idx = 0; idx<>

    esspropval = arrpsft [idx]. PropValue ("Custom.EssbaseName");

    {if(esspropval==essnodename)}

    return arrpsft [idx]. ABBREV;

    }

    }

    Return ' ';

    I would like to know if it works.

    Thank you

    Denzz

  • How gemfire locator can be configured to return the full DNS name for the customer?

    We have an index running before 2 cache servers,

    Locator.DomainA == > Server1.DomainA, Server2.DomainA.

    the problem is when the customer (customer. DomainB) try to access gemfire via locator, it up ' get: not connected to GemFire' exception, the reason is that the Client.DomainB uses the full name "Locator.DomainA" to access the gemfire, the Locator maintains only the servers host name, when the client runs the query, it access Server1 or Server2, but in this case, the networking is not connected.

    How gemfire locator can be configured to return the full DNS name for the customer?

    in gemfire.properties, Locator attribute is full domain name already.

    Thank you

    Yao

    There is a parameter for hostname for the customers that you can put in your cache.xml file cache-server element. It is a string that is passed the server for the location, and then on the Locator for the customer. You must set this client-to-host name in each of your cache servers.

  • getUserRoles() in SecurityContext returns the names of LDAP groups

    Hello

    getUserRoles() in SecurityContext returns the names of LDAP groups as well as the role of the user's request. Should it? If not, what could be the possible problem.

    I have OVDLDAP configured on the weblogic server.

    Thank you.

    Hello

    Yes, what is expected. OPSS API expose application roles and user roles. For the distinction between the two, I would recommend a names like app-role naming convention to identify application roles

    Frank

  • return the hostname vmhost FULL domain name only

    I try to only get the part only my list of VC esx server host name

     
    $vmhosts =  get-vmhost -Location (get-cluster -name "TestCluster") | Select-Object Name
    

    And which returns:

    Name
    ----
    server1.mydomain.com
    server2.mydomain.com
    server3.mydomain.com
    

    What I would like returned is only the host name of the name part.

    I am still not entirely object pipeline and manipulation to get the correct correct syntax. I have a few think different, usually ending up with the method call failed... and Expressions are allowed as the first element...

    I can get the host name part in doing something like this:

    $myvar="server1.mydomain.com"
    Write-host $myvar.substring(0,($myvar.indexof(".")))
    

    How do I, or y at - it a way to incorporate the foregoing (something better) in the original that I am only a list of host names of the pipeline?

    You can use the ForeEach-object cmdlet and a regular expression to extract the host names.

    $vmhosts =  get-vmhost -Location (get-cluster -name "TestCluster") | %{([regex]"(\w+)").Match($_.Name).Groups[1].Value}
    
  • Help (recovery of the image of an xml file name, then appear inside the movieclip

    Hello guys, I just want to ask sometihng about the display of the image inside the movieclip by pulling on the image name in the xml file.

    It comes to my xml file.

    <? PHP

    Header ("Content-type: text/xml");

    $host = "localhost";

    $user = 'root ';

    $pass = "";

    $database = "test";

    $gelo = "image1.jpg";

    / * xml output * /.

    $xml_output = ' <? XML version=\"1.0\? > ';

    $xml_output. = "< GALLERY > ';

    $xml_output. = '< IMAGE > '. $gelo. "< / IMAGE >";

    $xml_output. = "< / GALLERY > ';

    echo $xml_output;

    ? >

    This is the code inside my actionscript

    stage.scaleMode = StageScaleMode.NO_SCALE;

    var loader: URLLoader = new URLLoader();

    loader.dataFormat = URLLoaderDataFormat.TEXT

    loader.addEventListener (Event.COMPLETE, loadCompleteHandler);

    loader.load (new URLRequest ("http://localhost/loadimagefromxmlAS3/data.php"));

    function loadCompleteHandler(event:Event):void {}

    var xml = new XML (event.target.data);

    txt.text = xml.toXMLString ();

    trace (xml. IMAGE [0]);

    var list: XMLList = xml.data.title

    var loader: Loader = new Loader()

    This ["holder_mc" + 0]. AddChild (Loader)

    Loader.Load (new URLRequest (list [0]. IMAGE))

    }

    When I run it in flash, I got the error


    Image1.jpg

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

    at xml_fla::MainTimeline/loadCompleteHandler()

    at flash.events::EventDispatcher/dispatchEventFunction()

    at flash.events::EventDispatcher/dispatchEvent()

    at flash.net::URLLoader/onComplete()

    I hope you will consider my ignorance since im a beginner with actionscript. Thank you

    (1) you should have "Permit debugging" enabled in the settings of publication so you could tell exactly the line of witch will not

    (2) this line makes no sense for me: var list: XMLList = xml.data.title

    Change it to var list: XMLList = xml. IMAGE;

    (3) loader.load (new URLRequest (list [0] m:System.NET.SocketAddress.ToString (()));

    (4) also this line is suspicious: this ["holder_mc" + 0] .addChild (loader)

    Why not just say: holder_mc0.addChild (loader)?

  • Return the name of parnt in CS3

    var myDoc = app.activeDocument;
    var imageBox = myDoc.layoutWindows [0].activePage.place ("C:/Documents and Settings/lw/Desktop/Workflow_1/Artfiles/blo26940_ch10/blo26940_1002.eps");

    Alert (ImageBox.parent)

    It's my script here I placed the image file (blo26940_1002.eps) translate. In Indesig 2. It returns the Name (imageBox.parent) is Rectangle.

    But when I run this code in CS3 it not return the parent name wht is the problem

    Is that what you found for InDesign CS3 object model viewer? It is under the Help menu of ESTK.

    You use the method instead of a page, so let's get that:


    Page.place (filename: file, placePoint:Array of the number destinationLayer: layer, showingOptions:boolean, autoflowing:boolean, withProperties:Object): table of each
    Place the file.
    file name: Data type: file
    The file to put
    included: Data type: array of numbers
    The point on which you want to place (in option)
    destinationLayer: Data type: layer
    The layer on which you want to place (in option)
    showingOptions (optional): Data type: boolean, default value: false
    Whether to display the dialog box (optional) import options
    autoflowing (optional): Data type: boolean, default value: false
    Whether placed autoflow text (optional)
    withProperties: Data type: object
    Initial values for the properties of the new Page (optionally)

    I grant you it's a little difficult to read for a newcomer, but looking at your code, there are two points that you seem to be missing (according to what is written here):

    1. you pass a file as a string path to the place rather than a file object method.

    2. the method returns an array (is that the ': table of each ' at the end of this first string "BOLD").

    I have not checked, but your use of a chain can actually work, but I would always use a file reference myself. It is trivially easy to do.

    With respect to the returned array, it is because in theory, the place method to place several items, the parent you want is so the first (and in this case, only) member of the array.

    So, on that basis and assuming that the path to the file is correct, try this:

    var myDoc = app.activeDocument;
    var imageBox = myDoc.layoutWindows [0].activePage.place (file ("C:/Documents and Settings/lw/Desktop/Workflow_1/Artfiles/blo26940_ch10/blo26940_1002.eps"));

    Alert(ImageBox[0].parent);

    That should do the trick, although I'd probably write it like this:

    var myDoc = app.activeDocument;
    var myFile = file ("C:/Documents and Settings/lw/Desktop/Workflow_1/Artfiles/blo26940_ch10/blo26940_1002.eps");

    If {(myFile.exists)

    imageBox = myDoc.layoutWindows [0].activePage.place (myFile) [0];

    Alert (ImageBox.parent)

    } else {}

    Alert ("file does not exist")

    }

    Note that I moved the [0] at the end of the statement of the place so that the name of the variable imageBox corresponds to what it really is.

    Dave

  • return the names of columns which line values are not null.

    Hi I m a new db admin guy, and I need a sql script that should return the names of columns of the given table. and the returned column must be the value (fyi - if the column contains the value null column name would not come to the o/p of sql).
    Exmple:
    name of the table - A
    fresh status s.no name brand
    1 null aa 45P
    paid 2 null bb 30
    3 cc paid 35P

    (FYI - 1) if I give the table name (A) and s. n. (2) o/p should be - name, mark.
    (2) if I give the status of tablename (A) and s. n (1) the o/p should be - name, brand.

    Thank you
    Krishna.

    Published by: user13294228 on June 14, 2010 22:54

    BTW,
    The previous solution is for all values of the column, if you want a specific line, you can add it in where clause.
    I mean in your example, it you look like:

    SET serveroutput on;
    
    DECLARE
       l_cnt          NUMBER;
       l_str          VARCHAR2 (255) := '';
       l_table_name   VARCHAR2 (255) := 'YOUR_TABLE_NAME';
       l_col_cond     VARCHAR2 (255) := 'S_NO';
       l_val          NUMBER         := 1;
    
       CURSOR c_col
       IS
          SELECT column_name
            FROM user_tab_columns
           WHERE table_name = l_table_name;
    BEGIN
       FOR i IN c_col
       LOOP
          EXECUTE IMMEDIATE    'SELECT COUNT ('
                            || i.column_name
                            || ') FROM '
                            || l_table_name
                            || ' WHERE '
                            || l_col_cond
                            || ' = '
                            || l_val
                       INTO l_cnt;
    
          l_str := l_str || CASE
                      WHEN l_cnt = 0
                         THEN ''
                      ELSE i.column_name
                   END || ',';
       END LOOP;
    
       l_str := SUBSTR (l_str, 1, LENGTH (l_str) - 1);
       DBMS_OUTPUT.put_line (l_str);
    END;
    

    Saad,

    Published by: S.Nayef on June 15, 2010 11:54

  • Function that return the name of the current report

    Hello

    Anyone know if there is a function that returns the name of the current report?, similar to GET_APPLICATION_PROPERTY (CURRENT_FORM) in the forms.


    Tnks,


    LEFM

    Hello

    You can use the builtin: SRW. GET_REPORT_NAME
    This function returns the file name of the running report

    http://www.Oracle.com/webapps/online-help/reports/10.1.2/topics/htmlhelp_rwbuild_hs/rwrefex/PLSQL/builtins/SRW/srw_get_report_name.htm

    NOTE: it is not the name of the RDF file. Is the name defined in the reporting name property.

    Concerning

Maybe you are looking for

  • It is there no window or icon of a new message on my mail page?

    When you use the e-mail system, there is no way I can generate "mail". There is no window or whatever it is to choose to generate a new message. I have done everything I know and tried to find hidden somewhere on the page without success... any help

  • The image reference

    Hi Expert Vision, I just started tinkering with the module Vision and think it's very nice. A rookie question I had, with a picture (for example from a grab IMAQdx) reference, I have to connect through all functions, or is permitted to use only the f

  • Evil indivcation of the status of the battery

    The President complied, I use the computer E-015tx hp pavillion laptop and bought another two months. I have problem about the State of the battery. Earlier, the laptop gave the warnig of battery indication if the battery was remaning 15%. But today

  • URGENT - recent update changed screen - all height & skinny

    My monitor is square.  How can I change the display back as it was so it fits on the screen?  The text is very difficult to read and scroll to the low bar is off the screen completely.

  • Windows XP in "display settings."

    I changed the dpi to 200% in the "Advanced" tab and now fills the screen and I can not access the lower part of the screen where the button 'apply' is and cannot reverse the dpi at 100%. How to view the lower part of the screen? By dragging the blue