I also, somewhat, have it setup so i can specify what images and urls to use in the flash document from the HTML coding.
http://spaceghost.cc/esteelo/main.html
What i can't figure out is how to make the pics stay steady. I'm presuming the problem lies with the fact that there is two (2) frames in the movie to make the slider work, but i'm not sure how, or if it's possible, to make it stay steady.
In 1st frame of flash
//Loads Variables from html code
var my_lvl:LoadVars = new LoadVars();
my_lvl.image1 = pic1;
my_lvl.image2 = pic2;
my_lvl.image3 = pic3;
my_lvl.image4 = pic4;
my_lvl.image5 = pic5;
my_lvl.image6 = pic6;
my_lvl.image7 = pic7;
my_lvl.url_1 = uri1;
my_lvl.url_2 = uri2;
my_lvl.url_3 = uri3;
my_lvl.url_4 = uri4;
my_lvl.url_5 = uri5;
my_lvl.url_6 = uri6;
my_lvl.url_7 = uri7;
loadMovie(my_lvl.image1, "slider.image1");
loadMovie(my_lvl.image2, "slider.image2");
loadMovie(my_lvl.image3, "slider.image3");
loadMovie(my_lvl.image4, "slider.image4");
loadMovie(my_lvl.image5, "slider.image5");
loadMovie(my_lvl.image6, "slider.image6");
loadMovie(my_lvl.image7, "slider.image7");
//Slider Movement
_root.slider._x = _root.slider._x+1.5;
//when mouse moves left, navigation panel moves right
if ((_xmouse>60) && (_xmouse<100) && (_ymouse>15) && (_ymouse<135)) {
_root.slider._x = _root.slider._x+10;
}
//when mouse moves right, navigation panel moves left
if ((_xmouse>450) && (_xmouse<490) && (_ymouse>15) && (_ymouse<135)) {
_root.slider._x = _root.slider._x-10;
}
//when navigation panel reaches it's maximum x-value it resets itself
if (_root.slider._x>750) {
_root.slider._x = -125;
}
if (_root.slider._x<-375) {
_root.slider._x = 500;
}
HTML code
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="550" height="150"> <param name="movie" value="myslider.swf?pic1=images/armyheart.jpg&pic2=images/che.jpg&pic3=images/dogmayablock.jpg&pic4=images/mlpit.jpg&pic5=images/podallas.jpg&pic6=images/rede.jpg"> <param name="quality" value="high"> <embed src="myslider.swf?pic1=images/armyheart.jpg&pic2=images/che.jpg&pic3=images/dogmayablock.jpg&pic4=images/mlpit.jpg&pic5=images/podallas.jpg&pic6=images/rede.jpg" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="550" height="150"></embed> </object>
I'm aware of the blank images, i'm not concerned with that. Just the ones that are flashing.
Thanks.
Edited by SpaceGhost, 21 December 2005 - 01:48 AM.
