Hiya twsg-
Thanks for the reply.
Well I took care of that problem, but now I have a new one. Can you help me or should I post this?
Check out what I have so far:
http://www.roy-trainer.com/HelenNewm...enNewman3.html
It seems the TOP panel will not slide down unless you roll Over the BOTTOM panel first...weird.
script - Init/Top & Bottom
ActionScript Code:
import mx.transitions.Tween;
import mx.transitions.easing.*;
//tween object that i'm using on the btn functions.
var panelYpos:Tween;
var panelBottomYpos:Tween;
//
var downLine:Number = 70;// the ypos the mouse has to cross for the panel to drop.
var bttmupLine:Number = 510;// the ypos the mouse has to cross for the panel to rise.
//
var upLine:Number = panel._height;//the ypos the mouse has to cross for the panel to fly up.
var bttmdownLine:Number = panelBottom._height;//the ypos the mouse has to cross for the panel to go down.
//
var upPos:Number = panel._y;// the ypos of the panel when it is out of sight, my mc is placed on the stage in this statring pos.
var bttmdownPos:Number = panelBottom._y;// the ypos of the panel when it is out of sight, my mc is placed on the stage in this starting pos on the bottom.
//
var downPos:Number = 0;// the ypos of the TOP panel when it is down.
var bttmupPos:Number = 560;// the ypos of the BOTTOM panel when it is up.
//
var upPosbtn2:Number = -140;//i changed the registration point of the slidepanel mc.
var downPosbtn2:Number = panel.slidepanel._y;//the ypos of the panel when the the other button are pushed.
//
//load in the inital panel mc.
var whichMenu:MovieClip = panel.infoHolder.attachMovie("introTxt", "introTxt", 1);
//keeps track of which panel btn is active, initially the introTxt is active.
var btnOn:MovieClip = panel.btn1;
panel.btn1.gotoAndStop("isOn");
script - function/Top & Bottom
ActionScript Code:
import mx.transitions.Tween;
import mx.transitions.easing.*;
//
//moves panel
panel.onEnterFrame = function() {
if (this.isdown == false) {
if (_root._ymouse<=downLine) {
panelYpos = new Tween(panel, "_y", Regular.easeOut, panel._y, downPos, .5, true);
this.isdown = true;
}
} else {
if (_root._ymouse>upLine) {
panelYpos = new Tween(panel, "_y", Regular.easeOut, panel._y, upPos, .5, true);
this.isdown = false;
}
}
};
//moves bottom panel
panelBottom.onEnterFrame = function() {
if (this.isdown == false) {
if (_root._ymouse>bttmupLine) {
panelBottomYpos = new Tween(panelBottom, "_y", Regular.easeOut, panelBottom._y, bttmupPos, .5, true);
this.isdown = true;
}
} else {
if (_root._ymouse<(bttmupPos-bttmdownLine)) {
panelBottomYpos = new Tween(panelBottom, "_y", Regular.easeOut, panelBottom._y, bttmdownPos, .5, true);
this.isdown = false;
}
}
};