Sometimes you don't want to display some text right away - you want it to be dynamic like if someone wrote it on a machine. You can do this very easy in ActionScript 3.0.
In the tutorial I have used a poem as the text to be typed. It's one of my favorites from the poet, Robert Frost. You can of course use any text you like : )
This tutorial is only a little handy snippet you can use in all of your own programs. It's easy to modify to please the needs of your program.
Learn how to save user preferences and other data using ActionScript.
This can become very useful when developing games.
The SharedObject class can store data both on the users local computer - alot like cookies - but also on a remote server.
I have created an example were the application tells the user when he/she last visited the page and how many times in all. The user can then write his/hers name and age and next time the application opens on that local machine the data will be shown.
You'll also learn to store more than one information using arrays.
The Timer class in ActionScript 3.0 has a major downside - you can't pause it. You can stop it and start it. But if you want to pause some way down the road and then resume later at the same place the stop() and start() function simply aren't sufficient.
I will show you how to create a class free of use that has the ability to pause and then resume.
However, it has some implemented function that have to be thrown in order for it to work proberly. You will have to throw the .repeat() function every time the timer has finished a count!
Lewinzki.com and all of its content is created by Thomas Jensen alias Lewinzki. Email: webmaster@lewinzki.com
00:00:00