News

Log In Sponsors
Partner Sites





Re: Simple Javascript variable problem



I have no idea what actionscript does, but how about an array? [code:1e2rtsql] var arr = new Array("firstvideo.jpg", "secondvideo.jpg"); var idx = 0; [/code:1e2rtsql] When you need the file, just use its index pos. [code:1e2rtsql] placeholder.loadMovie(arr[idx]); idx++; [/code:1e2rtsql]

Click here to read the whole forum topic