13 July 2009 @ 06:06 am
The problem I'm dealing with right now  
The problem I'm dealing with right now is wanting to quickly assign arbitrary properties to symbols (MovieClips) in Flash (CS4). I'm amazed there doesn't seem to be an elegant way to do this. Or there is and I haven't found it. As in I have a whole flock of symbols that are controlled by the same class, but each have a few variables that are different that the class wants to use. The solutions I can see are 1) developing Components, which seems pretty heavy-weight for all I need to do. 2) encoding variables in the instance names, which just seems awful. and 3), which is what I'm doing for now, was to write a php script to auto-generate classes based on entries in a database. This is a little less awful but I can't believe it's the best solution.
 
 
( 2 comments — Post a new comment )
Kevin[info]nvk on July 13th, 2009 10:42 am (UTC)
Another option would be to read all the properties in from an XML file. I'd like this a lot better if I could embed the XML file into the .swf. The class-generator-script is working OK, I tucked all the auto-classes into another folder so I don't have to look at them. I'd like to be able to automate running the script before each build, but then there's about three four things I'd love to be able to add to an arbitrary pre-build sequence, not least of which is actually saving the fucking file. DevStudio let me do this of course and I'd be surprised as hell if Eclipse wasn't all over it too.
saskehava[info]saskehava on July 13th, 2009 04:53 pm (UTC)
Classy symbolic components
I think it will be beneficial for you to figure this out for yourself. You'll thank me later.