hi again,
i have a strange (strange for me) problem. i have two frames. first frame for preloader and second frame contains my dropddown menu codes. when i test with this setup, dropdown animations go very very slow. but when i delete and test, it works perfect. i think its a scoping issue but i couldnt fix it.
thanks a lot…
ps. i also uploaded a .fla (flash8)
first frame:
stop();
onEnterFrame = function () {
var total = _root.getBytesTotal();
var loaded = _root.getBytesLoaded();
perc = loaded/total*100;
yuzde_txt.text = +Math.round(perc);
c_mc._xscale = yuzde;
if (perc == 100) {
delete onEnterFrame;
nextFrame();
}
};
second frame:
stop()
import mx.transitions.easing.*;
import mx.transitions.Tween;
checkmenu()
function checkmenu() {
L = {};
L = onMouseMove=function () {
clearInterval(IntVal);
IntVal = setInterval(X, T);
var tweenThing:Tween = new Tween(menuBar, "_alpha", Strong.easeOut, menuBar._alpha, 100, 1, true);
};
Mouse.addListener(L);
function X() {
var tweenThing:Tween = new Tween(menuBar, "_alpha", Strong.easeOut, menuBar._alpha, 0, 1, true);
}
T = 20000;
IntVal = setInterval(X, T);
menuBar.onEnterFrame = function() {
trace(menuBar.menuMain._y);
if (this.menuMain.hitTest(_xmouse, _ymouse, true)) {
var tweenThing:Tween = new Tween(menuBar.menuMain, "_y", Strong.easeOut, menuBar.menuMain._y, 260, 0.5, true);
menuBar.menuMain.menuCont.setMask(null);
menuBar.menuMain.menuCont._y = -82.7;
} else {
var tweenThing:Tween = new Tween(menuBar.menuMain, "_y", Strong.easeOut, menuBar.menuMain._y, 550, 0.3, true);
menuBar.menuMain.menuCont.setMask(menuBar.menuMain.maskee);
}
};
}