Flash Team

Just another flash weblog

Flash Isometric Engines overview

leave a comment »

Emanuele Feronato gives a brief description of 11 Flash isometric engines.

Written by TwoFace

February 23, 2010 at 18:31

Posted in as3

Tagged with , , , ,

FZlib: Zlib in pure ActionScript

with 2 comments

FZlib is a port of Zlib 1.1.3 in ActionScript.

zlib is designed to be a free, general-purpose, legally unencumbered — that is, not covered by any patents — lossless data-compression library

Flash provides some ways to compress / uncompress data, but functions are basic. You can’t change the compression method, for instance, or handle a Zlib stream.

With FZlib, all the power of zlib could be unleashed in ActionScript!

FZlib features

  • No need to say that FZlib can inflate data, which is deflated by zlib (or ByteArray.compress()) and FZlib can generate deflated data, which is acceptable and is inflated by zlib (or ByteArray.uncompress()).
  • FZlib supports every compression level and every flushing mode in zlib.
  • FZlib does not support gzip file handling.
  • FZlib is licensed under BSD style license
  • No breakthrough has been done by developing FZlib. So, if zlib is patent free, FZlib is also not covered by any patents.

Grab it here.

Written by TwoFace

February 16, 2010 at 19:27

Posted in as3

“Сырой” флеш – шейпы изнутри

leave a comment »

Claus Wahlers рассказывает, как флеш плеер обрабатывает шейпы.

So, for the record, SWF shape records kinda translate to AS3 drawing API calls, but not really – there are quite a few nuts to crack along the way. It is not as easy as it initially sounds, and little of this is officially documented or explained in Adobe’s SWF10 specification (or anywhere else for that matter), so i thought i document my findings here.

Written by TwoFace

February 15, 2010 at 19:35

Posted in as3

Tagged with , ,

AS3 Script Injection

leave a comment »

Интереснейшая статья о Script Injection в AS3:

In AS3 Script Injection, complete and unmodified JavaScript and/or VBScript functions, class objects and applications are stored inside AS3 files using XML, and are then parsed, sent to the browser, and executed, allowing Flash and Flex developers to create a robust browser experience without the need to rely on server-side support scripts.

This tutorial will show how to inject and execute complete JavaScripts and VBScripts into a webpage through ActionScript 3’s ExternalInterface Class. In addition, we will show how to store and modify complete JavaScript and VBScript scripts directly within AS3 sourcecode, where they may be safely kept until needed. Most of the techniques here may also be applied to AS2 applications with some minor modifications (which will be discussed).

Written by TwoFace

February 15, 2010 at 13:57

Posted in as2, as3

Защита SWF файлов от декомпиляции

leave a comment »

Очень интересная статья о том, как защитить свои флешки от декомпиляции своими силами.

Written by TwoFace

February 15, 2010 at 13:48

Posted in as3

Секреты файла mm.cfg

leave a comment »

Все слышали о файле настроек mm.cfg

Jean-Philippe Auclair пишет о недокументированных настройках, весьма занимательно.

Written by TwoFace

February 15, 2010 at 13:44

Posted in as3

PNGSizeExtractor

leave a comment »

Как вы знаете, максимальный размер битмап даты – 2880×2880. Если загружаемое изображение превышает данный лимит, то свойства heigth и width объекта будут равны 0.

Крисофер Херман написал небольшой класс, позволяющий прочитать размер разгружаемого изображения в формате PNG. Таким образом можно узнать размер любого изображения и предупредить пользователя о слишком большом изображении.

Читать тут.

А тут аналогичный класс для JPG картинок плюс детальное описание принципов работы.

Written by TwoFace

February 15, 2010 at 13:39

Posted in as3