Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

help with a load movie clip using "which pic"

Status
Not open for further replies.

infernoapbts

Programmer
Dec 13, 2002
20
US
Hello, I am fairly new to flash, and need a bit of advice. In the designing of my own website, I have run into the following problem: I am trying to create a picture box, if you will, that lets visitors browse pictures by clicking on arrow buttons located on the "picture box". The swf file actually loads the pictures right from the server. The problem is that It is fully operational when viewed from my computer, but does not show pictures from anyone elses computer! Here is the link :
And here are the actions I am using. What the heck am I overlooking?

// initialize variables and properties
square._alpha = 0;
whichPic = 1;
// initiate change to new image when buttons are clicked
next.onPress = function() {
if (whichPic<5 && !fadeIn && !fadeOut) {
fadeOut = true;
whichpic++;
input = whichPic;
}
};
back.onPress = function() {
if (whichPic>1 && !fadeIn && !fadeOut) {
fadeOut = true;
whichpic--;
input = whichPic;
}
};
_root.onEnterFrame = function() {
// when a new Photo is selected, fade out, load new image, and fade in
if (square._alpha>10 && fadeOut) {
square._alpha -= 10;
}
if (square._alpha<10) {
loadMovie(&quot; &quot;square&quot;);
fadeOut = false;
fadeIn = true;
}
if (square._alpha<100 && fadeIn && !fadeOut) {
square._alpha += 10;
} else {
fadeIn = false;
}
// limit input field
if (input>5) {
input = 5;
}
// initiate change to new image when Enter key is pressed
if (Key.isDown(Key.ENTER)) {
fadeOut = true;
whichpic = input;
}
};
// if a number is entered in the input field but Enter is not pressed, change
// back to current Photo number when clicking anywhere else
inputField.onKillFocus = function() {
input = whichPic;
};

any help will be greatly appreciated
thanks from one confused s.o.b.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top