Archive for April, 2008

Apr 29 2008

Tutorial: Event Listeners in Flash AS3 explained

Published by admin under Basics, Flash AS3

Why should I care about Event Listeners?

If your ambitions in Flash AS3 extend beyond that of basic animation you will NEED to care about Event Listeners because the flow of your entire project will depend on them. They are the ignition to your movies. They allow you to respond to input from users (whether it be the mouse or the keyboard or any other form) and take action with that input. In short, Event Listeners are part of the life-blood of Flash programming.

Continue Reading »

Popularity: 100% [?]

8 responses so far

Apr 29 2008

Advanced Customizable AS3 Scrollbar Class for Adobe Flash CS3

Why a Custom AS3 Scrollbar?

I’m sure this isn’t first nor will it be the last time you hear about the frustrations of dealing with Adobe’s pre-coded and pre-packaged components. Some complain about their design, their style, their customization, their size, and even (my personal experience) their functionality when embedded into pages with Facebook’s <fb:swf> tag. The simple solution to all of these problems is to simply code your own. However, scrollbars can be a nightmare and take hours to code, debug and customize. So, I’ve tried to save you all that hassle by building a fairly customizable scrollbar class.

Download the example files (includes the classes): AS3 Scrollbar Class and Example

In zip format: AS3 Scrollbar Class and Example

Continue Reading »

Popularity: unranked [?]

47 responses so far

Apr 15 2008

Updated: AMFPHP Communication Class in Flash AS3

This is a quick post to let everyone know minor updates have been made to the amfphp communication class. Thanks to the help of Joshua Logsdon I have been able to make several changes that either fixed bugs or added to the quality of the class. One very useful function is the assocResult function that turns the received object from amfphp into an associative array, which can be much easier to work with sometimes than an object.

The new file is available for download: AS3 AMFPHP Class and Wrapper

Older articles can be accessed:

AMFPHP AS3 Class – Communication between Flash and AMFPHP made easy

AMFPHP AS3 Class and Wrapper – Communication between Flash and AMFPHP made even easier

AMFPHP AS3 Class and Wrapper – MySQL Query Example

Let me know what you think of the updates, and the additions from Joshua.

Popularity: 43% [?]

3 responses so far

Apr 12 2008

AMFPHP AS3 Class and Wrapper – Communication between Flash and AMFPHP made even easier

After getting some positive response to my last project, I decided to spend some time, fix a few bugs and give you guys a new, cleaner amfphp class… but wait, thats not all, I even through in a free amfphp WRAPPER, ABSOLUTELY FREE! (right… well the entire site is free, but still, that makes me a nice guy, right?)

Anyhow, here is the class for those who’d just like to download and tinker: AS3 AMFPHP Class and Wrapper Continue Reading »

Popularity: 92% [?]

9 responses so far

Apr 10 2008

Write your first class ever in Flash AS3 with access to the stage and event dispatching

Published by admin under Basics, Flash AS3

The switch for many users from Actionscript 2 (AS2) to Actionscript 3 (AS3) can be a difficult one mainly because of AS3’s preference for an Object Oriented (OOP) style of programming. Once users realize this they are often thrown head first into the realm of class creation in flash with really no idea how to make this “class” interact with their timelines. The hope is that by the end of this article one will have a basic understanding of how to create, design, and implement a class.

Before we get started, here is the example code you can use to follow along. Continue Reading »

Popularity: 45% [?]

10 responses so far

Apr 06 2008

Wordpress displays odd or foreign characters (after my web server switched platforms)

Published by admin under Wordpress

Only a few days ago I was moved by my web server from their old vDeck platform to their newer, um, vDeck platform? Well, the actual platform is besides the point. The problem that arose was actually caused by MySQL’s faulty exporting function which may have been combined with some charset irregularities between my database tables and wordpress. All I’m trying to say, really, is that one day my blog was working great and the next it was filled with lots of “’” characters. Big problem. Continue Reading »

Popularity: 34% [?]

No responses yet

Apr 05 2008

Parsing Google Calendar XML in Flash CS3 AS3

Honestly, when I first attempted to parse and access Google Calendar XML from flash I had a lot of trouble with it. I spent a lot of hours being frustrated by XML namespaces (it was the first time I’d had to use them) and consequently had to move to the forums at actionscript.org. I was helped by a guy with the alias “wvxvw” (which is a nice palendrome, lol) so I’d like to extend credit to him for giving me a nudge in the right direction. Anyway, lets get on to the code. Continue Reading »

Popularity: 68% [?]

7 responses so far

Apr 02 2008

A Dynamic Flash AS3 Calendar that Parses Basic XML and Google Calendar Events in ATOM XML and ICAL Format

Download the class AS3 Dynamic Calendar Example

As simplistic as Calendars may seem, they require quite a bit of code in order to get them to function properly. Here is a calendar programmed for Adobe’s Flash CS3 in Actionscript 3. It takes the simple arguments of the XML/ICAL URL, the format that it is in, and the size that you’d like the calendar to be, and then formats the entire thing for you including adding any events listed in the XML. Continue Reading »

Popularity: 41% [?]

39 responses so far