Can anyone tell me why this is happening. Buggy Upper Menu

3D Carousle right upper menu to left upper meny Bug

Page 1 of 1

1 Replies - 484 Views - Last Post: 25 June 2008 - 11:16 AM

#1 bmcc81  Icon User is offline

  • D.I.C Regular

Reputation: 2
  • View blog
  • Posts: 312
  • Joined: 10-July 07

Can anyone tell me why this is happening. Buggy Upper Menu

Post icon  Posted 25 June 2008 - 08:01 AM

Hi,

I've been trying for awhile now to get rid of this bug. You can check the web site out here.

My Webpage

What's happening is that when you click on the upper right menu and the go to the upper left menu what you get is the icon moves into the wrong spot. What it should do is move over beside the text and not over in the middle on no where.

THESE ARE ALL IN THREE DIFFERENT FILES.

1. This is the code for the Left Drop Down Menu.

//-----------------------------------------------------------------------------------------
// DROP UNRELEASED
//-----------------------------------------------------------------------------------------
function dropReleased(dropDownSelection)
{
	var selectDropDown:MovieClip = dropDownSelection;
	trace("dropDownSelection = "+selectDropDown);
	
	// sets the mp3SelectedOut var to true
	mp3SelectedIn = true;
	trace("mp3SelectedIn : " + mp3SelectedIn);
	
	//---- stops the scroll of the mp3 players menu
	delete _level0.menuHolder.onEnterFrame;
	
	for(var i=0;i<numOfItems;i++)
	{
		var t:MovieClip = _level0.menuHolder["item"+i];
		
		//recording the_x and _y positions for each player
		t.xPos = t._x;
		t.yPos = t._y;
		
		//setting the_x and _y "selected" coordinates for each player
		if(Stage.width >= 605)
		{
		t.destX = ((Stage.width/2 - 301)- (20*(Stage.width/2 - 345)/100) -(home.menuHolder._x));
		t.destY  =  500;
		
		}
		else
		{
		t.destX = ((Stage.width/2 - 301) - 44.4 -(home.menuHolder._x));
			t.destY  =  500;
		}
		
		//recording _xscale for each player
		t.theScale = t._xscale;
		
		//disable all mp3 player item buttons to be clicked
		delete t.icon.onRollOver;
		delete t.icon.onRollOut;
		delete t.icon.onRelease;
		
		if(t!= selectDropDown)
		{
			var tw3:Tween = new Tween(t.icon.brightness,"_alpha",Strong.easeOut,0,50,1.5,true);
			var tw4:Tween = new Tween(t.r.brightness,"_alpha",Strong.easeOut,0,50,1.5,true);
			var tw5:Tween = new Tween(lightOut,"_alpha",Strong.easeOut,0,50,1.5,true);
			_root.titleHolder.unloadMovie("level0"); //bmcc81
		}
		else
		{
			selectedItem = selectDropDown;

			//defines which playlist to load
			myPlaylist = selectDropDown.playlist;
			
			//calls the function that tell the xml to load myPlaylist
			loadPlaylist();
			
			//load and set all the details about the selected player
			inPlayerDetail();
			
			myIndic = i;
			var tw1:Tween = new Tween(t,"_xscale",Strong.easeOut,t._xscale,100,1,true);
			var tw2:Tween = new Tween(t,"_yscale",Strong.easeOut,t._yscale,100,1,true);
			//var tw3:Tween = new Tween(t,"_x",Strong.easeOut,t._x,t.destX,1,true);
			//var tw4:Tween = new Tween(t,"_y",Strong.easeOut,t._y,500,1,true);
			
			var s:Object = selectDropDown;
			
			tw2.onMotionstopped = function()
			{
				s.icon.onRelease = Delegate.create(s.icon,dropUnReleased);
				
				mp3SelectedIn = true;
				trace("mp3SelectedIn = "+mp3SelectedIn);
				
				// sets the mp3PlayerLoaded var to true
				mp3PlayerLoaded = true;
				trace("mp3PlayerLoaded : " + mp3PlayerLoaded);
							
				invBrowseBack._visible = true; 
				
				invBrowseBack.getNextHighestDepth();
			}
		}
	}// end for
};

