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

Show Posts

* | |

  Show Posts
Pages: [1]
1  Announcements and General Discussion / General Discussion / drawing my own conceptual diagram using visio or kdraw? on: June 09, 2008, 10:28:40
are there any templates floating around out there for modeling pureMVC applications in visio or kdraw (or similar software)?

it looks pretty basic and i'm sure i could whip something up, but if someone has already done the work of putting a template together and is willing to post it that would be awesome  :)
2  Announcements and General Discussion / Getting Started / Re: Better startup idiom on: April 17, 2008, 11:11:12
I have a question regarding what to pass when calling startup() on ApplicationFacade in an as3 project.

In Cliff's HelloFlash example, he is passing this.stage

:
package
{
import flash.display.MovieClip;
import org.puremvc.as3.demos.flash.helloflash.ApplicationFacade;

public class HelloFlash extends MovieClip
{
public function HelloFlash()
{
ApplicationFacade.getInstance().startup( this.stage );
}
}
}

however, in Lee's renju example he passes just this ...

:
package
{
import application.ApplicationFacade;
import flash.display.Sprite;

public class Main extends Sprite
{
private var facade:ApplicationFacade;

public function Main()
{
facade = ApplicationFacade.getInstance();
facade.sendNotification(ApplicationFacade.STARTUP, this);
}
}
}

i understand this will effect where children are attached (either to the stage with this.stage, or as siblings of the stage if you pass in this) but is either method preferable for any reasons?

thanks in advance for any insight or discussion  :)
Pages: [1]