Hi All,
How can I get the slider bar to land over the main menu button when that page
loads in the browser?
Below is a link for the current page I am working on, but the same problem is
with every page in the site.
http://www.innova-techsolutions.com/blacknwhite_image.htm Below is a link for the fla file if it will help:
http://www.innova-techsolutions.com/blacknwhitemenu_10_28.fla for nttp users:
www.innova-techsolutions.com/blacknwhite_image.htm www.innova-techsolutions.com/blacknwhitemenu_10_28.fla The menu as you can see, is a flash object with the code below in the first
frame of the actions layer of the main timeline of the menu. Each page has a
slight change in the menu code. But here is the code that I have for the
black n white image process page.
As you can see, for each of the 8 buttons, I thought that putting the command
to move the slider with the actions for each "onRelease" event handler would
work but it does not. (i hope this makes sense, anyhow, code for this page is
below):
easeSpeed = 5;
//slider_mc is your Movie Clip's name, not the Instance Name.
slider_mc.onEnterFrame = function() {
this._x += (xMove1-this._x)/easeSpeed;
};
//Begin code for "Galleries" button w drop //down //menu
btnA = [button_2.gallery_btn, button_2.relationship_btn, button_2.wedding_btn,
button_2.baby_btn, button_2.art_btn, button_2.family_btn];
urlA = ["
http://www.innova-techsolutions.com/Relationship_Gallery.htm",
"
http://www.innova-techsolutions.com/Relationship_Gallery.htm",
"
http://www.innova-techsolutions.com/Wedding_Gallery.htm",
"
http://www.innova-techsolutions.com/Baby_Gallery.htm",
"
http://www.innova-techsolutions.com/Art_Gallery.htm"];
for (var i = 0; i<btnA.length; i++) {
btnA.ivar = i;
btnA.onRollOut = function() {
_root.button_2.gotoAndStop("closed");
_root.slider.xMove = _root.button_5._x;
};
btnA.onRollOver = function() {
_root.slider.xMove = _root.button_2._x;
_root.button_2.gotoAndStop("open");
};
btnA.onRelease = function() {
getURL(urlA[this.ivar], self);
_root.slider.xMove = _root.button_2._x;
};
}
//End coding for "Galleries" button w drop down //menu
//<Begin HOME button coding w Url, note I will //leave the coding here, but
comment out the url //in it since I do not want the home button to //open up
any page>\\
btnB = [button_1];
urlB = ["
http://www.innova-techsolutions.com/erika_home_8_18_05.htm"];
for (var i = 0; i<btnB.length; i++) {
btnB.ivar = i;
btnB.onRollOut = function() {
_root.slider.xMove = _root.button_5._x;
};
btnB.onRollOver = function() {
_root.slider.xMove = _root.button_1._x;
};
btnB.onRelease = function() {
getURL(urlB[this.ivar], self);
_root.slider.xMove = _root.button_1._x;
};
}
//<End home button/>\\
//Begin MEET ERIKA button coding\\
btnC = [button_3];
urlC = ["
http://www.innova-techsolutions.com/meet_erika.htm"];
for (var i = 0; i<btnC.length; i++) {
btnC.ivar = i;
btnC.onRollOut = function() {
//_root.button_2.gotoAndStop("closed");
_root.slider.xMove = _root.button_5._x;
};
btnC.onRollOver = function() {
_root.slider.xMove = _root.button_3._x;
//_root.button_2.gotoAndStop("open");
};
btnC.onRelease = function() {
//getURL(urlC[this.ivar], self);
_root.slider.xMove = _root.button_3._x;
};
}
//<End MEET ERIKA button coding/>\\
//<Begin THE SESSION button coding>\\
btnD = [button_4];
//urlD = ["
http://www.innova-techsolutions.com/thesession.htm"];
for (var i = 0; i<btnD.length; i++) {
btnD.ivar = i;
btnD.onRollOut = function() {
//_root.button_2.gotoAndStop("closed");
_root.slider.xMove = _root.button_5._x;
};
btnD.onRollOver = function() {
_root.slider.xMove = _root.button_4._x;
//_root.button_2.gotoAndStop("open");
};
btnD.onRelease = function() {
//getURL(urlD[this.ivar], self);
_root.slider.xMove = _root.button_4._x;
};
}
//<End THE SESSION button coding/>\\
//<Begin B & W IMAGE PROCESS coding\\
btnE = [button_5];
urlE = ["
http://www.innova-techsolutions.com/blacknwhite_image.htm"];
for (var i = 0; i<btnE.length; i++) {
btnE.ivar = i;
btnE.onRollOut = function() {
_root.slider.xMove = _root.button_5._x;
};
btnE.onRollOver = function() {
_root.slider.xMove = _root.button_5._x;
};
btnE.onRelease = function() {
//getURL(urlE[this.ivar], self);
_root.slider.xMove = _root.button_5._x;
};
}
//<End B & W IMAGE PROCESS button coding/>\\
//<Begin MATTING N FRAMING button coding>\\
btnF = [button_6];
urlF = ["
http://www.innova-techsolutions.com/mattingandframing.htm"];
for (var i = 0; i<btnF.length; i++) {
btnF.ivar = i;
btnF.onRollOut = function() {
_root.slider.xMove = _root.button_5._x;
};
btnF.onRollOver = function() {
_root.slider.xMove = _root.button_6._x;
};
btnF.onRelease = function() {
getURL(urlF[this.ivar], self);
_root.slider.xMove = _root.button_6._x;
};
}
//<End MATTING N FRAMING button coding/>\\
//<Begin MAKING AN APPOINTMENT button>\\
btnG = [button_7];
urlG = ["
http://www.innova-techsolutions.com/makinganappointment.htm"];
for (var i = 0; i<btnG.length; i++) {
btnG.ivar = i;
btnG.onRollOut = function() {
_root.slider.xMove = _root.button_5._x;
};
btnG.onRollOver = function() {
_root.slider.xMove = _root.button_7._x;
};
btnG.onRelease = function() {
getURL(urlG[this.ivar], self);
_root.slider.xMove = _root.button_7._x;
};
}
//<End MAKING AN APPOINTMENT button/>\\
//<Begin CONTACT button coding>\\
btnH = [button_8];
urlH = ["
http://www.innova-techsolutions.com/contact.htm"];
for (var i = 0; i<btnH.length; i++) {
btnH.ivar = i;
btnH.onRollOut = function() {
_root.slider.xMove = _root.button_5._x;
};
btnH.onRollOver = function() {
_root.slider.xMove = _root.button_8._x;
};
btnH.onRelease = function() {
getURL(urlH[this.ivar], self);
_root.slider.xMove = _root.button_8._x;
};
}
//<End CONTACT button coding/>\\
Thanks for any suggestions.
Art Hans