//-----------------------------------------------------------------------------------------
// DROP UNRELEASED
//-----------------------------------------------------------------------------------------
function dropUnReleased(whichPlayer)
{
	// de-activate the invisible browseBack button
	invBrowseBack._visible = false; 
	
	// sets the mp3SelectedOut var to true
	mp3SelectedOut = true;
	trace("mp3SelectedOut : " + mp3SelectedOut);
	
	trace("name of the loaded clip : "+selectedItem._name);
	
	// deactivate the previous onRelease actions
	delete t.icon.onRelease;
	
	//unloads all the infos about the mp3 player
	outPlayerDetail();
	
	//----- determines which player do we unload
	if(whichPlayer == undefined){
		whichPlayer = this._parent;
	} else {
		whichPlayer = _level0.menuHolder["item"+myIndic];
	}
	
	//----- brings all the players back to the scrolling position
	for(var i=0;i<numOfItems;i++)
	{
		var t:MovieClip = _level0["item"+i];
		home.titleHolder.loadMovie("title.swf", "_level10");
		t.icon.back._visible = true;
		if(t != whichPlayer)
		{
			t.icon.brightness.alphaTo(0,1,"easeOutQuad");
			t.r.brightness.alphaTo(0,1,"easeOutQuad");
			lightOut.alphaTo(0,1,"easeOutQuad");
			var tw:Tween = new Tween(t,"_xscale",Strong.easeOut,0,t.theScale,1,true);
			var tw2:Tween = new Tween(t,"_yscale",Strong.easeOut,0,t.theScale,1,true);
			var tw3:Tween = new Tween(t,"_alpha",Strong.easeOut,0,100,1,true);
			unReleased();
			//home.titleHolder.unloadMovie("title.swf", "_level10"); // ( BMCC*81 )
		}
		else
		{
			t.tween("_xscale",75,1,"easeOutQuad");
			t.tween("_yscale",75,1,"easeOutQuad");
			t.tween("_x",t.xPos,1,"easeOutQuad");
			t.tween("_y",t.yPos,1,"easeOutQuad",0,unReleasedEnd1);
			unReleasedEnd();
			
			var twbmcc:Tween = new Tween(_root.viewTracks,"_alpha",Strong.easeOut,100,0,1,true);
			var twbmcc:Tween = new Tween(_root.hideTracks,"_alpha",Strong.easeOut,100,0,1,true);
			var tw:Tween = new Tween(t,"_xscale",Strong.easeOut,100,t.theScale,1,true);
			var tw2:Tween = new Tween(t,"_yscale",Strong.easeOut,100,t.theScale,1,true);
			//var tw3:Tween = new Tween(t,"_x",Strong.easeOut,t._x,t.xPos,1,true);
			//var tw4:Tween = new Tween(t,"_y",Strong.easeOut,t._y,t.yPos,1,true);
		}
	}
}
			



2. This is the code for the Right Menu

stop();

import mx.transitions.Tween;
import mx.transitions.easing.*;

var selectedNav:Number;
var newSelected;
var navButtons:Number = 4;					//how many nav buttons

var my_fmt:TextFormat = new TextFormat();
my_fmt.color = 0x231F20;
my_fmt.font = "Arial";

// positions of the nav buttons
var positions:Array = new Array("508","578","650","730");
//var positions:Array = new Array("452","521.5","595","650.5","730.5");

// names of the nav buttons
var menus:Array = new Array("about redi", "user guide", "redi support", "contact us");
var sectionVar : Array = new Array("About","Guide","Support","Contact");
//var menus:Array = new Array("about redi", "user guide", "redi support", "contact us");

