If you want to take this a step further then think about creating a custom
button class - the button class can extend MovieClip - be given a reference
to the view's controller when it's created and simply overwrite onRelease
with something like:

Public function onRelease():Void
{
        Controller.onRelease(this);
}


Create the onRelease method in your controller interface and whenever you
need to handle a button click it's there if you need it - just implement the
onRelease function in your concrete classes and it's there.

T

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Roberto
Scordino
Sent: 13 December 2006 16:50
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Re: MVC pattern problem

thank you now I understand I will clean my code to use your neat
solution... 
Roberto

_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.15.18/584 - Release Date: 12/12/2006
23:17
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.15.18/584 - Release Date: 12/12/2006
23:17
 


_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to