I have an XML object that I want to send to my player via HTTP POST. This is all good when using XML.sendAndLoad.The problem is that when the XML object I generate contains CDATA, the CDATA is stripped out before the POST occurs.so if I have:
var xml:XML = new XML("<root><tag><![CDATA[hello]]></tag></root>")
when I do a sendAndLoad this is what gets POSTed:
<root><tag>hello</tag></root>
the same occurs when I try to create the XML using XMLDOM methods like createElement, createTextNode, and appendChild.the AS2 docs say that CDATA is not supported. Is there a workaround for this? I'm thinking that it could be fixed by extending and overriding the XML class, but I haven't found a way to do it yet. I can't use LoadVars here either because it will attach a variable name, and we don't want that.
now, the problem ... I cant extract the [CDATA[57.14]],[CDATA[14.29]] & ![CDATA[28.57]] to use it ... I tried several things with firstChild,ChildNodes, but no luck ... any one has a simple solution to put all this in an Array so i can get the stuff out to use it ..
I'm trying to include some JavaScript (JSON 2, to be precise)in with some ActionScript 3 classes. I'm using the inline XML method (E4X) of declaring the data. It looks like this:
public static var JSON_2:XML = <data><![CDATA[ if (!this.JSON) { JSON = function () {[code]....
Actually, this is only about a quarter of what I need to include but this is where it breaks down. Right after the second slash in the last line, Flash reports: TypeError: Error #1091: XML parser failure: Unterminated CDATA section.
In fact, as you can see this is a perfectly valid CDATA section and isn't being terminated anywhere (there is no instance of "]]>" anywhere in the data). Unfortunately, Flash doesn't think so and seems to think that the backslash is an XML node directive. how to effectively deal with this? The JSON source code has *many* backslashes so not having to convert them would be *very* useful.
OK, you can use loadVariables and loadVars and a few other commands to post (or get) a variable to a server. What I'm trying to do is post an Array to a server and have the server output a text file of the array.
I have been toying with perl / cgi a bit: gaining some in site on Data Base programming. Would Perl be a decent program for the job of outputting a text file?
I've installed free FMS developper version on a vista OS, using the embeded Apache server. I added PHP 5.13 and everything seems to work except that : when I try to manage HTML forms, using the 'post' method, the result is a prompt windows, asking me for downloading the php file (corresponding to that pointed in the 'action' attribute. It acts as if Apache did not recognize the type php. My httpd.conf includes everyting to make php works fine. The clue is, when I change the form 'method' to 'GET', the php script works well! My FMS is configured to tunnel the HTTP request, listening to ports 80 and 1935 ant proxying HTTP to port 8134 (defaults) When I override this tunneling, by requesting the php file from my web browser directly to port 8134, it works fine too ! Now, I know that the problem comes from FMS and HTTP tunneling, but I have no idea how to solve it...
We're trying to get microphone input in a Flash movie and the post it to the server so it can be saved in a file.
Currently, we're using PHP in the server, but I guess the key thing here is: How to post the audio to the server?
After a post is made, then I guess it'd be a matter of handling the encoding and saving to a file, which can be done with pretty much any server-side language.
I saw this post and don't understand why it's so struggling to post an image to server side with flash, or is it just the poster didn't do it in a proper manner ?So far my progress is:
var ba:ByteArray = (new PNGEncoder()).encode(vidBmpHolder); var request : URLRequest = new URLRequest("http://localhost:3000/doodles"); request.method = URLRequestMethod.POST;
At the moment, I am posting information from my flash to a PHP page within the same server. This causes no problems, as I am posting to a PHP file within the same directory. form.loadVariables("email.php", "POST"); However, I am wanting to place my 'WIDGET' on other sites but still post the information back to my server to the PHP file (email.php).
I have some basic experience with using URLRequest to POST variables to my server which works fine.How do I post an array to my server and receive it back?
I have written an actionscript snippet to POST a XML file to the server side.
//code begin var secondsUTC:Number = new Date().time; var dataXML:XML = new XML(); dataXML= <?xml version="1.0" encoding="utf-8" ?> ; <login> <time>{secondsUTC}</time> [Code] .....
When testing, the progress went well. When the loading process have completed. The server side didn't get any files.
I have a rails app that embeds a swf. The swf takes user input and posts to the server. For testing purposes, the controller is just redirecting the browser back to another pagewithout processing the data. Interestingly, after the post, the server log and the firebug log shows what clearly looks like a successful redirect (200) showing the correct URL GET, but the browser does not actually move to the new page and is stuck on the same page with the flash app. Same behavior occurs in both Firefox and Safari.
I'm running FMS 3.5 on RedHat, and have some server side actionscript that is attempting to perform an HTTP GET on a remote URL, e.g:
loadVars.send("http://someurl/");
This works on a Windows XP development server, but not on the RedHat deployment server. Are there any configuration options that I need to be aware of in order to allow my application to perform requests such as these (i.e. HTTP requests to remote servers)?
I've noticed that when I use NetConnection.call(methodName) in my client Actionscript it sends a POST request off to the server. I thought this was odd because requests for data are normally GET operations but I didn't worry about it because it doesn't impact my applicationow I have our sysadmin complaining about the amount of data I'm shifting over POST requests because POST requests aren't cached by the web servers (and we are working with the kind of traffic levels where that matters.) Is there anyway I can make call() use GET?The code I'm using is all fairly standard, but here is the relevant snippit:
var nc:NetConnection = new NetConnection(); nc.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler); nc.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
I'm trying to post a username and password to a server side script.The client provided an HTML form that demonstrates that the sever side functionality is working, but I keep getting the following:
i have a recorded dvr stream, using the dvrcast sample application. of course, i couldn't play it or use it in video post processing tools so i tried the f4v post processor fms tool.unfortunately, both f4v post processor and flvcheck tools throw error and exit immediately
setPublishPassword and setPostingPassword ?I do not quite understand, do not use an example.I set him groupspecWithOutAuthorizations, but was illegally set to groupspecWithAuthorizations how to do.
I'm having a very frustrating problem with FMS. A stream recorded on the server-side won't play until I restart the server.
The user flow I'm currently working with is:
1. record webcam stream
2. close the stream
3. call FMS function to post process the stream
4. FMS joins the recorded webcam stream with two pre-recorded videos and stores as a new stream
Then, knowing the new stream name, I'm trying to play it. However, I'm always seeing its last frame and it doesn't play. Surprisingly, restarting the server and re-connecting to it helps, then I can play the stream.
So I wonder if (server-side):
var stream = Stream.get("streamName"); stream.record(); stream.play(...); stream.play(...); stream.play(...);
How can I post a tweet directly to twitter without needing to use a server-side proxy script (ie, tweetr)? Can a twitter API call be made directly from a swf?
Im building a reservation form, using actionscript and php. I use sendAndLoad to send variables to php via POST, which returns a different HTTP POST response in case of sucess or not.
Is there anyway to "read" HTTP POST responses with actionscript?
<EventDays> <EventDaysInfo year = "2012" month = "0"> <![CDATA[<Days day="0" name="sdfds" desc="fgfds" _img=""/>]]> <![CDATA[<Days day="0" name="sdf" desc="" _img=""/>]]> <![CDATA[<Days day="0" name="dsf" desc="dsfd" _img=""/>]]> ..... This is the structure of my XML, and I tried in some ways, but I can't able to get Character DATA as XML data. Is this any way to convert CDATA into XML in AS3?
So i stand corrected. the <a href is screwing up my XML data.If I plop a CDATA tag in the XML obviously it works fine. But is there any other options to keep that tag out of the XML file?If I can somehow include it in Flash (which logically doesn't make sense) that would be great. The XML is generated server side and I can't get them to mod it.
I am loading up xml(rss2) in AS3, then trying to get something out of the description tag from each item. The description usually looks like this[code]...