//----------------------------------- NAV BUTTONS -----------------------------------
for (i=0; i<navButtons; i++) {
	
	var n = this.MenuSectionsHolder.attachMovie("navSite","navSite"+i,i+40);
	
	n.myTitle.text = menus[i];
	
	if (n._name == "navSite0") {
		n.sep._visible = false;
	} else {
		n.sep._visible = true;
	}
	
	n.onRollOut = navOut;
	n.onRelease = navRelease;
	n.onRollOver = navOver;
	
	n.myTitle.setTextFormat(my_fmt);
	n.myTitle.selectable = false;
	
	n._y = 4;
	var _f = 805 + 600*i;
	var tw:Tween = new Tween(n,"_x",Strong.easeOut,_f, positions[i],.5*i + 5,true);

	this["sep"+i]._alpha = 100;
	this["sep"+i].tween("_y",5,.5*i+1.7,"easeOutElastic",0.3+i*0.9);
}
this.navSite._visible = 0;
//----------------------------------- ON ROLLOVER -----------------------------------
function navOver() {
	
	overNav = this._name.split("e");
	//decode(overNav);
	if (selectedNav != overNav[1]) 
	{
		this.useHandCursor = true;
		my_fmt.color = 0xFFFFFF;
		this.myTitle.setTextFormat(my_fmt);
		
	} else 
	{
		this.useHandCursor = false;
	}
}
//----------------------------------- ON ROLLOUT ------------------------------------
function navOut() {
	my_fmt.color = 0x231F20;
	this.myTitle.setTextFormat(my_fmt);
}
//----------------------------------- ON RELEASE ------------------------------------

function navRelease()
{
	if(_level0.subOut == false && _level0.subIn == false 
	   && _level0.mp3SelectedIn == false && _level0.mp3SelectedOut == false
	   && _level0.DropIn == false && _level0.DropOut == false 
	   && _level0.mp3Imploding == false && _level0.mp3Exploding == false && _level0.loadingMain == false)
	
	{
		
		_level0.explode();
		
		newSelected = this._name.split("e");
		
		if (newSelected[1] != selectedNav) 
		{
			this.onEnterFrame = function(){
				
				if(_level0.selectedItem == undefined)
				{
					//---- setting var to load the new section
					_level0.newLoad = sectionVar[newSelected[1]];
					
					
					//---- setting var to unload the old section
					_level0.oldLoad = sectionVar[selectedNav];
					
					//---- starts the load/unload process
					_level0.inSection();
					
					_root.titleHolder.unloadMovie("level0"); //bmcc81
					
					delete this.onEnterFrame;
				}
			}
			
			// re-enable the previous clicked button
			var _n:Number = selectedNav;
			var n:MovieClip = this._parent["navSite"+_n];
			
			my_fmt.color = 0x231F20;
			n.myTitle.setTextFormat(my_fmt);
			n.enabled = true;
			
			// disable the new clicked button
			my_fmt.color = 0xFFFFFF;
			this.myTitle.setTextFormat(my_fmt);
			this.enabled = false;
			selectedNav = newSelected[1];
		}
	}
}



3. This file is the scrollMenu. I'm don't think this one has anything to do with it, but it might... So I added it too.

