Skip to main content
thomasw72287590
Inspiring
April 6, 2017
Answered

Adding properties to Moveclip instances

  • April 6, 2017
  • 2 replies
  • 369 views

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?

This topic has been closed for replies.
Correct answer Colin Holgate

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);

2 replies

Colin Holgate
Inspiring
April 6, 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

thomasw72287590
Inspiring
April 6, 2017

Thank you for that link, super helpful

Colin Holgate
Colin HolgateCorrect answer
Inspiring
April 6, 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);