I have been tearing my hair out with this for weeks, so if anyone could offer help it would be super appreciated.
My problem is as seen on the collections page of the site I am working on: http://ursula.com/v1/site.htm. Its probably easier to just see it for yourself than for me to explain:
You would notice from clicking ‘more’ (so that the thumnails pan to the left) and then choosing a collection, that the thumbnails stay to the left. I am using simple xml to display thubnails and using a scrollMe function to have them move when a person clicks the ‘more’ movie clip.
I am using these:
myPhoto.load("collection/evening.xml");
And this scrollMe function:
Movieclip.prototype.scrollme = function(xPos) {
this._x -= (this._x-xPos)/5;
};
//initialise a variable
out = false;
//menu mc actions
menu.onEnterFrame = function() {
//check a variable
//this is the same as if(out==true){
if (out) {
//call the prototype and provide a target x pos
this.scrollme(-780);
} else {
this.scrollme(-220);
}
};
//the arrow button actions
arrowMC.arrowBut.onRelease = function() {
//check our variable
if (out) {
//set variable
out = false;
//rotate the mc that contains the arrow button
arrowMC._alpha = 100;
} else {
//set variable
out = true;
//rotate the mc that contains the arrow button
arrowMC._alpha = 50;
}
};