Skip to content

Commit

Permalink
Tidied up files
Browse files Browse the repository at this point in the history
  • Loading branch information
eddiemoore committed Apr 12, 2012
1 parent d277e14 commit c894bb7
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
Binary file modified bin-debug/StructureCreator.swf
Binary file not shown.
11 changes: 11 additions & 0 deletions src/com/schemacreator/MainContext.as
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
package com.schemacreator
{

import com.schemacreator.events.SchemaEvent;
import com.schemacreator.model.SchemaModel;
import com.schemacreator.view.CreateSchemaBtnMediator;
import com.schemacreator.view.CreateSchemaBtnView;
import com.schemacreator.view.DirectorySelectMediator;
import com.schemacreator.view.DirectorySelectView;

import mx.controls.Alert;

import org.robotlegs.mvcs.Context;

public class MainContext extends Context
Expand All @@ -22,7 +25,15 @@ package com.schemacreator
mediatorMap.mapView(DirectorySelectView, DirectorySelectMediator);
mediatorMap.mapView(CreateSchemaBtnView, CreateSchemaBtnMediator);

eventDispatcher.addEventListener(SchemaEvent.SCHEMA_CREATED, onSchemaCreated);

super.startup();
}

private function onSchemaCreated(e:SchemaEvent):void
{
trace("Schema Created");
Alert.show("Your schema has been created", "Schema Created");
}
}
}
1 change: 1 addition & 0 deletions src/com/structurecreator/MainContext.as
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ package com.structurecreator
{

private var _saveProfileWindow:SaveProfileWindow;

public function MainContext()
{
}
Expand Down

0 comments on commit c894bb7

Please sign in to comment.