package com.fourD.core { import flash.events.Event; import flash.events.EventDispatcher; import flash.events.IEventDispatcher; import com.fourD.core.TectonEvent; import mx.events.CollectionEvent; public class Pheron { /** This property is injected by the application. */ [Bindable] public var dispatcher:IEventDispatcher; /** * urls look like this: * [{view:myView, viewAction:"show", model:myContentID, modelAction:"create"} * {view:anotherView, viewAction:"hide", model:myContentID, modelAction:"show"}] * In turn, the PathwayEvent is picked apart by the TectonManager which * figures out how to sequence tectons (actions on system objects) */ public function gotoUrl(url:Array):void { var event:PathwayEvent = new PathwayEvent(PathwayEvent.TRAVERSE); event.url = url; dispatcher.dispatchEvent(event); } public function Pheron() { } } }