Re: [Flashcoders] flash builder 4 released

2010-03-29 Thread John McCormack

I will be buying it shortly. It's a great product.

I was interested to see that you mentioned FDT on the blog.

Does FDT offer significant coding enhancements as an IDE?

John

co...@moock.org wrote:
i didn't see anyone post an announcement about fb4 to flashcoders, so 
i figure it's worth spreading the news a bit. here's my take on the 
new version:


http://www.moock.org/blog/archives/000300.html

and i guess i should check: dave do you mind posts about actionscript 
ide releases (fdt, flashdevelop, fb, etc) on flashcoders?


colin
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders





___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] flash builder 4 released

2010-03-29 Thread allandt bik-elliott (thefieldcomic.com)
also does it include some of the great shortcut stuff from fdt and fd like
the shortcuts for creating methods or jumping to a method / variable
implementation from it's usage which fb3 was sorely missing?

a


On 29 March 2010 09:51, John McCormack j...@easypeasy.co.uk wrote:

 I will be buying it shortly. It's a great product.

 I was interested to see that you mentioned FDT on the blog.

 Does FDT offer significant coding enhancements as an IDE?

 John


 co...@moock.org wrote:

 i didn't see anyone post an announcement about fb4 to flashcoders, so i
 figure it's worth spreading the news a bit. here's my take on the new
 version:

 http://www.moock.org/blog/archives/000300.html

 and i guess i should check: dave do you mind posts about actionscript ide
 releases (fdt, flashdevelop, fb, etc) on flashcoders?

 colin
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Recursive and e:Event

2010-03-29 Thread Lehr, Theodore
I am having an issue trying to recursively go through some xml...

When the xml was local (i.e. var newXml:XML = tag ..;) then a recursive 
function like:

function (parseXML(_xml:*) {
   ...
   parseXML(ixml);
}

worked fine

but when I try to pull it in from another file via:

xmlLoader.load..
xmlLoader.addEventListener. {
   parseXML(e);
}

function (parseXML(e:Event) {
   ...
   parseXML(ixml);
}

It works fine the first time through and then I get an error on the first 
recursive call because ixml is not an e:Event 

I need to find a way to get around this can I call the function without 
e:Event?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] RE: Recursive and e:Event

2010-03-29 Thread Lehr, Theodore
sorry - jumped the gun - I worked it out with:

xmlLoader.addEventListener(Event.COMPLETE, function(e:event):viod {
 var xml:XML = new XML)e.target.data);
 function(xml);
});


From: Lehr, Theodore
Sent: Monday, March 29, 2010 7:31 AM
To: Flash Coders List
Subject: Recursive and e:Event

I am having an issue trying to recursively go through some xml...

When the xml was local (i.e. var newXml:XML = tag ..;) then a recursive 
function like:

