This content has been marked as final. Show 3 replies
The short answer is you can't do that. Flash 8 is ActionScript 2 while Flex 2 is ActionScript 3. When ActionScript 2 is loaded into the Flash Player it is put into a separate virtual machine than the ActionScript 3 code. This is how the Flash Player maintains backward compatability. There isn't a way for the AS3 code to reach in and tinker with the AS2 code and vice-versa.
But all is not lost. You can use LocalConnection to communicate between the two virtual machines. Check my blog, there's an article about doing that: Using ActionScript 2 SWFs with Flex 2
I am currently downloading Flash 9 Preview from the labs and hopefully that should sort out the ActionScript version differences.
I was just wondering that is there no way that I can access the underlying vector data of the symbol through the SpriteAsset class, or through any other class in the Flex ActionScript 3 Framework. All I need to do is change the fill color of symbols. Having to open a LocalConnection just to acheive this seems like an overkill.
Flash 9 should take care of the problem as that is also ActionScript 3