LOADING
Loading
Hi , welcome back.
LogoutLOGOUT
 
  Lost password?  
Hi
 




 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 10-17-2003, 09:10 PM
nyc11217 nyc11217 is offline
Registered User
 
Join Date: Aug 2003
Posts: 12
Rep Power: 0
nyc11217 is on a distinguished road
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();
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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




All times are GMT. The time now is 12:21 PM.