Search

Archive for April, 2007

Dynamic Casting and * in ActionScript 3

Posted by Nate Chatellier on April 27th, 2007

This discussion is necessary in order to continue with our network programming lessons.
Casting (converting one variable type to another) in ActionScript 3 is very easy. The following code casts a uint as a String:
PLAIN TEXT
Actionscript:

var  nNum:uint = 5;

var  sNum:String = String(nNum);

But what if you don't know what the variable should be cast as? For [...]

Flash Network Programming via TCP/IP, part 2

Posted by Nate Chatellier on April 26th, 2007

Today, I give you a free utility class that handles everything you need to handle in order to establish a connection. Tomorrow, I give you the world a class that make it seem like you are calling functions directly on the server and visa versa.
Download the latest version of the ConnectionEstablisher class here.
Usage example:
PLAIN TEXT
Actionscript:

// [...]

Flex SDK Goes Open Source

Posted by Nate Chatellier on April 26th, 2007

Although I went on a rant about Adobe yesterday, I really do like and respect the company--even more so today. If you haven't heard yet, Adobe just open sourced the Flex SDK as of this press release. This is definitely a bold move. From the release:
“The definition and evolution of Flex has been influenced by [...]

Flash, AS 3, and physics

Posted by Nate Chatellier on April 25th, 2007

There are a lot of good physics libraries and examples out there, such as the Fisix Engine, . But I just stumbled across a couple new ones: www.feedthehead.net, www.acrobots.net, and this monster truck demo (with source). Feedthehead has some fun easter eggs as well; for example, try pulling off the nose multiple times.
With the performance [...]

Adobe CS 3 Web Premium installation fiasco

Posted by Nate Chatellier on April 25th, 2007

My copy of Adobe Creative Suite 3 Web Premium arrived in the mail today! It contains the following major programs on a single DVD:

Dreamweaver CS3
Flash CS3 Professional
Photoshop CS3 Extended
Illustrator CS3
Fireworks CS3
Acrobat 8 Professional
Contribute CS3

Needless to say, this image expresses how I felt when I opened the package:

However, after I finally got the installation process to [...]

ig:Syntax Hiliter review

Posted by Nate Chatellier on April 24th, 2007

Well, it was fairly easy to setup with two minor complications. First, the installation instructions said extract the zip file into the wp-content/plugins directory, upload, and wallah. However, extracted folder is called "iG-Syntax Hiliter" which contains the folder "ig_syntax hiliter plugin." It is actually this second folder that needs to reside in the plugins folder [...]

Wordpress ActionScript 3 Syntax Highlighter

Posted by Nate Chatellier on April 24th, 2007

So I was going to continue with the AS 3 network programming discussion and realized I don't yet have any AS3 syntax highlighter setup. I'd hate to make you read code that didn't look pretty . I was considering FlashTextEditor, dp.SyntaxHighlighter, or ig:Syntax Hiliter, although I think I'm leaning toward the latter. Any Suggestions?

[...]

The Little Tweener that Could

Posted by Nate Chatellier on April 23rd, 2007

I used MC Tween all the time. When AS 3.0 came out, I loved everything about it, except the fact that there was no MC Tween. I sent an e-mail to Zeh asking if he was planning on porting it. He mentioned that he was working on a new implementation called Tweener, but that it [...]

Flash Network Programming via TCP/IP, part 1

Posted by Nate Chatellier on April 23rd, 2007

A while back I led an ActionScript 2 project with two other classmates in a Network Programming class I was taking at EWU. We created a Flash game we called "Zelda Arena" in which multiple players on multiple computers would connect via TCP/IP to a C++ server. You could custom color your own hero (Link) [...]

Converting AS2 Code to AS3

Posted by Nate Chatellier on April 23rd, 2007

I recently had reason to attempt to convert a few old ActionScript 2 classes to ActionScript 3. I stumbled across Patrick Mineault's post about his AS2 to AS3 converter and decided to give it a whirl. It worked better than I had expected actually. I ran my code through the converter, spent about 10 minutes [...]

Getting started with AS 3.0 / Flash CS3

Posted by Nate Chatellier on April 20th, 2007

The increase in performance and capabilities of ActionScript 3.0/Flash CS3 over AS2/Flash 8 is astounding! I intend to discuss this more in the future, but for those who haven't yet made the jump and are considering it, I cannot possibly urge you strong enough to make the jump. Especially since Flash Player 9 is at [...]

Not Another Blog!

Posted by Nate Chatellier on April 18th, 2007

With a zillion Flash platform blogs already out there, why am I starting another one? Because I believe taking without giving is inherently wrong.
I started Flash development in Flash 4 and instantly fell in love with the platform. I’ve had my rants about it over the years, but for the most part, I’ve thoroughly enjoyed [...]