pausar as actions
Ae, to fazendo um site em flash e to com problemas na hora do MENU
eu peguei o Menu do site do MC Tween e só modifiquei os botoes ...
mas quando clica em certo botao, eu chamo um mc externo de animaçãozinha em cima do botão, e eu queria que quando essa animação fosse chamada, as actions do mc principal parassem por uns 3 segundos (tempo da animacao) ... mas nao sei como fazer isso por isso to pedindo ajuda... aki vai as acitions do mc principal:
// movieclip (or from some component).
// This is an array, a list of the buttons used.
var myButtons = [this.mybutton_1, this.mybutton_2, this.mybutton_3, this.mybutton_4, this.mybutton_5, this.mybutton_6];
// Loops on all buttons from the first to the last one
for (var i=0; i<myButtons.length; i++) {
// Sets its original Y value. This will be used later for reference.
myButtons*.originalY = myButtons**._y;*
*
// When the mouse rolls over this menu option... go down just a bit.*
*
// NOTICE _linenums:0'>// Includes the tweening extensions.#include "mc_tween2.as"// Assigns each button its own functions.// Of course, these buttons were created at design time, on the Flash IDE itself.// Usually, you wouldn't do that with serious projects, you'd create them dinamically from some "template"// movieclip (or from some component).// This is an array, a list of the buttons used.var myButtons = [this.mybutton_1, this.mybutton_2, this.mybutton_3, this.mybutton_4, this.mybutton_5, this.mybutton_6];// Loops on all buttons from the first to the last onefor (var i=0; i<myButtons.length; i++) { // Sets its original Y value. This will be used later for reference. myButtons.originalY = myButtons._y; // When the mouse rolls over this menu option... go down just a bit. // NOTICE: I'm not taking into consideration the problem of having the hit area going down and "moving" the // mouse area and out of the button (possible rollover flicking). This is just a simple example afterall. myButtons.onRollOver = function() { this.tween("_y", this.originalY + 5, 1); }; // When the mouse exits the menu option.. go back up. myButtons.onRollOut = myButtons.onReleaseOutside = function() { this.tween("_y", this.originalY, 0.5); }; // When the mouse clicks.. activate it! myButtons.onRelease = function() { this._parent.activateItem (this); // *** Add some function here or somewhere else to handle real button actions! if(this==_level0.mybutton_1) { loadMovie("linhas1.swf", linhas); linhas._alpha = 90; // AQUI } if(this==_level0.mybutton_2) { loadMovie("linhas2.swf", linhas); linhas._alpha = 90; // AQUI } };}this.activateItem = function(item) { // Function that activates a button. // Checks if there's an activated item already; if so, deactivates it. if (this.currentItem != false) this.deActivateItem(); // Activates it, finally this.currentItem = item; this.currentItem.tween("_y", this.currentItem.originalY + 10, 0.3); this.currentItem.alphaTo (95, 1); // makes it 'disabled' this.currentItem.enabled = false; // makes it a disabled button, so it won't receive mouse events};this.deActivateItem = function() { // Deactivates the current activated menu item. if (this.currentItem==_level0.mybutton_2) { unloadMovie(linhas); loadMovie("linverso2.swf", linhas); linhas._alpha = 90; // AQUI } this.currentItem.enabled = true; // back to a normal button/movieclip this.currentItem.alphaTo (100, 0.5); // back to its original opacity this.currentItem.tween("_y", this.currentItem.originalY, 0.5); // back to its original position this.currentItem = undefined;};this.stop();
*
AQUI: onde ta escrito isso é os lugares que deve ter o pause .... quem puder ajudar, please =)
*
valew*
Discussão (2)
Carregando comentários...