Aug
13
2008
It was brought to my attention that some people would like to access not only the features of the stage (addChild(), eventListeners, etc) but also the DisplayObjects that reside there. If you played around with the files provided in the original post and tried to do something like this:
private function checkText(evt:Event):void {
if (_stage.myInput.text == "test text") {
_stage.addChild(customText);
dispatchEvent( new Event(correctText) );
}
} Continue Reading »
Popularity: unranked [?]
Aug
01
2008
Mysql to Flash via AMFPHP
Hopefully you’ve had a chance to read my other postings on AMFPHP and the classes and wrappers I’ve written for it. This post will be an example on how to query a mysql database from php and pass it into flash, then parse it into a multi-dimensional associative array (a big array that gives you the ability to loop through its records by number, and access its columns by name – similar to PHP’s mysql_fetch_assoc() ). First, if you are unfamiliar with my other postings, you can view them below:
Popularity: 42% [?]
May
12
2008
I can’t actually claim any credit for these videos, but I’ve been asked on several occasions to supply people with a way to preload your videos. I’m currently swamped right now with other work, but I figured I’d still provide you with some resources for getting started. I’ve watched most of these videos and they look pretty good to me. One of these days I’ll sit down and write one and post it for everyone – not because the world needs my version, but because once I post it I’ll be able to support the people who have questions (it’s always easier to answer questions about one’s personal code, than about foreign code). I hope you enjoy the videos: Continue Reading »
Popularity: 42% [?]
Apr
29
2008
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% [?]
Apr
29
2008
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 [?]
Apr
15
2008
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% [?]
Apr
12
2008
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% [?]
Apr
10
2008
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% [?]
Apr
05
2008
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% [?]
Apr
02
2008
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% [?]