Fireworks and On Vacation
No comments“See” you all late next week - Have a good holiday! I modified some code from Keith Peter’s book to create the animation, you can check out his book here: Foundation Actionscript 3.0 Animation: Making Things Move!, to create this fireworks animation display.
a2a_linkname=”Fireworks [...]
Filling BitmapData Colors with an alternate color with the floodFill Method
No commentsI wanted to learn more about bitmap data in flash and came across the floodFill() method. It basically will replace a color with one you assign it. In the demo the original color is a light blue (rgb 003366) and when you click the stage the square will change colors via the floodFill method.
[kml_flashembed movie="/projects/flash/FloodFill/FloodFillExample.swf" [...]
Combining Arrays with the Array.Concat Method
No commentsThe Actionscript Document Class:
package
{
import flash.display.Sprite;
import fl.controls.TextArea;
import fl.controls.ScrollPolicy;
import flash.text.TextField;
import flash.text.TextFieldAutoSize;
import flash.text.TextFieldType;
import flash.text.TextFormat;
public class ArrayConcat extends Sprite
{
private var output:TextArea;
private var ArrOne:Array;
private var ArrTwo:Array;
private var ConcatArrays:Array;
public function ArrayConcat()
{
init()
}
private function init():void
{
// display our output field
Output();
// set up the arrays
ArrOne = new Array(1, 2, 3);
ArrTwo = new Array(4, 5, 6);
ConcatArrays = ArrOne.concat(ArrTwo);
// display the output
msg ( [...]
Preloading Multiple Images with Actionscript
6 comments so farPlease view my updated code
One of my new projects involves a lot of imagery so I decided to write a class that I could send it an array of images and preload them with a loading bar. The code below doesn’t have a loading bar, but if you trace out the code you can see [...]
The Best Flash Animation
No commentsThis one wins:
http://www.adobe.com/jp/events/cs3_web_edition_tour/swfs/perform.swf
a2a_linkname=”The Best Flash Animation”;
a2a_linkurl=”http://manewc.com/2008/04/26/the-best-flash-animation/”;
a2a_color_main=”D7E5ED”;a2a_color_border=”AECADB”;a2a_color_link_text=”333333″;a2a_color_link_text_hover=”333333″;