Archive

Posts Tagged actionscript

FDT 4 — FAQ

I wish this didn’t matter as much as it actually does.

Read on

Custom URLLoader with timeout.

I came across an issue yesterday loading ads from ad.doubleclick.net. For some reason, the crossdomain.xml file from ad.doubleclick.net was unavailable and the URLLoader class making the call eventually threw a Security Error, as the crossdomain policy is the first thing it looks for when making calls outside the SWF’s Security Domain. This is easily handled [...]

Read on

Reminder: Loading images from a CDN (AS3).

I periodically come across this issue, like this morning. Security Error #2122 is thrown on a redirected remote load, asking that the checkPolicyFile flag be set to true. Only issue is that Flash Player doesn’t seem to load the crossdomain.xml on a redirect, regardless of checkPolicyFile being set to true. I’ve written a little bit [...]

Read on

Standardizing runtime asset loads (incl. Runtime fonts!).

I’ve been looking for better ways to reduce the size of my main app swfs. Loading assets at runtime has proven to be a flexible solution that saves size in the initial load and throughout the use of the app, as only files essential to the current view can be loaded in. I found myself [...]

Read on

A quick note on document.location.href

Added this to my NetUtil class for easy access to an embedded swf’s parent url. public static function get parentUrl():String { if(ExternalInterface.available) { try { var parent:String = String( ExternalInterface.call(” function(){ return document.location.href.toString();}”)); return parent; } catch(error:Error){} catch (error:SecurityError){} } return ”; } Just be sure you have AllowScriptAccess set to “always” in your embed [...]

Read on

Loading and using CSS in AS3.

I should make it a habit to post things I know I’m going to forget. For instance, here’s some info on using CSS in Flash: Supported CSS properties color | color Only hexadecimal color values are supported. Named colors (such as blue) are not supported. Colors are written in the following format: #FF0000. display | [...]

Read on

Development alternatives.

I just finished reading the first in a series of blog posts by developer Jesse Warden on Agile development practices. It’s long, but I have found it really insightful to read about how others do things to deal with the same issues we all come across. http://jessewarden.com/2008/11/agile-chronicles-1-stressful.html As I understand it, Agile development is a [...]

Read on

Ok, I might donate now.

As some of my colleagues may know, I’m a diehard fan of Jack Doyle’s TweenLite/TweenFilterLite/TweenMax when it comes to making things animate in Actionscript. Today he introduced TweenGroup for managing multiple tweens! I’ve been coming up with my own ways for simplifying the construction of a sequence of tweens, but this utility is by far [...]

Read on