Return to Snippet

Revision: 30677
at August 19, 2010 04:36 by derrekwayne


Updated Code
package com.neonsunburst {
	
	import flash.display.MovieClip;
	import com.neonsunburst.*;
	
	public class Navigation extends MovieClip {
		
		var model:Model;
		var controller:Controller;
		var left :Arrow;
		var right:Arrow;
		
		function Navigation(aModel:Model, aController) 
		{
			
			this.model = aModel;
			this.controller = aController;

			this.left = new Arrow(model, controller);
			left.theDirection = "left";
			addChild(left);
			
			this.right = new Arrow(model, controller);
			addChild(right);
			right.scaleX = -1;
			right.theDirection = "right";
		}
		
		function activate() : void {
			left.activate();
			right.activate();
		}
		
		function unActivate() : void {
			left.unActivate();
			right.unActivate();
			
		}
	}
}

Revision: 30676
at August 19, 2010 04:19 by derrekwayne


Initial Code
package com.neonsunburst {
	
	import flash.display.MovieClip;
	import flash.utils.Timer;
	import flash.events.TimerEvent;
	import com.neonsunburst.*;
	
	public class Navigation extends MovieClip {
		
		var model:Model;
		var controller:Controller;
		var left :Arrow;
		var right:Arrow;
		
		function Navigation(aModel:Model, aController) 
		{
			
			this.model = aModel;
			this.controller = aController;

			this.left = new Arrow(model, controller);
			left.theDirection = "left";
			addChild(left);
			
			this.right = new Arrow(model, controller);
			addChild(right);
			right.scaleX = -1;
			right.theDirection = "right";
		}
		
		function activate() : void {
			left.activate();
			right.activate();
		}
		
		function unActivate() : void {
			left.unActivate();
			right.unActivate();
			
		}
	}
}

Initial URL
neonsunburst.com

Initial Description
The Navigation class is a view that contains all the two navigation arrows, ie. left and right.

Initial Title
neonsunburst Navigation Class

Initial Tags
actionscript, navigation

Initial Language
ActionScript 3