Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Create library/class with graphic elements drawn in flash

New Here ,
Dec 06, 2015 Dec 06, 2015

Hi,

I'm new on the forum and I'm using flash for a short time...


I would like to create a library that contains the objects designed in flash and classes that manage them.

An example: using flash I want to create a user profile box. This box contains a circle (profile photo) and a label (username).

After I'd like to create a class in actionscript to insert the picture in the circle and the name in the label. At the end I will have a class that manages the user profile box.

Following I'd like to use this class in another project flash.

I hope I was accurate..

How can I do?


Thanks to anyone who wishes to answer.

TOPICS
ActionScript
378
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Dec 06, 2015 Dec 06, 2015

create a new movieclip and draw your graphic elements on that movieclip's stage.  assign each object that you need to control with actionscript an instance name.

assign that movieclip a class (eg, by double clicking in the library panel's linkage column adjacent to the movieclip symbol).  right click that movieclip and click edit class.  create the code needed by your class.

you can use that movieclip and class in any other flash pro project by dragging the movieclip symbol to the other project's

...
Translate
Community Expert ,
Dec 06, 2015 Dec 06, 2015

create a new movieclip and draw your graphic elements on that movieclip's stage.  assign each object that you need to control with actionscript an instance name.

assign that movieclip a class (eg, by double clicking in the library panel's linkage column adjacent to the movieclip symbol).  right click that movieclip and click edit class.  create the code needed by your class.

you can use that movieclip and class in any other flash pro project by dragging the movieclip symbol to the other project's library and moving the class file to the new project's class path.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 07, 2015 Dec 07, 2015

It's works fine!!!

Thank you.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 07, 2015 Dec 07, 2015
LATEST

you're welcome.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines