I have to send some specific xml to a php script (from flash AS2) that then sends out sms message based on the xml. I have been given the xml by the sms sender and have tested it via their live demo and that works fine. The problem I am having is getting flash to send this XML.
The sms sender states that it needs to recieve the xml in the following format: The XML Document should be posted uriencoded, with a UTF‐8 character set as paramaeter 'xml'
Here is the code I have so far, I think something is missing maybe. I have tried running the swf in a browser rather than in the flash testing environment
var my_xml:XML = new XML('<xml></xml>');
my_xml.contentType = "text/xml";
send_btn.onRelease = function () {
I'm looking to send a list of variables (say 6 in total) from php to flash and for flash to pick a random one and send it back to php when clicking a button.
I would like it to appear in a dynamic text box. That randomly selected variable needs to be sent back to php on pressing a button.
I'm looking to send a list of variables (say 6 in total) from php to flash and for flash to pick a random one and send it back to php when clicking a button. I would like it to appear in a dynamic text box. That randomly selected variable needs to be sent back to php on pressing a button.
I am actually discovering Classes.I try to make a class that reads out an XML file and than converts it into arrays.the array is well created in the class file, but I can't send it back to the swf correctly: it only duplicates the first item of the array in an infinite loop, but when I trace it into the class the output displays it right..
with this code I call the class:
Code: var myProduct:Product = new Product("gallery.xml"); this.onEnterFrame = function() { trace(myProduct.getArray());
a week ago I bought the following monster template template:[URL]..my last changes to it were to the popup boxes that appear on the SERVICII page when you click those titles there. Right after those changes it compiled and published, everything ok, i did several other tasks in Photoshop then back to my flash and at the next recompile, Error - Send don't send Flash has to close. I reopened it and it keeps closing forced. I tried undoing my steps but nothing worked. I am desperate, the project is due completion on saturday and my source is messed up.
Can anyone tell me why I get that? Has anyone been in a similar situation.I am a flash newbie, I saw no errors in "Compiler Errors" or in "Output", just force closing the Flash CS3.
Example of code which would be used to send a bunch of variables to a PHP script via flashThis would require the PHP script to load when the data is sent.I want to use this for a Flash event calender which triggers more information about the event to appear in a HTML area of the page when an event is clicked on. The PHP file would be the same file that the SWF is embeded in so the FLASH file would reload the page with the variable sent to the PHP. The PHP would use this variable to select the right content from a MySQL database.
I'm trying to send array of data from Flash to PHP to sending e-mail. I'd like to do that because I must change the php page everytime my form site changes because of client's choice.[cod]e...
I need to send a tweet from flash, so i've been looking for solution on the net, but everything i found is using as3. Since i don't know anything of as3, it becomes difficult to edit everything.
Is it possible to send sms from flash, by using PHP? I would be greatful if someone knew about a tutorial for this, or if anyone has any idea about how to do this.
i want to know, i have a video.swf in a page, and when the video finish, it go to another url,
www.site.com/index.html <----- video.swf
it redirect to www.site.com/index.php
how can i put the video in the index.php, and send 1 variable via post, so when it finish send to the same url that he are but with a varible, and them in php i look this variable and show the page
basically, the ecard will start with 3 questions.each question has 3 answers.so user choses the answer e.g. B, B, C and clicks preview.it will play the movie clip assigned to B B C in sequence.then user can click send to sent to friend.so the URL needs to be able to identify the sequence maybe in parameters.so that when his friend receives the ecard and clicks on the flash it will play B B C sequence.then his frind can create his own ecard and maybe A C A etc...So how i created like that?
How can I send 'eCards' from within flash? I want the user to pick/select an image and put some text and the email address the email goes to into formula. I want to send an customized email with individual text and (inline) attached image to a defined email address.
in browser output, everything is fine, the color of the font has changed to #CCCCC but when i load the code into flash e.g.
slogan_txt.html = true; slogan_txt.htmlText = textFromPhp; the color hasn't changed.
I've trace (slogan_txt.htmlText);
I can see there are a lot of default setting for htmlText:
<P ALIGN="LEFT"><FONT FACE="Times New Roman" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">
But I couldn't see my imported php code <font color=#cccccc>
On the other hand, the imported php code of font size could override the default html setting of flash player I've also try echo "<font color=""."#"."CCCCCC"."">"; no luck.
Send data from Flash to PHP = Possible. Is it possible the other way? ( for example, send a variable from PHP to Flash ). If it is, how secure is it? Can people see the data that was sent?
So I'm trying to send an array of values from PHP to Flash, but the problem is any character I could use to separate the values could potentially be in the value itself.
Fine, no problem I thought. I'll just urlencode the variables and allow (for arguments sake) commas to separate the 'encoded' values.
Just after I'd finished laughing about my mighty victory over code adversary as I often do, I attempted to fetch the array from the PHP file and I quickly learned that Flash automatically applies the 'escape' function to the data after it is received. My laughter was replaced by (for theatrical sake) tears!
A way to tell Flash to stop automatically 'escaping' the incoming variables, or
A way to send an array of values without using a character that could be used in the variable (which could be anything... fullstops, commas, dashes. Pretty much anything within reason)
Now, before you mention that I should just make a NVP (Name value pair) for each variable in the array, know that there is quite a lot of data already being loaded, and adding (what I consider is) unnecessary extra NVP syntax (which would double the large amount of data I'm sending) could potentially cause trouble, not to mention a general lack of bandwidth.
Should I bite the bullet and NVP my arrays (ugh!), or maybe use an obscure character as the separator... but I would like a practical approach to this solution... like stopping Flash from automatically escaping the input.[code]...
I have got to send sth by ASP in Flash. I wrote some code but this doesnt work.[code]If I just click on email. asp without Flash, I will get a email from there. But if I use the above method to call that page, the email wont be sent. So do anyone know what wrong?
I create an xml in flash and want to save it on the server. i user my_xm.send("script.php"); to send the created xml, but don't know how to handle it in PHP in order to save the file on the disk.
I have been given task and dont know where to start. I need to produce a small quiz that sends the selected values to an asp.net application form there populates the database with the values chosen.
Ive been told this is the best way to send values from flash to a database.
In a contact page, there is fields for sending message. What I want to do is that, when i click the send button, the message should be send to corresponding mail ID. Is there any need to use server side languages for this purpose?
How can I send a photo for example to mount a virtual catalog and preview my album?I use a simple form with 5 fields of transmission and viewed the small image after submission.
Basically I am trying to send a variable from flash to php, I was trying to do it through the sendToURL function, because this seemed to be the most appropriate way to do this, although I may be wrong. Below is the AS.
var quizVariables:URLVariables = new URLVariables(); quizVariables.party = "labour"; var myURLRequest:URLRequest = new URLRequest(".../partyhandler.php"); myURLRequest.data = quizVariables; sendToURL(myURLRequest);
Once this is done it should cause the following PHP to run (which works fine if I manually type in the address eg .../partyhandler.php?party=labour)
$party = $_GET['party']; mysql_query("UPDATE party SET $party = $party+1 WHERE id=1");echo $party;
however something seems to not be working with the flash element of the code.
just wondering if anyone could let me know how i would go about setting up my flash app to send an email when the submit button is pressed?
I know i need to use php but everytime i try it doesnt work, i read i need to add code to my server, although this application isnt meant for the web as such its more a local application whereby the user can type a message when they require help and send it over the internet to my mailbox