Greetings to all!
Why this article?
Simple. Many of you have used with Actionscript 2.0, forms and techniques which with the version 3.0, would only create varied errors and would bring negative result.
Often, I receive e-mails with strange questions such as:
– how do I create the name of a variable in runtime?
It is typical of whom still thinks the following way: this['nome'+i]… and would like to realise something such as: var ‘nome’+i:MovieClip=new MovieClip();
My opinion:
– this ['name' + the]… it is obsolete and indeed not very good mannered.
– var ‘name’ + i:MovieClip=new MovieClip (); with Actionscript, it is not possible
Then I have seen in some Italian’s forums that some ‘misunderstood genius’ (perhaps too much misunderstood) answers to this type of questions with eccentric solutions.
Since I don’t like to create polemic and respect other people’s job, I never said a word about it.
What I have seen in these last few days however, has pushed me to write this article in how much at least, I will have the certainty that who wants to correctly learn Actionscript 3.0 will have available another technique, a more valid technique from my point of view.
A lot of solutions to these types of problems are found using the Array class of Actionscript 3.0.
We have already seen a few things in this article, but I wanted to get deeper in one of the many virtue of the array class.
Let us see a concrete example…







{ 0 comments… add one now }