# Please help with this code

**URL:** <https://forum.kirupa.com/t/please-help-with-this-code/291711>\
**Category:** Uncategorized\
**Created:** [July 3, 2009, 4:04pm UTC](https://forum.kirupa.com/t/please-help-with-this-code/291711 "2009-07-03T16:04:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Leo75](https://avatars.discourse-cdn.com/v4/letter/l/779978/32.png) [@Leo75](https://forum.kirupa.com/u/Leo75)\
**Post date:** [July 3, 2009, 4:04pm UTC](https://forum.kirupa.com/t/please-help-with-this-code/291711/1 "2009-07-03T16:04:24Z")

</div>

[SIZE=3][FONT=Times New Roman]Hello everyone![/FONT][/SIZE]  
[SIZE=3][FONT=Times New Roman]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”…[/FONT][/SIZE]  
[SIZE=3][FONT=Times New Roman]I am able to “load” the area pics that I need or the frame is “showing”…[/FONT][/SIZE]  
[SIZE=3][FONT=Times New Roman]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?[/FONT][/SIZE]  
[SIZE=3][FONT=Times New Roman]Here is the code and the file…[/FONT][/SIZE]  
[FONT=Times New Roman][SIZE=3] [/SIZE][/FONT]

```auto

_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("
");
	
	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("
");
	
	_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();

```
