This content has been marked as final. Show 3 replies
Please visit the URLs below for explanation on how to access symbols and do lots more with Flash components in Flex.
Hope this helps.
thanks for the reply. I'll explore the docs you referred me to.
I didn't ask the question in relation to components. This is simple artwork, but I'm guessing the principals are the same.
I'll check it out and post my results here.
Okay, I took a look at this info and it's what I was already doing.
Here's a simplified example of what I'm trying to do, using the example in the swf9.pdf file.
Let's assume I've created a SWF with a "BlueSquare" movieclip (in the symbols panel in Flash, exported for AS). In that clip, there is another symbol called "Star". I import the SWF and BlueSquare symbols in with the following code:
public var LogoCls:Class;
public var LogoClsBlueSquare:Class;
If I instantiate the BlueSquare on stage, it includes the Star symbol when previewed, but I can't figure out how to get at the Star symbol to change color. If I apply a color change to the symbol, it changes the entire BlueSquare symbol.
If I instantiate the Star symbol separately, I can then position it on the stage and make changes, but that requires positioning it with actionscript. I'm trying to not have to position a sub-element of my actual artwork because of it's complexity.
I'd like to display the main movieclip (or sprite) with the ability to access the attributes of a sub-movieclip or sprite.