I want to share a really nice resource on the Adobe site called The Adobe cookbook. Find, share, and comment on code with the developer community. It basically covers most of their apps. Although still in the startup stage, there’s really a lot of helpful code snippets. So head over and start creating some snippets.
Using ActionScript 3, you can dynamically change the frame rate of your movie using the Stage class.
The Stage class (flash.display.Stage) is the class assigned to the stage object which is accessible from your main movie sprite/movie clip (or others within the same security sandbox) using the stage property. The stage object has a frameRate property which can contain any value between 0.01 and 1000 and determines the frame rate at which the Flash player plays back your movie. Changing this value lets you change the frame rate at runtime.
You can achieve this by using the following ActionScript
Well AS3 has been available for quite some time now and I’m only realising now how much more I can achieve by learning it. So this page will be dedicated to sharing what im learning. Im planning to hit it hard so expect some good things to come from this.
First of all, after experiencing a bit, im getting quite a lot of error codes and have no idea what they all mean. So, I think the first thing I will share will be a list of error codes and what they mean. By all means, please do add to these. Read the rest of this entry »
The dudes at greensock announced a new addition to their tween family. It’s called TweenReallySuperDuperExtraMaxWithCheeseOnTop. actually the new addition is called TweenGroup.
flCodr is a very cool online source depositary for actionScript 2 & 3. flCodr was born as a repository of code that was centralised in one location, so that everybody can access them. The difference with flCodr is that the code can be accessed from within Flash by using the flCodr panel.
flCodr is two things:
* An online repository of Flash snippets (small bits of re-useable code you can use to save time when developing)
* An extension for Flash which gives you access to the online repository from within Flash, meaning that you never have to leave the autoring environment to get code
For the first time you will be able to access code directly from within Flash using a new extension, which will allow you to connect to an online repository of code snippets.
Check it out here or download the flash extension here.
Add a countdown to 2009 widget for your website. Copy the embed code and paste it in your blog post or HTML. Contact me if you want another date to countdown to and I will supply you with the SWF.
In this quick tutorial I will demonstrate how to create a sun effect with rotating sunrays. We will achieve this with some basic ActionScript and a some flash creativity.
This is what we will create.
So let’s get started.
1. Let’s start off with creating the core of the sun. Use the circle tool and draw the core of the sun in the middle of the stage.
2. Convert it to a symbol and call it sunwhole_mc.
3. Inside the sun symbol create 2 extra layers. One for action, one for the rays and one for the sun. Read the rest of this entry »
A quick and easy way to stream YouTube video into you flash files is by using PHP to grab the stream from the YouTube server and sending it to your flash document. This comes in quite handy if you are strapped for server space or if you want to put less stress on your bandwidth usage. And you also get to stream those classics.
In this example we will grab the file and stream it into flash.