Hi list...
I have a class that extends MovieClip. I made a component definition
for it with two vars, each with same name/type as defined in the class
file. If I instance a new Cat() through code, there are no problems.
But, it doesn't work when I want to instance this component on a
timeline and set params through the tool palette. I set the class field
in the linkage dialog to Cat. In the component definition dialog, I
leave the class field empty, but the vars are identical to what are
declared in the class file.
What am I missing?
Thanks,
- Michael M.
package {
import flash.display.MovieClip;
public class Cat extends MovieClip {
public var catName:String;
public var showPole:Boolean;
public function Cat(catName:String, showPole:Boolean) {
if (showPole==false) {
pole.visible = false;
}
trace(catName);
}
}
}
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders