Jump to content


Photo

Actionscript De Menu


  • Faça o login para participar
1 reply to this topic

#1 Slater

Slater

    Novato no fórum

  • Usuários
  • 5 posts
  • Sexo:Não informado

Posted 10/02/2009, 23:52

Seguinte tenho um menos em flash que usa a ActionScript abaixo ...
Queria saber como coloco Target nesse menu ...
Obrigado

ActionScript:
menu_item_group.menu_item._visible = false;
var menu_label:Array = new Array("Home", "O DJ", "Fotos", "Musicas", "Agenda", "Contato");
var total:Number = menu_label.length;
var distance_x:Number = 82;
var i:Number = 0;

for(; i < total; i++ )
{
	menu_item_group.menu_item.duplicateMovieClip("menu_item"+i,i);
	menu_item_group["menu_item"+i].over = true;
	menu_item_group["menu_item"+i].item_label = menu_label[i];
	menu_item_group["menu_item"+i].item_no = i;
	menu_item_group["menu_item"+i]._x = i * distance_x;
}
function change_page(no):Void
{
	for( i = 0; i < total; i++ )
	{
		menu_item_group["menu_item"+i].flashmo_button._visible = true;
		menu_item_group["menu_item"+i].over = true;
		menu_item_group["menu_item"+i].flashmo_button.onRollOver = function() 
		{
			this._parent.over = false;
		}
		menu_item_group["menu_item"+i].flashmo_button.onRollOut = menu_item_group["menu_item"+i].flashmo_button.onDragOut = function() 
		{
			this._parent.over = true;
		}
		menu_item_group["menu_item"+i].flashmo_button.onRelease = function() 
		{
			_root.change_page(this._parent.item_no);
		}
		menu_item_group["menu_item"+i].onEnterFrame = function() 
		{
			if( this.over == true ) this.prevFrame();
			else this.nextFrame();
		}
	}
	delete menu_item_group["menu_item"+no].flashmo_button.onRollOut;
	menu_item_group["menu_item"+no].flashmo_button._visible = false;
	menu_item_group["menu_item"+no].over = false;
	_root.page = no + 1;
	_root.play();
}
change_page(0);


#2 rafa123

rafa123

    Novato no fórum

  • Usuários
  • 1 posts
  • Sexo:Não informado

Posted 17/08/2009, 20:52

boa noite, sou novo em programação enfrento o mesmo problema se alguem puder ajudar agradeço. Valeu.




1 user(s) are reading this topic

0 membro(s), 1 visitante(s) e 0 membros anônimo(s)

IPB Skin By Virteq