How to get the path or the file name of getChild

Hey everyone, good day!

Is - anyone here know how to get the path or the file name of an object inserted into the scene?

Here's the scenario:

I am developing a flash application, which allows the user to insert background to the scene to help her browse and select using the FileReference in flash. I inserted some image the user successfully choose, but what I'm trying to make, is that if the user clicks on save, the background image it has chosen will be copied to a different folder on the web (file upload). So I need to know the path and the file name of the background image.

Here is my AS3 code:

for (var i: uint = 0; i < container.numChildren; i ++) {}
trace ('\t|\t' + i +'. \t name:' + container.getChildAt (i) .name + "\t type:" + typeof (container.getChildAt (i)) + "\t" + container.getChildAt (i));
}

------------------------------------------------------------------------------------------ -----

Here is the message trace of the code above:

|     0 name: instance120 type: object [object Loader]

------------------------------------------------------------------------------------------ --------

Any help here? I thank in advance.

The Loader class has a property contentLoaderInfo (an instance of the class LoaderInfo) that contains information, that you are probably after, including the url of the content that has been loaded...

Loader.contentLoaderInfo.url

Tags: Adobe Animate

Similar Questions

  • How to get the file name of the current active document in InDesign CS4?

    Hello

    If I open a document in the file-> open, I can get the file name of the document using IOpenedFileInfo-> GetOpenedFilePath().

    But, if I create a new document and run the file-> save as, GetOpenedFilePath is invalid back reference IdFichier.

    What is the right way to get the file name of the active document?

    Thank you

    VSP

    You can try this:

    IDatabse * db =: GetDatabase (theDoc);

    IdFichier * SYSIXCOL = db-> GetSysFile();

    PMString docName is SYSIXCOL-> GetFileName();.

    Good luck

  • How to get the file names?

    Hello

    I have two questions,

    1. I have a set of xml files in a folder in a blackberry. I need to be able to read the contents of the folder that is read all the names of the xml files and be able to display them. How should I do for this?

    2. the samples of the fileconnection class containing all to access the .txt files. Is it not possible to read other files and .xml files?

    just give the path up to the last directory...

    try {}
    FileConnection fconn = (FileConnection)Connector.open("file:///SDCard/BlackBerry/documents",Connector.READ_WRITE);
                  
    If (! fconn.exists ())
    {
                          
    Enumeration e = fconn.list ("*", true);

    }

    This will retrieve all the file name in the folder of document...

    See you soon!

  • How to get the file name of IOErrorEvent

    I have charge "test.swf" file. If file not found how to show dynamically don't find it not file name.

    var url: String = "test.swf";
    var loader: Loader = new Loader();
    loader.contentLoaderInfo.addEventListener (IOErrorEvent.IO_ERROR, ioErrorHandler);
    var request: URLRequest = new URLRequest (url);
    Loader.Load (request);


    function ioErrorHandler(event:IOErrorEvent):void {}
    trace ("ioErrorHandler:" + event);
    }

    Yes, as it should... url is a property to a valid media you are loading.

    Think - I do not think there is a native way of reading URLRequest url on the charger. But the requested URL can be read out of the event text property. Not very elegant but it does the trick:

    function ioErrorHandler(e:IOErrorEvent):void
    {
         var pattern:RegExp = /(?<=URL:\s).+/g;
         trace(e.text.match(pattern));
    }
    
  • How can I get the file name of a report, I have just stored in the cache

    I would like to be able to get the file name of the report that is stored in the cache directory.

    When a report is created from forms to help

    SET_REPORT_OBJECT_PROPERTY (v_report_id, report_desname, 'fubar.pdf');

    In the cache directory a file is created something like fubarABC123DE.pdf. I guess that part of ABC123DE is the cache key.

    I want to be able to read this file from another process. This process cannot use http, so I can't pass the URL. However, I would still be able to access by using the URL.

    Is all the same to get at the file name?

    The answer is, according to management, you can get the name of the file in the cache, so if you want to access the file you need to store somewhere else.

  • How to get the host name of the physical computer inside a virtual machine until the user logs in Windows?

    I don't know if this is the right place to post this question, I develop software to support VMWare PCoIP and need to know how to get the host name of the physical machine (which manages the virtual machine and View Client) within a virtual machine before the user logs in Windows of the virtual machine.

    I understand there are two ways to read the host name, via the HKEY_CURRENT_USER\Volatile Environment registry and environment variables, but they are available once the user is connected. I need info before the user connects.

    Is there a VMware API that can be called or asked the host name?

    Thank you.

    Not on the broker, but there are the startup scripts to log on to the computer virtual itself: http://pubs.vmware.com/view-52/topic/com.vmware.view.integration.doc/view_integration_startsession_script.9.2.html

    Note that these executed when a virtual desktop computer allocated connection, not to the point that the client connects - it is possible for the customer to not complete the connection (crash, cancel, network failure) and so any what solution you design must handle this.

    Mike

  • How to get the files to and from the host

    Is there something that I can read which explains how to get the (ftp, memory stick or other) files to and from the host?

    Sorry if this is a noob question, I looked but could not find something specific...

    There are many ways of doing so:

    1 activate not supported ssh and scp use

    2. use VI Client access to your storage space on configuration files and server transfer

    3 configure the iSCSI or NAS to deal directly

  • How to get the files in the subfolder by Apple Script

    say application 'Finder '.

    the value ArtFolder to choose a folder with guest "Select the folder of Art: - > >".

    set ChapNameFolders to the folder list ArtFolder without invisible

    Repeat with ChapFolder in ChapNameFolders

    set ArtFiles for files in ChapFolder

    display the dialog ( )County ArtFiles( )


    Repeat with ArtFileItem in ArtFiles

    value FileInfo info for ArtFileItem

    set File name to the of ArtFileItem name

    if folder of FileInfo is true then

    view the dialog box FileName as string

    end if

    end Repeat

    end Repeat

    end say

    ===========================================>>

    I used code above to get the files in the subfolder, but it does not, it will fail in second REPEAT & do not get the files in the subfolder...

    Can someone help me solve this problem...

    Thank you.

    My problem has been resolved by this code: -.

    say application 'Finder '.

    the value ArtFolder to choose a folder with prompt "select Art Folder :---> >.

    Repeat with ChapFolder in (get each folder from the folder ArtFolder)

    Repeat with ArtFile in (get each file from the folder ( as aliasChapFolder))

    display the dialog box ArtFile string

    end Repeat

    end Repeat

    end say


    Thank you...

  • How watermark with the file name?

    I've searched and searched and I can't find an easy way to do this... but it MUST be possible!

    Some (really clumsy) Solutions, I found:

    1. I can create a .csv with two columns, each list of filename for each image in a folder.  Then, using variables in PS, I use the first column as a variable image replacement and the 2nd column as a text replacement variable to export the files.  This solution is both your time and creates images that are all the same size.
    2. LR/Mogrify plugin 2 - what might do the trick, but it doesn't seem to work with the latest version of LR
      • (I get this error: an internal error occurred: LRCatalog; withCatalogDo has been marked obsolete in Lightroom 2.0 and is not supported from Lightroom 3.0) This call is necessary.)
    3. Somehow use a droplet, pulling on the name of the metadata file to generate a watermark text... which I can't figure out how to do.

    How can this be complicated?  There must be a clear Super button, Miss me him somewhere in LR, because I can't imagine NOT having need of this feature.

    Help, please!

    You can do it in the slideshow module. By clicking on the ABC button on the toolbar and choosing the file name in the menu dropdown. You can drag the text box anywhere to anchor it in the Center, downstairs, etc. top of page. You can print a whole batch to PDF. See image:

  • BlackBerry Z10 how to display the file names of the images?

    I bought an App to recognize the flowers. My blackberry shows photos, but not the names of the plants. That's why I need to see the file names of the images. How do I handle this, STI is possible?

    Use the file manager with your device application.

  • How to get the Base name of the executable process

    Hi all
    I have a problem for the creation of SQL AnyWhere Plugin (Database Plugin). In this regard, ServerDetector class long pids [] = getPids ("State.Name.eq =?"). Instead of question mark that I place. And how to get the name of this executable process.

    Thanks and greetings
    Florent K Reddy

    Take a look at the doc following if you have not already:

    http://support.Hyperic.com/Confluence/display/Sigar/PTQL

    State.Name is the name of the base of the executable of the process, such as "dbsrv9.

    On 16 May 2007, at 23:24, fredo Reddy wrote:

    Hi all
    I have a problem for the creation of SQL AnyWhere Plugin (Database Plugin). In this regard, ServerDetector class long pids [] = getPids ("State.Name.eq =?"). Instead of question mark that I place. And how to get the name of this executable process.

    Thank you & best regards
    Florent K Reddy

  • How to get the computer name - forms 10g

    Hello

    How to get the name of the server or some other identification forms 10g Application?
    We have several servers and host load balancing redirects user to the X Server and the forms application, I have to get information from the server to which the user was redirected? Is there a way how to do?

    It can be the name of the server, Ip or other identifying information...

    Thank you.

    As the client that connects to the database is the application server

    CHE_TEST@tcp_asterix_impl> select sys_context('userenv', 'host') from dual;
    
    SYS_CONTEXT('USERENV','HOST')
    ----------------------------------------------------------------------------
    LINZ\CHE-WS
    

    Should return you the host name of your application server.

    See http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/functions165.htm#SQLRF06117 for more information you can get with sys_context

    see you soon

  • How to get the full name of the user to a sso.

    Hi all

    I am brand new with oracle application server.
    I use oracleAS 10g with SSO enabled. How can I get the full names of the users?
    I know that this information can be obtained with the command 'ldapseach' but I'm looking for information in a view or a package.
    Is it possible to get this information in a view or a package?

    Thank you.

    Look at the portal.wwse_api function person_info package
    Maybe it's something similar that you are looking for

  • [MAF] How to get the user name and password after login?

    Hi Experts,

    I have a call to REST where it requires identification information of the user (uname and password) to identify the data that belongs to who.

    Authentication has been made with OAuth.

    I believe that there is an API to get the user name and password in the CRG

    See you soon,.

    Hendry

    Hello.

    You don't need to manipulate the credentials yourself in code. MAF will propagate the logon cookie or inject the identification information in the HTTP header if cookies are not supported.

    To do this, you must select the purchase option of cookie from the server connection Include in REST in the dialog box create a connection Login MAF , such as discussed here:

    http://docs.Oracle.com/middleware/maf210/mobile/develop/MAF-securing.htm#ADFMF23732

    In addition, you must attach the policy of security appropriate to the connection, as explained here:

    http://docs.Oracle.com/middleware/maf210/mobile/develop/MAF-Web-services.htm#ADFMF23697

    Best regards

    Frédéric Desbiens

    Senior Product Manager

    Mobility and Cloud oracle

    Twitter: @BlueberryCoder

    blog: http://blogs.oracle.com/blueberry

  • How to get the full name of the user of the OPS?

    Hi Experts,

    I know we can get the login controller pageContext.getUserName () user name. Is there a simple way/API to get the full name of the user (name, first name) of the OPS?

    Thank you.

    Hello

    USER name and information of the PERSON are two different concepts. You can get the id of user with pageContext.getUserId () connection. In order to get the first name, last name, you must select it from table PER_ALL_PEOPLE_F.

    You can use the sql select and set pUserId of pageContext.getUserId ();

    SELECT FIRST_NAME, LAST_NAME TO PAP PER_ALL_PEOPLE_F, FND_USER FU

    WHEN TRUNC (SYSDATE) BETWEEN PAP. EFFECTIVE_START_DATE AND PAP. EFFECTIVE_END_DATE

    AND FU. EMPLOYEE_ID = PAP. PERSON_ID

    AND FU. User_id =: pUserId

    Anil

