Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought


Over 10 years of community discussion and knowledge are maintained here as a read-only archive.

New discussions should be taken up in issues on the appropriate projects at https://github.com/PureMVC

Pages: [1]
Print
Author Topic: MacroCommands and Assets  (Read 8180 times)
deltajam
Courseware Beta
Full Member
***
Posts: 25


View Profile Email
« 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 ...
Logged
puremvc
Global Moderator
Hero Member
*****
Posts: 2871



View Profile WWW Email
« Reply #1 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>
Logged
deltajam
Courseware Beta
Full Member
***
Posts: 25


View Profile Email
« Reply #2 on: December 06, 2007, 10:37:13 »

Good call.  This post (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.
Logged
Pages: [1]
Print