Categories
News

Owen van Dijk released JSFLCreator

Owen released the first beta version of his JSFLCreator.

From the readme:

This will go through a directory including subdirectories,
find the files that matches filePattern ( usually .FLA files )
and write them to a JSFL file in this format:

var f = fl.openDocument( “file:///foo.fla” , false );
f.publish();
f.close( false );

var f = fl.openDocument( “file:///Bar/bar.fla” , false );
f.publish();
f.close( false );

Its main purpose is to generate an JSFL file for batching publishing FLA files to SWFs. You can get it from here.

Categories
News

Japanese translation of my inheritance article

Bascule of Japan posted a translation of a previous inheritance article (for Flash 5 & MX) to their FACEs site.

I love the graphics and animation they use on their site – very clean and detailed. If only I could read Japanese to play some of their games… Now, where’s my babelfish…

Categories
Web Services

Still no go with BabelFish redirection proxy

I’ve updated the BabelFish tutorial, now using a server-side proxy for redirection to the actual BabelFish web service. The proxy taken from Macromedia does not work when the movie is accessed through HTTP in a browser, but works fine when playing inside Flash’s IDE or the standalone projector.

Has anyone got a redirection proxy that works with the new WebServiceConnector component?

Read more…

Categories
News

Robin Debreuil’s new blog

Robin Debreuil, famous for this OOP tutorials and humour (or humor, depending where you’re from), has just started a new blog!

Very interesting post about __bytecode__()!

Categories
ActionScript ColdFusion

Generate project files automatically

Chris Kief of Rise Interactive released a Flash Project file generator that automatically creates something like the class browser. It requires ColdFusion 6+ to parse directories.

Get it from here.

Categories
Flash

Not getting what you want?

What do you wish there was in Flash MX 2004?

Here are a few of mine (for ActionScript):

  • abstract
  • final
  • private (a real one that is)
  • protected (switch with the current private)
  • Runtime type-checking
  • True ActionScript 2.0 bytecode for Flash Player 7+
  • A better way to distribute code library without source

If there is something you wish to see in a Macromedia product, let them know by filling the wish form. Apparently they read every message (that’s what I was told), and it may well be true because from past experiences, they have implemented almost every item on my wish list! So, go ahead and offer suggestions to improve the products you use.

Categories
Design Patterns

Design Patterns in Flash

As Flash developers, sometimes it is counter-productive by simply copying patterns from other languages or environments. Identifying unique Flash patterns is probably more important, because Flash is unique in many ways.

When talking about patterns, the purpose is to identify common problems and provide named solutions for them, so that developers can communicate easily without coming up with different explanations.

Patterns can be in code, or it can be in other forms. For example, here’s one I use for many different applications, which I call an Event Mask:

Problem: When a custom-made dialog box pops up, mouse and keyboard events must not be passed to underlying objects.

Solution: Create a movieclip (either during authoring time or dynamically at runtime), assign mouse and keyboard event handlers to it, turn off its hand cursor, and display it under/with the dialog box.

This is a very simple pattern that I use all the time. It is unique to Flash because of the way movieclips and events work. Luckily, this is now handled automatically in Flash MX 2004 (such as the Alert component).

A common architectural framework (although some refer to it as pattern) is MVC. One of its benefits is to separate the logic from the user interface; however, many Flash developers find that it is overkill in Flash, again, because of the way Flash work. For example, the timeline, movieclips, and UI components already represent most of the view and controller. Breaking the code up further into three classes may complicate the development process. However, the same may not hold true on a different scale in client-server applications. By keeping the three classes separate, different views can be created more easily (e.g. Flash, HTML for desktop browsers, HTML for handheld devices, XML, WAP, PDF…etc.)

What are your most used patterns in Flash development? Have you identified any pattern that you use on a regular basis, but there is no name for it?

Categories
ActionScript

Cross domain policy file

These two important documents provide better understanding of the new Flash Player 7 security changes, and what to do about it:

Security Changes in Macromedia Flash Player 7

External data not accessible outside a Macromedia Flash movie’s domain

Categories
News

MX Developer’s Journal

Here’s a new magazine for Macromedia MX developers from Sys-Con:

MX Developer’s Journal

They are offering a free download of the premiere issue.

Categories
Devices

Updated Flash player for Sony Clie UX50

The new Sony Clie PEG-UX50 has an updated version (5.0.89.5) of the Flash Player 5 that supports networking.

According to the Sony site (via Bill Perry), the following models are supporting Flash:

Player version 5.0.89.5: PEG-UX50, PEG-UX40.

Player version 5.0.89.0: PEG-NX60, PEG-NX70V, PEG-NX73, PEG-NX80, PEG-NZ90, PEG-TG50.

I had three generations of Palm Pilots before getting the 1st generation Pocket PC. Now I’m using a third Pocket PC (Dell Axim running Flash Player 6). It’s interesting to see how far the Palm OS has changed, especially in this new Sony model, because it actually is making a come back.

By the way, check out Bill’s article (among other device-related info) at the Macromedia DevNet for devices.