-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Merrill,
Jason
Sent: vrijdag 26 maart 2010 16:10
To: Flash Coders List
Subject: RE: [Flashcoders] Events can be tedious, general thoughts on best
practice?
I missed the beginning
Subject: Re: [Flashcoders] Events can be tedious, general thoughts on best
practice?
hey cor,
i'm guessing jason's example is modern ActionScript 3.0, but if you're
looking for a range of examples, here's one in ActionScript 2.0, showing
how to implement a clock using mvc:
http://www.moock.org
Coders List
Subject: Re: [Flashcoders] Events can be tedious, general thoughts on best
practice?
hey cor,
i'm guessing jason's example is modern ActionScript 3.0, but if you're
looking for a range of examples, here's one in ActionScript 2.0, showing
how to implement a clock using mvc:
http
Signals gets a big plus from me. Takes a lot of the donkey-work out of setting
up custom events.
On 24 Mar 2010, at 22:21, Taka Kojima wrote:
You bring up some valid points, however some of them are irrelevant for this
example, i.e. multiple listeners.
I could be a minority, but I don't
in my mvc setup, i use a set of public static constants for event types on
the model object and dispatch(new Event(ModelObject.CUSTOM_EVENT_TYPE));
when the listening object receives it, it goes and retrieves the data from a
public variable / accessor on the model.
There are plenty of reasons to
Coders List
Subject: Re: [Flashcoders] Events can be tedious, general thoughts on best
practice?
in my mvc setup, i use a set of public static constants for event types on
the model object and dispatch(new Event(ModelObject.CUSTOM_EVENT_TYPE));
when the listening object receives it, it goes
Subject: Re: [Flashcoders] Events can be tedious, general thoughts on best
practice?
in my mvc setup, i use a set of public static constants for event types on
the model object and dispatch(new Event(ModelObject.CUSTOM_EVENT_TYPE));
when the listening object receives it, it goes and retrieves
Subject: Re: [Flashcoders] Events can be tedious, general thoughts on best
practice?
example model
package
{
import flash.events.EventDispatcher;
public class SiteModel extends EventDispatcher
{
public static const PAGE_CHANGE : String = pageChange;
public static const
(thefieldcomic.com)
Sent: vrijdag 26 maart 2010 13:30
To: Flash Coders List
Subject: Re: [Flashcoders] Events can be tedious, general thoughts on best
practice?
example model
package
{
import flash.events.EventDispatcher;
public class SiteModel extends EventDispatcher
{
public
I missed the beginning of this thread somehow, but FWIW, FlashDevelop
has an Add New Event menu option in the project pane when you right
click on a package folder which makes creating custom events a snap.
All you really have to do is enter the static event constants you want
the event to have
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Merrill,
Jason
Sent: vrijdag 26 maart 2010 16:10
To: Flash Coders List
Subject: RE: [Flashcoders] Events can be tedious, general thoughts on best
practice?
I missed the beginning of this thread somehow, but FWIW, FlashDevelop
has an Add New
...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Merrill,
Jason
Sent: vrijdag 26 maart 2010 16:10
To: Flash Coders List
Subject: RE: [Flashcoders] Events can be tedious, general thoughts on best
practice?
I missed the beginning of this thread somehow, but FWIW
: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Merrill,
Jason
Sent: vrijdag 26 maart 2010 16:10
To: Flash Coders List
Subject: RE: [Flashcoders] Events can be tedious, general thoughts on best
practice?
I missed the beginning of this thread
-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Merrill,
Jason
Sent: vrijdag 26 maart 2010 17:04
To: Flash Coders List
Subject: RE: [Flashcoders] Events can be tedious, general thoughts on best
practice?
In basic MVC
Subject: RE: [Flashcoders] Events can be tedious,
general thoughts on best practice?
Thanks Jason,
I understand the theory, but have a problem creating a MVC myself.
I don't want to use other frameworks, I want to learn to OOP in Flash and
how to create an MVC from scratch.
I am really
, 2010 12:11 PM
To: 'Flash Coders List'
Subject: RE: [Flashcoders] Events can be tedious,general thoughts on best
practice?
Thanks Jason,
I understand the theory, but have a problem creating a MVC myself.
I don't want to use other frameworks, I want to learn to OOP in Flash and
how to create an MVC
Of Merrill,
Jason
Sent: vrijdag 26 maart 2010 17:20
To: Flash Coders List
Subject: RE: [Flashcoders] Events can be tedious, general thoughts on best
practice?
Hi Cor,
I'm sending you a very basic MVC template I wrote offlist. You can start
building off that if you like. I can't send you any actual
...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Cor
Sent: Friday, March 26, 2010 12:26 PM
To: 'Flash Coders List'
Subject: RE: [Flashcoders] Events can be tedious,general thoughts on best
practice?
WOW, thanks Jason.
You're the best!
This will keep me of the street
] On Behalf Of Cor
Sent: Friday, March 26, 2010 12:11 PM
To: 'Flash Coders List'
Subject: RE: [Flashcoders] Events can be tedious,general thoughts on best
practice?
Thanks Jason,
I understand the theory, but have a problem creating a MVC myself.
I don't want to use other frameworks, I want
On Wed, Mar 24, 2010 at 7:03 PM, Taka Kojima t...@gigafied.com wrote:
I'm curious as to other people's thoughts on
this in terms of good/bad practice and what the pros/cons to this approach
might be.
My thoughts are that it's OK for the very common cases which don't
need the flexibility of
You bring up some valid points, however some of them are irrelevant for this
example, i.e. multiple listeners.
I could be a minority, but I don't think I am when I say that I have never
used multiple listeners for when I load in an XML file.
Secondly, if I were to implement events for this
21 matches
Mail list logo