[JSFL] Have a name binding class by name of movie clip

Hello

I have a few question doing this. As I do this for some time, I wanted to try a jsfl script instead of doing it manually every time.

My library will look like this every time.

2015-12-15_11-30-42.jpg

What I would like: ave in the end:

2015-12-15_16-31-01.jpg

What I want is simple, I want to just take the name of each clip and paste it into the link attribute.

If the name was easy enough, but as it was the full path, I needed to cut it, so I used the substring.

But then, despite my attempts, I can't paste the name into the binding attribute.

It won't take my last sentence: "fl.getDocumentDOM (). library.items [i] .className = newClassName;

Any ideas?

Here is the code:

function init()

{

fl.outputPanel.clear ();

var i = fl.getDocumentDOM (). library.items.length;

var lib = fl.getDocumentDOM () .library;.

While (i)-

{

If (fl.getDocumentDOM (). library.items [i] .itemType == "movie clip")

{

getName = fl.getDocumentDOM () var. library.items [i] .name;

newClassName = getName.substring (20, getName.length);

FL.trace (newClassName);

() fl.getDocumentDOM. library.items [i] .className = newClassName;

}

}

}

init();

Finally got my code works with a few more lines.

Well, I just needed to add "item.linkageExportForAS = true;". Of course...

function init()

{

var i = fl.getDocumentDOM (). library.items.length;

var lib = fl.getDocumentDOM () .library;.

While (i)-

{

var point = lib.items [i];

If (lib.items [i] .itemType is "movie clip")

{

if(Item.linkageExportForAS==false)

{

getName var = lib.items [i] .name;

newClassName = getName.substring (20, getName.length);

item.linkageExportForAS = true;

item.linkageClassName = newClassName;

}

}

}

}

init();

Tags: Adobe Animate

