/ Published in: ActionScript 3

The Navigation class is a view that contains all the two navigation arrows, ie. left and right.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
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(); } } }
URL: neonsunburst.com
Comments
