Custom number range sliders
I needed a custom range slider for selecting prices. It needed to have two draggers. One of low price, one for high price. Here is the result.
Low and High value is calculated based on the size of the slider track.
Easy to use and easy to customize. Only 3 movieclips make up the whole thing. Doesn’t use annoying built in flash components.
Key Press detection & onEnterFrame in AS3
We’re going to make this little asteroid-clone space shooter for AS3 beginners.
It has the basic key press detection (listeners) and an AS3 version of onEnterFrame. We are however going to use classes and packages. Don’t be scared, it’s not complicated.
AS2 to AS3: What software to use
Going from using ActionScript 2.0 to ActionScript 3.0 can get tricky. The full switch takes time (and sometimes a few tries), but it’s well worth it.
The first step you want to take in going from AS2 to AS3 is to stop putting code on the timeline. It sounds scary at first, but it’s really simple (more on that later) and it has many great benefits.
One of those benefits is being able to use a different program to edit your code. Flash is great, but it’s built-in actionscript editor is pretty weak.
There are a lot of great, free code editing programs out there in which you can edit both AS2 and AS3.
I like using Flash Develop with Flash CS4. There is also Flash FTD and Eclipse (you’ll need to download Eclipse for PHP Developers and get the actionscript 3 plugin).
You can still use Flash CS3/CS4 to edit your graphics, sounds, layouts and code if you want.
I suggest downloading one of these programs and getting familiar with them. Open one of your existing projects and try editing your code in those programs. The code hints, auto completion, formatting, and much, much, more is better than Flash’s code editing window.
Next update will have less text and more hands-on stuff.
Happy Birthday Free ActionScript!
FreeActionScript.com is celebrating its 1 Year Anniversary today. Thanks to all the fans out there for supporting this site and providing valuable feedback & motivation. In 1 year, 110,000 of you visited the site and loaded 270,000 pages.
What’s next for FreeActionScript?
Full switch to AS3!
I will no longer release AS2 scripts. From now on, all my experiments and examples will be in class based AS3. That means no more timeline actionscript. No worries, I will try to make the transition from AS2 to AS3 as easy to understand as possible.
Forums
I know that using the comment system to get help is a major pain. Specially when you try to post code. I know that some of my examples aren’t as clear as they can be, and I know that people have a lot of questions. Forums will be added where I, and other regulars of the site, will be able to provide help and support to our flash game developer community.
As always, I am interested in as much feedback as I can get. I welcome suggestions and requests, and hope you guys stick around to see Freeactionscript.com evolve into a bigger, more useful site for all.
Endless Parallax Scrolling
This is a parallax star field scrolling effect. It gives the illusion of moving through 3d space. This effect endless and will continue scrolling forever.
Dynamic Tooltip
This is a dynamic tooltip window script that sizes and positions itself based on tooltip content size and location on the screen. It calculates it’s own size and current location, and if outside of the stage, reposition itself to remain always visible.
CategoriesLinks |
