PureMVC Architects Lounge

Announcements and General Discussion => Getting Started => Topic started by: deltajam on November 30, 2007, 11:44:23



Title: MacroCommands and Assets
Post by: deltajam on November 30, 2007, 11:44:23
What would be the best sequence of events for initializing:

Splash.swf (includes loader)
Intro.swf
Background.swf
Proxy1
Proxy2
Proxy3
StageAssets.swf

Only the StageAssets are dependant on the proxies.  If I was using the StartupCommand Class:

:
package com.me.myapp.version1.controller
{
    import org.puremvc.interfaces.ICommand;
    import org.puremvc.patterns.command.*;
   
    import com.me.myapp.version1.ApplicationFacade;

    public class StartupCommand extends MacroCommand implements ICommand
    {

        override protected function initializeMacroCommand() : void   
        {
addSubCommand(com.me.myapp.version1.controller.AssetPrepCommand);
addSubCommand(com.me.myapp.version1.controller.ModelPrepCommand);
addSubCommand(com.me.myapp.version1.controller.ViewPrepCommand);
}
    }
}

Would the AssetPrepCommand fall under the view anyways?  Just need a little guidance to get me started ...


Title: Re: MacroCommands and Assets
Post by: puremvc on November 30, 2007, 02:28:32
It depends on what AssetPrepCommand is intended for.

Most likely it is really part of the View preparation where you're creating mediators and attaching them to view components (such as clips on the stage.

-=Cliff>


Title: Re: MacroCommands and Assets
Post by: deltajam on December 06, 2007, 10:37:13
Good call.  This post (http://forums.puremvc.org/index.php?topic=91.msg328#msg328 (http://forums.puremvc.org/index.php?topic=91.msg328#msg328)) also really helped me out.

Sorry for the late response, I really appreciate your feedback Cliff.