Hi there, i´m having troubles with this site.
I made (in fact assemble) an sliding menu wich works fine, the thing is i realized i need liquid (fluent) layout in my site and i can´t make it work with this particular menu.
I found information an i could make work a flash movie with liquid layout but with two simple mc when i try to do the same with my menu (also an mc with some code attached) it no longer works.
Post the code to see if someone can help me, thanks!
**
movieclip:** menu_mc (this is its instance name)
code in keyframe:
/// begin sliding code
images_mc.stop();
hidden_btn._alpha = 0;
import mx.transitions.Tween;
import mx.transitions.easing.*;
var rolled_up = menu_mc._x;
var rolled_out = 0;
var menu_stat = “in”;
function slide_out() {
current_x = menu_mc._x;
var anim:Tween = new Tween(menu_mc, “_x”, Strong.easeOut, current_x, rolled_out, 1, true);
hidden_btn._x=0;
menu_mc.menu_bg_mc.enabled=false;
}
function slide_in() {
current_x = menu_mc._x;
var anim:Tween = new Tween(menu_mc, “_x”, Back.easeOut, current_x, rolled_up, 1, true);
hidden_btn._x=-1000000;
menu_mc.menu_bg_mc.enabled=true;
}
menu_mc.menu_bg_mc.onRollOver = function(){
slide_out();
}
hidden_btn.onRollOver = function(){
slide_in();
}
menu_mc.my1_btn.onRelease = function(){
images_mc.gotoAndStop(1);
}
menu_mc.my2_btn.onRelease = function(){
images_mc.gotoAndStop(2);
}
menu_mc.my3_btn.onRelease = function(){
images_mc.gotoAndStop(3);
}
/// end of sliding code
Separate i have the code (that works fine in another file and mc)
i have 2 movie clips one place as a menu on the left side and a rectangle placed in the center of the movie
izq: instance name
img: instance name
/// begin of code
Stage.scaleMode=“noScale”;
Stage.showMenu=false;
var redimencion:Object=new Object();
redimencion.onResize=function() {
imagen._x= 400;
imagen._y= 200;
imagen._width = Stage.width-400;
imagen._width = Stage.height-200-250;
izq._x= 0;
izq._y= 0;
izq._height = Stage.height;
};
Stage.addListener(miListener);
/// end of code
files
depositfiles.com/es/files/1ni76gnok
I think some of the sliding code it´s interfering with the liquid layout code.
thanks in advanced!
Roxana.