Re: [Flashcoders] XML-PHP-FLASH

2006-04-20 Thread Yotam Laufer
I have to completly disagree with you. Use XML in Flash, I really can't
think of a better method. I don't know what version of Flash you're using,
but you can use XPathAPI or xfactor studio XPath to make you life easier.

I will hurt at first, no doubt, but it's the best way.

Good luck. Yotam.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Re: [Flashcoders] XML-PHP-FLASH

2006-04-20 Thread CK

FLASH 8 I have xFactor studio XPath.


No harm did, my question meagerly served as hypothesis



Respectfully,
CK
On Apr 20, 2006, at 9:09 AM, Yotam Laufer wrote:

I have to completly disagree with you. Use XML in Flash, I really  
can't
think of a better method. I don't know what version of Flash you're  
using,
but you can use XPathAPI or xfactor studio XPath to make you life  
easier.


I will hurt at first, no doubt, but it's the best way.

Good luck. Yotam.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] XML-PHP-FLASH

2006-04-20 Thread Steve Webster
After browsing the Kirupa.com XML tutorial written by Senoculor, it  
appears that given the awkward way the AS XML Object works that  
using PHP to parse XML then pass the PHP variables to flash may be  
less intense.  Could someone enlighten?


I'd disagree with this, unless you're using something like AMFPHP to  
pass a native PHP object structure back to Flash. Otherwise, you're  
loosing all the meaning inherent in the XML hierarchy.


Cheers,

Steve

--
Steve Webster
Head of Development

Featurecreep Ltd.
http://www.featurecreep.com
14 Orchard Street, Bristol, BS1 5EH
0117 905 5047


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] XML-PHP-FLASH

2006-04-20 Thread Shaw, Matt (MTVN)
Or don't write any XML at all. 
All the kids are using XML-RPC with Flash - it's the neatest!

http://xmlrpcflash.sf.net

 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of CK
Sent: Thursday, April 20, 2006 12:05 PM
To: Flashcoders mailing list
Subject: [Flashcoders] XML-PHP-FLASH

Hi,

After browsing the Kirupa.com XML tutorial written by Senoculor, it
appears that given the awkward way the AS XML Object works that using
PHP to parse XML then pass the PHP variables to flash may be less
intense.  Could someone enlighten?



Respectfully,
CK
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training http://www.figleaf.com
http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] XML-PHP-FLASH

2006-04-20 Thread Julian 'Julik' Tarkhanov


On 20-apr-2006, at 18:43, Shaw, Matt (MTVN) wrote:


Or don't write any XML at all.
All the kids are using XML-RPC with Flash - it's the neatest!

http://xmlrpcflash.sf.net




And what about JSON? Did it make any inroads into Flash yet? Seems  
much more terse and useful for bare-struct juggling than XML.


--
Julian 'Julik' Tarkhanov
please send all personal mail to
me at julik.nl


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] XML-PHP-FLASH

2006-04-20 Thread CK

Hi,

I got the idea from Foundation Flash MX Applications,  is my  
understanding of the text in err?



CK




On Apr 20, 2006, at 9:38 AM, Steve Webster wrote:

After browsing the Kirupa.com XML tutorial written by Senoculor,  
it appears that given the awkward way the AS XML Object works that  
using PHP to parse XML then pass the PHP variables to flash may be  
less intense.  Could someone enlighten?


I'd disagree with this, unless you're using something like AMFPHP  
to pass a native PHP object structure back to Flash. Otherwise,  
you're loosing all the meaning inherent in the XML hierarchy.


Cheers,

Steve

--
Steve Webster
Head of Development

Featurecreep Ltd.
http://www.featurecreep.com
14 Orchard Street, Bristol, BS1 5EH
0117 905 5047


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] XML-PHP-FLASH

2006-04-20 Thread Ettwein, Josh
If you're already using PHP on the server side, I can't see why you
wouldn't use AMF - it's binary, where xml is not, and is far more
verbose to send across the pipe.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Shaw,
Matt (MTVN)
Sent: Thursday, April 20, 2006 9:43 AM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] XML-PHP-FLASH

Or don't write any XML at all. 
All the kids are using XML-RPC with Flash - it's the neatest!

http://xmlrpcflash.sf.net

 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] XML-PHP-FLASH

2006-04-20 Thread Rich Rodecker
well, yes i would recommend you look at amfphp, but while it's great
and I use it often, sometimes that could be overkill depending on your
needs.

the thing with sending xml to flash is that you have a nicely
structured object to deal with (as opposed to sending flash a
url-encoded string and parsing that).  The downside is, if you are
going to use the flash's native xml-handling methods(firstChild,
childNodes[]), it maybe become cumbersome if you are dealing with some
complex xml.  As mentioned previously, sending xml will pretty much
always require sending more data, since you have to send all the extra
xml info with the response.