[code]//------------ ON RELEASED
function released(dropDownSelection)
{
menuHolder.tooltip._alpha = 0;
//home.titleHolder.loadMovie("title.swf", "_level10"); // ( BMCC*81 )


// sets the mp3SelectedOut var to true
mp3SelectedIn = false;
trace("mp3SelectedIn : " + mp3SelectedIn);

//creates a new var with the selection done with the dropdown Menu
var dDown = dropDownSelection;
trace("dDown = "+dDown);

//---- stops the scroll of the mp3 players menu
delete _root.menuHolder.onEnterFrame;

for(var i=0;i<numOfItems;i++)
{
var t:MovieClip = _root.menuHolder["item"+i];

//recording the_x and _y positions for each player
t.xPos = t._x;
t.yPos = t._y;

//setting the_x and _y "selected" coordinates for each player
if(Stage.width >= 605)
{
t.destX = ((Stage.width/2 - 301)- (20*(Stage.width/2 - 345)/100) -(home.menuHolder._x));
t.destY = 150;

}
else
{
t.destX = ((Stage.width/2 - 301) - 44.4 -(home.menuHolder._x));
t.destY = 150;
}

//recording _xscale for each player
t.theScale = t._xscale;

//disable all mp3 player item buttons to be clicked
delete t.icon.onRollOver;
delete t.icon.onRollOut;
delete t.icon.onRelease;
delete t.onEnterFrame;

if(t != this._parent && t!= dDown)
{
var tw:Tween = new Tween(t,"_xscale",Strong.easeOut,t._xscale,0,1,true);
var tw2:Tween = new Tween(t,"_yscale",Strong.easeOut,t._yscale,0,1,true);
var tw3:Tween = new Tween(t,"_alpha",Strong.easeOut,100,0,1,true);
var tw5:Tween = new Tween(lightOut,"_alpha",Strong.easeOut,0,50,1.5,true);

// This makes the invisibleBrowseBack go back into the right position
_level0.invBrowseBack.tween("_x",-10,.5,"easeInQuad"); // bmcc81}

var Move_invBrowseBack:Tween = new Tween(invBrowseBack, "_x", Regular.easeOut, -320, 0, 1, true); // bmcc81}
}
else
{
_root.titleHolder.unloadMovie("title.swf", "_level10"); // ( BMCC*81 )
if(dDown != undefined)
{
selectedItem = dDown;
trace("selectedItem = DropDown selection: "+selectedItem._name);

}
else
{
selectedItem = t;
trace("selectedItem = MP3 Menu selection: "+selectedItem._name);
}

//defines which playlist to load
trace("playlist: "+ t.playlist);
myPlaylist = t.playlist;

//parse the playlist xml and load myPlaylist inside the flv player
loadPlaylist();

//load and set all the details about the selected player
inPlayerDetail();

myIndic = i;
var twbmcc:Tween = new Tween(_root.viewTracks,"_alpha",Strong.easeOut,0,100,1,true);
var twbmcc:Tween = new Tween(_root.hideTracks,"_alpha",Strong.easeOut,0,100,1,true);
var tw:Tween = new Tween(t,"_xscale",Strong.easeOut,t._xscale,100,1,true);
var tw2:Tween = new Tween(t,"_yscale",Strong.easeOut,t._yscale,100,1,true);
var tw3:Tween = new Tween(t,"_x",Strong.easeOut,t._x,t.destX,.5,0.5,true);
var tw4:Tween = new Tween(t,"_y",Strong.easeOut,t._y,t.destY,0.5,true);
var tw5:Tween = new Tween(theTitle,"_alpha",Strong.easeOut,0,100,1,true);
var tw5:Tween = new Tween(content,"_alpha",Strong.easeOut,0,100,1,true);
content.text = t.content;
playlist.text = t.playlist;
theTitle.text = t.theTitle;

var s:Object = this;

tw4.onMotionstopped = function()
{
s.onRelease = unReleased;
disappear();

mp3SelectedIn = false;
trace("mp3SelectedIn = "+mp3SelectedIn);
unloadMovie("title.swf"); // ( BMCC*81 )

// sets the mp3PlayerLoaded var to true
mp3PlayerLoaded = true;
trace("mp3PlayerLoaded : " + mp3PlayerLoaded);

invBrowseBack._visible = true;

}
}//end else
}// end for
};

function inPlayerDetail()
{
//---- tooltip is set to transparent
home.tooltip._alpha = 0;

// slides in the "view tracks"
if(Stage.width <= 1920){
var destViewTracks =(Stage.width/2 - 191) - 20*(Stage.width/2 - 345)/100;
}
else
{
var destViewTracks = Stage.width/2 - (191 + 44.4);
}

viewTracks.tween("_x",destViewTracks,.5,"easeInQuad");
viewTracks.alphaTo(100,.5,"easeOutQuad");

theTitle.text = selectedItem.theTitle;
content.text = selectedItem.content;

theTitle.alphaTo(100,.5,"easeOutQuad");
content.alphaTo(100,.5,"easeOutQuad");
}

