A word randomly naming all components in a flash library

Source: Internet
Author: User
Random

In Flash authoring, most people are not too concerned about library management, the English version of the library is symbol 1, symbol 2, Symbol 3 ..., Chinese version is component 1, component 2, component 3 ...

This way, if you encounter a duplicate copy between Flash and you do not want to replace it, you must rename it in the library. Here's a simple workaround: Randomly name all the components in the library. The code is as follows:

var lib = fl.getdocumentdom (). Library;
for (Var-i in-Lib) for (Var j in Lib[i])
Lib[i][j].name = ' Random ' + Math.floor (math.random () *100000) + ' _ ' + Math.floor (math.random () *100000);

You can also download (download), after installation use ' command (Commands) '-> ' randomly name all components in the library ', and then look at the things in the library. ;-)

enjoy!



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.