ActionScript 2.0 :: Can't Read PHP Output In Flash
Jul 31, 2009
I'm setting up an email form in an AS2 movie.
Everything works, and emails are sent properly. However, at the end of my PHP is a check to see if everything sent properly. It sends output=sent if all is peachy, otherwise output=error. Flash can't see either one, and lists as undefined.
A friend of mine has a Flash Action script running on a LAMP server that currently reads an xml config file. He's asked me if it's possible to remove the xml file, and replace it somehow with a system (lets call it an 'auto xml generator') that intercepts the request to read that file and generates an output, so it appears to all intents and purposes as if the file still exists and contains the contents that has actually been returned from our auto xml generator'
I plan to add other variables to the output time, so need to access each time and worked separately. I may also need to return multiple responses each with their own worked and time values. How do I do that. I was thinking to not use XML. Is there a more lightweight option. Flex shows I have the following options: array e4x flashvars object text xml
So I want to read http streams using flash tcp sockets. I do not really need the http header at all - all I need is body which contains flv. so how to read http response body into byte array using flash sockets?
I'm teaching myself ActionScript and the book I'm reading just got into input text capabilities. The book shows me how to link input text to a variable and output that text to the output window using trace. My question is: how can I display the text that the user input onto the actual movie. For example... if I wanted the visitor to type their name into the input text box and click Submit and then a phrase shows up with their name such as "Hold on Name, my site will be done soon." How do I reference that variable and have it actually display in my movie?
Does anyone know if it is possible to randomize assets in Flash. Basically I am creating a flash based application which when the user hits a target button the preceeding screen should show a completely random asset (which would be an SWF), at the moment each button is simply tagged to a particular swf, although i need it to be more random than this?
I am trying to trace a fairly large 2d array (many thousands of elements) to copy in some other code. The code obviously takes a while to run but this doesn't matter to me since it's a one time thing. I used to be able to do this no problem in Flash CS5, but now Flash is truncating the text somewhere in the middle so I don't see all of it. Is there a way to disable this?
can I use PHP to create an XML file called AGConfig.xml on a server? AGConfig.xml is a file that is used by 2 different applications there is a config swf and a main app swf...initially you run the config swf which takes in MySQL Login information...and a event name.when you load the config swf all the fields are blank (whether or not the AGConfig.xml exists)...what I want to do is write an XML file on the server.I am wondering if its possible to do this using PHP? What I have found is that you can definitely save it to your local drive.but is it possible to output an XML file on a server? For example.my php file and flash app files are at www.somesite.com/test/ and if i run.[code]
If there's a way to disable the Output panel in Flash? I've tried turning off most of the Warnings section in the prefs, but apparently that doesn't affect the Output panel.
I want to allow a user to create a comic page layout in Flash which would allow them to upload JPEGs into the comic page layout then the Flash interface would allow them to move them around and add speach bubbles.
I would then like these to be uploaded to my web server and the whole thing converted to a JPEG. What would be involved to achieve this?
Is there an easy way to output flash data into a word document or into a text file without using API scripts,PHP and all that kind of stuff? Because it's fairly over my head. And If there is a way possible - will it interfere with security settings on someones computer?
Is there any way to record what flash player displays? I thought of sampling the framebuffer contents like 30 times per second but i am not sure if that is even possible under Windows.note: i know that there are plenty of software that converts swf to avi, but i wanna do it programmatically because my aim is not to save them to my disk as avi or sth.
As a follow up to learning the XML in AS3 from this Tutorial, http:[url]...ml_as3_pg1.htm, wanted to know how to create text boxes dynamically for each element to display on the stage. Want to add space to the y axis to drop one on top of the other, so they don't just layer on top of each other.
Code: for (var i:int = 0; i < authorList.length(); i++) { var authorElement:XML = authorList[i]; trace(authorElement);[code]....
1) Screen 1: A user login Screen - Once i enter my user name and password i will enter into the Screen 2 2) Screen 2: Screen 2 Displays with my User name on Top and Frame out looks like Course Lessons under the course 1) 2) 3)....
Towards the right side I want to view whether the lesson is Completed/Not Started/In Progress (which has to call from the database) followed with Date and Duration. What steps to be followed to make this output. (To make this output format what do we need to use like.. flash, xml,sql database...).
I am looking for a script that will go through ~75,000 SWF files that we have, will decompile each and find all the Shapes/Elements which size is greater than x.The output should look smthng like:SWF Filename "SWF Path" "SWF overall Size" "Element Name" "Element Size".Does anybody know of a software that might be able to handle that task?How do decompile scripts work ? would it be easy to write something to handle the above task?
When a compile and run the application, the output is entirely blank. The HTML wrapper page does contain the flash application, but the content is blank, even though I have a simple label component on the stage.Also I noticed that when I right-click on the flash object, the default context menu appears, displaying the "Zoom In", "Zoom Out", "Show All", etc..options which are removed from the application by default.If you are interested, here is my code, as easy as it gets. :)
I'm developing an applications which I've got running on a server on my linux desktop. Due to the shortcomings of Flash on Linux (read: too hard) I'm developing the (small) flash portion of the app in Windows, which means there's a lot of frustrating back and forth. Now I'm trying to capture the output of the flash portion using flash tracer and that is proving very difficult also. Is there any other way I could monitor the output of trace on linux?
I'm assuming this is flatly impossible, but has anyone ever heard of or seen a way to implement dual-audio output from within a browser, a la DJ software (user's hardware allowing)? Anything in Flash? Google searches don't seem to be giving me any love on this...
using .lineTo(x,y) and .moveTo(x,y) i have created an image and i would like to save that image as a separate .bmp or .gif or .jpeg (format is not really important). Is there some way that i could acheive this? and would it involve calculating the color of every pixel?
I'm trying to find out if there is a way to output serial information from flash. For instance, I have a serial port (Can also be USB) device with eight relay switches, each one triggered by a few bits and bytes correlating to the serial pins. I was wondering if the print function in flash could be forced to output specific signals.