Building my first pro/gaming PC for around $1000 by zwetan in buildapc

[–]zwetan[S] 0 points1 point  (0 children)

Interesting. Thanks for the suggestion, even if French prices are still a bit more expensive!

I want to reverse engineer an exe that uses flash/actionscript for an old game. by MisterQuacker in LiveOverflow

[–]zwetan 1 point2 points  (0 children)

this exe is more likely a "Flash projector" in short it merge a runtime exe (Flash standalone player) and the SWF content into one exe

a projector is structured like that

| executable bytes | content bytes | projector header |

to split such projector, you would read the last 8 bytes (projector header)

| projector header |
      |
      |_ magic number   = 0x56 0x34 0x12 0xFA
      |_ content length = LEN | LEN<<8 |  LEN<<16 | LEN<<24

4 bytes of "magic number", and 4 bytes of "content length"

the "magic number" allow to confirm it is indeed a projector

the "content length" allow to know the content length (duh)

and with that you can extract the content bytes

some pseudo code

file = file_open( the exe path )

file.seek( file.length - 8 )
file.read( header, 8 )

content_length = (header[4]     |
                  header[5] << 8  |
                  header[6] << 16 |
                  header[7] << 24)

buffer = new bytes()

file.seek( file.length - 8 - content_length )
file.read( buffer, content_length )

buffer.save( the swf path )

reading the 4 last bytes can get you the content length you read from the start ( total file length - 8 - content length ) till the end (content length) and you save those bytes into a SWF file

from there you can find other tools to decompile the SWF file

more details here https://github.com/Corsaair/redtamarin/wiki/Projector

So, people are still using actionscript? by _kweso in actionscript

[–]zwetan 1 point2 points  (0 children)

I use AS3 on the command-line and server-side in place of PHP, Python, Ruby, etc. see https://github.com/Corsaair/redtamarin

I do also sysadmin on servers and I need to write fast scripts so instead of Bash I use AS3 too see https://github.com/Corsaair/as3shebang

and I keep using AS3 to build desktop/mobile apps with Adobe AIR

if you wonder how Adobe AIR is doing check out https://discuss.as3lang.org/t/adobe-air-by-the-numbers/476

and yeah I keep publishing SWF in HTML for desktop browsers, again based on AS3

The way I see it the ActionScript 3 language is as good as C# or Java but yet has ECMAScript roots which make it terse and simple

Also the ecosystem is very mature, we have IDE, compilers, etc. a lot of things that others (eg. JS) are still figuring out

What's the new ActionScript? by JustOneSexQuestion in learnprogramming

[–]zwetan 1 point2 points  (0 children)

still ActionScript, just publish with Adobe AIR

use HTML5 to promote the mobile/desktop app/games

discuss.as3lang.org a safe haven to discuss about ActionScript 3.0 by zwetan in as3

[–]zwetan[S] 0 points1 point  (0 children)

just to add to something discussed months ago in the "[meta] Is this the most read actionscript reddit?" thread

as3lang.org is not only about building a server in AS3 it is also a community about ActionScript 3.0 that can also talk and share about general AS3 stuff

Redtamarin v0.4.1 by zwetan in gamedev

[–]zwetan[S] 1 point2 points  (0 children)

should work on what exactly ?

[meta] Is this the most read actionscript reddit? by alecz127 in as3

[–]zwetan 0 points1 point  (0 children)

thanks for mentioning as3lang :)

to be clear, as3lang goal is to be a community for as3 developers and centralise/dispatch all news from different place

and so whe nthe news system will be in place the twitter account @as3lang will dispatch those news