Make UI export using Flashcs SWC call __actionscript in ActionScript

Source: Internet
Author: User

1, open Flashcs, and create a new FLA file for ActionScript.

2, in the library panel Ctrl+f8, create a new component, named Door, type movie clip, and export as as.
After that, draw a shape similar to the door.

3, in the library panel will appear door components, right click, exported to SWC file.

A new as project in Flashbuild is used as follows in the as file:

protected Var door:door= new door ();

AddChild (door)

You can see this component by compiling the as project.

Generally not such a simple interface, you can continue to add other controls in the door component, such as buttons;

If you want to operate the button in the as project, you need to set an instance name for the component in Flashcs, which you can use in the AS project.

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.