//------------ ON UNRELEASED
function unReleased(whichPlayer)
{

_root.titleHolder.loadMovie("title.swf", "_level10"); // ( BMCC*81 )

// de-activate the invisible browseBack button
invBrowseBack._visible = false;

home.tooltip._alpha = 0;

// sets the mp3SelectedOut var to true
mp3SelectedOut = true;
trace("mp3SelectedOut : " + mp3SelectedOut);

// delete the onRelease action that was set to call unReleased()
delete this.onRelease;

//unloads all the infos about the mp3 player
outPlayerDetail();

//----- determines which player do we unload
if(whichPlayer == undefined){
whichPlayer = this._parent;
} else {
whichPlayer = _level0.menuHolder["item"+myIndic];
}

var tw:Tween = new Tween(theTitle,"_alpha",Strong.easeOut,100,0,0.5,true);
var tw:Tween = new Tween(content,"_alpha",Strong.easeOut,100,0,0.5,true);

//----- brings all the players back to the scrolling position
for(var i=0;i<numOfItems;i++)
{
var t:MovieClip = _level0.menuHolder["item"+i];
home.titleHolder.loadMovie("title.swf", "_level10");
t.icon.back._visible = false; // back button
if(t != whichPlayer)
{
var tw:Tween = new Tween(t,"_xscale",Strong.easeOut,0,t.theScale,1,true);
var tw2:Tween = new Tween(t,"_yscale",Strong.easeOut,0,t.theScale,1,true);
var tw3:Tween = new Tween(t,"_alpha",Strong.easeOut,0,100,1,true);
lightOut.alphaTo(0,1,"easeOutQuad");
//home.titleHolder.unloadMovie("title.swf", "_level10"); // ( BMCC*81 )
}
else
{
var twbmcc:Tween = new Tween(_root.viewTracks,"_alpha",Strong.easeOut,100,0,1,true);
var twbmcc:Tween = new Tween(_root.hideTracks,"_alpha",Strong.easeOut,100,0,1,true);
var tw:Tween = new Tween(t,"_xscale",Strong.easeOut,100,t.theScale,1,true);
var tw2:Tween = new Tween(t,"_yscale",Strong.easeOut,100,t.theScale,1,true);
var tw3:Tween = new Tween(t,"_x",Strong.easeOut,t._x,t.xPos,1,true);
var tw4:Tween = new Tween(t,"_y",Strong.easeOut,t._y,t.yPos,1,true);

var s:Object = this;

tw.onMotionstopped = function()
{
s.onRelease = unReleased;

for(var i=0;i<numOfItems;i++)
{
var t:MovieClip = menuHolder["item"+i];
t.icon.onRollOver = Delegate.create(t.icon,over);
t.icon.onRollOut = Delegate.create(t.icon,out);
t.icon.onRelease = Delegate.create(t.icon,released);
t.onEnterFrame = mover;

// sets the mp3PlayerLoaded var to false
mp3PlayerLoaded = false;
trace("mp3PlayerLoaded : " + mp3PlayerLoaded);

// sets the mp3SelectedOut var to true
mp3SelectedOut = false;
trace("mp3SelectedOut : " + mp3SelectedOut);

// sets the selectedItem var to undefined
selectedItem = undefined;
trace ("selectedItem = "+selectedItem);
}
}
}
}
}

t.icon._x = (theTitle._x) +32;


