For today’s trick I will show how you can display digital time in Flash. 1. Using the Text Tool(T) create 3 Textboxes(hours, minutes, seconds). 2. Give each one a name in the Var field of the Properties Panel.(for this example I use h – hours, m – minutes, s – seconds).
In a previews post I wrote about how can you load data from an xml file in Actionscript 2.0. For today’s trick I will show you how can you do that using Actionscript 3.0.
Maybe you have tried many different ways loading an external resource such as images or SWFs inside an empty movie clip from the stage and no matter what you have tried when loading another image / SWF again you saw two or three versions of it playing and hogging resources. Not good.
For today’s trick I will show you how easily you can load data from an XML file, using Actionscript 2.0. First thing first you must create an XML file. I named it “image.xml” and save it in the same folder as my flash file. Here is an example on how your xml file should look like:
Beggining with today we start a series of posts called Day trick. We want to share some useful and inspire methods that can help you in the process of learning Flash. If you want to contribute, just send us, an email, with your Day trick, and we will make it public. Instead of it we will put a link to the contributor’s web-site.