Similar Questions

  • Name of Movie Clip variable

    Hello

    How can I do a dynamically created movie clip name variable?

    var font_mc:MovieClip = this.createEmptyMovieClip ("police", 1);
    font_mc.loadMovie("fonts/myFont.swf");

    I would like to be able to specify dynamically create "font_mc", such as:

    var 'police' + i + "_mc": MovieClip = this.createEmptyMovieClip ("police", 1);
    'police' + i + ' _mc".loadMovie("fonts/myFont.swf");

    Thank you
    Brian

    OK, it's working now. I found another reference to "font_mc" that I had not changed to use dynamic variable reference.

    Thanks for the help!

    Brian

  • Memory use and class of the custom movie clip?

    Hello

    I need to create instances of a clip 100. Is it better to add functions for these clips in the movie clip class or in a separate category?

    For example, I move(), setPosition(), setRotation() functions, would be that create these features a hundred times and held memory or just reference functions? What could be better?

    Thank you

    There is a slight advantage to create a function to handle all objects of class vs each class having its own class.  but it's such a small benefit that's not worth it to sacrifice any principle of encapsulation, so you should let each Member of the class to use the class methods.

  • Former owner will not take the time to remove his ACCT. I have his name, number, address, serial number, imei of the device. I've added it to my Verizon plan. I can't activate it! Apple won't help me but him?

    Former owner is not the time to remove the device from his account. I have his name, number, address, serial number and imei of iphone.  I always had of BONE cell phones, but my daughter IOS. I made sure that the IMEI was clean and it was not on the black list before adding it to my Verizon account. Now, I learned about icloud.  Verizon has brought his number to the iphone and now she has no phone to use. I called apple, but I was told that they could not help me, but they might help the original owner.  They original owner is older and perhaps confused after I tried to explain what I've learned.  What can I do when the original owner is/was/still confused about how the system works?  I'm always lost in this world of apple.

    It sounds as if this iPhone is locked in Activation.  Here is the complete description of locking Activation:

    Find my iPhone Activation Lock - Apple Support

    Assuming that the former owner is ready (but simply not able) to help you, maybe if you contact the owner and his or her through the directions above, you'll be all set.

  • How to change name if you do not have a name?

    So, I don't have a name, and all the guides say click on the name...

    Can I change another way?

    I Inline a photo but apparently dropbox is prohibited...

    When you create a Microsoft account using this e-mail address as [email protected], you automatically get assigned a Skype name like on-line: unnom. You cannot use Skype as your login ID name and you cannot change it. The only one you can change is your full name, which is your first and last name.

    http://community.Skype.com/T5/security-privacy-trust-and/new-to-Skype-and-having-trouble-signing-in/...

  • I am making a new user account, but when I try to call my computer says that he cannot have another name with characters inside

    Original title: new user account...

    I am making a new user account, but when I try to call it my computer says it cannot have another name with characters inside (>)

    Hello

    I suggest you try to create the new user account using the command:

    'control userpasswords2' run box or the start search box and then create the new user account.

    Follow the steps for the same thing:

    a. click Start, type control userpassword2 in the search box and press enter.

    Hope the information is useful.

  • I have the names of the pirates who got to my account... who do I give to?

    I was hacked twice within 30 days. I have the names of the email accounts that I hacked. What I do with them. On one page of the notification of security password he email accounts are listed to report any change in my account and it wouldn't let me delete them, so when I get notified of a compromise to my email accounts, they get messages with my new password. I can't get them off my account... Help!

    Hello

    Contact the support of your email provider. Don't be surprised if these addresses are false or
    untraceable.

    For Hotmail:

    Answers is a peer group supported and unfortunately has no real influence on Hotmail.

    HotMail has its own Forums, so you can ask your questions there.

    Windows Live Solution Center - HotMail - HotMail Forums Solutions
    http://windowslivehelp.com/
    Hotmail - Forums
    http://windowslivehelp.com/forums.aspx?ProductID=1

    Hotmail - Solutions
    http://windowslivehelp.com/solutions.aspx?ProductID=1

    How to contact Windows Live Hotmail Support
    http://email.about.com/od/hotmailtips/Qt/et_hotmail_supp.htm

    Windows Live Hotmail Top issues and Support information
    http://support.Microsoft.com/kb/316659/en-us

    Error message "your account has been locked" when trying to connect
    http://windowslivehelp.com/thread.aspx?ThreadId=77be7d82-a0e9-49c7-b46d-040ec654a9e2

    Compromised account - access unauthorized account - how to recover your account
    http://windowslivehelp.com/solution.aspx?SolutionID=6ea0c7b3-1473-4176-b03f-145b951dcb41

    Hotmail hacked? Take these steps
    http://blogs.msdn.com/b/securitytipstalk/archive/2010/07/07/Hotmail-hacked-take-these-steps.aspx

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="" -="" mark="" twain="" said="" it="">

  • Since the recent upgrade, my Photoshop menus tools have no names, and I can't use it properly. What can I do to fix this? I already tried uninstalling and reinstalling to no avail...

    Since the recent upgrade, my Photoshop menus tools have no names, and I can't use it properly. What can I do to fix this? I already tried uninstalling and reinstalling to no avail... I've updated the graphics card drivers. also... I tried to reset the default preferences

    1, make a bug report https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform for requests for features or bugs

    2nd, consider going back a previous version via the Cloud http://helpx.adobe.com/creative-cloud/help/install-apps.html#previous

  • Backups of POS have no name

    Hi all!

    As you can see in the screenshot, backups have no name...

    noname.png

    Thank you for your help...

    Hi Lionelpascal,

    Welcome to the communities.

    He wourld be big if can download the English image.

    "concentrate the mind on the present moment."
  • exp.exe System/pass@xe_345 does not have the name of the service as input

    Please suggest,


    can be used below command name service
    exp.exe System/pass@xe_345 does not have the name of the service as input

    What is the problem with the command below
    C:\oraclexe>exp.exe system/pass@XE file=hr.dmp log=hr.log consistent=y owner=hr
    
    Export: Release 10.2.0.1.0 - Production on Wed May 12 16:16:28 2010
    
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    
    
    EXP-00056: ORACLE error 12541 encountered
    ORA-12541: TNS:no listener
    EXP-00000: Export terminated unsuccessfully
    
    C:\oraclexe>exp.exe system/pass file=hr.dmp log=hr.log consistent=y owner=hr
    
    Export: Release 10.2.0.1.0 - Production on Wed May 12 16:16:56 2010
    
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    
    
    Connected to: Oracle Database 10g Express Edition Release 10.2.0.1.0 - Productio
    n
    Export done in AL32UTF8 character set and AL16UTF16 NCHAR character set
    
    About to export specified users ...
    . exporting pre-schema procedural objects and actions
    . exporting foreign function library names for user HR
    . exporting PUBLIC type synonyms
    . exporting private type synonyms
    . exporting object type definitions for user HR
    About to export HR's objects ...
    . exporting database links
    . exporting sequence numbers
    . exporting cluster definitions
    . about to export HR's tables via Conventional Path ...
    . . exporting table                      COUNTRIES         25 rows exported
    . . exporting table                    DEPARTMENTS         27 rows exported
    . . exporting table                      EMPLOYEES        107 rows exported
    . . exporting table                           JOBS         19 rows exported
    . . exporting table                    JOB_HISTORY         10 rows exported
    . . exporting table                      LOCATIONS         23 rows exported
    . . exporting table                        REGIONS          4 rows exported
    . exporting synonyms
    . exporting views
    . exporting stored procedures
    . exporting operators
    . exporting referential integrity constraints
    . exporting triggers
    . exporting indextypes
    . exporting bitmap, functional and extensible indexes
    . exporting posttables actions
    . exporting materialized views
    . exporting snapshot logs
    . exporting job queues
    . exporting refresh groups and children
    . exporting dimensions
    . exporting post-schema procedural objects and actions
    . exporting statistics
    Export terminated successfully without warnings.
    
    
    
    ^C
    C:\oraclexe>
    C:\oraclexe>
    C:\oraclexe>
    C:\oraclexe>
    C:\oraclexe>
    C:\oraclexe>exp.exe system/pass@xe_345 file=hr.dmp log=hr.log consistent=y owner
    =hr
    
    Export: Release 10.2.0.1.0 - Production on Wed May 12 16:18:27 2010
    
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    
    
    EXP-00056: ORACLE error 12541 encountered
    ORA-12541: TNS:no listener
    EXP-00000: Export terminated unsuccessfully
    
    C:\oraclexe>lsnrctl status listener
    
    LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 12-MAY-2010 16:18
    :39
    
    Copyright (c) 1991, 2005, Oracle.  All rights reserved.
    
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
    STATUS of the LISTENER
    ------------------------
    Alias                     LISTENER
    Version                   TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Produ
    ction
    Start Date                06-MAY-2010 15:32:57
    Uptime                    6 days 0 hr. 45 min. 41 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Default Service           XE
    Listener Parameter File   C:\oraclexe\app\oracle\product\10.2.0\server\network\a
    dmin\listener.ora
    Listener Log File         C:\oraclexe\app\oracle\product\10.2.0\server\network\l
    og\listener.log
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC_FOR_XEipc)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=suvarna)(PORT=1521)))
    Services Summary...
    Service "ORCL" has 2 instance(s).
      Instance "ORCL", status UNKNOWN, has 1 handler(s) for this service...
      Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "PLSExtProc" has 1 instance(s).
      Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "XE" has 1 instance(s).
      Instance "XE", status UNKNOWN, has 1 handler(s) for this service...
    Service "orclXDB" has 1 instance(s).
      Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "orcl_XPT" has 1 instance(s).
      Instance "orcl", status READY, has 1 handler(s) for this service...
    The command completed successfully
    
    C:\oraclexe>tnsping XE_345
    
    TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 12-MAY-2
    010 16:19:18
    
    Copyright (c) 1997, 2005, Oracle.  All rights reserved.
    
    Used parameter files:
    C:\OraHome_1\network\admin\sqlnet.ora
    
    
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = suvarna)
    (PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = XE)))
    OK (30 msec)
    
    C:\oraclexe>exp.exe system/pass@xe_345 file=hr.dmp log=hr.log consistent=y owner
    =hr
    
    Export: Release 10.2.0.1.0 - Production on Wed May 12 16:19:37 2010
    
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    
    
    EXP-00056: ORACLE error 12541 encountered
    ORA-12541: TNS:no listener
    EXP-00000: Export terminated unsuccessfully
    
    C:\oraclexe>

    Seems you have the strategy (profile) password for the user of the SYSTEM, but it cannot be reason of errors like ' no. LISTENER '

    Question:

    change the unlock SYSTEM user account;

    Published by: Teymur Hajiyev 12 May 2010 16:15

    adding text "BOLD"

  • How can I make the &lt; Instance name &gt; the same as the name of the clip in an animation.

    Hi, I'm a moderator for a small game project and I have a very big problem. Even if I used flash for animation for a long time, I am a newbie when it comes to something technical. I just got a request to make of each video clip I use to have a uniform < Instance name > in each frame of the animation. Only if they have told me that earlier... Y at - it an easier way to do the < Instance name > the same as the name of the clip another that you enter manually. I have 16 characters with 12 parts of the body with 20 animations each with approximately 6-7 frames for each part of the body, it will take me months and nightmares evey night enter everything by hand. Please help me keep my sanity!

    I don't know if I explain properly, so here's a picture:

    Instance.jpg

    Thank you!

    I don't know a easy way to do it.

    you could do a file jsfl to do, but it is not for beginners.

  • How to display the name of audio clip in the timeline?

    How to display the name of audio clip in the timeline?  I can see the label for video clips in the timeline, and when I hover over audio clip [I see the label, but otherwise, not l; abels show in audio editing.

    Hi denniscallan,

    Audio Clip names are disabled by default in first Pro CC. Turn it on go to the timeline (wrench) display settings in the timeline panel and choose Show names of Audio.

    Hope that helps,

    Kevin

  • Name of the movie clip as a variable?

    I think that this should be a pretty simple answer, but it's deceiving me. I want to assign the name of a clip to a variable and then use that variable to control any video clip he happens to be held. Let me give you an example:

    The script would be part 1:

    button1_mc.onRelease = function() {}
    If (_global.selected! = 'button1_mc') {}
    _Global.selected.gotoAndPlay ('out');
    _Global.selected = "button1_mc";
    }
    }

    button2_mc.onRelease = function() {}
    If (_global.selected! = 'button2_mc') {}
    _Global.selected.gotoAndPlay ('out');
    _Global.selected = "button2_mc";
    }
    }

    Is it achievable even remotely? I can't make it work at all. I was hoping that I just needed another type of variable...

    Hello

    _Global.selected.gotoAndPlay ('out') get a property/MC named 'chosen '. If you want to use the value of the var, you can use the scoreboard operator. To do this, you must know that accompany the MC your other MCs. Assuming that it is _root, you can use the attached code. Note that there is no dowry. between _root and support.

    HTH,
    blemmo

  • Have two old CD/DVD with the old movies of family 8mm on them.  When I try toopen them I get a statement that ' cannot they in format Samsung "suggestions?

    Have two old CD/DVD with the old movies of family 8mm on them.  When I try toopen them I get a statement that ' cannot they in format Samsung "suggestions?

    that is a difficult question. Try VLC to see if it will open to them. Usually when the disc appears on the desktop, if you click on it and let go, then press the clover sheet and I (get info command), you should be able to choose which application/program can open them. I have not already heard talk of the "samsung" format, I know there is a stranger there (lie format MTS from Sony). Regarding the conversion of them, maybe MPEG streamclip or hand brake? worst case scenario, you may need to spend some money to buy a video conversion app/program

    Sorry I can't help you more

    JB

  • Apple "final cut pro 7", high res Pro 422lt 1920 x 1080 (odd) clips, is this gradual?, no 1080 progressive setting sequence, how can I ensure that I have the best setting of the timeline for my clips

    Apple "final cut pro 7", high res Pro 422lt 1920 x 1080 (odd) clips, is this gradual?, no sequence definition 1080 progressive

    How can I make sure that I have the best setting of the timeline for my clips. I did all the settings of Mount clips but there is no progressive setting for 1080 p. Images originally dslr Nikon that I used mpeg streamclip to convert to prores. Thanks for your help!

    The frame for you size source of material is HDTV 1080i (16:9). That only sets the size of the image, not the domination of the field, it's what makes progressive or interlaced. The reason it's labels with the 'i' is that when FCP7 was abandoned by Apple, they have never updated the software in order to take account of 1080 p contents.

    To make your progressive sequence, set the dominant field to None.

    gerforce wrote:

    Images originally dslr Nikon that I used mpeg streamclip to convert to prores.

    In your screenshot of the properties of the element for your clip to the source, the material is interlaced. At the original camera file interlaced or progressive?

    Also, the fps footage was actually 30 original and 29.97 not standard?  30 images/s is very limited its use.

    MtD

