all groups > flash actionscript > july 2004 >
You're in the

flash actionscript

group:

Custom Components


Custom Components Vommit Monkey
7/21/2004 9:29:52 PM
flash actionscript:
I have created a custom Component but none of the properties show up in the
property inspector. Here's some sample code:

[Inspectable(defaultValue="")]
[Bindable]
public function get MinValue():Number {
return(minValue);
}

Anyone know if this is the right code? I'm also setting the params using the
component definition's panel.
Re: Custom Components Vommit Monkey
7/22/2004 8:50:47 PM
I found some code in a book that showed you step by step how to create a
component but when i completed it the params still don't show up. I then
re-compiled one of MX 2004's own components useing the sample fla files they
provide and it didn't work either.

Anybody out there ever create there own components before? If so how are you
getting them to work?
Re: Custom Components mxplorer
7/24/2004 2:29:01 AM
I see a few problems:
-your defaultValue is a string while your return value is of type Number
-don't use paranthese with return, so it sould read return minValue;
-minValue is never declared/assigned
-don't set the params in the definition's panel
-you probably have to add a setter too



"Vommit Monkey" <webforumsuser@macromedia.com> schreef in bericht
news:cdmn8g$gpf$1@forums.macromedia.com...
[quoted text, click to view]

AddThis Social Bookmark Button