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.stagepackage
{
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