I have two problems that I need help with:
Below… loadnav_mc loads a swf movie that right now appears at either 0 or 100% alpha when you put your mouse at the cooridinates shown below ( I am doing this this way because I have animated rollovers that happen on top of the grey bar when it appears)
This is working just great but I want the to control the fade rate on the alpha so it truly fades in and out not just go on or off. That’s the first problem.
The second problem is that this is a liquid layout and all of the elements and their positions are controlled by the stage listener. The problem occurs with the position of the root._ymouse when the window is resized. It stays fixed and does not adjust to the resizing of window…does that make sense?
If anybody could help with this I would greatly appreciate it…I am at the end of my rope.
Thanks in advance.
ActionScript Code:
//
loadnav_mc.loadMovie(“brand_nav.swf”);
//your code
this.onEnterFrame = function() {
trace(_root._ymouse);
if (_root._ymouse> 400 && _root._ymouse< 460) {
loadnav_mc._alpha = 100;
} else {
loadnav_mc._alpha = 0;
}
};
Stage.addListener(sizeListener);
setStage();
var stageListener:Object = new Object();
Stage.addListener(stageListener);
stageListener.onResize = function() {
setStage();
};
function setStage() {
var WIDTH:Number = Stage.width;
var HEIGHT:Number = Stage.height;
loadnav_mc._y = (Stage.height ±330)/2;
loadnav_mc._x =Stage.width /2;
nav2._y = (Stage.height +300)/2;
nav2._x = Stage.width/2;
}