Permalink
Browse files

switched the authentication to a service..

  • Loading branch information...
1 parent af88220 commit 30483f638fa081bca5c9016f6aed4e4514cddba5 @seanhess committed May 1, 2009
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns:view="login.view.*" xmlns:glue="login.glue.*">
- <glue:MainGlue/>
+<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns:view="login.view.*" xmlns:glue="login.glue.*" xmlns:control="login.control.*">
+ <control:MainGlue/>
<view:MainView/>
</mx:Application>
@@ -8,6 +8,8 @@
</mx:Script>
<!-- SERVICES :: These could be in another file -->
+ <service:Authentication id="auth" app="{app}" nav="{nav}" loginService="{login}" logoutService="{logout}" parse="{authParser}"/>
+
<mx:HTTPService id="login" url="../server/login.php" resultFormat="object"/>
<mx:HTTPService id="logout" url="../server/logout.php" resultFormat="object"/>
@@ -22,7 +24,6 @@
<!-- CONTROLLERS -->
- <control:Authentication id="auth" app="{app}" nav="{nav}" loginService="{login}" logoutService="{logout}" parse="{authParser}"/>
<Glue>
<view:MainView id="mainView"/>
@@ -1,4 +1,4 @@
-package login.control
+package login.service
{
import flash.events.Event;

0 comments on commit 30483f6

Please sign in to comment.