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

Adding properties to Moveclip instances

Explorer ,
Apr 06, 2017 Apr 06, 2017

I see this:

7c26dda8c9e491e9f96191ab720a63e9.png

With the section for Property | Value at the bottom. But I can not see a way to append my own custom properties. Am I just hoping too much or is there a way to do this?

335
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

LEGEND , Apr 06, 2017 Apr 06, 2017

That is only the property and value of any filters you have added. It gets filled in as you add filters to a movieclip.

At runtime you can give a movieclip a property. Like:

myMc.customValue = "whatever";

trace(myMc.customValue);

Translate
LEGEND ,
Apr 06, 2017 Apr 06, 2017

That is only the property and value of any filters you have added. It gets filled in as you add filters to a movieclip.

At runtime you can give a movieclip a property. Like:

myMc.customValue = "whatever";

trace(myMc.customValue);

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
LEGEND ,
Apr 06, 2017 Apr 06, 2017

By the way, if you're thinking about a tool that others would use, where they can set properties and then your code does something with that, look at how to make a movieclip become a component:

Components Learning Guide for Flash: Creating custom components | Adobe Developer Connection

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
Explorer ,
Apr 06, 2017 Apr 06, 2017
LATEST

Thank you for that link, super helpful

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