function unReleasedEnd()
{
trace("reactivating actions for the button after UNRELEASED");
for(var j = 0; j < numOfItems; j++)
{
var t:MovieClip = _level0.menuHolder["item"+j];
//home.titleHolder.loadMovie("title.swf"); // ( BMCC*81 )
t.icon.onRollOver = Delegate.create(t.icon,over);
t.icon.onRollOut = Delegate.create(t.icon,out);
t.icon.onRelease = Delegate.create(t.icon,released);
}

menuHolder.onEnterFrame = mover;

//home.titleHolder.loadMovie("title.swf");

// sets the mp3PlayerLoaded var to false
mp3PlayerLoaded = false;
trace("mp3PlayerLoaded : " + mp3PlayerLoaded);

// sets the mp3SelectedOut var to true
mp3SelectedOut = false;
trace("mp3SelectedOut : " + mp3SelectedOut);

// sets the selectedItem var to undefined
selectedItem = undefined;
trace ("selectedItem = "+selectedItem);
}

function outPlayerDetail()
{
//------- hides buttons for the playlist management
viewTracks.tween("_x",-300,.5,"easeInQuad");
viewTracks.alphaTo(0,.5,"easeOutQuad");

hideTracks.tween("_x",-300,.5,"easeInQuad");
hideTracks.alphaTo(0,.5,"easeOutQuad");

//--------- unloads the playlist swf
plLoader.unloadMovie();

//---- stops any playing sound
playerLoader.ns.pause(true);
playerLoader.ns.seek(0);

//---- switch off the mp3 player
playerLoader.gotoAndStop(39);

//---- makes the Title and Text of the player disappear
theTitle.alphaTo(0,.5,"easeOutQuad");
theText.alphaTo(0,.5,"easeOutQuad");
tooltip.alphaTo(0,.5,"easeOutQuad");
home.tooltip._alpha = 0;
}

//------------ Moving the tooltip
function moveTip()
{
tooltip._x = _root._xmouse; //this._parent._x;
tooltip._y = 425;
}

//--------------------------------------------------------------------------------------
// FUNCTION TO MAKE THE MP3 MENU DISAPPEAR
//--------------------------------------------------------------------------------------
function explode()
{
// sets the mp3Exploding var to true
mp3Exploding = true;
trace("mp3Exploding : " + mp3Exploding);
home.tooltip._alpha = 0;

//------------------------------------------------------------
//---------- if the menu of mp3 players is visible
if(playerVisible)
{
//stop the scrolling of the menu
//delete home.menuHolder.onEnterFrame;

// --- if the selectedItem is defined, we are currently viewing a player
if(mp3PlayerLoaded = true && selectedItem!= undefined)
{
// call the function that brings the player back in the menu
unReleased(selectedItem);

this.onEnterFrame = function()
{
trace("----- waiting for the selected player to unload before EXPLOSION ");
if(selectedItem == undefined){
// we are now ready to make all the menu disappear
explosion();
delete this.onEnterFrame;
}
}
}
// --- else the selectedItem is not defined, we are browsing the menu list
else
{
// we are now ready to make all the menu disappear
explosion();
}
}
//------------------------------------------------------------
//---------- else the menu of mp3 players is not visible
else
{
trace("menu of mp3 players is not visible, no explosion necessary !");

// sets the mp3Exploding var to false
mp3Exploding = false;
trace("mp3Exploding : " + mp3Exploding);
}
}

//--------------------------------------------------------------------------------------
// FUNCTION TO REMOVE THE MP3 MENU
//--------------------------------------------------------------------------------------
function explosion()
{
// initalize the counter of MP3
mp3count++;

trace("---- deactivating actions for the button while EXPLOSION ------");
for(var i=0;i<numOfItems;i++)
{
var t:MovieClip = menuHolder["item"+i];

//deactivate the buttons
delete t.icon.onRollOver;
delete t.icon.onRollOut;
delete t.icon.onRelease;

// we store the x and y position for each of the items of the menu
// to be able to bring back all the elements in place when needed.
t.xPos = t._x;
t.yPos = t._y;

// random target position
var tempNB:Number = randRange(0,1);
if(tempNB>0)
{
t.yBoom = tempNB * 1000;
}
else
{ tempNB = -1;
t.yBoom = tempNB * 1000;
}

// tweening all the players to their respective random target
t.tween("_y", t.yBoom, 0.5, "easeOutQuad", 0.05*i);

t.alphaTo(0,0.5,"easeOutExpo", 0.05*i,endExplosion);
}
}

