I am making a flash navigation bar with a slider using the tutorial at
kipura.com. I would like to modify it so that the slider starts out as a default under the current page. I have tried to add in a piece of code to do this, but I am still learning ActionScript and it didn't work. I added this to the actions of the slider:
- Code: Select all
onClipEvent (load) {
if (this._url = "page1.html") {
slider.xMove = button_1._x;
}else if (this._url = "page2.html") {
slider.xMove = button_2._x;
}else if (this._url = "page3.html") {
slider.xMove = button_3._x;
}else if (this._url = "page4.html") {
slider.xMove = button_4._x;
}
easeSpeed = 2;
}
Any help or pointers that I could get would be greatly appreciated. Thanks!