function (parseXML(_xml:*) {
   ...
   parseXML(ixml);
}

worked fine

but when I try to pull it in from another file via:

xmlLoader.load..
xmlLoader.addEventListener. {
   parseXML(e);
}

function (parseXML(e:Event) {
   ...
   parseXML(ixml);
}

It works fine the first time through and then I get an error on the first 
recursive call because ixml is not an e:Event

I need to find a way to get around this can I call the function without 
e:Event?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Recursive and e:Event

2010-03-29 Thread Keith Reinfeld
 I need to find a way to get around this can I call the function
 without e:Event? 

Yes: 
 
function (parseXML(e:Event=null) {
   ...
   parseXML(ixml);
}


Regards,

Keith Reinfeld
Home Page: http://keithreinfeld.home.comcast.net



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] flash builder 4 released

2010-03-29 Thread Ruben Sainz
Why FB4 support Flex-Air project but don´t Action Script- Air project?


2010/3/29 allandt bik-elliott (thefieldcomic.com) alla...@gmail.com

 also does it include some of the great shortcut stuff from fdt and fd like
 the shortcuts for creating methods or jumping to a method / variable
 implementation from it's usage which fb3 was sorely missing?

 a


 On 29 March 2010 09:51, John McCormack j...@easypeasy.co.uk wrote:

  I will be buying it shortly. It's a great product.
 
  I was interested to see that you mentioned FDT on the blog.
 
  Does FDT offer significant coding enhancements as an IDE?
 
  John
 
 
  co...@moock.org wrote:
 
  i didn't see anyone post an announcement about fb4 to flashcoders, so i
  figure it's worth spreading the news a bit. here's my take on the new
  version:
 
  http://www.moock.org/blog/archives/000300.html
 
  and i guess i should check: dave do you mind posts about actionscript
 ide
  releases (fdt, flashdevelop, fb, etc) on flashcoders?
 
  colin
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 
 
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




-- 
Ruben Sainz de la Maza
Senior Flash Developer
http://www.conelmate.com
http://www.linkedin.com/in/rubensainz
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Recursive and e:Event

2010-03-29 Thread Nathan Mynarcik
Try changing your function to below:


function (parseXML(e:Event = null) {
   ...
   parseXML(ixml);
}


--Original Message--
From: Lehr, Theodore
Sender: flashcoders-boun...@chattyfig.figleaf.com
To: Flash Coders List
ReplyTo: Flash Coders List
Subject: [Flashcoders] Recursive and e:Event
Sent: Mar 29, 2010 6:31 AM

I am having an issue trying to recursively go through some xml...

When the xml was local (i.e. var newXml:XML = tag ..;) then a recursive 
function like:

function (parseXML(_xml:*) {
   ...
   parseXML(ixml);
}

worked fine

but when I try to pull it in from another file via:

xmlLoader.load..
xmlLoader.addEventListener. {
   parseXML(e);
}

function (parseXML(e:Event) {
   ...
   parseXML(ixml);
}

It works fine the first time through and then I get an error on the first 
recursive call because ixml is not an e:Event 

I need to find a way to get around this can I call the function without 
e:Event?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Nathan Mynarcik
Interactive Web Developer
nat...@mynarcik.com
254.749.2525
www.mynarcik.com

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Process issue

2010-03-29 Thread Lehr, Theodore
I have a function that is building some xml through a recursive function... and 
then call another function once the xml is done

how can I tell when it is done being built:

I can not do:

function buildXML() {


 buidlXML();
 callotherfunction();
}

because that would called to much hmm can not figure this out... the 
buildXML function is taking other XML and canging it to a structure I can 
use

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] RE: Recursive and e:Event

2010-03-29 Thread Keith Reinfeld
 sorry - jumped the gun - I worked it out with:
 
 xmlLoader.addEventListener(Event.COMPLETE, function(e:event):viod {
  var xml:XML = new XML)e.target.data);
  function(xml);
 });

Interesting... 

How are you able to removeEventListener with that syntax? 

Regards,

Keith Reinfeld
Home Page: http://keithreinfeld.home.comcast.net



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Recursive and e:Event

2010-03-29 Thread p...@ipauland.com
Far better to separate the event handling from the recursion altogether.
 
In the event handler get the XML, then pass it to the recursive routine. Don't
pass an event to the recursive routine, pass the data/XML.
 
Generally with recursive code, when you run out of arguments to pass, you stop
calling.
 
Paul
 

On 29 March 2010 at 14:04 Keith Reinfeld keithreinf...@comcast.net wrote:

  I need to find a way to get around this can I call the function
  without e:Event?

 Yes:
 
 function (parseXML(e:Event=null) {
        ...
        parseXML(ixml);
 }


 Regards,

 Keith Reinfeld
 Home Page: http://keithreinfeld.home.comcast.net



 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Process issue

2010-03-29 Thread p...@ipauland.com
Generally..
 
 
var myXML:XML = XML(something);
 
buildXML(myXML);
// now all XML is processed 
callotherfunction();
 
 
 
function buildXML(xml:XML) {
..
if (something){
      buidlXML(someXML);
}
 
 

 

On 29 March 2010 at 14:13 Lehr, Theodore ted_l...@federal.dell.com wrote:

 I have a function that is building some xml through a recursive function...
 and then call another function once the xml is done

 how can I tell when it is done being built:

 I can not do:

 function buildXML() {


      buidlXML();
      callotherfunction();
 }

 because that would called to much hmm can not figure this out... the
 buildXML function is taking other XML and canging it to a structure I can
 use

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Process issue

2010-03-29 Thread Lehr, Theodore
The problem is that the function is taking too long to do that... like I have:

function buildXML(_xml:*):void
{
.
.
buildXML(ixml);
trace();
}
trace(here);

and it traces to:

here
---
---
---
---
---
---
---
---

I need someway to fnish buildXML before calling another function..



From: flashcoders-boun...@chattyfig.figleaf.com 
[flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of p...@ipauland.com 
[p...@ipauland.com]
Sent: Monday, March 29, 2010 8:44 AM
To: Flash Coders List
Subject: Re: [Flashcoders] Process issue

Generally..


var myXML:XML = XML(something);

buildXML(myXML);
// now all XML is processed
callotherfunction();



function buildXML(xml:XML) {
..
if (something){
  buidlXML(someXML);
}





On 29 March 2010 at 14:13 Lehr, Theodore ted_l...@federal.dell.com wrote:

 I have a function that is building some xml through a recursive function...
 and then call another function once the xml is done

 how can I tell when it is done being built:

 I can not do:

 function buildXML() {


  buidlXML();
  callotherfunction();
 }

 because that would called to much hmm can not figure this out... the
 buildXML function is taking other XML and canging it to a structure I can
 use

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Process issue

2010-03-29 Thread kennethkawam...@gmail.com
Create a Class which processes your XML and dispatches an Event when
it's done. Upon receiving the Event, you can proceed to the next
function.
-- 
Kenneth Kawamoto
http://www.materiaprima.co.uk/

On 29 March 2010 13:56, Lehr, Theodore ted_l...@federal.dell.com wrote:
 The problem is that the function is taking too long to do that... like I have:

 function buildXML(_xml:*):void
 {
    .
    .
    buildXML(ixml);
 trace();
 }
 trace(here);

 and it traces to:

 here
 ---
 ---
 ---
 ---
 ---
 ---
 ---
 ---

 I need someway to fnish buildXML before calling another function..


 
 From: flashcoders-boun...@chattyfig.figleaf.com 
 [flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of p...@ipauland.com 
 [p...@ipauland.com]
 Sent: Monday, March 29, 2010 8:44 AM
 To: Flash Coders List
 Subject: Re: [Flashcoders] Process issue

 Generally..


 var myXML:XML = XML(something);

 buildXML(myXML);
 // now all XML is processed
 callotherfunction();



 function buildXML(xml:XML) {
 ..
 if (something){
      buidlXML(someXML);
 }





 On 29 March 2010 at 14:13 Lehr, Theodore ted_l...@federal.dell.com wrote:

 I have a function that is building some xml through a recursive function...
 and then call another function once the xml is done

 how can I tell when it is done being built:

 I can not do:

 function buildXML() {


      buidlXML();
      callotherfunction();
 }

 because that would called to much hmm can not figure this out... the
 buildXML function is taking other XML and canging it to a structure I can
 use

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] flash builder 4 released

2010-03-29 Thread co...@moock.org
i'm not a full-time fdt user, but i think it's commonly accepted that 
fdt's actionscript editing assistants are still better than fb4. see:


http://www.fdt.powerflasher.com/developer-tools/fdt-3/whats-new/new-quick-fixes/
http://www.fdt.powerflasher.com/developer-tools/fdt-3/features/unique-features/

colin

John McCormack wrote:

I will be buying it shortly. It's a great product.

I was interested to see that you mentioned FDT on the blog.

Does FDT offer significant coding enhancements as an IDE?

John

co...@moock.org wrote:
i didn't see anyone post an announcement about fb4 to flashcoders, so 
i figure it's worth spreading the news a bit. here's my take on the 
new version:


http://www.moock.org/blog/archives/000300.html

and i guess i should check: dave do you mind posts about actionscript 
ide releases (fdt, flashdevelop, fb, etc) on flashcoders?


colin
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders





___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Process issue

2010-03-29 Thread Nathan Mynarcik
Why not call your next function inside the buildXML() function after it is all 
done?


Nathan Mynarcik
Interactive Web Developer
nat...@mynarcik.com
254.749.2525
www.mynarcik.com

-Original Message-
From: Lehr, Theodore ted_l...@federal.dell.com
Date: Mon, 29 Mar 2010 08:56:44 
To: Flash Coders Listflashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] Process issue

The problem is that the function is taking too long to do that... like I have:

function buildXML(_xml:*):void
{
.
.
buildXML(ixml);
trace();
}
trace(here);

and it traces to:

here
---
---
---
---
---
---
---
---

I need someway to fnish buildXML before calling another function..



From: flashcoders-boun...@chattyfig.figleaf.com 
[flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of p...@ipauland.com 
[p...@ipauland.com]
Sent: Monday, March 29, 2010 8:44 AM
To: Flash Coders List
Subject: Re: [Flashcoders] Process issue

Generally..


var myXML:XML = XML(something);

buildXML(myXML);
// now all XML is processed
callotherfunction();



function buildXML(xml:XML) {
..
if (something){
  buidlXML(someXML);
}





On 29 March 2010 at 14:13 Lehr, Theodore ted_l...@federal.dell.com wrote:

 I have a function that is building some xml through a recursive function...
 and then call another function once the xml is done

 how can I tell when it is done being built:

 I can not do:

 function buildXML() {


  buidlXML();
  callotherfunction();
 }

 because that would called to much hmm can not figure this out... the
 buildXML function is taking other XML and canging it to a structure I can
 use

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] flash builder 4 released

2010-03-29 Thread co...@moock.org

creating a method from a usage: sadly, still no.

navigating to a method from its usage: if i understand what you're 
referring to correctly, that feature was in fb3 and is in fb4 too. mouse 
over the method name and press the command key to bring up a hyperlink 
to the method definition. command+[ will take you back to the last edit 
location.


another set of eclipse shortcuts i couldn't live without:
 command+uparrow: move a line up
 command+downarrow: move a line down
 command+shift+uparrow: duplicate a line up
 command+shift+downarrow: duplicate a line down

that's in fb3/4, and i assume it's in fdt too as they're both based on 
eclipse, but i don't know for sure.


colin

allandt bik-elliott (thefieldcomic.com) wrote:

also does it include some of the great shortcut stuff from fdt and fd like
the shortcuts for creating methods or jumping to a method / variable
implementation from it's usage which fb3 was sorely missing?

a


On 29 March 2010 09:51, John McCormack j...@easypeasy.co.uk wrote:


I will be buying it shortly. It's a great product.

I was interested to see that you mentioned FDT on the blog.

Does FDT offer significant coding enhancements as an IDE?

John


co...@moock.org wrote:


i didn't see anyone post an announcement about fb4 to flashcoders, so i
figure it's worth spreading the news a bit. here's my take on the new
version:

http://www.moock.org/blog/archives/000300.html

and i guess i should check: dave do you mind posts about actionscript ide
releases (fdt, flashdevelop, fb, etc) on flashcoders?

colin
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] flash builder 4 released

2010-03-29 Thread allandt bik-elliott (thefieldcomic.com)
yeh - transposing and duplicating lines are massive for me in fd

a

On 29 March 2010 14:23, co...@moock.org co...@moock.org wrote:

 creating a method from a usage: sadly, still no.

 navigating to a method from its usage: if i understand what you're
 referring to correctly, that feature was in fb3 and is in fb4 too. mouse
 over the method name and press the command key to bring up a hyperlink to
 the method definition. command+[ will take you back to the last edit
 location.

 another set of eclipse shortcuts i couldn't live without:
  command+uparrow: move a line up
  command+downarrow: move a line down
  command+shift+uparrow: duplicate a line up
  command+shift+downarrow: duplicate a line down

 that's in fb3/4, and i assume it's in fdt too as they're both based on
 eclipse, but i don't know for sure.

 colin


 allandt bik-elliott (thefieldcomic.com) wrote:

 also does it include some of the great shortcut stuff from fdt and fd like
 the shortcuts for creating methods or jumping to a method / variable
 implementation from it's usage which fb3 was sorely missing?

 a


 On 29 March 2010 09:51, John McCormack j...@easypeasy.co.uk wrote:

  I will be buying it shortly. It's a great product.

 I was interested to see that you mentioned FDT on the blog.

 Does FDT offer significant coding enhancements as an IDE?

 John


 co...@moock.org wrote:

  i didn't see anyone post an announcement about fb4 to flashcoders, so i
 figure it's worth spreading the news a bit. here's my take on the new
 version:

 http://www.moock.org/blog/archives/000300.html

 and i guess i should check: dave do you mind posts about actionscript
 ide
 releases (fdt, flashdevelop, fb, etc) on flashcoders?

 colin
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



  ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

  ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Process issue

2010-03-29 Thread Lehr, Theodore
it is recursively calling itself


From: flashcoders-boun...@chattyfig.figleaf.com 
[flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Nathan Mynarcik 
[nat...@mynarcik.com]
Sent: Monday, March 29, 2010 9:19 AM
To: Flash Coders List
Subject: Re: [Flashcoders] Process issue

Why not call your next function inside the buildXML() function after it is all 
done?


Nathan Mynarcik
Interactive Web Developer
nat...@mynarcik.com
254.749.2525
www.mynarcik.com

-Original Message-
From: Lehr, Theodore ted_l...@federal.dell.com
Date: Mon, 29 Mar 2010 08:56:44
To: Flash Coders Listflashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] Process issue

The problem is that the function is taking too long to do that... like I have:

function buildXML(_xml:*):void
{
.
.
buildXML(ixml);
trace();
}
trace(here);

and it traces to:

here
---
---
---
---
---
---
---
---

I need someway to fnish buildXML before calling another function..



From: flashcoders-boun...@chattyfig.figleaf.com 
[flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of p...@ipauland.com 
[p...@ipauland.com]
Sent: Monday, March 29, 2010 8:44 AM
To: Flash Coders List
Subject: Re: [Flashcoders] Process issue

Generally..


var myXML:XML = XML(something);

buildXML(myXML);
// now all XML is processed
callotherfunction();



function buildXML(xml:XML) {
..
if (something){
  buidlXML(someXML);
}





On 29 March 2010 at 14:13 Lehr, Theodore ted_l...@federal.dell.com wrote:

 I have a function that is building some xml through a recursive function...
 and then call another function once the xml is done

 how can I tell when it is done being built:

 I can not do:

 function buildXML() {


  buidlXML();
  callotherfunction();
 }

 because that would called to much hmm can not figure this out... the
 buildXML function is taking other XML and canging it to a structure I can
 use

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] flash builder 4 released

2010-03-29 Thread co...@moock.org

ps.
for those using fb4, it looks like sourcemate offers a potential 
workaround for many of the missing editing assistants:


http://www.elementriver.com/sourcemate/features/

colin

co...@moock.org wrote:
i'm not a full-time fdt user, but i think it's commonly accepted that 
fdt's actionscript editing assistants are still better than fb4. see:


http://www.fdt.powerflasher.com/developer-tools/fdt-3/whats-new/new-quick-fixes/ 

http://www.fdt.powerflasher.com/developer-tools/fdt-3/features/unique-features/ 



colin

John McCormack wrote:

I will be buying it shortly. It's a great product.

I was interested to see that you mentioned FDT on the blog.

Does FDT offer significant coding enhancements as an IDE?

John

co...@moock.org wrote:
i didn't see anyone post an announcement about fb4 to flashcoders, so 
i figure it's worth spreading the news a bit. here's my take on the 
new version:


http://www.moock.org/blog/archives/000300.html

and i guess i should check: dave do you mind posts about actionscript 
ide releases (fdt, flashdevelop, fb, etc) on flashcoders?


colin
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders





___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] flash builder 4 released

2010-03-29 Thread co...@moock.org

I've just started working with FB4 in the past couple of weeks, and I
love it. I think Adobe got it right. Well, except for the help system.
I keep the CS4 Flash help open for my AS3 reference.

--
have you seen the new ActionScript 3.0 unified reference?

http://help.adobe.com/en_US/FlashPlatform//reference/actionscript/3/class-summary.html

it's faster, and has a bunch of improvements over the old online reference.

colin
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] flash builder 4 released

2010-03-29 Thread Zeh Fernando
They are.

In FDT, with the caret on a method/property/reference, F3 takes you to the
definition. F4 in a reference takes you straight to the class. The
ctrl+cursor thing also works, but in all honesty I seldom use it. Back to
the last edited location is ctrl+q.

Zeh

On Mon, Mar 29, 2010 at 9:23 AM, co...@moock.org co...@moock.org wrote:

 creating a method from a usage: sadly, still no.

 navigating to a method from its usage: if i understand what you're
 referring to correctly, that feature was in fb3 and is in fb4 too. mouse
 over the method name and press the command key to bring up a hyperlink to
 the method definition. command+[ will take you back to the last edit
 location.

 another set of eclipse shortcuts i couldn't live without:
  command+uparrow: move a line up
  command+downarrow: move a line down
  command+shift+uparrow: duplicate a line up
  command+shift+downarrow: duplicate a line down

 that's in fb3/4, and i assume it's in fdt too as they're both based on
 eclipse, but i don't know for sure.

 colin


 allandt bik-elliott (thefieldcomic.com) wrote:

 also does it include some of the great shortcut stuff from fdt and fd like
 the shortcuts for creating methods or jumping to a method / variable
 implementation from it's usage which fb3 was sorely missing?

 a


 On 29 March 2010 09:51, John McCormack j...@easypeasy.co.uk wrote:

  I will be buying it shortly. It's a great product.

 I was interested to see that you mentioned FDT on the blog.

 Does FDT offer significant coding enhancements as an IDE?

 John


 co...@moock.org wrote:

  i didn't see anyone post an announcement about fb4 to flashcoders, so i
 figure it's worth spreading the news a bit. here's my take on the new
 version:

 http://www.moock.org/blog/archives/000300.html

 and i guess i should check: dave do you mind posts about actionscript
 ide
 releases (fdt, flashdevelop, fb, etc) on flashcoders?

 colin
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



  ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

  ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] flash builder 4 released

2010-03-29 Thread Kerry Thompson
Zeh Fernando wrote:

 In FDT, with the caret on a method/property/reference, F3 takes you to the
 definition. F4 in a reference takes you straight to the class. The
 ctrl+cursor thing also works, but in all honesty I seldom use it. Back to
 the last edited location is ctrl+q.

FlashBuilder 4 has a really nice bookmarking feature in it (I don't
believe it was in FB3). It's a big time saver when you jump around in
your code like I do.

Cordially,

Kerry Thompson
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] flash builder 4 released

2010-03-29 Thread Eric E. Dolecki
Indeed it's great - is there a key combo to cycle through the bookmarks? I
haven't found that yet.

On Mon, Mar 29, 2010 at 10:06 AM, Kerry Thompson al...@cyberiantiger.bizwrote:

 Zeh Fernando wrote:

  In FDT, with the caret on a method/property/reference, F3 takes you to
 the
  definition. F4 in a reference takes you straight to the class. The
  ctrl+cursor thing also works, but in all honesty I seldom use it. Back to
  the last edited location is ctrl+q.

 FlashBuilder 4 has a really nice bookmarking feature in it (I don't
 believe it was in FB3). It's a big time saver when you jump around in
 your code like I do.

 Cordially,

 Kerry Thompson
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




-- 
http://ericd.net
Interactive design and development
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Error #2032 Stream Error

2010-03-29 Thread Lehr, Theodore
I am working on a closed network... I am trying to load some xml via 
load(new URLRequest(https://..;));

but I am getting Error #2032 Stream Error... I can put the url in a browser and 
I see the xml but for sme reason the player can not load it - any thoughts?

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] flash builder 4 released

2010-03-29 Thread Kerry Thompson
 Eric E. Dolecki wrote:

 Indeed it's great - is there a key combo to cycle through the bookmarks? I
 haven't found that yet.

Not that I know of. Here's a link to the Adobe page that describes it:
http://help.adobe.com/en_US/Flex/4.0/UsingFlashBuilder/WS6f97d7caa66ef6eb1e63e3d11b6c4d0d21-7fcd.html.

Changing the subject slightly, I griped about the new FB4 help (and I
still don't like it). Adobe have taken a step in the right direction,
though--they have developers moderating the comments on some of their
help pages. I'm not an Adobe employee or contractor, but I am a
moderator for one of their online help topics (not Flash or Flex, but
I would hope they also have developers moderating those).

I'm perhaps a bit more likely to let a snarky comment live than and
Adobe employee. I can also answer questions when appropriate--Adobe
people are good people, but their moderators aren't always the ones
using the product every day.

Cordially,

Kerry Thompson
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] flash builder 4 released

2010-03-29 Thread Karina Steffens
Thanks Colin, I put that link in my bookmarks. So far, I found the AS3
online documentation less than ideal - if you search for anything from the
Flash IDE, you might as well be using Google.

Karina 

 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-
 boun...@chattyfig.figleaf.com] On Behalf Of co...@moock.org
 Sent: 29 March 2010 2:35
 To: Flash Coders List
 Subject: Re: [Flashcoders] flash builder 4 released
 
  I've just started working with FB4 in the past couple of weeks, and I
  love it. I think Adobe got it right. Well, except for the help
 system.
  I keep the CS4 Flash help open for my AS3 reference.
 --
 have you seen the new ActionScript 3.0 unified reference?
 
 http://help.adobe.com/en_US/FlashPlatform//reference/actionscript/3/cla
 ss-summary.html
 
 it's faster, and has a bunch of improvements over the old online
 reference.
 
 colin
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Error #2032 Stream Error

2010-03-29 Thread Nathan Mynarcik
I'm betting this is your issue:

https://;

Just a guess.


--Original Message--
From: Lehr, Theodore
Sender: flashcoders-boun...@chattyfig.figleaf.com
To: Flash Coders List
ReplyTo: Flash Coders List
Subject: [Flashcoders] Error #2032 Stream Error
Sent: Mar 29, 2010 9:40 AM

I am working on a closed network... I am trying to load some xml via 
load(new URLRequest(https://..;));

but I am getting Error #2032 Stream Error... I can put the url in a browser and 
I see the xml but for sme reason the player can not load it - any thoughts?

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Nathan Mynarcik
Interactive Web Developer
nat...@mynarcik.com
254.749.2525
www.mynarcik.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] RE: Recursive and e:Event

2010-03-29 Thread Merrill, Jason
xmlLoader.addEventListener(Event.COMPLETE, function(e:event):viod {
 var xml:XML = new XML)e.target.data);
 function(xml);
});

Wow, that's nasty nasty nasty... and doesn't give you ANY compiler
errors eh? :)  


Jason Merrill 

Bank of  America  Global Learning 
Learning  Performance Solutions

Join the Bank of America Flash Platform Community  and visit our
Instructional Technology Design Blog
(note: these are for Bank of America employees only)






-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Lehr,
Theodore
Sent: Monday, March 29, 2010 7:47 AM
To: Flash Coders List
Subject: [Flashcoders] RE: Recursive and e:Event

sorry - jumped the gun - I worked it out with:

xmlLoader.addEventListener(Event.COMPLETE, function(e:event):viod {
 var xml:XML = new XML)e.target.data);
 function(xml);
});


From: Lehr, Theodore
Sent: Monday, March 29, 2010 7:31 AM
To: Flash Coders List
Subject: Recursive and e:Event

I am having an issue trying to recursively go through some xml...

When the xml was local (i.e. var newXml:XML = tag ..;) then a
recursive function like:

function (parseXML(_xml:*) {
   ...
   parseXML(ixml);
}

worked fine

but when I try to pull it in from another file via:

xmlLoader.load..
xmlLoader.addEventListener. {
   parseXML(e);
}

function (parseXML(e:Event) {
   ...
   parseXML(ixml);
}

It works fine the first time through and then I get an error on the
first recursive call because ixml is not an e:Event

I need to find a way to get around this can I call the function
without e:Event?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] What good is a Controller?

2010-03-29 Thread Karina Steffens
Hi List,

Ok, this may sound a bit odd coming from someone who's been coding with MVC
for the last 7 years, but I seem to be missing the point of a Controller...
I'm hoping to start a discussion to help me (and maybe others like me)
improve my architecture by better understanding the Controller, and what
good that does...

First of all, here's a quick summary of my current architecture: All my
projects are based on an MVC structure in their core, but my Controller
class has only one function - linking the Model/s with the Views/s. The
communication between Model/s and View/s happens via Broadcaster - my own
AS3  reworking of the old AsBroadcaster (remember broadcastMessage? I even
found a way to get and set public properties in the model using
broadcastMessage(get, prop)). Typically, the model notifies the View
that data was loaded, and then the View does all the donkey work, and calls
a number of generic methods on the model, mostly for data retrieval. 

Within the View, I use EventDispatcher for the usual stuff, like button
functionality.  The View classes are the ones that listen to the events. For
example, a View class may have a submit button, and that button's
MouseEvent.CLICK goes to a clickListener method in the same class.   If I
understand recent list discussions correctly, it would be better to move
EventDispatcher listeners to the Controller. Is that the correct approach?
If so, why...? 

When I coded my Controller class, I built into it the ability to link
Controller Classes with Broadcaster, as well as Views and Models, but so far
I haven't seen a good way of implementing it, or even extending the base
Controller class,  because everything in my code seems to be happening
either in the View or the Model layers. So where am I going wrong?

Please understand that I don't mean to say that the Controller is no good
other than as a way to link the View with the Model,  I'm just trying to
understand it better - there's always plenty of room for improvement!

Thanks,
Karina


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Error #2032 Stream Error

2010-03-29 Thread Lehr, Theodore
right - sorry - network issue


From: flashcoders-boun...@chattyfig.figleaf.com 
[flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Nathan Mynarcik 
[nat...@mynarcik.com]
Sent: Monday, March 29, 2010 10:55 AM
To: Flash Coders List
Subject: Re: [Flashcoders] Error #2032 Stream Error

I'm betting this is your issue:

https://;

Just a guess.


--Original Message--
From: Lehr, Theodore
Sender: flashcoders-boun...@chattyfig.figleaf.com
To: Flash Coders List
ReplyTo: Flash Coders List
Subject: [Flashcoders] Error #2032 Stream Error
Sent: Mar 29, 2010 9:40 AM

I am working on a closed network... I am trying to load some xml via 
load(new URLRequest(https://..;));

but I am getting Error #2032 Stream Error... I can put the url in a browser and 
I see the xml but for sme reason the player can not load it - any thoughts?

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Nathan Mynarcik
Interactive Web Developer
nat...@mynarcik.com
254.749.2525
www.mynarcik.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] What good is a Controller?

2010-03-29 Thread allandt bik-elliott (thefieldcomic.com)
the way i understand it, the controller is supposed to provide the logic and
functionality for the views as well as acting as an intermediary between the
view and the model (my version fires events back to the views but others use
the controller to pass events back from the model to the view as well) and
as such, the same controller can be used for multiple views (i have a single
PageController for my basic site setup that provides the functionality for
all of the pages as well as the logic about which page to show / hide)

there is plenty of commentary out there to suggest that the controller is
largely unnecessary and that the views can do it all as encapsulated objects
(i've even read something by someone much smarter than me [
http://c2.com/cgi-bin/wiki?MvcIsNotObjectOriented] that suggested that the c
in mvc was anti-oop) but for me the benefit for the controller is that i can
create functionality separate from design.

if you look at the html / php / mysql model, mvc has a very natural flow -
the mysql database and the php interact much like the controller (php) and
the model (mysql) and the result is then fed to the views (the served html
page).

to be honest, for simlpe stuff, even within a large mvc project, i've found
myself falling back to a model-view structure when the controller just made
for extra complication and then kept the full-blown controllers for the
really big stuff (my views take a mandatory model and an optional controller
to allow for this).

might have complicated it more with this for you but maybe i got something
right

best
a

On 29 March 2010 15:55, Karina Steffens kar...@neo-archaic.net wrote:

 Hi List,

 Ok, this may sound a bit odd coming from someone who's been coding with MVC
 for the last 7 years, but I seem to be missing the point of a Controller...
 I'm hoping to start a discussion to help me (and maybe others like me)
 improve my architecture by better understanding the Controller, and what
 good that does...

 First of all, here's a quick summary of my current architecture: All my
 projects are based on an MVC structure in their core, but my Controller
 class has only one function - linking the Model/s with the Views/s. The
 communication between Model/s and View/s happens via Broadcaster - my own
 AS3  reworking of the old AsBroadcaster (remember broadcastMessage? I
 even
 found a way to get and set public properties in the model using
 broadcastMessage(get, prop)). Typically, the model notifies the View
 that data was loaded, and then the View does all the donkey work, and calls
 a number of generic methods on the model, mostly for data retrieval.

 Within the View, I use EventDispatcher for the usual stuff, like button
 functionality.  The View classes are the ones that listen to the events.
 For
 example, a View class may have a submit button, and that button's
 MouseEvent.CLICK goes to a clickListener method in the same class.   If I
 understand recent list discussions correctly, it would be better to move
 EventDispatcher listeners to the Controller. Is that the correct approach?
 If so, why...?

 When I coded my Controller class, I built into it the ability to link
 Controller Classes with Broadcaster, as well as Views and Models, but so
 far
 I haven't seen a good way of implementing it, or even extending the base
 Controller class,  because everything in my code seems to be happening
 either in the View or the Model layers. So where am I going wrong?

 Please understand that I don't mean to say that the Controller is no good
 other than as a way to link the View with the Model,  I'm just trying to
 understand it better - there's always plenty of room for improvement!

 Thanks,
 Karina



 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] What good is a Controller?

2010-03-29 Thread Henrik Andersson

allandt bik-elliott (thefieldcomic.com) wrote:

if you look at the html / php / mysql model, mvc has a very natural flow -
the mysql database and the php interact much like the controller (php) and
the model (mysql) and the result is then fed to the views (the served html
page).



I do not believe that the view is solely html, but a mixture of php and 
html. I say, the full idea is a mess.


I have a more realistic (and complicated) idea of how an application 
should be:


Have one part responsible for the overall display, with subparts related 
to showing individual things, such as retrieved data and GUI controls. 
Then add a part that manages the backend data storage. And a part that 
changes the data. And finally, a part that glues all the visual stuff 
together to act on the data changing and data retrieval.

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] What good is a Controller?

2010-03-29 Thread Dave Watts
 there is plenty of commentary out there to suggest that the controller is
 largely unnecessary and that the views can do it all as encapsulated objects
 (i've even read something by someone much smarter than me [
 http://c2.com/cgi-bin/wiki?MvcIsNotObjectOriented] that suggested that the c
 in mvc was anti-oop) but for me the benefit for the controller is that i can
 create functionality separate from design.

I don't think it's really anti-OOP as much as irrelevant to OOP. The
controller has nothing to do with your object domain model, it's just
a mechanism to get messages from views to models or other views, and
vice-versa.

 if you look at the html / php / mysql model, mvc has a very natural flow -
 the mysql database and the php interact much like the controller (php) and
 the model (mysql) and the result is then fed to the views (the served html
 page).

Strictly speaking, that's not how most web application developers
categorize the components of an MVC design (despite what the Wikipedia
page says). PHP (or whatever application server you're using) would
serve both as the controller and the views, and perhaps even the model
as well. PHP itself doesn't really encourage this sort of separation
(although it doesn't prevent it either), but for example, in a Java
web app you might use JSP for your views, and a single servlet as a
controller, and beans as your model. And of course, JSPs, servlets and
beans are all just Java code. But, generally speaking, views are
responsible for their own rendering, which typically requires
server-side logic. If the view isn't responsible for its own rendering
(which would be the case in a static HTML view, then the design
pattern in question might better be described as Model-View-Presenter
(MVP):

http://en.wikipedia.org/wiki/Model_View_Presenter

Now, this doesn't take into consideration the use of client-side
functionality and where that fits, but that presumably would just be
additional view logic.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] What good is a Controller?

2010-03-29 Thread allandt bik-elliott (thefieldcomic.com)
:)

On 29 March 2010 18:03, Dave Watts dwa...@figleaf.com wrote:

  there is plenty of commentary out there to suggest that the controller is
  largely unnecessary and that the views can do it all as encapsulated
 objects
  (i've even read something by someone much smarter than me [
  http://c2.com/cgi-bin/wiki?MvcIsNotObjectOriented] that suggested that
 the c
  in mvc was anti-oop) but for me the benefit for the controller is that i
 can
  create functionality separate from design.

 I don't think it's really anti-OOP as much as irrelevant to OOP. The
 controller has nothing to do with your object domain model, it's just
 a mechanism to get messages from views to models or other views, and
 vice-versa.

  if you look at the html / php / mysql model, mvc has a very natural flow
 -
  the mysql database and the php interact much like the controller (php)
 and
  the model (mysql) and the result is then fed to the views (the served
 html
  page).

 Strictly speaking, that's not how most web application developers
 categorize the components of an MVC design (despite what the Wikipedia
 page says). PHP (or whatever application server you're using) would
 serve both as the controller and the views, and perhaps even the model
 as well. PHP itself doesn't really encourage this sort of separation
 (although it doesn't prevent it either), but for example, in a Java
 web app you might use JSP for your views, and a single servlet as a
 controller, and beans as your model. And of course, JSPs, servlets and
 beans are all just Java code. But, generally speaking, views are
 responsible for their own rendering, which typically requires
 server-side logic. If the view isn't responsible for its own rendering
 (which would be the case in a static HTML view, then the design
 pattern in question might better be described as Model-View-Presenter
 (MVP):

 http://en.wikipedia.org/wiki/Model_View_Presenter

 Now, this doesn't take into consideration the use of client-side
 functionality and where that fits, but that presumably would just be
 additional view logic.

 Dave Watts, CTO, Fig Leaf Software
 http://www.figleaf.com/
 http://training.figleaf.com/

 Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
 GSA Schedule, and provides the highest caliber vendor-authorized
 instruction at our training centers, online, or onsite.
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] What good is a Controller?

2010-03-29 Thread Jim Lafser
When I've implemented MVC:
* I have one controller for each view
* Each view knows about it's controller, but only as a generic 
controller (either as an interface or a base class)
* Each View registers it's controller as the event listener for each of 
it's buttons.
* Each controller translates a generic call in itself into a specific 
call to the model that may or may not cause a state change.
* In response to state changes, the model notifies all views.
* The notification can include the state change information, OR
* The view can request the state change information from the model.
* The view changes updates what is presented to the user as needed 
based on the change in state.
The reason to implement the listener in the controller is to separate the 
implementation of the business logic  from the display logic. This makes the 
implementation of the specific function on the model independent of the generic 
function on the view.

Example: an application has several views that each have a next and 
previous button. Each view registers the next button with its controllers 
next function. Each controller provides next and previous functions that invoke 
one or more methods on the model that may cause a state change.

This provides a decoupling of the business logic from the display logic. If I 
want to change what is displayed, or how it is displayed, I change the view. If 
I want to change the response to user input, I change the controller. 

An example of why this is nice: I've got a clock face that I want to use as a 
stop watch (elapsed time) and as a timer (count-down timer). View could be 
identical, and just change the controller to change the functionality. Start, 
Stop and Reset would all have different meanings that are handled by the 
controller. I know that a bug in the timer code is independent of the stop 
watch code.

In certain situations, it may be beneficial to implement a view as another 
instance of the MVC pattern. An example of this would be where a user is making 
choices in a configuration, and those choices don't get saved into the 
application state until the OK or Apply button is clicked. While the 
choices are being made, the views internal state is stored in the views model, 
and when OK is clicked the choices get stored into the application's model.

Whether or not it's worthwhile to implement a view as another internal MVC 
pattern depends upon the complexity of the view vs. the added complexity of the 
overall system. IMHO, the choice should be to go with what makes the overall 
system the easiest to support.

Jim



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] RE: Recursive and e:Event

2010-03-29 Thread Taka Kojima
Aside from the typos, anonymous functions are the devil.

On Mon, Mar 29, 2010 at 8:09 AM, Merrill, Jason 
jason.merr...@bankofamerica.com wrote:

 xmlLoader.addEventListener(Event.COMPLETE, function(e:event):viod {
 var xml:XML = new XML)e.target.data);
 function(xml);
 });

 Wow, that's nasty nasty nasty... and doesn't give you ANY compiler
 errors eh? :)


 Jason Merrill

 Bank of  America  Global Learning
 Learning  Performance Solutions

 Join the Bank of America Flash Platform Community  and visit our
 Instructional Technology Design Blog
 (note: these are for Bank of America employees only)






 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com
 [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Lehr,
 Theodore
 Sent: Monday, March 29, 2010 7:47 AM
 To: Flash Coders List
 Subject: [Flashcoders] RE: Recursive and e:Event

 sorry - jumped the gun - I worked it out with:

 xmlLoader.addEventListener(Event.COMPLETE, function(e:event):viod {
 var xml:XML = new XML)e.target.data);
 function(xml);
 });

 
 From: Lehr, Theodore
 Sent: Monday, March 29, 2010 7:31 AM
 To: Flash Coders List
 Subject: Recursive and e:Event

 I am having an issue trying to recursively go through some xml...

 When the xml was local (i.e. var newXml:XML = tag ..;) then a
 recursive function like:

 function (parseXML(_xml:*) {
   ...
   parseXML(ixml);
 }

 worked fine

 but when I try to pull it in from another file via:

 xmlLoader.load..
 xmlLoader.addEventListener. {
   parseXML(e);
 }

 function (parseXML(e:Event) {
   ...
   parseXML(ixml);
 }

 It works fine the first time through and then I get an error on the
 first recursive call because ixml is not an e:Event

 I need to find a way to get around this can I call the function
 without e:Event?
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Recursive and e:Event

2010-03-29 Thread Lehr, Theodore
So how would I pass in the xml? Where as now I am calling parseXML(xml)

how do I pass it via:

addEventListener(Event.COMPLETE, parseXML);

function parseXML(e:Event = null) {



}


From: flashcoders-boun...@chattyfig.figleaf.com 
[flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Nathan Mynarcik 
[nat...@mynarcik.com]
Sent: Monday, March 29, 2010 8:06 AM
To: Flash Coders List
Subject: Re: [Flashcoders] Recursive and e:Event

Try changing your function to below:


function (parseXML(e:Event = null) {
   ...
   parseXML(ixml);
}


--Original Message--
From: Lehr, Theodore
Sender: flashcoders-boun...@chattyfig.figleaf.com
To: Flash Coders List
ReplyTo: Flash Coders List
Subject: [Flashcoders] Recursive and e:Event
Sent: Mar 29, 2010 6:31 AM

I am having an issue trying to recursively go through some xml...

When the xml was local (i.e. var newXml:XML = tag ..;) then a recursive 
function like:

function (parseXML(_xml:*) {
   ...
   parseXML(ixml);
}

worked fine

but when I try to pull it in from another file via:

xmlLoader.load..
xmlLoader.addEventListener. {
   parseXML(e);
}

function (parseXML(e:Event) {
   ...
   parseXML(ixml);
}

It works fine the first time through and then I get an error on the first 
recursive call because ixml is not an e:Event

I need to find a way to get around this can I call the function without 
e:Event?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Nathan Mynarcik
Interactive Web Developer
nat...@mynarcik.com
254.749.2525
www.mynarcik.com

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] What good is a Controller?

2010-03-29 Thread Steven Sacks

MVC Public Service Announcement
http://www.youtube.com/watch?v=91C7ax0UAAc

If you want to learn about MVC, pick up the Ruby on Rails book.

I suggest you use RobotLegs, which uses Mediators and Commands instead of 
Controllers.  RobotLegs is better suited for the world of Flash than MVC, which 
Flash blurs the lines between with MovieClip.

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders