Re: [Flashcoders] Particle Playground, Flash 10 General Purpose Comuting with Pixel Bender

2009-03-19 Thread Latcho
You are still clever:) I think the Alchemy story is a bit of a frustrating one (to know). Especially if you don't want to go C++ to obtain...performative AS3. Latcho mike cann wrote: Just thought I would update anyone interested, I have updated my Particle Playground see post: http://www.mikecan

Re: [Flashcoders] A very simply question of XML toString()

2009-03-19 Thread Muzak
You could look into the DataProvider class: import fl.data.DataProvider; var dp:DataProvider; var myXML:XML = Dictionary 1 Dictionary 2 ; dp = new DataProvider(myXML); trace("dp length: ", dp.length); var item:Object = dp.getItemAt(0); trace("first item: ", item); trace("item tit

Re: [Flashcoders] Re: A very simply question of XML toString()

2009-03-19 Thread ACE Flash
coool, thanks all! On Thu, Mar 19, 2009 at 1:42 PM, Kenneth Kawamoto wrote: > Shorter: > > for each(var item:XML in myXML.book.title){ > arr.push(item.toString()); > } > > Kenneth Kawamoto > http://www.materiaprima.co.uk/ > > ACE Flash wrote: > >> I was using this script, is there any short

Re: [Flashcoders] Re: A very simply question of XML toString()

2009-03-19 Thread Kenneth Kawamoto
Shorter: for each(var item:XML in myXML.book.title){ arr.push(item.toString()); } Kenneth Kawamoto http://www.materiaprima.co.uk/ ACE Flash wrote: I was using this script, is there any short way to push them into an array? Thank you. var myXML:XML =

Re: [Flashcoders] Re: A very simply question of XML toString()

2009-03-19 Thread Kenneth Kawamoto
This is shorter: for(var i:uint = 0, len:uint = myXML.book.title.length(); i < len; i++){ arr.push(myXML.book.title[i]); } Kenneth Kawamoto http://www.materiaprima.co.uk/ ACE Flash wrote: I was using this script, is there any short way to push them into an array? Thank you. var myXML:XML

Re: [Flashcoders] A very simply question of XML toString()

2009-03-19 Thread Ian Thomas
No shortcut if you want them as an Array. Something like the following is pretty short, though, and does the job: var arr:Array=[]; for each(var book:XML in myXML.book) arr.push(bo...@title.tostring()); should do it. (Untested!). Ian On Thu, Mar 19, 2009 at 5:11 PM, ACE Flash wrote: > Hey

Re: [Flashcoders] Re: A very simply question of XML toString()

2009-03-19 Thread Glen Pike
Hi, Have a look for "e4x" if you are using AS3, if not look for http://www.xfactorstudio.com/ These will help immensely, but something like myXML.book.title might return an XMLList... Glen ACE Flash wrote: I was using this script, is there any short way to push them into an array

RE: [Flashcoders] A very simply question of XML toString()

2009-03-19 Thread Paul Venton
There's a great tutorial at http://www.kirupa.com/developer/flashcs3/using_xml_as3_pg1.htm Pretty easy to follow and I found it useful for getting my head around E4X. -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On B

[Flashcoders] Re: A very simply question of XML toString()

2009-03-19 Thread ACE Flash
I was using this script, is there any short way to push them into an array? Thank you. var myXML:XML = Dictionary 1 Dictionary 2 ; var arr:Array = new Ar

[Flashcoders] A very simply question of XML toString()

2009-03-19 Thread ACE Flash
Hey there, I was trying to parse the XML to get all value of and store them into array at once. Do I have to use loop to push them into an Array or there is a shortcut for doing this? I'd like to get something like this... var arr:Array = new Array(); // to trace arr arr[0] = Dictionary 1 arr[

Re: [Flashcoders] crossdomain policy requests

2009-03-19 Thread Joel Stransky
I think you could have used 1 policy up through flashplayer v6. After that they changed the sandbox to consider sub-domains separate domains. I'm guessing that's true for ports too. I'd be interested to hear if you figure it out. On Thu, Mar 19, 2009 at 7:51 AM, Glen Pike wrote: > Hi, > > I hav

[Flashcoders] crossdomain policy requests

2009-03-19 Thread Glen Pike
Hi, I have a flash app running from a standalone player in Linux that requests files from a webserver connection on localhost:80 and also connects to a socket on localhost:3000 Both of these connections require a crossdomain policy file "implementation" one in the webroot and one pushe

Re: [Flashcoders] Particle Playground, Flash 10 General Purpose Comuting with Pixel Bender

2009-03-19 Thread mike cann
Just thought I would update anyone interested, I have updated my Particle Playground see post: http://www.mikecann.co.uk/?p=392 Also I stumbled accross this very interesting particle on 300k 3D particles in flash using alchemy and pixel bender! http://www.unitzeroone.com/blog/2009/03/18/flash-10-m