|
Greetings,
I am a flash guru - no kidding! I am going to run you through some simple items you'll need to gain mastery over in order to create some scrolling text like the matrix screen code displays....
1. You will need to get a good understanding of how the flash timeline works, especially with how movieclips work with the main timeline. Many newbies like to rush right into flash and place all of this content on the main timeline, and then freak out when they realize they can't control it the way they would like. You see, a movieclip IS a whole flash timeline that you can put anywhere, and control remotely. You can start it, stop it, scale it, make it transparent and so on...
You basic process is like this:
a. open a new document in Flash
b. create your graphics and animation (tweens)
c. select all of the frames which contain your graphics and animation
d. Select MODIFY -> CONVERT TO SYMBOL from the menu
e. Select Movie Clip.
This turns your designed element into, for lack of a better term, into a reusable component.
okay so know you have your cool animation designed, how do you get it to work. Here are a couple of other things you need to investigate:
Random Numbers:
/\/\/\/\/\/\/\/\/\/\/\
In order for the code to look cool, the animation should look as little like a pattern and more like a real system. to this end, you need to read up on the Math.Random function, and how to use it to create random numbers.
Empty Movie Clips:
\/\/\/\/\/\/\/\/\/\/\/\
Mated with the random number generation is this bit o technology that will actually give you the "palette" to draw your movieclips into at runtime. In otherwords, you'll write actionscript code that will produce a random generated screen location. Then at this location, you will create an Empty Movie clip (the function is actually called createEmptyMovieClip!). Inside of this you will use our next trick:
Attaching Movie Clips:
\/\/\/\/\/\/\/\/\/\/\/\/
Then, you will attach the pre-designed movieclip with it's animation to this empty clip, at which point it will play out it's animation.
For more inspiration, and a further explanation of this topic - check out joshuadavis.com. He's one of the forefathers of random graphics generation. He also has a book called "Flash to the Core" (http://www.amazon.com/exec/obidos/ASIN/0735712883/ref=rm_item). This should be required reading for anybody wanting to elevate their flash skills beyond the business level - seriously. If you want to get hardcore - read this book....
Now, these have all been basic guidelines to help you on your way. For a more in depth discussion of how to put all of this Flash tech stuff together, contact me offline, and I'll be happy to assemble some parts to illustrate how these things work.
Good luck,
apd
Following
|