pure AS3 project:dynamically create 2 graphic object sprites instead of
using SWC's
I've been trying to learn to code in pure AS3 instead of using Flash Pro
CS6, with IntelliJ IDEA 12 as an IDE (BTW, a really nice tool!), Flex/AIR
SDK's to compile. Found a good learning tutorial:nodes game in AS3,
including source code and FLA. The 2 graphic objects (DraggableNode and
Target, both circles made into sprites in the source files attached to the
tutorial) could be done in my copy of CS6 and exported as SWC's, then
included in the IntelliJ project library. Instead, to avoid depending on
the SWC's, what I have tried unsuccessfully to do is write the 2 objects
in pure AS3 that can be used in the tutorial's script, instead of the
SWC's. Not as difficult just to create 2 new sprites, set a linestyle,
start and end fill, add child. But where/how to add in the existing script
and avoid errors? Tried for a couple of days, always errors, no joy. Am
stuck. If someone can take a look at the tutorial's script at the link,
suggest where/how to add the 2 circles, would be a big help. Thank you in
advance.
No comments:
Post a Comment