
Welcome Guest
|
#1
|
|||
|
|||
|
image viewer using arrays (back & nect button)
I have 10 pictures (using arrays) appearing ramdomly and I need to center them (what should i use? _x, _y...). Also, I have to create one back button and one next button. what script should I apply to these buttons? Please see my script below. thanks for your help.
this.onLoad = function(){ mypictures = ["tibet.jpg", "tibet2.jpg", "camel.jpg", "forest.jpg", "einstein.jpg", "bear.jpg", "dragon.jpg", "af1.jpg", "ceppu.jpg"] numPics = mypictures.length; randomNum = Math.random(numPics); trace(randomNum); randomNum = randomNum * numPics; trace(randomNum); randomNum = int(randomNum); trace(randomNum); thisTime = mypictures[randomNum]; trace(thisTime); this.createEmptyMovieClip("imageHolder_mc", 1); imageHolder_mc.loadMovie(thisTime); imageHolder_mc._x = Stage.width/2; imageHolder_mc._y = Stage.height/2; this._x = 0; this._y = 0; this._xscale = 50; this._yscale = 50; _root.photo_name.text = thisTime; } stop(); |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| newbie: actionscript image gallery reading from file, but how? | Maceo | Actionscript 2.0 |
5 | 03-18-2006 06:50 PM |
| Targeting an Image from a Button (Very Confused!) | Paint Guy | Newbies |
4 | 02-07-2005 02:50 PM |
| Back button | nickholmes | Flash MX ActionScript |
1 | 12-10-2004 07:53 PM |
| back button not working after loading swf | asadzubi | Newbies |
3 | 11-26-2004 02:55 PM |
| how can I create next back buttons in image viewer (built w/ arrays) | nyc11217 | Flash MX ActionScript |
5 | 10-22-2003 03:58 PM |




