Wednesday, February 14th, 2007

Category: FlashCategory: Flex

AS3 Tip: for loop index should not be uint

In AS2 you probably typed your for loop index variable as Number. In AS3 I thought it would be better to use uint. I always start the index from 0, or some positive number and increment from there, like:
(more…)

Friday, January 12th, 2007

Category: FlashCategory: Flex

AS3 Projects and the SWF Metadata tag

While most people are probably building Flex projects, there are some of us who build AS-only projects as well. While looking for resources on AS3 I came across Joey Lott’s ActionScript 3 Cookbook. Near the beginning of the book there is a section labelled “Customizing the Properties of an Application”. That caught my attention and I came across the SWF metadata tag.

(more…)

Thursday, July 13th, 2006

Category: FlashCategory: Flex

SWF9 to SWF8 Communication - EI not LC - Part 2

< Read Part 1

Below is an example that contains a SWF9 that was written in Flex (AS-only) and contains two textfields. The SWF9 loads a SWF8 that also contains two textfields. The top textfields are input fields. The left-hand contents belong to the SWF9 and the right-hand contents belong to the SWF8. When you type in the top-left textfield, which resides in the SWF9, the text will get sent to the bottom-right textfield, which resides in the SWF8. When you type in the top-right textfield, which resides in the SWF8, the text will get sent to the bottom-left textfield, which resides in the SWF9.
(more…)

Thursday, July 13th, 2006

Category: FlashCategory: Flex

SWF9 to SWF8 Communication - EI not LC - Part 1

It seems everywhere I’ve read when someone asks how to communicate between a version 9 SWF and a version 8 SWF that it loads, the answer is always “You have to use LocalConnection”. I’ve seen that response from Adobe people as well as others.

However, when I started looking into browser communication with my SWFs and then looked into the Flex-AJAX Bridge (FABridge), I thought maybe there was a better way. And there is: ExternalInterface.
(more…)

Wednesday, June 28th, 2006

Category: FlashCategory: Rant

Flash Player Global Settings Manager and usability

Why is the Flash Player Global Settings Manager (GSM I’ll call it) still the same as it’s been a couple of years now? Anyone that creates Flash content that I’ve ever talked to about the GSM says it’s bad. I think even someone from Adobe (Macromedia at the time) agreed, in a diplomatic way of course.
(more…)