Blog Archives

Flash and Silverlight Coverflows

After reviewing a few different flash coverflows, stumbled across the following:

Flash gallery:

Weber Design Labs:

Flash XML:

Flash Components.Net:

If you’re not opposed to silverlight however, I encourage you to check this one out by Telerik:

Load External HTML file in CS5

Upon initial google search for the above title phrase, I came across no results! Only after resorting to my second search avenue (Google Books :)), did I then stumble across “The CS5 bible“.

Thanks to the brilliance of Google Books, I was able to read through only the chapters I needed (you rock Google!) and discover the solution I was actually looking for was – Adobe Air.

Adobe Air allows you to embed HTML as well as other content within the html, such as JS and additional flash files all within a flash framework allowing you to utilize actionscript and other traditional elements. The end result is now an extremely portable flash file which acts as a wrapper or window to your web application. This is also now very easy to port into a standalone out of browser application using the “projector” functionality of CS5.

The code:

var container:Sprite;
var html:HTMLLoader = new HTMLLoader;
html.width = 400;
html.height = 600;
var urlReq:URLRequest = new URLRequest("");

Google Books,
Adobe Air,
Adobe LiveDocs,

Load SWF from Fla file CS5

The title of this blog was my initial search in google upon looking for a way to load and play an external SWF file inside a new FLA project file.

In AS2, I recalled this was easily achieved using MovieClip, however, Adobe has deprecated this functionality in favor of the newer AS3 concept of “loader” objects.

See syntax below and references for helpful links:

var myLoader:Loader = new Loader(); 
var url:URLRequest = new URLRequest("filename.swf"); 

Slightly less orthodox, but code below works also. Note URLRequest can point to a local file or a remote SWF file on the web.

swfLoader = new Loader();
swfLoader.load(new URLRequest("filename.swf);

Can also be done using UI Loader:

import fl.containers.UILoader;

var myUILoader:UILoader = new UILoader();
myUILoader.source = "Rich Investor.swf";
myUILoader.move(0, 0);
myUILoader.scaleContent = false;


Using Adobe Air in publish settings:

   package {

   import flash.display.Sprite;
    import flash.html.HTMLLoader;

    public class HTMLLoaderExample extends Sprite
        public function HTMLLoaderExample()
            var html:HTMLLoader = new HTMLLoader();
            var urlReq:URLRequest = new URLRequest("Rich Investor.htm");
            html.width = stage.stageWidth;
            html.height = stage.stageHeight;

Load external SWF files into Flash Player,
Creating new MovieClips in ActionScript 3.0,
Loader vs MovieClip
Loader vs. UILoader,
Getting Started with AS3 and Flash CS3,
UI Loader,
MovieClip (object)
Loading a .swf file into a .fla file,
Add video to Flash,
Externally loading SWF into movie clip,