Maybe you are looking for

  • How is it iTunes puts all the songs in the album with the same name now?

    I'm trying to give my CD into my iTunes since I got a new computer.  I did a few times before without problem.  Most of my CD is the most successful. So now I put in 'Tom Petty Greatest Hits' and 'Tim Mcgraw Greatest Hits', I would put the Tim Mcgraw

  • SSM deployment Sharing Violation

    Hi all I have been using SDM/SSM to deploy my clients for a while with MDT 2012. I usually deploy a handful of clients as they need repair/update, but on occasion I own will deploy 50 or 100 customers at the same time. When I do that, at the point wh

  • Identityservicesd using all my cpu

    I noticed that my MacBook battery has lost its full charge within a few hours and I went on the bottom of my mac, and it was burning. So after some googling I went to find out what is the problem. What I found, it's 97% of my cpu turns "identityservi

  • G40-70 touchpad not working not

    the Titus says it all. I already tried different solutions, but can not see my mouse move or click again with the touchpad. the mouse works well, but the touchpad is dead. any help? There is no driver for the touchpad for windows 10 on lenovo Web sit

  • The DAQCard-6533 card connections

    I have a DAQCard-6533 card with the following cables and connector box. Is this a valid configuration? I have trouble reading the entries. 1835698 - 01.1 meters cable, adapter card to: 183432 B-02 2-meter cable CB-68LP connector box