claus / as3swf

Low level Actionscript 3 library to parse, create, modify and publish SWF files.
MIT License
526 stars 127 forks source link

Text Problems #1

Closed badongers closed 14 years ago

badongers commented 14 years ago

Text are not being rebuilt properly.

I created an swf with a text on it, (static/dynamic) and rebuilt the swf without touching anything.

Text came out wrong.

claus commented 14 years ago

Can you send me an example swf? I can't reproduce this...

badongers commented 14 years ago

Files here http://www.badongers.com/as3swf.zip

testfla is published as air app. f 8.fla is the swf source being parsed.

claus commented 14 years ago

Looks ok here... http://bit.ly/dzA4R8 What results are you seeing?

badongers commented 14 years ago

hmm.. that's weird... im getting this http://badongers.com/as3swf.jpg

badongers commented 14 years ago

Is there a way that I can inject as code on the swf? Sort of like MTASC.

claus commented 14 years ago

weird indeed. i suppose you're using the latest sources/swc? What IDE are you using, Flash CS4? could you send me the trace dump of the republished f8.swf?

I remember somebody reporting this kind of problem (or a similar one) a while back already (but can't find the mail conversation anymore).

claus commented 14 years ago

you can inject as1/2 bytecode, and there's http://github.com/claus/as3abc for handling as3 bytecode (which currently is read only), but support for that is generally sparse (nowhere even remotely close to mtasc) and under construction. I've been focusing on shapes so far

badongers commented 14 years ago

Here's the dump http://badongers.com/as3swfdump.txt

Yes, I am using Flash CS4 IDE, the swf being parsed is published Flash 9.

Yes, I am using the latest source. I wouldnt think that would be different from the swc right?

Thanks for all your help btw.

claus commented 14 years ago

can you do me a favor and pull the latest sources and try again? i committed some stuff yesterday that may have fixed some stuff related to your problem (unsure though)

http://github.com/claus/as3swf/commit/69c2432be6c703a4df968e468b9dac3796fe11a5#diff-20

badongers commented 14 years ago

It's working now. Thanks for that.

Basically what I am trying to do now is to change the values on a dynamic text field by modifying tag values on the SWF object you created.

Any chance I can achieve this with static text? I know they are treated as shape when compiled but do you think this is feasible?

claus commented 14 years ago

That sounds feasible (although i didn't fully get what exactly you wanna achieve). Let's continue this discussion elsewhere? My contacts are all here: http://wahlers.com.br/claus/

Closing the issue. Glad the latest commits fixed it!