alert This appears to be a flash file, you cannot see a preview because flash player is no longer supoorted in browsers, but you can still download the file to study it's source code.
You can open/play the swf file with Flash Player exe
user theranch
theranch (2)

AS3 Animated Boxes v2.0

This is an animation that chops up a 400px box into 40px X 40px cubes then animates them off stage. It uses the BitmapData class to make copies of the original box. This version has some code fixes from the first version and has text in the main box to show the effect better.
3534 downloads, 31316 views
Download (762.17 KB)

Comments

You need to login to post a comment.

user ms.webtech
ms.webtech 14 years ago

Hi,

Anyone can tell me, how to add image rather then text

Thanks

user brunobrunobruno
brunobrunobruno 16 years ago

anyone have any ideia how to load a image backgroung replacing de gray background inside the gray boxes tnx

user nikedib
nikedib 16 years ago

awsome my friend

user raylea100
raylea100 16 years ago

Really Really Good

user theranch
the listing author theranch 16 years ago

For the sample I linked to on my site (in these comments), I just added an Array of strings and some vars...
var num:Number = 0;
txtString = "1 blah blah blah";
txtString1 = "2 blah blah blah;
txtString2 = "3 blah blah blah";
txtArray = [txtString,txtString1,txtString2];

Then I just changed the text line to: tf.text = txtArray[num];
and then when the makeBox() function is called I add to the num variable like this:
num++;
I also check to see if the current array item is the last then reset num to 0 using an if statement so when you play it again it loads the first string. Challenge yourself to figure it out from these notes. You have the code and can create other buttons by duplicating what I wrote.

user realwebdesigns
realwebdesigns 16 years ago

but I want the buttons always to be there not to load with the content

user realwebdesigns
realwebdesigns 16 years ago

ok where can I download it thanks

user theranch
the listing author theranch 16 years ago

@realwebdesigns
Ok...I made another sample that does what you're talking about. You can see that here:
thespikeranch.com/08/samples/chopImage_ 2.html

user realwebdesigns
realwebdesigns 16 years ago

The thing is I don't know how to do it

user theranch
the listing author theranch 16 years ago

I agree, you 'could' use this sample as a starting point for that, I made this with the intent of it being used for other things. Use your imagination to do with it what you want.

user realwebdesigns
realwebdesigns 16 years ago

I think it would be better if you had to click a button to have this animation and then it would reload another text so like that it could be used as a transition