Re: [Flashcoders] Querying XML

2010-08-05 Thread Henrik Andersson
Taka Kojima wrote: E4X is a much better approach than looping through an XML object and adding items to an XMLList. In this case, yes. But only because it will end up being the same code that you would have written anyway. The condition syntax is nothing but an inline search loop. And the lo

Re: [Flashcoders] Querying XML

2010-08-05 Thread Nathan Mynarcik
I agree, and you can do a for loop to display your data. On Thu, Aug 5, 2010 at 3:08 PM, Taka Kojima wrote: > E4X is a much better approach than looping through an XML object and adding > items to an XMLList. > > An E4x command automatically returns an XMLList type object. > > On Thu, Aug 5, 20

Re: [Flashcoders] Querying XML

2010-08-05 Thread Taka Kojima
E4X is a much better approach than looping through an XML object and adding items to an XMLList. An E4x command automatically returns an XMLList type object. On Thu, Aug 5, 2010 at 11:47 AM, Nathan Mynarcik wrote: > You would need to make a var that is an XMLList that pulls only the nodes > that

Re: [Flashcoders] Querying XML

2010-08-05 Thread Taka Kojima
Look into e4x To only show items with value="a" it would be aXML.item.(@value == "a") On Thu, Aug 5, 2010 at 11:18 AM, Lehr, Theodore wrote: > Is there a way to only show certain xml based on a value - for instance - > say I have: > > var aXML:XML = > > > > > > > > > > So i

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

2010-08-05 Thread Merrill, Jason
Well, duh, that's true. ;) Jason Merrill Instructional Technology Architect Bank of America Global Learning Join the Bank of America Flash Platform Community and visit our Instructional Technology Design Blog (Note: these resources are only available for Bank of America associates)

Re: [Flashcoders] Querying XML

2010-08-05 Thread Nathan Mynarcik
You would need to make a var that is an XMLList that pulls only the nodes that have the value "a". Then you can trace out your XMLList and it will only be the ones you need. Nathan Mynarcik nat...@mynarcik.com 254.749.2525 www.mynarcik.com On Thu, Aug 5, 2010 at 2:18 PM, Lehr, Theodore wrote:

[Flashcoders] Querying XML

2010-08-05 Thread Lehr, Theodore
Is there a way to only show certain xml based on a value - for instance - say I have: var aXML:XML = So if someone picks "a" from a drop down - I would then only display the ones that have the value of a in a datagrid... I am used to just doing something like: var

[Flashcoders] const inside function

