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 / Re: Mediator having a reference to a view on: January 04, 2012, 11:41:50
here is my query, i have depicted it here :




SystemView, is actually a layer above all other layers ( movieclips), that handles the task ( similar to an OS, like handling popups, showing effects, messages etc )

MyView, is some component below the SystemView movieclip .

My query is, if it is legal to call MyView member function to call directly from SystemMediator ? Or there is another correct way of doing this.

Thanks
V.


2  Announcements and General Discussion / General Discussion / Mediator having a reference to a view on: January 02, 2012, 01:17:43
I am having a reference to a viewComponent class ( say A_View )  inside a mediator ( SystemMediator ) . So naturally SystemMediator can use the reference of this viewcomponent to access all the member functions of A_View.  So, is this ok ? I am doubtful ? Should i use sendNotification to access the A_Mediator and then access the member function of A_View. But why should i adopt this roundabout way when reference is present in SystemMediator.

Thanks.
V.


3  Announcements and General Discussion / General Discussion / Re: Adding Listener to componentDataProxy ? on: December 03, 2011, 12:44:37
amm..ok,thanks

I am actually getting confused with the role of proxy here. Proxy is so much visible in all the mediators, that it can be accessed from all of them. Then why would anyone go through Commands in between, as a lazy programmer would always like to access proxy rathar then planning it to be accessed via Commands.

Thanks
Vishwas
4  Announcements and General Discussion / General Discussion / Adding Listener to componentDataProxy ? on: November 25, 2011, 12:29:12
I wanna listen to some event dispatched by componentDataProxy.
However, i note that i can't do  since dataProxy doesnot have addEventListener function. How should i achieve it ?

Thanks
V.
5  Announcements and General Discussion / General Discussion / Is it mandatory to use removeMediator when not using mediator anymore on: November 21, 2011, 09:16:30
Hi!
Is removeMediator like removeListener, which should be used after mediator is not meant to be used anymore. Is it mandatory...like if i don't use it, would it add to garbage ?
6  Announcements and General Discussion / General Discussion / Setting a variable in dataProxy on click of a button inside a component on: November 15, 2011, 06:45:13
hi!
I want to set a variable inside dataProxy, on click of a button present inside instance of view component. So that i may use the value of that variable from StageMediator.
I don't know, how to access dataProxy from the instance of component, so that i can change variable's value inside it on click of button inside view component

Thanks
V.
7  Announcements and General Discussion / General Discussion / Re: What are the terms Command ,Proxy, Mediator and Facade stand for? on: November 14, 2011, 01:44:43
thankyou! :)
8  Announcements and General Discussion / General Discussion / Re: What are the terms Command ,Proxy, Mediator and Facade stand for? on: November 14, 2011, 11:38:55


Changes are more to write on here..
So trying to explain here through image.

I have a package named "app", that contains the AppMain.as represented by AppMain.fla.
AppMain.fla uses Form1.swc, Form2.swc and Form3.swc ( 3 different forms to load one by one)

There is an another folder , that contains 3 FLAs that generate Form1.swc, Form2.swc, Form3.swc . This folder contains a folder "swc" that contains ApplicationFacade and Model,View,Controller folder. Everything is similar to HelloSprite example, except that instead of HelloSprite inside view/component folder, i have Form1,Form2 and Form3 as components. These are represented by library items present in the Form1.FLA, Form2.FLA and Form3.fla respectively.

So, i wanna get hints, if the structure is sensible or not. Thanks for help.
V.
9  Announcements and General Discussion / General Discussion / Re: What are the terms Command ,Proxy, Mediator and Facade stand for? on: November 14, 2011, 09:25:57
ok, i shifted the classes to my own application package.

I have made some tiny changes to HelloSprite example, as per my requirement... have uploaded it
here:

http://www.sendspace.com/file/ckznsd

Want to confirm if the way i followed is sensible or not.

Suggestions appreciated.
Thanks
V.
10  Announcements and General Discussion / General Discussion / How's sendNotification() different from flash's dispatchEvent() ? on: November 13, 2011, 01:21:07
Puremvc uses sendNotification to broadcast it's events. How is it different from dispatchEvent ?

thanks
V.
11  Announcements and General Discussion / General Discussion / Re: What are the terms Command ,Proxy, Mediator and Facade stand for? on: November 12, 2011, 11:39:28
Thanks, that was helpful!

In a simple project i wanna implement puremvc, i have 10 views (forms ), represented by 10 movieclips residing in library.

So, looking at the hellosprite example, how should i connect the views with the puremvc.

What i am doing is :

Giving each movieclip (view) the class name :
org.puremvc.as3.promagic.view.components.Form1
org.puremvc.as3.promagic.view.components.Form2
.......
....
org.puremvc.as3.promagic.view.components.Form10

So, should i create a mediator class too for each of them ?
org.puremvc.as3.promagic.view.components.Form1Mediator
org.puremvc.as3.promagic.view.components.Form2Mediator... and so on

One more thing i don't understand is.. why i am supposed to create my project classes deep inside the framework ? It's ok when i am using the puremvc source in my classpath. But how would i be able to create my classes, if i would be using the puremvc SWC ?

Thanks
V.






Pages: [1]