Posts Tagged ‘ActionScript’
Friday, August 15th, 2008
This post is a reminder to myself (and a source of help to anyone who may need it). For a long time I thought a cross-domain policy file in a web server’s root directory solves all cross-domain security issues automagically - until I stumbled over the fact that I wasn’t able to manipulate the bitmap data of an image that was loaded from outside my SWF file’s domain.
(more…)
Tags: ActionScript, Flash, Security
Posted in ActionScript, Flash | 5 Comments »
Wednesday, August 13th, 2008
In this blog entry I would like to share my approach to handling FlashVars in a PureMVC application. I assume that you are familiar with the basic concepts of PureMVC.
(more…)
Tags: ActionScript, Flash, FlashVars, PureMVC
Posted in ActionScript, Flash, FlashDevelop, PureMVC | 1 Comment »
Wednesday, June 4th, 2008
Configuration files often contain Boolean parameters for enabling or disabling features in an application or website. This way non-programmers can easily customize complex systems. But what if someone uses another word than “true” (for example, “1″, “yes”, “y”, “on”)?
(more…)
Tags: ActionScript, Flash, Flex
Posted in ActionScript, Flash, Flex | 2 Comments »
Wednesday, May 28th, 2008
Did you know TinyURL has an open API? As the service itself, the API is incredibly simple:
http://tinyurl.com/api-create.php?url=http://blog.log2e.com/
Here’s a little Flex demo that demonstrates its use.

View source.
Tags: ActionScript, Flex, TinyURL
Posted in ActionScript, Flex | No Comments »
Sunday, May 25th, 2008
There are libraries in several programming languages that provide access to the Twitter API. Although there’s an ActionScript 3 library for Twitter, in this tutorial we will be looking at how you can retrieve Twitter’s public timeline with a little help from another collection of ActionScript 3 utilities, the corelib library.
The result of this tutorial can be seen here (”View Source” is enabled).
(more…)
Tags: ActionScript, Flex, JSON, Twitter
Posted in ActionScript, Flex, JSON, Twitter | 2 Comments »
Monday, May 19th, 2008
This three-parts tutorial reflects my own learning experience with the PureMVC framework and the PureMVC Startup Manager. It was inspired by Philip Sexton’s demo Startup as Ordered and is my first attempt on PureMVC. The tutorial’s goal is to provide beneficial information to other novice PureMVC users who have understood the theory but lack practice.
(more…)
Tags: ActionScript, Flash, Flex, PureMVC
Posted in ActionScript, Flash, FlashDevelop, Flex, PureMVC | 15 Comments »
Monday, May 19th, 2008
Preparing the View
We are almost there. In the final step of this tutorial we will be creating a very simple view:
- Create a file with the name StageMediator.as in the view folder.
- Create a new folder inside the view folder and call it components.
- Create two files in the components folder and name them SectionView.as and TitleView.as.
(more…)
Tags: ActionScript, Flash, FlashDevelop, Flex, PureMVC
Posted in ActionScript, Flash, FlashDevelop, Flex, PureMVC | 1 Comment »
Saturday, May 17th, 2008
The StartupMonitorProxy
A PureMVC-based application typically has a startup command that instantiates some basic proxies and mediators. In our sample project we want to load a CSS stylesheet and an XML file with content before allowing any user interaction (see part 1). The important thing here is to make sure that everything gets loaded in the proper order and is fully loaded before it is accessed. Here is where the StartupMonitorProxy steps in. This class is at the core of the Startup Manager utility.
(more…)
Tags: ActionScript, Flash, FlashDevelop, Flex, PureMVC
Posted in ActionScript, Flash, FlashDevelop, Flex, PureMVC | 1 Comment »
Friday, May 16th, 2008
Coming from a Flex/Cairngorm background, I’ve always missed a utility that takes care of the asynchronous loading of resources during application startup. Being too lazy to write one myself, I usually chain together several Cairngorm commands for loading configuration settings, stylesheets, language resources and initial data from a database. Each command is only executed if the predecessor task has been finished successfully. The user interface isn’t initialized until the whole chain is completed, otherwise an error message is generated and the application won’t start. It’s not elegant but it works.
When I started to learn PureMVC (and I’m still learning), I was happy to discover that the AS3 version is accompanied by a Startup Manager. This utility isn’t part of the core PureMVC framework and has to be downloaded and installed separately, but it nicely integrates with the “PureMVC way of things”.
(more…)
Tags: ActionScript, Cairngorm, Flash, Flex, PureMVC
Posted in ActionScript, Flash, FlashDevelop, Flex, PureMVC | 3 Comments »
Wednesday, May 14th, 2008
Tutorials on TweenLite or TweenMax often rely on the easing functions that come with the Flash CS3 IDE. These functions are contained in the package fl.motion.easing. All classes under the package name fl are specific to Flash CS3 and are not available in the free Flex 3 SDK. If you, for example, use FlashDevelop with the Flex 3 SDK you have to import your easing functions from the package mx.effects.easing. So any time you see an import statement like this
import fl.motion.easing.*;
you should be able to replace it with
import mx.effects.easing.*;
and get the same functionality.
Tags: ActionScript, Flash, Flex, TweenLite, TweenMax
Posted in ActionScript, Flash, FlashDevelop, Flex | No Comments »