Search

Archive for the 'ActionScript' Category

PowerCursor – Flash Tactile mouse cursor response?

Posted by Nate Chatellier on May 23rd, 2007

Check this out:
“Tactile sensations like stickiness, roughness, pressure, volume or mass can be experienced in a graphical user interface without resorting to special force feedback devices. Powercursor uses a technique called ‘visually simulated force feedback’ to evoke the tactile experience.”
Pretty cool concept. Not sure how practical it really is, but I can think of a [...]

ActionScript 3 Data Structures

Posted by Nate Chatellier on May 18th, 2007

I’ve been longing to re-create the Zelda Arena game I created a while back in AS 3 (under a different title so I don’t get sued by Nintendo), and actually finish the project (feature-complete) and post it online where multiple people could go up against each other on a single server. My dreams for the [...]

Tweener Transition CheatSheet

Posted by Nate Chatellier on May 16th, 2007

Have you ever wished you could have all of the different Tweener transition types (based on the Robert penner easing equations) on a single cheatsheet? I have too. So, I finally got around to making said cheatsheet. Enjoy.
TweenerTransitionCheatSheet.pdf

addthis_url = ‘http%3A%2F%2Fnatejc.com%2Fblog%2F2007%2F05%2Ftweener-transition-cheatsheet%2F’;
addthis_title = [...]

Registered Socket Functions

Posted by Nate Chatellier on May 3rd, 2007

Now that you know how to dynamically cast variables at runtime, we can create a very cool static class I dub RegisteredSocketFunctions. The purpose of this class is to allow any function to be "registered," which, by doing so, allows global access to the function directly.
The goals of the RegisteredSocketFunctions class:

Any function in any class [...]

Tweener + Bezier + Zeh = Brilliance

Posted by Nate Chatellier on May 1st, 2007

Zeh, the brains behind Tweener, has done it again. One of the main goals of Tweener was to create a system designed to allow the creation of animations (be they simple or complex) very easily. This goal was definitely accomplished. However, designing something that is appealing to the crowd wishing for simplicity, often leaves the [...]

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:

// [...]

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 [...]

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 [...]