06-15-2009
A co-worker sent me a link to this cool web development tool called “Design.” It is a Javascript bookmarklet, meaning you place the link in the bookmark bar of your favorite browser, mine being Safari, then on any page you navigate to you can click on the bookmarklet and it will load a set of [...]
Read Full Post
05-18-2009
I’ve noticed a few issues with different browsers and not getting the stage.stageWidth property on load. To fix this I use an enterFrame to check when the stage.stageWidth property is greater than zero and the continue building the display list.
I hadn’t noticed this issue before, because I use a resize event for full flash sites or projects that expand with the browser size. I’ve done a few projects that don’t resize after the initial build, and that is where the issue lies.
Code after jump.
Read Full Post
04-30-2009
By using an external assets swf file, I have been able to drastically reduce the file size of my main swf file. In my external asset swf file I include all fonts and audio(sound effects). To do this, I create a swf file and make sure all of the assets have Linkage with a class name, for example a font that is used a lot, I might call “MainFont.” Once all assets are properly exported for Actionscript, Publish the swf file, and let the main swf know where it is.
Code after jump.
Read Full Post
04-10-2009
I work in an office that uses network drives to hold and share files with other people in the office, many times I am asked to let somebody know where a particular file is, and many times I have had to type very long paths (which sometimes end up missing a step or two). I [...]
Read Full Post
04-06-2009
I just moved to the wordpress platform, which so far I love. I was able to start a new theme from scratch and design how I like to design, and show what I like to show.
I will try to update often with tips for Actionscript 3 and the Flash/Flex platforms. Please check back soon for [...]
Read Full Post
10-17-2008
XML files allow you to keep all of your data outside of your source .fla, giving you complete dynamic control of the content without having to go republish your flash file. Since most of the work I do involves an XML file, this is how i use the URLLoader Class to load the data:
Code after jump.
Read Full Post
This is the best way I have found of loading images, catching any error that might come along. This can also be used for loading external swf files, just changing the Bitmap in the imageLoaded method to MovieClip
Code after jump.
Read Full Post
10-16-2008
A while ago Lee Brimelow posted about a way to publish flash files from textmate, but for some reason it never worked for me. Based on that method and some research into extending flash I have created a way to test your flash movies from Textmate, without switching to Flash.
Code after jump.
Read Full Post
On pretty much every project that I do, I use an external variable or two to specify the path of a file(generally an XML file). when testing the flash movie you can use one variable and have it use a different one when embedded into the html page. To do this you use the Capabilities class in flash.system. using playerType == “External” which means testing from the IDE.
Code after jump.
Read Full Post
Sometimes you want to create rows and columns dynamically, and for a long time I didn’t know how, with some research and some documentation perusal, I found that using the % modulo will help you create rows and columns.
Code after jump.
Read Full Post