In Flash, you can export SWCs for various components and re-use them in
Flex. If your TrailPart has library assets, that's probably the best way so
you don't have to code the equivalent library assets in ActionScript.
There are past dicussions on using Flash SWCs in Flex.
But isn't there an easier way just to declare this object in flex. As it is only a 20x20 square thats being reused all the time?
Which version of Flex are you using?
With Flex 4.x, I would make an MXML file with a Group and a Rect with a
I tried making a group as you stated with a rectangle with a solid fill color. Still i'm getting the same error over and over again:
..\src\Tron.mxml(88): Error: Call to a possibly undefined method TrailPart.
I have put the code online, so maybe you could have insight if there maybe is another part where I am making a mistake.
That looked like the main app. I didn't see TrailPart.mxml