Ok, in AS2 you made a symbol, made it a component, and defined the paramaters like so: name: someVar, variable:myVar, Value:someVal, type:String. In the parameters panel, you saw the label “someVar” and the parameter with the default “someVal” in it. Then in the code for the clip you could say ‘trace(this.myVar)’. If you dragged an instance on the stage and compiled, you got ‘someVal’ (or another value if you changed it).
In AS3, using exactly the same process, I get ‘undefined,’ and I can’t seem to access the values in my code. How do I access the value, default or otherwise, in the code for the component?.
.wysiwyg { background-attachment: scroll; background-repeat: repeat; background-position: 0% 0%; background-color: #f5f5ff; background-image: none; color: #000000; font-family: Verdana, Geneva, “Lucida Grande”, Arial, Helvetica, “Lucida Grande”; font-style: normal; font-variant: normal; font-weight: 400; font-size: 10pt; line-height: normal } p { margin: 0px; }