Archive
Posts Tagged “as3”
- August 29, 2009
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- August 13, 2009
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- August 5, 2009
ThunderBolt AS3 debugging.
I’ve been taking a look at a new (to me) debugging utility for AS3 called ThunderBolt. You can use the ThunderBolt library to send debugging info to the console in Firebug. Additionally, the ThunderBolt AS3 console is a standalone AIR app that displays all the same data without Firebug installed. At the very least, it’s [...]
Read on- July 28, 2009
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- July 8, 2009
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- June 29, 2009
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- February 16, 2009
Remote content loading in AS3. Phew!
I did a little research recently when trying to figure out the ins and outs of transferring content over to a CDN. Doing this should save both load time and money, but figuring out security issues with Flash content that loads from remote, sometimes unknown locations can be frustrating. Here’s what I’ve learned: Several things [...]
Read on- January 15, 2009
Finally!
I sat down last night to start thinking about how I was going to build yet another customized video player (this time with bandwidth detection) for an upcoming project. By this time I’ve got a good base of code to go off of for these types of things as it seems that every other project [...]
Read on- October 6, 2008
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