It's a small project at this stage, nothing complex, just a StartupCommand with mediator initializations and a notification, kindly have a look.
That site (filefactory.com) is awful! 500 ads per page, pops up videos in separate windows and then makes you wait to download the file while telling you that you could download it right away if you paid for their premium service. Ugh! Highly NOT recommended.
But I waited and I downloaded the file. It has your entire SVN tree inside it.
Here's a really handy tip for everyone: When you share an SVN project from Eclipse/FlashBuilder, do it by right clicking on the project, and selecting Team->Export. Direct it to a folder on your desktop, and you have just your files, with all the .svn folders stripped.
And: If you're on a Mac, *please* remove the _MACOSX folder tree that can nearly double the number of files the the zip file by including a separate copy of every folder.
nothing complex, just a StartupCommand with mediator initializations and a notification
As a result of the SVN and _MACOSX cruft, your zip file containing a project that you describe as has
641 files in it.
I'm disinclined to go further into trying to make use of this file. But I don't need to, really.
We're looking at an ActionScript problem here, not a PureMVC problem.
I suggest you reproduce the problem in a petri-dish. This is AS3 troubleshooting 101. Make a simple class, not a PureMVC class at all, just a class that instantiates DragRace.as (comment out the ApplicationFacade import and reference in DragRace.as first). Then in your simple class, do:
public class TestClass {
public var viewComponent:Object = new DragRace();
private function get dragRace():DragRace {
return viewComponent as DragRace;
}
public function TestClass {
dragRace.showMenu(); //works fine here
//viewComponent.showModal(); //works fine, method exists and gets called ???
dragRace.showModal(); //throws inaccessible method error ???
}
}
In a new MXML application, create a button that the click event triggers a the creation of a TestClass instance. Set a debugger breakpoint on the first line of the TestClass constructor and hit debug. Step through the code and see what happens.
-=Cliff>