|
From: strk <st...@ke...> - 2009-03-27 12:39:05
|
I've noticed there are some discrepancies wrt how to interpret the argument passed to SWFText constructor. For C++ binding it's 2 by default, and creates a DefineText2 in that case, while any other it creates a DefineText. For perl binding, it's 1 by default, creates a DefineText2 when it's 2, DefineText otherwise. For php binding, it's 0 by default, creates a DefineText2 when it's 1 (?!), DefineText otherwise. As for outputscript.c, it seems to always call the Text constructor with no arg, no matter version. I think we should standardize this. A first pass could be to have them all default to 0 and use DefineText2 when it's == 2, and have outputscript.c follow that semantic. I'd go that way, but I dunno if the Text version should really depend on SWF version (thus bound later, at output time). For now, some consistency seems nice anyway. Toughts ? --strk; Free GIS & Flash consultant/developer () ASCII Ribbon Campaign http://foo.keybit.net/~strk/services.html /\ Keep it simple! |