If you're xml is fairly light however, it may be worth your time to to
just send back the xml, and use flash's native xml object methods. 
Also mentioned is XPath, which really rocks, and the combination of
sending back xml to flash and using XPath syntax to query the xml
object is pretty powerful.





On 4/20/06, Ettwein, Josh [EMAIL PROTECTED] wrote:
 If you're already using PHP on the server side, I can't see why you
 wouldn't use AMF - it's binary, where xml is not, and is far more
 verbose to send across the pipe.

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Shaw,
 Matt (MTVN)
 Sent: Thursday, April 20, 2006 9:43 AM
 To: Flashcoders mailing list
 Subject: RE: [Flashcoders] XML-PHP-FLASH

 Or don't write any XML at all.
 All the kids are using XML-RPC with Flash - it's the neatest!

 http://xmlrpcflash.sf.net


 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] XML-PHP-FLASH

2006-04-20 Thread Ettwein, Josh
Oh yeah, I totally agree with you. If the packets of data are small, no
reason against just using XML/Xpath. I meant use AMFPHP for larger
datasets, where XML's verbosity becomes an issue. Personally, I use
AMFPHP for everything, but that's only because I've been using it for
several years, and I've got a really good system set up with base
classes for a simple AS2 MVC/P system using AMFPHP. I can get a
framework up and running in like 5 minutes or so with data going back
and forth.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Rich
Rodecker
Sent: Thursday, April 20, 2006 10:55 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] XML-PHP-FLASH

well, yes i would recommend you look at amfphp, but while it's great and
I use it often, sometimes that could be overkill depending on your
needs.

the thing with sending xml to flash is that you have a nicely structured
object to deal with (as opposed to sending flash a url-encoded string
and parsing that).  The downside is, if you are going to use the flash's
native xml-handling methods(firstChild, childNodes[]), it maybe become
cumbersome if you are dealing with some complex xml.  As mentioned
previously, sending xml will pretty much always require sending more
data, since you have to send all the extra xml info with the response.

If you're xml is fairly light however, it may be worth your time to to
just send back the xml, and use flash's native xml object methods. 
Also mentioned is XPath, which really rocks, and the combination of
sending back xml to flash and using XPath syntax to query the xml object
is pretty powerful.


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] XML-PHP-FLASH

2006-04-20 Thread Shaw, Matt (MTVN)
I believe JSON relies on the ability to eval a string into an object,
which flash can't do without some help.

Eg: eval('{ key: value }');  

Won't work in Flash, you'd have to parse the string - then why not parse
XML

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Julian
'Julik' Tarkhanov
Sent: Thursday, April 20, 2006 12:59 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] XML-PHP-FLASH


On 20-apr-2006, at 18:43, Shaw, Matt (MTVN) wrote:

 Or don't write any XML at all.
 All the kids are using XML-RPC with Flash - it's the neatest!

 http://xmlrpcflash.sf.net



And what about JSON? Did it make any inroads into Flash yet? Seems much
more terse and useful for bare-struct juggling than XML.

--
Julian 'Julik' Tarkhanov
please send all personal mail to
me at julik.nl


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training http://www.figleaf.com
http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] XML-PHP-FLASH

2006-04-20 Thread Shaw, Matt (MTVN)
That is true. There's mucho overhead with serializing things to XML. 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ettwein,
Josh
Sent: Thursday, April 20, 2006 1:25 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] XML-PHP-FLASH

If you're already using PHP on the server side, I can't see why you
wouldn't use AMF - it's binary, where xml is not, and is far more
verbose to send across the pipe.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Shaw,
Matt (MTVN)
Sent: Thursday, April 20, 2006 9:43 AM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] XML-PHP-FLASH

Or don't write any XML at all. 
All the kids are using XML-RPC with Flash - it's the neatest!

http://xmlrpcflash.sf.net

 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training http://www.figleaf.com
http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] XML-PHP-FLASH

2006-04-20 Thread CK

Hi,

The How-To page spits 404, any other sources on using XML-RPC?


CK
On Apr 20, 2006, at 9:43 AM, Shaw, Matt (MTVN) wrote:


Or don't write any XML at all.
All the kids are using XML-RPC with Flash - it's the neatest!

http://xmlrpcflash.sf.net



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of CK
Sent: Thursday, April 20, 2006 12:05 PM
To: Flashcoders mailing list
Subject: [Flashcoders] XML-PHP-FLASH

Hi,

After browsing the Kirupa.com XML tutorial written by Senoculor, it
appears that given the awkward way the AS XML Object works that using
PHP to parse XML then pass the PHP variables to flash may be less
intense.  Could someone enlighten?



Respectfully,
CK
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training http:// 
www.figleaf.com

http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com