Menu left-right

does anyone has any examples to do a left and right menu with autohide?

Elaborate your question, that means nothing to us :slight_smile:

ok here’s what I did so far. Now, I want to add slide rolling from left to right depending my mouseX or mouseY. How can you do that?

Here’s my code:


import mx.utils.Delegate;
import caurina.transitions.Tweener;


class slideImages
{
	private var tabImages:Array;
	private var scopeMC:MovieClip;

	
	private var IMG_SPACE:Number = 15;
	
	public function slideImages(scope:MovieClip)
	{
		scopeMC = scope;
		createThumbsMC();
		addEventsToImages();
	}
	
	private function createThumbsMC():Void
	{
		tabImages = new Array(10);
		
		var tabImagesLength:Number = tabImages.length;
		var xPos:Number = 15;
		var yPos:Number = 65;
		
		for (var i:Number=0; i < tabImagesLength; i++)
		{
			var container:MovieClip = scopeMC.imgSlideMC.attachMovie("imageMC", "imageMC"+i, scopeMC.imgSlideMC.getNextHighestDepth(), { width: 110.5, height: 65 });
			container._x = xPos;
			xPos += container.width + IMG_SPACE;
			container._y = yPos;
			
			Tweener.addTween(container, { _alpha: 50 });
			addEventsToImages(container);
			
			
			
		}
	}
	
	private function addEventsToImages(container:MovieClip):Void
	{
		container.onRelease = Delegate.create(container, handleImageClick);
		container.onRollOver = Delegate.create(container, handleImageOver);
		container.onRollOut = Delegate.create(container, handleImageOut);
	}
	
	
	private function handleImageClick():Void
	{
		trace("click");

	}

	private function handleImageOver(container:MovieClip):Void
	{
		Tweener.addTween(this, { _alpha: 100, time:1 });
		Tweener.addTween(this, { _xscale: 120, _yscale: 120, time:1.5 });
	}

	private function handleImageOut():Void
	{
		Tweener.addTween(this, { _alpha: 50, time:1 });
		Tweener.addTween(this, { _xscale: 100, _yscale: 100, time:1.5 });
	}

	
	
}

class are evil :stuck_out_tongue:

create a variable on the main swf with ymouse and xmouse, then listern _root.ymouse in the class

there are tuts on this stuff allover the shot

Most of them used xml to store external images but I only need an array to do
If you know any good one please let me know

ps: I have to use class

[QUOTE=randomagain;2350072]class are evil :stuck_out_tongue:

create a variable on the main swf with ymouse and xmouse, then listern _root.ymouse in the class

there are tuts on this stuff allover the shot[/QUOTE]