Re: [Flashcoders] AS3 for each loop / splice issue

2008-08-28 Thread Kenneth Kawamoto
If you post your XML as well that'll help, but this: cue_points[cue].splice(1,1,cueIn); ...looks dodgy to me. "cue" needs to be an uint for this to work but it's an XML, also you set "cueIn = cue" ??? Kenneth Kawamoto http://www.materiaprima.co.uk/ noentourage wrote: Hey flashcoders... I'm

Re: [Flashcoders] AS3 for each loop / splice issue - RESOLVED

2008-08-28 Thread Gerry
I fixed it myself...I was staring at the code too long so after a long break I came up with this to be able to get through the cue_points array... // var count:Number = 0; for each (var cue:XML in xmlData..step.training.cuein){

Re: [Flashcoders] [Flashcoders tweening glowfilter from inner to outer

2008-08-28 Thread allandt bik-elliott (thefieldcomic.com)
can you input negative values into one or the other? On Wed, Aug 27, 2008 at 9:06 PM, Hans Wichman < [EMAIL PROTECTED]> wrote: > Hi, > > I don't think tweening from inner to outer is possible, unless you use > multiple glow filters. > > greetz > JC > > On Wed, Aug 27, 2008 at 9:43 PM, eric e. dol

[Flashcoders] XML and best method

2008-08-28 Thread Lehr, Theodore M (N-SGIS)
I have a project that involves xml... I am wondering how I should organize my xml... would it be best (from a flash perspective) for it to be on huge xml file with lots and lots of children - or would I be better off breaking it into multiple xml files where one xml tag references another xml file

Re: [Flashcoders] [Flashcoders tweening glowfilter from inner to outer

2008-08-28 Thread eric e. dolecki
Here is my post about it: http://www.ericd.net/2008/08/tweening-from-inner-to-outer-glow.html TweenMax to the rescue. On Thu, Aug 28, 2008 at 8:21 AM, allandt bik-elliott (thefieldcomic.com) < [EMAIL PROTECTED]> wrote: > can you input negative values into one or the other? > > On Wed, Aug 27, 20

RE: [Flashcoders] XML and best method

2008-08-28 Thread Merrill, Jason
I think it depends on how much data there would be in one big file, and how complex it would be loading in separate other files - how big each of those would be. I would try and keep it all in one file if possible, but if it's a huge amount of data, I would separate them and load them one at a ti

Re: [Flashcoders] XML and best method

2008-08-28 Thread Matt S.
Speaking from recent experience, lots of little XML files is ok if you're accessing them one at a time, but if you need to pull up more than one at a time, it can get slow quick. I had a project where I had to load 5-10 small xmls (really small, just basic image galleries, 10 items max each), and i

Re: [Flashcoders] XML and best method

2008-08-28 Thread allandt bik-elliott (thefieldcomic.com)
yes the second one is shorter :) i try to keep child nodes to a minimum - 1 per 'object' and only really use them when describing one of several same-level objects On Thu, Aug 28, 2008 at 2:58 PM, Matt S. <[EMAIL PROTECTED]> wrote: > Speaking from recent experience, lots of little XML files is o

Re: [Flashcoders] XML and best method

2008-08-28 Thread alpha
> I have a project that involves xml... I am wondering how I should > organize my xml... would it be best (from a flash perspective) for it to > be on huge xml file with lots and lots of children - or would I be > better off breaking it into multiple xml files where one xml tag > references another

[Flashcoders] AMF objects storing in database

2008-08-28 Thread Jiri Heitlager
I came across a post on storing custom classes as an AMF object. It explains how to do the following. "If you ever need to store the state of a custom object in a ByteArray or SharedObject, or send a custom object through a LocalConnection, there are a few simple steps you can take that will a

[Flashcoders] Re: saving local (XML) files, two projectors talkin'

2008-08-28 Thread sebastian
ok well I haven't found any solutions for writing XML files to disk... how weird is that??? I've decided to go ahead and reprogram the whole XML reader so that it reads in SharedObjects instead... as I need to finish this project by Friday. It took a little while to figure out I had to use l

Re: [Flashcoders] XML and best method

2008-08-28 Thread Matt S.
Thanks. Do you know if the difference is dramatic? Just curious, especially since most "experts" eg Moock's books dont shy away from node-heavy XML generally, but if there are serious performance considerations you'd think they would. .m On Thu, Aug 28, 2008 at 10:27 AM, allandt bik-elliott (the

Re: [Flashcoders] XML and best method

2008-08-28 Thread allandt bik-elliott (thefieldcomic.com)
there might be - for loops are a pretty slow way of accessing an array for instance (although they look lovely and keep things neat) - it's actually faster to add each node of an array manually so in theory, the fewer times the app has to loop through large nests of xml (similar process), the bette

Re: [Flashcoders] XML and best method

2008-08-28 Thread alpha
> Thanks. Do you know if the difference is dramatic? Just curious, > especially since most "experts" eg Moock's books dont shy away from > node-heavy XML generally, but if there are serious performance > considerations you'd think they would. I don't think the difference is dramatic. It may be no

Re: [Flashcoders] Re: saving local (XML) files, two projectors talkin'

2008-08-28 Thread Ian Thomas
Sebastian, You can achieve file writing and reading using one of the many available flash wrappers. I'd take a look at Northcode's SWFStudio: http://www.northcode.com/swfstudio.php or SWHX: http://www.haxe.org/com/libs/swhx Or Adobe's own AIR, but you would have to wrap your AS2 application in

Re: [Flashcoders] XML and best method

2008-08-28 Thread Matt S.
On Thu, Aug 28, 2008 at 1:25 PM, allandt bik-elliott (thefieldcomic.com) <[EMAIL PROTECTED]> wrote: > that said, i would use a child node for large amounts of text / data - you > wouldn't put a whole paragraph into an attribute, for instance. Nor would > you want to put html formatted text into an

Re: [Flashcoders] Flash apps via bluetooth

2008-08-28 Thread Weyert de Boer
Hi Glen, You can consider using RoomWare. More information at: http://www.roomwareproject.org/ Yours, Weyert de Boer Hi, I am working on a project with a control interface that has a "little brother" for Pocket PC, but I was wondering if it is possible to develop another version for mobi

Re: [Flashcoders] Re: saving local (XML) files, two projectors talkin'

2008-08-28 Thread sebastian
Thank you Iam for the information. Seeing as I was already half done portiong over my XML reader into a SharedObject reader, I just went ahead and finished the code conversion... However I am encountering one really frustrating issue, and I can't seem to find the solution... :( One of my SW

Re: [Flashcoders] Re: saving local (XML) files, two projectors talkin'

2008-08-28 Thread sebastian
ok I finally manged to resolve the issue, though I am still not sure why it was occurring. When in the writing SWF I moved the script away from the class file it was calling and just copy-pasted it into the calling object, it no loner was persistent... how odd... :/ ?? It would make more s