[Flashcoders] AS2 to AS3 conversion: prototype

2010-08-06 Thread ktt
While converting AS2 to AS3 I struck with some issues with converting prototype into classes: AS2 code 1) _global.Treemap = function(leaf) { this.leaf = leaf; }; 2) Treemap.prototype.appleTree = function(abc) { for (var i = 1; iabc; i++) { abc++; }

Re: [Flashcoders] const inside function

2010-08-06 Thread Jiri
Ok, thanks. Yes that makes sense. I was thinking that it might be a slight enhancement to speed up execution time of a function. Jiri On 05-08-10 19:20, Juan Pablo Califano wrote: The difference is that the reference is constant, meaning you cannot change it. You can't do this: const

Re: [Flashcoders] AS2 to AS3 conversion: prototype

2010-08-06 Thread Henrik Andersson
ktt wrote: Which method is recommended by good practice? The one that allows typesafety and proper checking of identifier names. That is, not the prototype system. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

RE: [Flashcoders] Querying XML

2010-08-06 Thread Lehr, Theodore
I am trying: buildXML = peopleXML.person.(@group == dd_group.value.toString()) peopleXML.person.(@room == dd_room.value.toString()); but it only seem to pick up the last condition - how can I get multiple conditions in? From:

Re: [Flashcoders] Querying XML

2010-08-06 Thread Henrik Andersson
Lehr, Theodore wrote: I am trying: buildXML = peopleXML.person.(@group == dd_group.value.toString()) peopleXML.person.(@room == dd_room.value.toString()); I am surprised that it even returns an XMLList, wait, does it? ___ Flashcoders mailing list

RE: [Flashcoders] Querying XML

2010-08-06 Thread Lehr, Theodore
it does - based on the last condition How can I query the xml using multiple conditions? From: flashcoders-boun...@chattyfig.figleaf.com [flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Henrik Andersson [he...@henke37.cjb.net] Sent: Friday,

[Flashcoders] Developing Simplified Learning Management System (LMS) Moodle

2010-08-06 Thread ITSCO
Hello everyone, Firstly, thanks to all the helpful comments. To follow up on the LMS: (1) I have used Moodle only for checking several SCORM 1.2 versions of our training programs. I wouldn't recommend it, particularly, if one want to have their own reporting format. Additionally,

Re: [Flashcoders] Developing Simplified Learning Management System (LMS) Moodle

2010-08-06 Thread Dave Watts
(2) Whether it is PHP or ColdFusion, if someone already has or can recommend a sample code of Actionscript 3.0 only (w/o Flex) for synching  the local database SQlite to the server and vs from the server back to the  local database, that would be appreciated and compensated. This is

Re: [Flashcoders] Querying XML

2010-08-06 Thread Taka Kojima
First of all: Henrik, why rewrite core functionality? E4X is a standard, telling him to write his own loop for data is something that I strongly disagree with. The only case where I can see writing your own loops for XML would be beneficial would be if you really had a performance issue and

Re: [Flashcoders] Querying XML

2010-08-06 Thread Glen Pike
Hi, I guess you might have solved this for now - for future reference, I have found the following 2 sources invaluable links when doing e4x stuff... http://www.linkwerk.com/pub/javascript/e4x/e4x-tester/ (It's JavaScript / HTML, but it is a better / fuller implementation than the