Flash CS4?

1 view
Skip to first unread message

Unabogie

unread,
Jul 23, 2009, 3:36:23 PM7/23/09
to Hemlock
I was wondering if you have any examples for use with Flash CS4
instead of Flex? Perhaps a simple connect and chat example?

Awesome project!

Thanks!

Ron DeVera

unread,
Jul 26, 2009, 9:21:28 PM7/26/09
to Hemlock
Hemlock apps are primarily developed using only ActionScript, not
Flex. We tend not to use Flash for development nowadays, but only for
supplying assets. For instance, here's some sample code for setting up
a skin:

http://github.com/mintdigital/hemlock/blob/de82507770c6bcd8ac582fac6df657452d171ab1/src/com/mintdigital/hemlock/skins/hemlockSoft/HemlockSoftSkin.as

Each `[Embed]` line instructs ActionScript to import the asset with
the given symbol name from `assets.swf` (in the same directory as
the .as file). Next, take a look at the latest `assets.fla` file here:

http://github.com/mintdigital/hemlock/tree/de82507770c6bcd8ac582fac6df657452d171ab1/src/com/mintdigital/hemlock/skins/hemlockSoft/src

A symbol name is assigned to each asset that's meant to be used in
ActionScript. Then, `assets.fla` is compiled as `assets.swf`, which is
referenced in the ActionScript skin.

If you have separate design and development teams, this makes for easy
task separation -- the design team creates an `assets.swf` with a set
of agreed-upon symbol names, then hands it off to the development team
to be hooked up via ActionScript. Entire sets of assets can be easily
swapped out this way; one can even build a whitelabel app with
different skins for different clients.

That said, while there are currently no examples of using Hemlock from
within a .fla file, it certainly seems feasible, and we'll make an
announcement if we (or anyone else) create such an example.

Cheers,
Ron
Reply all
Reply to author
Forward
0 new messages