[Flashcoders] Calling applescript from Adobe AIR

2011-07-20 Thread Sumeet Kumar
Hi All, Is there any way by which I can call Applescript from Adobe air? Any help or suggestion on this regard would be great. Regards Sumeet Kumar ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

Re: [Flashcoders] Calling applescript from Adobe AIR

2011-07-20 Thread Glen Pike
Hi, Not sure, but if AppleScript files can be executable like shell scripts in Linux, then you can call them from Air desktop using the Native Process API. If you download Air Launchpad and get it to generate the source code example for the Native Process API, you can then hack it

RE: [Flashcoders] Calling applescript from Adobe AIR

2011-07-20 Thread Sumeet Kumar
Thanks a lot for the help Glen, One more question, I am using flex builder 3 and flex SDK 3.2.0, But I am not able to find the nativeprocess API in this configuration. I tried overlaying adobe air 2.0 on flex SDK 3.2.0 as mentioned in some forums but still it does not work. Do I need flash

Re: [Flashcoders] Calling applescript from Adobe AIR

2011-07-20 Thread Glen Pike
Hi, I am using FlashDevelop with flex_sdk_4.1.0.16076 and Air 2.5 SDK - can you change the Flex SDK your Flex Builder uses? I think the Native Process API requires AIR 2.0 at least. You also have to setup your #AppName-app.xml file to have the extendedDesktop permissions:

[Flashcoders] Incorrect XML from PHP to Flash

2011-07-20 Thread Cor
I am loading data from a mySQL database into Flash with PHP. But I get a string with all the tag-signs replaced with %-characters: %3C%3Fxml%20version=%221%2E0%22%20encoding%3D%22UTF%2D8%22%20%3F%3E%0A%3Cdat a%3E%3Cproject%3E%3Cproject%5Fcode%3E.

Re: [Flashcoders] Incorrect XML from PHP to Flash

2011-07-20 Thread Glen Pike
http://php.net/manual/en/function.urldecode.php On 20/07/2011 15:24, Cor wrote: I am loading data from a mySQL database into Flash with PHP. But I get a string with all the tag-signs replaced with %-characters: %3C%3Fxml%20version=%221%2E0%22%20encoding%3D%22UTF%2D8%22%20%3F%3E%0A%3Cdat

Re: [Flashcoders] Incorrect XML from PHP to Flash

2011-07-20 Thread Henrik Andersson
Your php code is broken then. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

RE: [Flashcoders] Incorrect XML from PHP to Flash

2011-07-20 Thread Cor
This is it without the DB-conection ofcourse: if (isset($_POST['sendRequest']) $_POST['sendRequest'] == read_all_projects) { $sql = SELECT * FROM tbl_projecten; $result = mysql_query($sql); header(Content-type: text/xml); $response ='?xml version=1.0 encoding=UTF-8

Re: [Flashcoders] Incorrect XML from PHP to Flash

2011-07-20 Thread Nathan Mynarcik
Have you tried without wrapping it in a CDATA tag? Could this be converting the tags to ASCII? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] Incorrect XML from PHP to Flash

2011-07-20 Thread Henrik Andersson
Did you even look at the code he posted? The code already does that! As for the code itself, while I do not aprove of using string concatenation to build xml, that seems to be ok. You seem to have some sort of dodgey filter running somewhere later in the chain. I recommend using a http

Re: [Flashcoders] Incorrect XML from PHP to Flash

2011-07-20 Thread Glen Pike
Hmm, maybe not URL encoding. What happens when you call the php page directly - in Firefox, does it show you the XML, or do you have to view the source? (The former would mean firefox considered it valid xml) Does the XML show all the url-encoded characters, or is it just in Flash? As an

Re: [Flashcoders] Incorrect XML from PHP to Flash

2011-07-20 Thread Nathan Mynarcik
Sorry, I meant to say NOT wrapping. Problem is beyond that though. On Wed, Jul 20, 2011 at 10:58 AM, Henrik Andersson he...@henke37.cjb.netwrote: Did you even look at the code he posted? The code already does that! ___ Flashcoders mailing list

[Flashcoders] Re: Flashcoders Digest, Vol 46, Issue 12

2011-07-20 Thread David Cohn
Paul, Yes, I've heard that. I can't gush over how great it is, but it's worked well and stably for me over an extended period of time. They're very slow at fixing bugs and making improvements, but if you can live with what they've got... --Dave On Jul 20, 2011, at 9:00 AM,

Re: [Flashcoders] Incorrect XML from PHP to Flash

2011-07-20 Thread Karl DeSaulniers
Hi Cor, I think you will want to put htmlspecialchars() around what comes out of the database. $String = htmlspecialchars($database_result); HTH, Best, Karl On Jul 20, 2011, at 9:24 AM, Cor wrote: I am loading data from a mySQL database into Flash with PHP. But I get a string with all

Re: [Flashcoders] Incorrect XML from PHP to Flash

2011-07-20 Thread Henrik Andersson
Karl DeSaulniers skriver: Hi Cor, I think you will want to put htmlspecialchars() around what comes out of the database. More like using a proper XML generating library. I recommend the DOM php extension. ___ Flashcoders mailing list

[Flashcoders] Signals in Robotlegs

2011-07-20 Thread David Wilcox
What's the best way to add signals to robotlegs? Those of you coding in Robotlegs are probably familiar with signals being used as a replacement for events. I'm looking to replace events in my app for signals but there seem to be two methods of implementing them. The first has been demonstrated

RE: [Flashcoders] Incorrect XML from PHP to Flash

2011-07-20 Thread Cor
It looks good directly it is just in Flash: This XML file does not appear to have any style information associated with it. The document tree is shown below. dataprojectproject_code1/project_codeproject_datum2011-07-19/proj ect_datumproject_klant_nummer1/project_klant_nummerproject_naamprojec t

RE: [Flashcoders] Incorrect XML from PHP to Flash

2011-07-20 Thread Cor
Is the issue due to sending URLVariables to PHP and Flash expects a value-pair back??? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders