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
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
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
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 =
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
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
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
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
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
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[
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
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
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
13 matches
Mail list logo