2d array text effect

this._alpha = 100-dist;
should do the trick

nah I mean at the beginning of this thread he said that an array was the only way he could find to do it, so if you wanted to change the text you’d have to change the whole array. But if you could create the same effect using the distance calculation method you would’nt have to change the array to modify the text, You could just place the clips on the screen in the arrangement you wanted :glasses:

:stare: this is brilliant!

wow really impressive guys nice job.

im speechless :expressionless:

could someone make one for this array please:


text_arr = [
[1, 1, 1, 1, 1, 1, 1, 1, 1],
[1, 1, 1, 1, 1, 1, 1, 1, 1],
[1, 1, 1, 1, 1, 1, 1, 1, 1],
[1, 1, 1, 1, 1, 1, 1, 1, 1],
[1, 1, 1, 1, 1, 1, 1, 1, 1],
[1, 1, 1, 1, 1, 1, 1, 1, 1],
[1, 1, 1, 1, 1, 1, 1, 1, 1],
[1, 1, 1, 1, 1, 1, 1, 1, 1],
[1, 1, 1, 1, 1, 1, 1, 1, 1],
[1, 1, 1, 1, 1, 1, 1, 1, 1]
];

color_arr = [
[0xACFFFF, 0xACFFFF, 0xACFFFF, 0xACFFFF, 0xACFFFF, 0x23CEFF, 0x23CEFF, 0x23CEFF, 0xACFFFF],
[0xACFFFF, 0xACFFFF, 0xACFFFF, 0xACFFFF, 0x23CEFF, 0x23CEFF, 0x23CEFF, 0xACFFFF, 0xACFFFF],
[0xACFFFF, 0xACFFFF, 0xACFFFF, 0x23CEFF, 0x23CEFF, 0x23CEFF, 0xACFFFF, 0xACFFFF, 0xACFFFF],
[0xACFFFF, 0xACFFFF, 0x23CEFF, 0x23CEFF, 0x23CEFF, 0xACFFFF, 0xACFFFF, 0xACFFFF, 0xACFFFF],
[0xACFFFF, 0x23CEFF, 0x23CEFF, 0x23CEFF, 0xACFFFF, 0xACFFFF, 0xACFFFF, 0xACFFFF, 0xACFFFF],
[0xACFFFF, 0x23CEFF, 0x23CEFF, 0x23CEFF, 0xACFFFF, 0xACFFFF, 0xACFFFF, 0xACFFFF, 0xACFFFF],
[0xACFFFF, 0xACFFFF, 0x23CEFF, 0x23CEFF, 0x23CEFF, 0xACFFFF, 0xACFFFF, 0xACFFFF, 0xACFFFF],
[0xACFFFF, 0xACFFFF, 0xACFFFF, 0x23CEFF, 0x23CEFF, 0x23CEFF, 0xACFFFF, 0xACFFFF, 0xACFFFF],
[0xACFFFF, 0xACFFFF, 0xACFFFF, 0xACFFFF, 0x23CEFF, 0x23CEFF, 0x23CEFF, 0xACFFFF, 0xACFFFF],
[0xACFFFF, 0xACFFFF, 0xACFFFF, 0xACFFFF, 0xACFFFF, 0x23CEFF, 0x23CEFF, 0x23CEFF, 0xACFFFF]
];

I really like this effect, but I don’t have flash, so i can’t compile it.

thanks

-kiwee

Kiwee! I put it in my little viewer as preset 4, looks cool, nice job!

thanks cr125rider :slight_smile:
could you make it into a separate flash file for my site? becuase I really like that!
thanks a lot, again :smiley:

  • kiwee

great job guys!

This is a totally stupid questions but how do you change the text in here?

I’m a total newb and feel dumb now…

change the array which is the big thing with all of the 1’s and 0’s.

everywhere there is a 1 in the array, a block will be put there.

edit: sorry, i forgot to explain the actual array and how the whole thing works:

the array is the big list of numbers, for our purposes 1’s and 0’s
to make a sort of checkboard with the array you could do this:
text_arr=[
[1,0,1,0,1],
[0,1,0,1,0],
[1,0,1,0,1],
[0,1,0,1,0],
[1,0,1,0,1]
];
where ever there is a one there will be a square, a new number after commas will result in a new column, a new row of numbers will result in a new row.

if you don’t understand the class, all it does is takes your array and places movieclips based on array position.

This is pretty interesting… and code is pretty neat…

very nice job…

The problem with this is that when you have more than one color, they have to be defined as movieclips, and then their linkage id makes of the colors array. I understand you can’t do that, but it would be pretty tedious work to ask someone else to do for you. I’m making it my duty now to set out and try to make it recognize an array of that form.

