I had already talked about how to implement the method shuffle () in Javascript and Actionscript . I realized, tuttaavia, have not emphasized that Actionscript is able to extend, in the same manner as JavaScript, its object Array :
Articles Tagged 'Matrix'
Very short snippet: Actionscript extend an array by the method shuffle ()
Very short snippet: shuffle () in Javascript and Actionscript
In PHP there is a handy feature called shuffle() which allows for mixing an array (see Very short trick: take random elements from an array in PHP ). An excellent version of the Javascript I found here . Below the code slightly revised:
Undolibrary MatrixArray: an extension of the Array class
di Actionscript 3.0, con lo scopo di semplificare la manipolazione di Array lineari usati come matrice n x m . MatrixArray is an extension of the class Array of Actionscript 3.0, with the aim to simplify the handling of Array linear used as a matrix n x m. This class is part of the library Undolibrary (in the package undolibrary.utils.MatrixArray ) you can freely download function from any client using Google code SVN (Subversion) to:
svn checkout http://undolibrary.googlecode.com/svn/trunk/
Alternatively you can download the single file MatrixArray.as . An example of the use of linear arrays is given in Actionscript 3.0 for beginners: lesson # 2 where we saw one of his simpler in implementation of classic game Tic Tac Toe. ), proprio come una scacchiera. An array of this type is comparable to a rectangular area ( w x h ), just like a chessboard. With this class is possible to treat a matrix of this type just like a lattice with its x and y coordinates. The MatrixArray I used, for example, in the development of all the logic editor Emotions Icons for Skype: Skypemote .
Flash CS3: Create a reflex effect on any MovieClip
Taking advantage of a remarkable feature of Actionscript 3.0 (see Actionscript 3.0, all with the new operator ) I created a class ReflexMe able to generate an effect "reflection" of any MovieClip in this library.
The source is part of the package undolibrary - GoogleCode of this - but if you want you can download the single file ReflexMe.as .
Painting Flash CS3: effects with Matrix Matrix
Playing around with the powerful and versatile object Matrix (matrix), linked to the transformations, you can do weird things. These tools are used to apply particular transformations to a visual object, such as a sprite. You can, for example, scale, rotate, or twist (skew) a Sprite. e rotation ), per l'effetto Skew bisogna ricorrere direttamente alle matrici. While the first two functions (scale and rotation) Sprite objects (and others) provide directly the properties ( scaleX / scaleY , and rotation ), the skew effect should appeal directly to the matrices. What I would like to emphasize here is that when we modify a graphic object all its internal coordinates are shifted:






Latest Comments
Giovambattista Fazioli : @ Nik: I'm happy! Good luck then!
Nik : I have Monday examining information on java, thanks to me you have been very useful, the book I was unclear ...
Mark : Thank you very much, I've lit
I solved it by setting [cc_objc] / / OptionViewController.m - ...
Giovambattista Fazioli : @ Mark: I suggest you think a more correct approach. If you run the subclass of the tab ...
louis : very clear and simple I have to admit that writing a pa hardly use delegates created by ...