This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function doURLRequestChain() : void | |
{ | |
var eventChain : EventChain = new EventChain( dispatcher ); | |
eventChain.addStep( new EventChainStep( new UserEvent( UserEvent.LOAD_USER_IMAGE ) ) ); | |
eventChain.addStep( new EventChainStep( new UserEvent( UserEvent.USER_PROCESSING_COMPLETE ) ) ); | |
eventChain.start(); | |
} | |
[EventHandler( event="UserEvent.LOAD_USER_IMAGE" )] | |
/** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[EventHandler( event="com.foo.events.UserEvent.ADD_USER" )] | |
public function handleAddUserEvent( event:UserEvent ):void | |
{ | |
// do stuff | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<foo> | |
<boo /> | |
</foo> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.swizframework.quickswiz.controller | |
{ | |
import org.swizframework.quickswiz.model.User; | |
import org.swizframework.quickswiz.service.UserService; | |
import mx.controls.Alert; | |
import mx.rpc.events.ResultEvent; | |
import org.swizframework.utils.services.ServiceHelper; | |
public class UserController | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.swizframework.testapp.control | |
{ | |
import org.swizframework.testapp.event.MyEvent; | |
import flash.events.IEventDispatcher; | |
public class MyController | |
{ | |
[Dispatcher] | |
public var dispatcher : IEventDispatcher; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.swizframework.quickswiz.controller | |
{ | |
import org.swizframework.quickswiz.service.UserService; | |
public class UserController | |
{ | |
[Inject] | |
public var userService : UserService; | |
[PostConstruct] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<swiz:BeanProvider | |
xmlns:swiz="http://swiz.swizframework.org" xmlns:service="org.swizframework.quickswiz.service.*" | |
xmlns:controller="org.swizframework.quickswiz.controller.*"> | |
<service:UserService id="userService"/> | |
<controller:UserController id="userController"/> | |
<!-- We'll use the Swiz ServiceHelper to help simulate a server-side call. --> | |
<swiz:ServiceHelper id="serviceHelper" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<swiz:Swiz> | |
<swiz:beanProviders> | |
<swiz:BeanProvider> | |
<swiz:Bean name="applicationModel"> | |
<model:ApplicationModel /> | |
</swiz:Bean> | |
<swiz:Bean name="userController"> | |
<control:UserController /> | |
</swiz:Bean> | |
</swiz:BeanProvider> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<swiz:SwizConfig | |
strict="true" | |
mediateBubbledEvents="true" | |
eventPackages="myapp.event" | |
viewPackages="myapp.view" | |
beanLoaders="{[Beans]}" /> | |