Maybe you are looking for

  • Firefox crashes at start-up since the update of FF 18

    After update automatically to FF18, Firefox crashes every time at startup. I read the article on Malware doing this, ran malwarebytes antibytes and kapersky but they didn't pick up anything. It's really a pain in the thigh. I was wondering if ayone e

  • What "suite office or productivity ' works better on the Mac?

    After 7 years, I'm looking for reluctantly for alternatives to the Pages. I use an older iMac OS x 10.11.4. The "suites", whose names I know at least are Microsoft Office, OpenOffice Apache and LibreOffice. A source of instruction in full day or docu

  • HDD Upgrade 6710 b

    Eager to upgrade the original HDD in a notebook 6710 b, I came across a document that specifies that a disk 7200 RPM, the allowed maximum size is 120 GB.  I've never heard of this before; This size restriction is legitimate?  I suspect it may be rela

  • How to install an e-mail program to send stuff I scanned to photoviewer? Thank you

    Could not find a way to send scanned documents via the Send dialog box says necessary to install the e-mail program, but I don't know how to... Thank you.

  • SL300 Bios - Intel P9600 CPU Upgrade

    Hello The latest Bios support P9600 processor Intel? Intel Core 2 Duo P9600 - 2.66 GHz, 6 m Cache, 1066 MHz The latest Bios support P8800 processor Intel? Intel Core 2 Duo P8800 - 2.66 Ghz 3 MB 1066 MHz Cache I know this may have been brushed on and