Forums

This topic is locked

adding video to flash

Posted 20 Aug 2007 07:45:02
1
has voted
20 Aug 2007 07:45:02 gra wa posted:
i have the following code

stop();
// _root.imagewidth defines the width of the image//
_root.imagewidth = 500;
_root.imageheight = 700;
// _root.speed defines the speed of the sliding images//
_root.speed = 3;

/* _root.trig.xposnew defines the x position of the sliding images */
_root.trig.xposnew = -(_root.imagewidth);

// About us Button action
but1.onRelease = function() {
_root.trig.xposnew = -(_root.imagewidth);
};

// Products Button action
but2.onRelease = function() {
_root.trig.xposnew = -((_root.imagewidth)*2);
};

// Services Button action
but3.onRelease = function() {
_root.trig.xposnew = -((_root.imagewidth)*3);
};

// Clients Button action
but4.onRelease = function() {
_root.trig.xposnew = -((_root.imagewidth)*4);
};

// Contact Us Button action
but5.onRelease = function() {
_root.trig.xposnew = -((_root.imagewidth)*5);
};
/* Loading the images in their appropriate Movie Clips from the folder named as 'images' */
loadMovie("movies/image1.jpg","clip1";
loadMovie("images/image2.jpg","clip2";
loadMovie("images/image3.jpg","clip3";
loadMovie("images/image4.jpg","clip4";
loadMovie("images/image5.jpg","clip5";

/* Setting the x and y position of Movie Clips in which images are loaded */

setProperty("clip1",_x,_root.imagewidth*1);
setProperty("clip1",_y,0);

setProperty("clip2",_x,_root.imagewidth*2);
setProperty("clip2",_y,0);

setProperty("clip3",_x,_root.imagewidth*3);
setProperty("clip3",_y,0);

setProperty("clip4",_x,_root.imagewidth*4);
setProperty("clip4",_y,0);

setProperty("clip5",_x,_root.imagewidth*5);
setProperty("clip5",_y,0);



<font color=navy></font id=navy><font color=green></font id=green>

it loads images but i want it to load a video in one of the clips. how might i go about doing that? cheers

Reply to this topic