Flash Video Player

Splice method of Array class

by admin on October 9, 2007 · 0 comments

in Flash CS3, Sintax, Tutorials

In this tutorial, we saw how important can be an Array.
Also, I explained the basics of the Arrays .
I think it is time to start looking at some methods of the Array Class in more details.
A very useful one is the method ‘splice’.

This method adds or eliminates an element from an array without creating a copy of the Array itself.
Let us say that we want to create a banner in rotation which would display different banners for our client.
This banner loads an external SWF every tot seconds.
It should be random but without reloading the same external SWF twice.
In this case, the method splice is our man…

Read more

Share This Post

Related posts

{ 0 comments… add one now }

Leave a Comment

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="">

Older post: Fallen leaves effect

Newer post: Bluring Slide