Created
March 19, 2013 13:40
-
-
Save jbuda/5196171 to your computer and use it in GitHub Desktop.
Maineventmap.mxml
This file contains 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
<?xml version="1.0" encoding="utf-8"?> | |
<EventMap xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="http://mate.asfusion.com/"> | |
<mx:Script> | |
<![CDATA[ | |
import mx.events.FlexEvent; | |
import com.progressbar.events.*; | |
import com.progressbar.managers.*; | |
import com.progressbar.views.model.*; | |
import com.progressbar.views.*; | |
]]> | |
</mx:Script> | |
<EventHandlers type="{FlexEvent.PREINITIALIZE}"> | |
<ObjectBuilder generator="{ProgressBarManager}" registerTarget="true" /> | |
</EventHandlers> | |
<EventHandlers type="{ProgressBarEvent.INCREASE}"> | |
<MethodInvoker generator="{ProgressBarManager}" method="increaseProgressBar" /> | |
</EventHandlers><span style="white-space: pre;"> </span> | |
<Injectors target="{ProgressBarModel}"> | |
<PropertyInjector targetKey="dispatcher" source="{scope.dispatcher}"/> | |
<PropertyInjector targetKey="bytesLoaded" source="{ProgressBarManager}" sourceKey="bytesLoaded" /> | |
<PropertyInjector targetKey="bytesTotal" source="{ProgressBarManager}" sourceKey="bytesTotal" /> | |
</Injectors> | |
<Injectors target="{ProgressBar}"> | |
<PropertyInjector source="{ProgressBarModel}" targetKey="model" /> | |
</Injectors> | |
</EventMap> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment