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 ... 6
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  Announcements and General Discussion / General Discussion / Re: Thoughts on Robotlegs on: December 19, 2010, 05:41:14
I'm more familiar with PureMVC having used it on a dozen small to mid size microsites the past couple years. I've recently started learning RL primarilly to see for myself what advantages it may have.
My 2 cents worth, the advantages of having to write less boilerplate code come at the cost of increased complexity under the hood. And in my experience, Puremvc definitely leaves a 'smaller footprint' in terms of compiled code, though I think that is primarilly due to the inclusion of swift suspenders. Both are fantastic framweworks, someone new to both might find RL a little easier to implement at first, though for an experienced Puremvc dev, I find litttle reason to jump to RL other than as a learning excercise.
9  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?
10  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?
11  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/
12  Announcements and General Discussion / Architecture / Re: One Way Deep Linking, grabbing a querystring, when and where? on: September 01, 2010, 02:53:11
Seems kind of kludgy, but this is working for me.
Would appreciate feedback.

1st need to ensure my popUpView has been added to the stage and let its mediator know. By default popUpView's alpha is 0 when 1st added to stage.

So, in my popUpView I dispatch a generic event when added.

Then in my popUpMediator's event handler I check for a predefined key value pair in my URLProxy.

if(urlProxy.parameters['promotion']=='1')openPopup();

Not sure if this is the 'best' approach, would appreciate any feedback.
13  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?



14  Announcements and General Discussion / Architecture / Re: Best Practice for trackinga user's history (breadcrumbs) on: July 15, 2010, 07:21:44
thanks Cliff
15  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?
Pages: [1] 2 3 ... 6