ActionScript 3.0 :: Get Flash To Display An Echo Message That Comes From A Php File?
Jul 20, 2009How do I get Flash to display an echo message that comes from a php file?
View 2 RepliesHow do I get Flash to display an echo message that comes from a php file?
View 2 RepliesWhen I call a .php file from flash and then echo a value back to flash from said .php file flash does not read it. My code is like this:
[Code]....
Note that there is a successful connection to a database using xampp as a server.
I'm using Flash Media Server to create a 1:1 video chat. The problem I'm having is that when I use my apple cinema display I get horrible Echoing, even with the reduce echo box checked. If I don't use my cinema everything works fine with the built in macbook mic. I have to believe there is a setting as I can use iChat, Adobe Connect, WebEx, Skype all with my apple cinema and not have this MIC echoing issue.
Our Current Settings:
Audio
var options:MicrophoneEnhancedOptions = new MicrophoneEnhancedOptions();
options.mode = MicrophoneEnhancedMode.FULL_DUPLEX;
options.echoPath = 256;
options.nonLinearProcessing = true;
[Code] .....
Apple is obviously rejecting Flash to protect it's 'App' revenue. I've been on Android phones that run Flash and display all my content perfectly smooth. It can be quite frustrating how they are trying to bury it when I still have yet to see HTML5 replicate the type of interactive content Flash is capable of producing. Is there any way to display a message on the iPad when the Flash player is not found? I'd like it to says something along the lines of: "Unfortunately the Apple iPad does not support the Flash player because their business interests do not want it taking away from their App revenue. Did you know that the Dell Streak, HTC Flyer, Blackberry Playbook, Motorola Xoom, Samsung Galaxy Tab, Toshiba Thrive, and HP Touchpad all support the Flash player?"
[Code].....
so apparently with the new update in IE8, it starts up with NO add-ons. Since I cannot program a code to turn on add-ons in a browser, I need to show a message when this occurs. Much like an image has alternative text in the event the image doesn't load...how can I add a message that states:
You are using Internet Explorer 8+ and need to turn on your add-ins like FLASH Player. This site is optimized for Mozilla Firefox or Google Chrome.
I'm trying to upload an image file to another server and load the image into my flash application. I've modified crossdomain.xml as to allow the php to do the uploading to the other server.
[AS]var fileRef:FileReference = new FileReference();
fileRef.addEventListener(Event.SELECT, selectHandler);
fileRef.addEventListener(Event.COMPLETE, completeHandlerN);
//fileRef.addEventListener(DataEvent.UPLOAD_COMPLETE_DATA, completeHandlerN);
uploadBtn.addEventListener(MouseEvent.MOUSE_DOWN, upload);
[Code] .....
I never get the echo back. The echo should be executed as I'm waiting on Event.Complete!
I am fairly new to FMS and really am trying to learn about it. My question is simple I hope;
I would like a message to pop up to a client when they connect that the max users has been reached. I have it set for 5 users and so I would like when the 6th user tries to connect to watch the video, a little box will pop up and say "Sorry, Max users has been reached. Please try again in a few minutes."
I was able to develop something and get it output through trace commands by following a tutorial I saw online, but I could never get any sort of message box I built to pop up.
How do I make my flash website detect if someone tries to view my website using an iphone?My need is to display a message for iphone users.
View 1 RepliesHaving a problem with SWFObject reporting the correct error message for users running OSX 10.5 and below. (Currently getting the "Unsupported Operating System" swf loaded with links for the user to update there flash player) The problem with this is proceeding to the default links provided causes conflict with OSX 10.5 and below since Adobe directs them to update to Flash 11. Which will not work on that os! So what I'm trying to figure out is, IF I can detect OSX 10.5 and below with SWFobject and direct them to a 'noflash' method (ie: if you would have no flash installed to begin with).
View 1 Replieshow to display the message properly, and I am not sure if it is my for loop that is running into problems or the way I set up my message. Here is the code:
ActionScript Code:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
[code]...
What I try to accomplish here is to have it display the "combination of the options correctly." For example, if I select 1,2 and red, I would like the output to give me
1 Red
2 Red
and not red 1 2.
i need to display a message with some design(i.e) a movieclip on press of the fullscreen mode btn.I have created a full scren mode for a button event.. now i need to attach a movieclip with some message on press of the btn fullscreen mode event..is it possible to do? or is there any other way for my problem
View 1 RepliesI have flash CS3 and CS4. basically I have made a class file in AS3, which can upload file from user machine with PHP. Now, as of my project requirement, I need to check the PHP return statement while uploading is in process or after uploading complete. So is it possible to check PHP return values, while uploading from Flash CS3 or CS4????
View 1 RepliesI'm trying to display a message on my web pages home page to notify all viewers on some info, I need it to open automatically when the page is accessed then disapper or fade automatically.I'm trying to avoid making this a pop up because most people deativate thier pop ups.
View 1 RepliesHow do I make my flash website detect if someone tries to view my website using an iphone? My need is to display a message for iphone users.
View 1 Replieshow would I display a buffering animation whilst a netsream object was downloading video data?
View 0 RepliesI am developing a static flex application which does not have a database connection, all the values are hardcoded(its just a prototype for the original app). Now when I click the save button, i need to get a message like saving in progress... please wait, I need to display this message for 3 seconds.
View 3 Replieshow in Flex can I display a message within a Spark List component that states that the List is empty. For example if I have a List showing number of jobs outstanding, if my List is empty then I want a message displayed across the List stating "there are no jobs to perform".
I'd rather not use an Item Renderer because then it's an Item (the list is not empty) and the item can be selected.
I have a message and its visible property is false how can i make it so it becomes true when the user types anything but a number. So there input textfield and a send button if the user types hello when they click send i want the message to become true. How would you do it? restrict?
View 2 RepliesI can load HTML inside AS3. My problem is to have a way to display an error message if the path is incorrect and does not exist.
Here is my code:
var path:String = "http://www.eyerix.net/pt/w/teste";
// this will load the HTML page
function textLoadComplete(event:Event):void
[Code]....
I'm creating an exercise where I have five movieclips that at first their alpha are at 0% and then they are shown randomly and I want to verify if they are all visible (100%) a text message (a dynamic text field) will be displayed. What I want you to explain me is how do I do this verification. Do I need to do this with an IF condition?
View 4 RepliesHow to show success message in frontend....when a record is inserted in backend.
View 2 RepliesCan I Use data from external Text file for JavaScript alert message in flash? I wanted to change the alert message dynamically using the external text file.
1. I created the text file with data as: &Enter=Please Enter
2. And the flash action script i used is as below..
var message1;
message1 = trace(Enter);
loadVariables("temp.txt", "");
getURL("javascript:alert('"+message1+"')");
But this is not working properly. It showing me the alert window but the message it showing as 'undefined'
I have 12 display monitors installed in different floors in a building. These monitors display announcements that will be update once in a day. I'm retrieving these announcements from db and storing in an array and displaying it all day long. In addition to this, I have a requirement to display emergency alert messages on the monitors. My Server is a windows 2000 server. I'm using asp for creating the JSON object.
For the emergency alert I am thinking of doing this:
Create a page in asp that lets user to enter emergency msg and save to db.
Create a page in asp that will check if there an emergency msg in db and show it in a asp page in json.
Create a timer that pings this json page every 1 second. If it's available then show it.
Is there any other sophisticated method available to poll the server or to send messages from server to client?
Im still new in using as2 as well as as3 so Im begging for your kind consideration on how to solve my problem. I made a php file which outputs an XML file. Here is the code xml file "load.xml".
[Code]...
echo ("&response=$sent"); Is there anyway to look for only the echo in flash. not the rest of the vars from a php file??? something like loadvars("my.php?&response", GET);?
View 3 RepliesMy goal is to simply echo $_POST['imageVar']; back with content headers as a quick and dirty means to "export" an image from a flash application. I saw an example of this as follows, but it does not work with my php version/config:
if (isset($GLOBALS["HTTP_RAW_POST_DATA"]))
{
// get bytearray
[Code].....
I can't seem to make Flash accept PHP's echo command. Here is my actionscript:
on (release) {
getURL("<? echo $link; ?>")
}
[code].....
I am trying to make this form work, but I think I am just missing a little bit.
I have the following AS:
var send_lv = new LoadVars();
var result_lv:LoadVars = new LoadVars();
[Code]......
My php works fine, except I think I need to change the echo, but I don't know what to. This is what I have now: echo "&Status=Your quote request has been sent.";
I am trying to do a simple php echo to flash. I want to do a loadvars.load("tomyscript.php",0,"POST"); and echo back an address....such as echo "[URL].. in php and I want flash to be able to read it. I have sound very little on echo back to flash, maybe I am typing the wrong keywords. I have done this before, but this was my code:
PHP Code:
<?php $returnvar=$testvar; echo("returnvar=".$returnvar); ?>
I am not sure why that works and my other echo doesnt.I tried using that script for my idea too and it didnt work. If someone can clear this up for me that would be great, so I can understand why it's not working and what it's doing.
I would like to display a message in flash "we are open" or "we are closed" based upon time. Naturally I can do this for the users local time on their system, but is it possible to work out if their time is different to UK time (GMT) and display those messages accordingly. Afterall I don't want a user to see a message "we are open" at 1pm their time - they could be in Japan and it'd be about 4am UK time.Is this possible to work out the time difference on any system?
View 1 Replies