Hey all,
I am TRYING to make a flash site. I’ve gotten pretty far but i’ve come across a road block…
I have a series of images that i only want to come up when the border is +1 or -1 pixels off the image size. The border tweens to the image size when you click on a thumb nail of the image. It does that by changing a _root. varibal i assigned. Theres no problem there.
I have the images that i want to appear all on different frame inside a movie clip. When you click on one of the buttons it activates the following script using the setInterval() command:
function checkit() {
var width = _root.box._width;
var pic = _root.thepic;
//check first picture
if ((pic == "pic1") && (width<=528) && (width>=526)) {
_root.pictures.gotoAndStop(2);
trace("pic1 function works");
} else {
_root.pictures.gotoAndStop(1);
}
//check second picture
if ((pic == "pic2") && (width<=288) && (width>=286)) {
_root.pictures.gotoAndStop(3);
trace("pic2 function works");
} else {
_root.pictures.gotoAndStop(1);
}
//check third
if ((pic == "pic3") && (width<=481) && (width>=479)) {
_root.pictures.gotoAndStop(4);
} else {
_root.pictures.gotoAndStop(1);
}
trace(""+width+":::"+pic+"");
}
this is the part that does work. The output window shows what i told it to trace when the command(s) work, but the image just doesn’t come up. I fooled around with this over the weekend and could not figure this out…
if someone could shed some light on it it would be much appreiated!
heres the .fla, thanks!
BTW, frame one on MC pictures is blank, its for the time when the frame is resizing…