EDIT: I made it work. I however, can’t make your array work, kiwee. If you would go through and change the 1’s to a different number so they correspond with different colors, that would be greatly helpful.

Yay. All you have to do is use TileColor instead of Tile, and give an array in the following form for the array of colors. The Tile class I put out not long ago is still the same, and in my opinion, these two classes combined make the BitmapTile class obsolete, no offense. Soon, I’ll probably bundle them together into the all-encompassing Tile class. The source is the same Google logo I made a while ago, just with the TileColor class, and some funky dot I threw in.

array = [“tile”, 0xBACKGROUNDCOLOR, 0xCOLOR1, 0xCOLOR2, etc…];

It works.

P.S. If anyone feels like I’m taking over this topic, just let me know.


text_arr = [
[1, 1, 1, 1, 1, 2, 2, 2, 1],
[1, 1, 1, 1, 2, 2, 2, 1, 1],
[1, 1, 1, 2, 2, 2, 1, 1, 1],
[1, 1, 2, 2, 2, 1, 1, 1, 1],
[1, 2, 2, 2, 1, 1, 1, 1, 1],
[1, 2, 2, 2, 1, 1, 1, 1, 1],
[1, 1, 2, 2, 2, 1, 1, 1, 1],
[1, 1, 1, 2, 2, 2, 1, 1, 1],
[1, 1, 1, 1, 2, 2, 2, 1, 1],
[1, 1, 1, 1, 1, 2, 2, 2, 1]
];

color_arr = [
[0xACFFFF, 0xACFFFF, 0xACFFFF, 0xACFFFF, 0xACFFFF, 0x23CEFF, 0x23CEFF, 0x23CEFF, 0xACFFFF],
[0xACFFFF, 0xACFFFF, 0xACFFFF, 0xACFFFF, 0x23CEFF, 0x23CEFF, 0x23CEFF, 0xACFFFF, 0xACFFFF],
[0xACFFFF, 0xACFFFF, 0xACFFFF, 0x23CEFF, 0x23CEFF, 0x23CEFF, 0xACFFFF, 0xACFFFF, 0xACFFFF],
[0xACFFFF, 0xACFFFF, 0x23CEFF, 0x23CEFF, 0x23CEFF, 0xACFFFF, 0xACFFFF, 0xACFFFF, 0xACFFFF],
[0xACFFFF, 0x23CEFF, 0x23CEFF, 0x23CEFF, 0xACFFFF, 0xACFFFF, 0xACFFFF, 0xACFFFF, 0xACFFFF],
[0xACFFFF, 0x23CEFF, 0x23CEFF, 0x23CEFF, 0xACFFFF, 0xACFFFF, 0xACFFFF, 0xACFFFF, 0xACFFFF],
[0xACFFFF, 0xACFFFF, 0x23CEFF, 0x23CEFF, 0x23CEFF, 0xACFFFF, 0xACFFFF, 0xACFFFF, 0xACFFFF],
[0xACFFFF, 0xACFFFF, 0xACFFFF, 0x23CEFF, 0x23CEFF, 0x23CEFF, 0xACFFFF, 0xACFFFF, 0xACFFFF],
[0xACFFFF, 0xACFFFF, 0xACFFFF, 0xACFFFF, 0x23CEFF, 0x23CEFF, 0x23CEFF, 0xACFFFF, 0xACFFFF],
[0xACFFFF, 0xACFFFF, 0xACFFFF, 0xACFFFF, 0xACFFFF, 0x23CEFF, 0x23CEFF, 0x23CEFF, 0xACFFFF]
];

here is the edited code :wink:

Awesome! :smiley:

My attribution… reworked createArrayColor… createColoredArray =D

fla: http://jususdesign.com/pips/createColoredArray.fla
swf: http://jususdesign.com/pips/createColoredArray.html

Nice upgrade! I like the color picker and the cleaned up interface.

thnx :wink: But 70 % of the code is yours =D Ill continue upgrading it... Ill try to add a realtime preview of different effects now :slight_smile:

I love the idea of such a community project :wink:

thnx :wink: But 70 % of the code is yours =D Ill continue upgrading it... Ill try to add a realtime preview of different effects now :slight_smile:

I love the idea of such a community project :wink:

Kiwee - You taken care of? I can post it if you want, sorry I dont check often.

You dont have to make a new movieclip for every color, you can use the setRGB() function. A lot of folks have posted with that in their source code if you would like to take a look.

EDIT: Pips - That color picker is amazing! Could you make the box an input though so the person could still type it in? Amazing work!