Today I needed to found a way to create bitmap data object from a display object. I found a solution in Flex Cookbook (http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails&productId=2&postId=1682) and having this I improved it and made it simpler. The code follows… public function makeBitmap(myDO:DisplayObject):BitmapData { var myBD:BitmapData = new BitmapData(myDO.width, myDO.height); myBD.draw(myDO); [...]
This is a utility to convert bunch of images to SWFs with the same size of images. You need to place the source.fla under c:\JSFL folder or you can edit the path of your fla in the JSFL file at line 35. Download it from here. FLfile.copy(”file:///C:/JSFL/source.fla”,folder+’/Exported/’+tempName); Also you can change the name of FLA/SWF accordingly [...]
This is a utility to convert bunch of images to SWFs with the same size of images. You need to place the source.fla under c:\JSFL folder or you can edit the path of your fla in the JSFL file at line 35. Download it from here. FLfile.copy(”file:///C:/JSFL/source.fla”,folder+’/Exported/’+tempName); Also you can change the name of FLA/SWF accordingly [...]
In a recent project I had to use runtime shared libraries. In ActionScript 3, the use of external libraries is made easy through the ApplicationDomain class and the getDefinition method. But one common limitation of the getDefinition method is that you have to know the name of the class definition you want to extract. A cool [...]
I’ve been subscribing to CDM for several weeks now. Lots of awesome visual stuff to be inspired by there. Got a nice surprise today when they ran an article at least partially on me. Stuff like this just makes my head get all swollen.
Lee Brimelow has just posted some more information in regards to the issues WordPress, Flickr, SWFUpload have with the Flash 10 Beta. Unfortunately, it doesn’t look like the behavior is going to change, but I do understand a bit more on why this was put in place. Read Lee’s response here. Another encouraging thing is that Lee [...]
OK, I’m being a bit dramatic to get attention, but there is a serious issue here, which I hope Adobe takes notice of and thinks about changing. Often one of the most frustrating parts of working with Flash is dealing with security issues. I understand completely the need for security in Flash. Any mention of any [...]
So ECMAScript, ActionScript, blah blah blah. You already know the news. No need to restate it. What I’m honestly wondering is, why should I care? I’m not being flip about it, I really want to know if AS3 being based on some standard or not really makes any real difference in any way, shape or form. [...]
Ecma just recently announced that the long standing EcmaScript 4 proposal is dead in favor of focusing on the EcmaScript 3.1 proposal. According to the announcment, they will eventually work on EcmaScript 4 again, but under a revised plan. ES4 as we know it in ActionScript 3 appears to be dead. Specifically [...]
In the previous article I explained how to use Yahoo! Maps. Now I’ll explain how to create a custom marker and how to place it on the map. This is not an easy task because on Yahoo! Developer Network (YDN) there is not enough documentation regarding Yahoo! Maps API for AS3. Take a look at [...]
I should say something witty here, but I think it’s best to let you watch. A couple of genuine LOLs in the 2nd one.
This article will explain how to create a wildcard search. What I mean is the following: dir *.* or dir myfile??.txt The old DOS searching way. The first command (if you’ll run them in Command Prompt) returns all files with extension from the current folder. The second command will return any file having its name as this: [...]
This is a very helpful piece of code. Function to escape all regular expression special chars. I came to this string having this order of characters by trial and error. So now you can use it easily by copy and paste. What is important to know that MXML and Actionscript compiler do automatically escapes backslashes (”\”) [...]
In the last months there have been several blog posts about the evil that is Cairngorm. People are complaining about the framework on mailing lists and on forums and when talking to other developers, a lot of them seem to dislike Cairngorm, mostly in favor of other frameworks. Some projects I consulted on (often too [...]
This article will explain how to integrate the Yahoo! Maps into your Flex application. Is important to know that in this we are using Flex Builder 3 and that the example and the code won’t work in Flex Builder 2 (it seems that in Flex Builder 2 there are some compiling problems with the SWC [...]
I’ve mentioned this to a few people here and there, but here’s the official announcement: I’m working on a new book, which will be a successor to Foundation ActionScript 3.0 Animation: Making Things Move! I’m not sure of the full title yet, I think the first part will be something like “Advanced ActionScript Animation…” No, it’s [...]
The session I'm presenting at this year's Flash on the Beach is titled Welcome to The Cloud. It's on building web applications and RIAs with Google App Engine. I'm going to cover real-world development with Google App Engine, based on my (ongoing) experiences in developing the web site and conference application for the Singularity web conference. Technologies [...]
If you need to find the length of an object, and I mean the number of children of the specified object, use the following function/method: 1 2 3 4 5 6 7 8 public static function getLength(o:Object):uint { var len:uint = 0; for (var item:* in o) if (item != "mx_internal_uid") [...]
As I was working on AlivePDF, I decided to add some font embedding support. The idea was simple, being able to inject any TrueType font in the PDF as a ByteArray and use it in the PDF. As you can imagine, the PDF specification asks for some details about the font you are embedding like its [...]
Working on a new book. Doing a chapter on isometric worlds. Of course, I had to start messing with the code and doing some generative art with it. Pictures link to Flickr page with full size images.

Subscribe to Planet Flash

Search

Tags

<head> 3d 3d Flash Actionscript actionscript 3 ActionScript 3.0 Adobe Adobe Air Adobe AIR (Apollo) Adobe Flash Adobe Flex AdobeMAX08 AIR AIR Adobe Integrated Runtime Announcements apollo Art AS2 as3 Asides awards Babble BEA Beautiful Web Books Business Cairngorm ColdFusion Community Components Conference Conferences degrafa design dev Development Events Examples Featured Flash Flash CS3 Flash experiments flash player Flex Flex 3 Flex Builder Flex Builder Development Flex Example FMS Fun Gallery General GeoWeb Google Industry Inspiration iphone Jobs Links linux Marketing MAX MAX 2007 Misc News news & events Off topic Open Source Other Papervision3D Parallax Denigrate Personal photos Photoshop Process Processing Resources RIA Singularity Site News Stuff techmology Technology Tennis Thinking Loud Tips Uncategorized Video Whatever

Blogs

Buttons

Planetarium