Please help with this code...
Hello everyone!
This time I am trying to “load” just specific areas of the code… It’s a matrix of 3x3 so when the frame is moving around it will load just the pics that the frame is “showing”…
I am able to “load” the area pics that I need or the frame is “showing”…
BUT, cant zoom into them… When I try to zoom, it just gets messy… No idea so far why is this happening…
Can anyone help me out, pls?
Cheers!
Leandro.
Code:
_global.m_z_const = 1;
mc_area_1._visible = false;
mc_area_2._visible = false;
mc_area_3._visible = false;
mc_area_4._visible = false;
mc_area_5._visible = false;
mc_area_6._visible = false;
mc_area_7._visible = false;
mc_area_8._visible = false;
mc_area_9._visible = false;
function check_where()
{
mc_movies_area.mc_area_1._visible = false;
mc_movies_area.mc_area_2._visible = false;
mc_movies_area.mc_area_3._visible = false;
mc_movies_area.mc_area_4._visible = false;
mc_movies_area.mc_area_5._visible = false;
mc_movies_area.mc_area_6._visible = false;
mc_movies_area.mc_area_7._visible = false;
mc_movies_area.mc_area_8._visible = false;
mc_movies_area.mc_area_9._visible = false;
m_x_pos = Math.floor((_root.mc_load_bird_frame._x / (300)));//*(_global.m_z_const))));
m_y_pos = Math.floor((_root.mc_load_bird_frame._y / (250)));//*(_global.m_z_const))));
trace("X = "+(m_x_pos+1)+" Y = "+(m_y_pos+1));
trace("Xa = "+(m_x_pos+1)+" Ya = "+(m_y_pos+2));
trace("Xb = "+(m_x_pos+2)+" Yb = "+(m_y_pos+1));
trace("Xc = "+(m_x_pos+2)+" Yc = "+(m_y_pos+2));
trace("\n");
m_area_main = (((m_y_pos+1)-1)*3)+(m_x_pos+1);
m_area_main_x_1 = (((m_y_pos+2)-1)*3)+(m_x_pos+1);
m_area_main_y_1 = (((m_y_pos+1)-1)*3)+(m_x_pos+2);
m_area_main_xy_1 = (((m_y_pos+2)-1)*3)+(m_x_pos+2);
trace(m_area_main);
trace(m_area_main_x_1);
trace(m_area_main_y_1);
trace(m_area_main_xy_1);
trace("\n");
_root.mc_movies_area["mc_area_"+m_area_main]._visible = true;
_root.mc_movies_area["mc_area_"+m_area_main_x_1]._visible = true;
_root.mc_movies_area["mc_area_"+m_area_main_y_1]._visible = true;
_root.mc_movies_area["mc_area_"+m_area_main_xy_1]._visible = true;
}
_root.mc_load_bird_frame.mc_up_arrow.onPress = function()
{
_root._y += 10;
_root.mc_load_bird_frame._y -= 10;
//trace(_root.mc_load_bird_frame._y);
check_where();
}
_root.mc_load_bird_frame.mc_down_arrow.onPress = function()
{
_root._y -= 10;
_root.mc_load_bird_frame._y += 10;
//trace(_root.mc_load_bird_frame._y);
check_where();
}
_root.mc_load_bird_frame.mc_left_arrow.onPress = function()
{
_root._x += 10;
_root.mc_load_bird_frame._x -= 10;
//trace(_root.mc_load_bird_frame._x);
check_where();
}
_root.mc_load_bird_frame.mc_right_arrow.onPress = function()
{
_root._x -= 10;
_root.mc_load_bird_frame._x += 10;
//trace(_root.mc_load_bird_frame._x);
check_where();
}
//zoom in
_root.mc_load_bird_frame.mc_z_in.onPress = function()
{
trace("z in");
_root.mc_movies_area._xscale = _root.mc_movies_area._xscale*2;
_root.mc_movies_area._yscale = _root.mc_movies_area._yscale*2;
_global.m_z_const++;
}
//zoom out
_root.mc_load_bird_frame.mc_z_out.onPress = function()
{
trace("z out");
_root.mc_movies_area._xscale = _root.mc_movies_area._xscale/2;
_root.mc_movies_area._yscale = _root.mc_movies_area._yscale/2;
_global.m_z_const--;
}
stop();
Attached Files
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Click Here to Expand Forum to Full Width