[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 pushed down the socket even 
though the xml on both says all hosts all ports.


   Is this how it's supposed to work, because it's really annoying 
having to do a x-domain file for every connection...


   Is there anyway around this?

   Glen
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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 g...@engineeredarts.co.ukwrote:

 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 pushed down the socket even
 though the xml on both says all hosts all ports.

   Is this how it's supposed to work, because it's really annoying having to
 do a x-domain file for every connection...

   Is there anyway around this?

   Glen
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




-- 
--Joel Stransky
stranskydesign.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[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 title 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[1] = Dictionary 2

Thank you



   1. var myXML:XML =
   2.   order
   3.   book
   4.   titleDictionary 1/title
   5.   /book
   6.   book
   7.   titleDictionary 2/title
   8.   /book
   9.   /order;
   10. trace( myXML.book.title.toString() )
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[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 =
order
book

titleDictionary 1/title
/book
book
titleDictionary 2/title

/book
/order;

var arr:Array = new Array();
var childLength:uint = myXML.children().length();


for ( var k:uint = 0 ; k  childLength ; k++ )
{
arr.push( myXML.children()[k].title.toString() );

trace( myXML.children()[k].title.toString() )
}




On Thu, Mar 19, 2009 at 1:11 PM, ACE Flash acefl...@gmail.com wrote:

 Hey there,

 I was trying to parse the XML to get all value of title 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[1] = Dictionary 2

 Thank you



1.
var myXML:XML =

2.
   order
3.
   book
4.
   titleDictionary 1/title
5.
   /book
6.
   book
7.
   titleDictionary 2/title
8.
   /book
9.
   /order;
10.
trace( myXML.book.title.toString() )




___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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 Behalf Of ACE Flash
Sent: 19 March 2009 17:11
To: Flash Coders List
Subject: [Flashcoders] A very simply question of XML toString()

Hey there,

I was trying to parse the XML to get all value of title 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[1] = Dictionary 2

Thank you



   1. var myXML:XML =
   2.   order
   3.   book
   4.   titleDictionary 1/title
   5.   /book
   6.   book
   7.   titleDictionary 2/title
   8.   /book
   9.   /order;
   10. trace( myXML.book.title.toString() )
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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?

Thank you.

var myXML:XML =
order
book

titleDictionary 1/title
/book
book
titleDictionary 2/title

/book
/order;

var arr:Array = new Array();
var childLength:uint = myXML.children().length();


for ( var k:uint = 0 ; k  childLength ; k++ )
{
arr.push( myXML.children()[k].title.toString() );

trace( myXML.children()[k].title.toString() )
}




On Thu, Mar 19, 2009 at 1:11 PM, ACE Flash acefl...@gmail.com wrote:

  

Hey there,

I was trying to parse the XML to get all value of title 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[1] = Dictionary 2

Thank you



   1.
   var myXML:XML =

   2.
order
   3.
book
   4.
titleDictionary 1/title
   5.
/book
   6.
book
   7.
titleDictionary 2/title
   8.
/book
   9.
/order;
   10.
   trace( myXML.book.title.toString() )






___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


  


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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 acefl...@gmail.com wrote:
 Hey there,

 I was trying to parse the XML to get all value of title 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[1] = Dictionary 2

 Thank you



   1. var myXML:XML =
   2.   order
   3.           book
   4.                   titleDictionary 1/title
   5.           /book
   6.           book
   7.                   titleDictionary 2/title
   8.           /book
   9.   /order;
   10. trace( myXML.book.title.toString() )
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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 =
order
book

titleDictionary 1/title
/book
book
titleDictionary 2/title

/book
/order;

var arr:Array = new Array();
var childLength:uint = myXML.children().length();


for ( var k:uint = 0 ; k  childLength ; k++ )
{
arr.push( myXML.children()[k].title.toString() );

trace( myXML.children()[k].title.toString() )
}

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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 =
order
book

titleDictionary 1/title
/book
book
titleDictionary 2/title

/book
/order;

var arr:Array = new Array();
var childLength:uint = myXML.children().length();


for ( var k:uint = 0 ; k  childLength ; k++ )
{
arr.push( myXML.children()[k].title.toString() );

trace( myXML.children()[k].title.toString() )
}

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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 kennethkawam...@gmail.com
 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 way to push them into an
 array?

 Thank you.

 var myXML:XML =
order
book

titleDictionary 1/title
/book
book
titleDictionary 2/title

/book
/order;

 var arr:Array = new Array();
 var childLength:uint = myXML.children().length();


 for ( var k:uint = 0 ; k  childLength ; k++ )
 {
arr.push( myXML.children()[k].title.toString() );

trace( myXML.children()[k].title.toString() )
 }

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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 = 
order

 book
  titleDictionary 1/title
 /book
 book
  titleDictionary 2/title
 /book
/order;

dp = new DataProvider(myXML);
trace(dp length: , dp.length);
var item:Object = dp.getItemAt(0);
trace(first item: , item);
trace(item title: , item.title);

So rather than storing just the title (in an array), you store each book node 
as an Object (Array of Objects).

regards,
Muzak

- Original Message - 
From: ACE Flash acefl...@gmail.com

To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Thursday, March 19, 2009 6:11 PM
Subject: [Flashcoders] A very simply question of XML toString()



Hey there,

I was trying to parse the XML to get all value of title 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[1] = Dictionary 2

Thank you



  1. var myXML:XML =
  2. order
  3. book
  4. titleDictionary 1/title
  5. /book
  6. book
  7. titleDictionary 2/title
  8. /book
  9. /order;
  10. trace( myXML.book.title.toString() )
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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.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-massive-amounts-of-3d-particles-with-alchemy-source-included/

It put a swift end to the thoughts about how clever i was with 40k 2D
particles :P



2009/3/18 mike cann mike.c...@gmail.com

  

Sure will, i learnt quite abit about what you can and cant do with shaders
in flash making this. I hope to share with you all soon.

2009/3/18 Eric E. Dolecki edole...@gmail.com

Ping us when you release something or have a demo online. Looks cool.


E.

On Wed, Mar 18, 2009 at 8:03 AM, Hans Wichman 
j.c.wich...@objectpainters.com wrote:

  

awesome:)

On Wed, Mar 18, 2009 at 12:45 PM, mike cann mike.c...@gmail.com


wrote:
  

Hey List,

I have been playing around with particles again...

I have just released my latest little saunter into the world of
  

particles
  

and shaders in flash 10. It started off as and idea to use the new
  

pixel
  

bender shaders of flash 10 as a more efficient method of updating
  

particle


simulations.

Well after a few struggling evenings I managed to get a little
  

prototype
  

going. I was so amazed at some of the beautiful patterns and effects
  

that
  

the particles were making I thought it may be nice rather than just
releasing a tech demo, to add abit more to it and release it for
  

others
  

to


enjoy.

I will be releasing the source code in the coming weeks along with a
  

blog
  

post which should explain in detail how the technical aspects of
  

updating
  

and rendering tens of thousands of particles per frame works.

The tool features a gallery tab which you can use to take screenshots
  

then


upload them to my picassa account (proxyed via php). The hope is to
  

get
  

some
realy beautiful images in here, perhaps if some are good enough ill
  

get
  

them
printed and framed ;)

You can see it in action over on my blog:
  

http://www.mikecann.co.uk/?p=384


Let me know what you think!

Mike Cann
http://www.mikecann.co.uk/
http://www.artificialgames.co.uk/
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

  

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




--
http://ericd.net
Interactive design and development
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

  


--
Mike Cann
http://www.mikecann.co.uk/
http://www.artificialgames.co.uk/






  


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders