View Single Post
  #1 (permalink)  
Old Jun 4th, 2007, 23:05
samason samason is offline
Junior Member
Join Date: Feb 2007
Location: Canada
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Showing Current Page with Flash Slider Menu

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!
Reply With Quote