2010-08-05 Thread Jiri
I have a simple question. I came across some code in a project that defines a const in a function. function doSomething():void{ const my_var:String = "my_var" var buffer:String = ''; for(var i:int = 0 ; ihttp://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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

2010-08-05 Thread Dave Watts
> I was going to suggest Moodle as well, but it doesn't work offline as > far as I know, so this wouldn't seem to help his need at all.  But then > I saw there is some development of "Offline Moodle" - perhaps this is > worth looking into and seeing if it could be integrated with AIR: > http://docs

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

2010-08-05 Thread Merrill, Jason
>> have you looked into implementing an existing LMS like Moodle I was going to suggest Moodle as well, but it doesn't work offline as far as I know, so this wouldn't seem to help his need at all. But then I saw there is some development of "Offline Moodle" - perhaps this is worth looking into a

Re: [Flashcoders] const inside function

2010-08-05 Thread Juan Pablo Califano
The difference is that the reference is constant, meaning you cannot change it. You can't do this: const my_var:String = "my_var"; my_var = "other text"; You could do this if it were declared as a var. Cheers Juan Pablo Califano 2010/8/5 Jiri > I have a simple question. I came across some c

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

2010-08-05 Thread Dave Watts
>> Well, ColdFusion is much better than PHP! >> >> But more seriously, > > I hope that you are joking, as you seem to be implying. Actually, no, but this isn't the time or the place to rise to the defense of ColdFusion I suppose. As far as the original poster goes, he'd be better served using wha

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

2010-08-05 Thread Henrik Andersson
Dave Watts wrote: Well, ColdFusion is much better than PHP! But more seriously, I hope that you are joking, as you seem to be implying. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flash

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

2010-08-05 Thread Dave Watts
> Currently, for the server side I am leaning toward PHP and MySQL.  If > required and more beneficial I would consider Cold Fusion. Well, ColdFusion is much better than PHP! But more seriously, instead of using either, have you looked into implementing an existing LMS like Moodle? This would all

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

2010-08-05 Thread ITSCO
Jason, Thanks! Currently, for the server side I am leaning toward PHP and MySQL. If required and more beneficial I would consider Cold Fusion. If interested I could e-mail you the detailed specs. As I have not done anything with Flex and Flash Builder4, I am wondering whether I shou

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

2010-08-05 Thread Merrill, Jason
I'm in the e-learning industry, but your technical questions are really just general Flash/AIR/Server scripting/database questions. To transmit data from the AIR app when connected to a server side database, you'll need some kind of server side script, like a web service set up. Do you know ho

[Flashcoders] Developing Simplified Learning Management System (LMS)

2010-08-05 Thread ITSCO
Hello, Being on this list for awhile, I realize some of you are involved with the development of e-learning programs. I have been doing the same, and at this time I am trying to develop a simplified LMS for tracking students’ records. If anyone has already written similar code, I will be

RE: RE: [Flashcoders] drag issues

2010-08-05 Thread Cor
Yes, but if it is all "hardcoded"you could mc.startDrag(); -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Nathan Mynarcik Sent: donderdag 5 augustus 2010 15:44 To: Flash Coders List Subject: Re: RE: [Flashc

Re: RE: [Flashcoders] drag issues

2010-08-05 Thread Nathan Mynarcik
Or you can do: e.currentTarget.parent.startDrag(); On Aug 5, 2010 9:24 AM, "Cor" wrote: mc.mouseChildren = false; -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun... Geen virus gevonden in het binnenkomende-bericht. Gecontroleerd door AVG - w

RE: [Flashcoders] drag issues

2010-08-05 Thread David Hunter
mc.mouseChildren = false; would that do it? > From: ted_l...@federal.dell.com > To: flashcoders@chattyfig.figleaf.com > Date: Thu, 5 Aug 2010 09:14:18 -0400 > Subject: [Flashcoders] drag issues > > I have a mc that has other mc in it... this mc is hard coded on the stage... > in the as I have:

RE: [Flashcoders] drag issues

2010-08-05 Thread Cor
Set : mc.mouseChildren = false; -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Lehr, Theodore Sent: donderdag 5 augustus 2010 15:14 To: Flash Coders List Subject: [Flashcoders] drag issues I have a mc t

Re: [Flashcoders] drag issues

2010-08-05 Thread Henrik Andersson
Lehr, Theodore wrote: I have a mc that has other mc in it... this mc is hard coded on the stage... in the as I have: mc.addEventListener(MouseEvent.MOUSE_DOWN, drag); function drag(e:MouseEvent):void { e.target.startDrag(); } The problem arises that instead of dragging the mc as a whole

Re: [Flashcoders] drag issues

2010-08-05 Thread Glen Pike
If you are listening for an event on the "parent" clip, then use currentTarget not target. On 05/08/2010 14:14, Lehr, Theodore wrote: I have a mc that has other mc in it... this mc is hard coded on the stage... in the as I have: mc.addEventListener(MouseEvent.MOUSE_DOWN, drag); function drag

[Flashcoders] drag issues

2010-08-05 Thread Lehr, Theodore
I have a mc that has other mc in it... this mc is hard coded on the stage... in the as I have: mc.addEventListener(MouseEvent.MOUSE_DOWN, drag); function drag(e:MouseEvent):void { e.target.startDrag(); } The problem arises that instead of dragging the mc as a whole - it drags each mc in th

RE: [Flashcoders] drag issues

2010-08-05 Thread Cor
mc.mouseChildren = false; -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Lehr, Theodore Sent: donderdag 5 augustus 2010 15:14 To: Flash Coders List Subject: [Flashcoders] drag issues I have a mc that has o

Re: [Flashcoders] Create your own t-shirt

2010-08-05 Thread Karl DeSaulniers
Oops correction, Two images on the server. The original image ( for actual printing) and the created image (for proofing). And maybe a postscript file for the text. Make it easy to transfer right into production at the shop. Karl On Aug 5, 2010, at 4:20 AM, Karl DeSaulniers wrote: Thank

Re: [Flashcoders] Create your own t-shirt

2010-08-05 Thread Karl DeSaulniers
Thanks Dave, That is an interesting approach, but I am all thumbs when it comes to python. I was going to use php and have the user upload their image, I would store the image on the server, reference/load a thumb of that image, then let them place it add text etc, then take the text they add

RE: [Flashcoders] Create your own t-shirt

2010-08-05 Thread David Hunter
I second that approach. I made a label maker that plugged into a python backend and then on to their printer workflow. I only sent string data of the text they entered, plus font choice, color, position, and what background imagery they chose. If you could 'free draw' your own illustration then