function endExplosion()
{
mp3count++;
//playerVisible = true;

// if mp3count = numOfItems, all the players are out of the scene and unvisible,
if(mp3count >= numOfItems)
{
// sets the mp3Exploding var to false
mp3Exploding = false;

//sets the property of the menu to false
playerVisible = false;

trace("player visible : " + playerVisible);
trace("mp3Exploding : " + mp3Exploding);
trace("mp3 items are out of the scene and de-activated");
}
}

//-------- function to randomly choose a NB between 0 and 1
function randRange(min:Number, max:Number):Number {
var randomNum:Number = Math.floor(Math.random() * (max - min + 1)) + min;
return randomNum;
}

//--------------------------------------------------------------------------------------
// FUNCTION TO BRING BACK THE MP3 SCROLLING MENU
//--------------------------------------------------------------------------------------
function implode()
{
home.tooltip._alpha = 100;

home.titleHolder.loadMovie("title.swf");

// sets the mp3Imploding var to true
mp3Imploding = true;
trace("mp3Imploding : " + mp3Imploding);

// initalize the counter of MP3
mp3count = 0;
trace("mp3 items are scrolling");

//---------- if the menu of mp3 players is not visible
if(!playerVisible)
{
// brings back the mp3items at their initial state : _y = 0 , _alpha = 100;
for(var i=0;i<numOfItems;i++)
{
var t:MovieClip = _level0.menuHolder["item"+i];

t.tween("_y", 1, -0.2, "easeOutQuad", 0.2*i); //These values help you get the look you want for the imploding
t.alphaTo(100, 0.19,"easeInQuad", 0.2*i, mp3ScrollBack1); //These values help you get the look you want for the imploding
//mp3ScrollBack();

t.icon.onRollOver = Delegate.create(t.icon,over);
t.icon.onRollOut = Delegate.create(t.icon,out);
t.icon.onRelease = Delegate.create(t.icon,released);
// sets the mp3Imploding var to false;
mp3Imploding = false;

//sets the property of the menu back to visible
playerVisible = true;

trace("player visible : " + playerVisible);
trace("mp3Imploding : " + mp3Imploding);
trace("mp3 items are scrolling");
}
}

//---------- else the menu of mp3 players is already visible waiting
else
{
trace("menu of mp3 players is already visible, no implosion necessary !");
//home.titleHolder.loadMovie("title.swf", "_level10");

// sets the mp3Imploding var to false;
mp3Imploding = false;

//sets the property of the menu back to visible
playerVisible = true;

trace("player visible : " + playerVisible);
trace("mp3Imploding : " + mp3Imploding);
trace("mp3 items are scrolling");
}
}

function mp3ScrollBack()
{
mp3count++;

// if mp3count = numOfItems, all the players are back on the scene and visible,
if(mp3count >= numOfItems)
{
trace("---- reactivating actions for the button after IMPLOSION ------");
//home.titleHolder.loadMovie("title.swf", "_level10");
for(var i=0;i<numOfItems;i++)
{
// re-activating all the clicks state on the mp3 items
var t:MovieClip = menuHolder["item"+i];

t.icon.onRollOver = Delegate.create(t.icon,over);
t.icon.onRollOut = Delegate.create&

This post has been edited by bmcc81: 25 June 2008 - 08:10 AM


Is This A Good Question/Topic? 0
  • +

Replies To: Can anyone tell me why this is happening. Buggy Upper Menu

#2 bmcc81  Icon User is offline

  • D.I.C Regular

Reputation: 2
  • View blog
  • Posts: 312
  • Joined: 10-July 07

Re: Can anyone tell me why this is happening. Buggy Upper Menu

Posted 25 June 2008 - 11:16 AM

This was my problem. It was in my implode();

Here's what I deleted


t.tween("_y", 1, -0.2, "easeOutQuad", 0.2*i);


After taking that out everything works fine.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1