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] 2 3 4
1  PureMVC Manifold / MultiCore Version / PrepView Command -stage is null on: May 28, 2014, 07:28:48
Pulling my hair out on this one. I've used PureMVC for several years, primarily with AS3 projects.

On an AIR project I am trying to recompile, I keep getting a null stage error in my PrepViewCommand.

I cannot recall changing anything in the code, and it compiled fine the last time ( about 3 mo the ago).

Getting the following error
TypeError: Error #1009: Cannot access a property or method of a null object reference.
 PrepViewCommand.as:15]

Using Multicore PureMVC_AS3_MultiCore_1_0_5 and compiling using Flash CS6
Tried targeting AIR 3.4, 3.9 and 4.0. No difference.
Can anyone suggest some debugging steps to try?
I also notice that for some reason my StartupCommand is called twice, or at least instantiated twice



:
public class PrepViewCommand extends SimpleCommand {
override public function execute(note:INotification):void {
var app:Main=note.getBody().main as Main;


//line 15 var stage:Stage=MovieClip(app).stage;
/**
* Get the View Components for the Mediators from the app,
* which passed a reference to itself on the notification.
*/
facade.registerMediator(new StageMediator(stage, app));
facade.registerMediator(new ApplicationMediator(app));

}
}



2  Announcements and General Discussion / General Discussion / Runtime vs Compile Time Instantiation of view component classes on: February 10, 2012, 09:11:56
Hi
Working with a vendor who was created a PureMVC application but in a way I am not familiar with. All of the view component swfs are essentially 'dumb' containers with undefined library MovieClip classes which are instantiated only at runtime. They are 'composed' by their corresponding view classes and mediators. I can't see any advantages to architecting this way.
1-Almost impossible to delegate creation of self contained view components to other developers

2- All the code is compiled into the main swf, making it rather large and unwieldly.

Are there any advantages I am not aware of?
3  Announcements and General Discussion / Architecture / XML and dropdown menus-use VO(s) to wrap XML or? on: October 06, 2011, 08:24:03
Hi
Smart VO's are great when you have a single entity defined in XML, but what about say, XML for a drop down navigation?
Is there an efficient way to represent this data(multiple entities) using a single 'smart' VO, or is it better to keep the data as XML and let the views do the parsing?
4  Announcements and General Discussion / General Discussion / Cross compiling to javascript using Jangaroo on: August 23, 2011, 09:15:51
Hi
Has anyone had any success cross compiling PureMVC as3 projects to javascript using Jangaroo?
http://www.jangaroo.net/home/
5  Announcements and General Discussion / Architecture / SWFAddress+SWFObject 'gotchas' on: June 15, 2011, 02:16:26
Hi
About to start work on a major project that requires use of SWFAddress and SWFObject in conjunction with PureMVC. Working from an older code base that uses SWFAddress 2.1 and SWFObject 2.0.

Last time I worked with SWFAddress i recall some 'gotchas' in terms of browser incompatibilities.

Are there any specific 'gotchas' I should be aware of using these versions of SWFObject and SWFAddress?
6  PureMVC Manifold / MultiCore Version / SWFAddress+SWFObject 'gotchas' on: June 15, 2011, 02:15:24
Hi
About to start work on a major project that requires use of SWFAddress and SWFObject in conjunction with PureMVC. Working from an older code base that uses SWFAddress 2.1 and SWFObject 2.0 along with singleCore PureMVC(which I am updating to multicore)

Last time I worked with SWFAddress i recall some 'gotchas' in terms of browser incompatibilities.

Are there any specific 'gotchas' I should be aware of using these versions of SWFObject and SWFAddress?
7  PureMVC Manifold / MultiCore Version / Controllers as Mediators? on: December 30, 2010, 02:15:22
Hi
Doing a lot of coding in Objective C lately, where mvc is really 'mvC', most of your application logic resides in viewControllers and this Controller functions primarily as a mediator between your model and view component.

I was wondering if and when it would make sense to apply the same logic to a PureMVC as3 project. ie instead of using a traditional PureMVC mediator, map a Controller command to a notification in your facade, and dump a lot of your view specific logic into this command.

