ActionScript code hint function _flash as in FCS

Source: Internet
Author: User
Tags naming convention

When writing flashcom code, if you often use a reasonable naming convention, you can borrow the code hints of FLASHMX 2004 well.
For example, when writing FCS code, the following naming of objects in the flashcom, when editing the code after the object name after the dot number will pop up the code hint, which contains the object can use the properties and methods, very practical oh.
Suggested named end strings for individual objects

1 : _cam Camera Object
2 : _video Video Object
3 : _mic Microphone Object
4 : _so Shareobject Object
5 : _nc Netconnect Object
6 : _ns NetStream Object

For FLASHMX itself there are many similar objects that can give code hints
Such as:
1 : _mc MovieClip Object
2 : _btn Button Object
3 : _txt Text Object
4 : _str String Object
5 : _date Date Object
6 : _array Array Object


The use of these naming methods can bring a lot of code above the convenience of the

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.