| Author |
Message |
|
|
Anonymous
|
Hi Ralf,
Great thing you've got going here!
I've been look at your 'hello world' tutorial, and the source and have a question?
Is there some compelling reason for going with id's instead Objects refs? Why not have the id's generated on serialization?
Using Object ref's would allow the usage of eg. the facade pattern for eg. compression (asset check-out's) , and (al most trivial) deep cloning of partial dom structure into another dom.
I know this kind of usage is not your primary concern, but such easy .swf manipulation features increase the usabilty of the jswiff even more :o)
best regards
-michael
|
|
|
 |
|
|
Ralf

Joined: Jul 20, 2005
Messages: 127
Location: Germany
Offline
|
Hi Michael,
the IDs for each SWF character result directly from the SWF format, each character defined in a Define.... tag must have a characterId, which is a positive number. Currently, JSwiff is not (much) more than a 1:1 Java<->SWF (and XML<->SWF) mapping. Working with these IDs IS a pain in the backside... I'll seriously consider your suggestion, it would simplify things a lot. I'm not sure I will be able to completely eliminate the IDs (I guess they will still be there in the Define.... tags - hopefully just under the hood), but it sure would be an improvement.
The downside will be that the change will break the API, but I think the (or at least some) users will forgive me when they see that this improves usability a lot.
|
|
|
 |
|
|
|
|