Could anyone suggest or supply an example of architecting your application this way?
8  PureMVC Manifold / MultiCore Version / AS3Signals with PureMVC? on: December 17, 2010, 03:22:37
Hi<br>
trying to convert and existing PureMVCMultiCore project to use AS3Signals. I understand the basic idea in using bubbling with signals
    http://www.dehash.com/?p=241


but I'm stuck in trying to get my DeluxeSignal to 'bubble' up to my mediator, something I implement in almost all of my PureMVC projects.

Has anyone tried to replace events with AS3 signals, and, if so, how did you overcome this?
9  Announcements and General Discussion / Architecture / AS3 Signals..how to 'bubble' up to mediator?? on: December 02, 2010, 02:30:04
Hi<br>
trying to convert and existing PureMVCMultiCore project to use AS3Signals. I understand the basic idea in using bubbling with signals
    http://www.dehash.com/?p=241


but I'm stuck in trying to get my DeluxeSignal to 'bubble' up to my mediator, something I implement in almost all of my PureMVC projects.

Has anyone tried to replace events with AS3 signals, and, if so, how did you overcome this?
10  Announcements and General Discussion / Public Demos, Tools and Applications / Rogers HD Devices launch on: November 16, 2010, 01:11:51
Created in conjunction with my employer Publicis. Lots of After Effects and alpha'd video. I ended up using MultiCore and LoaderMax to handle assets loading.

http://www.rogers.com/web/content/hd-devices/
11  Announcements and General Discussion / Architecture / One Way Deep Linking, grabbing a querystring, when and where? on: September 01, 2010, 01:56:28
Hi
A project requirement is that it be 1 way deeplinkable(a specific query string will load a section within the swf).

I have a URLProxy that I use for all external linking.
It makes sense to me to put the query string logic in this proxy.

So in the constructor, I check for a querystring, and then send a notification if it equals a predefined value.

One problem with this is that I'd like to predefine this query string key value I am checking against in an external xml file.

So another proxy, loads-parses this config xml, then the URL proxy checks against this.

Is there a better approach to what I am trying to do?



12  Announcements and General Discussion / Architecture / Best Practice for trackinga user's history (breadcrumbs) on: July 15, 2010, 09:58:27
I've used SWFAddress, but it seems full of quirks, and not fully implemented in all browsers. I don't necessarilly need deep linking, rather I simply need to track a users history as he she travels thru a flash application (user stays in application).

Any suggestions, desgin pattern recommendations, code examples?
13  Announcements and General Discussion / Architecture / A PureMVC architecture for games on: June 16, 2010, 12:00:29
Hi
I'm no game coding expert, but I've seen and had to revise many home grown -spaghetti code game engines.

For a simple(non-database) game, where you need to track and increase the score, notify the user(you lose, you win etc) that requires basic keyboard interaction, would puremvc be overkill?

If not could someone suggest 'best practice' for architecting?

What logic if any would be in the model, or would the model simply be maintaining application state?
How much logic to put in controllers vs views, etc?

Any feedback appreciated!


14  Announcements and General Discussion / Architecture / A PureMVC architecture for games on: June 16, 2010, 12:00:16
Hi
I'm no game coding export, but I've seen and had to revise many home grown -spaghetti code game engines.

For a simple(non-database) game, where you need to track and increase the score, notify the user(you lose, you win etc) that requires basic keyboard interaction, would puremvc be overkill?

If not could someone suggest 'best practice' for architecting?

What logic if any would be in the model, or would the model simply be maintaining application state?
How much logic to put in vicontrollers vs views, etc?

Any feedback appreciated!


15  Announcements and General Discussion / Architecture / Concept of 'ViewController' in a PureMVC application on: May 21, 2010, 02:03:10
Having gone thru most of Apple's Objective-C documentation on 'View Controllers', I am somewhat confused by how this term is used.
Objective C descends directly from Smalltalk so am I correct in assuming that a viewcontroller as used in Objective C is a more 'pure' implementation of what a Controller object should be in any MVC based application?

Initially, in coming from an AS3 and PureMVC framework, I though of ObjC view Controller's as being like composite views that also encompassed some of the responsibility of mediators in a PureMVC based application (handling of initialization, hiding and showing of views)

Has anyone else though about this and has working with other languages with MVC based frameworks influenced how you distribute your logic and responsibilities in Actionscript based projects?
Pages: [1] 2 3 4