ActionScript 2.0 :: PHP Echo Command In Flash?
Jan 14, 2006I can't seem to make Flash accept PHP's echo command. Here is my actionscript:
on (release) {
getURL("<? echo $link; ?>")
}
[code].....
I can't seem to make Flash accept PHP's echo command. Here is my actionscript:
on (release) {
getURL("<? echo $link; ?>")
}
[code].....
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 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.
Acoustic Echo Cancellation (AEC) with Flash AS3? What do I need? Open Source Libs/wrappers. Tutorials and blog articles on How to do it.
View 2 RepliesHow do I get Flash to display an echo message that comes from a php file?
View 2 RepliesI have to implement AEC in Flex video conferencing application. I know that it can not be done directly in Flash. I'm thinking to write a native application or library that will do AEC outside Flex.
As far I know Adobe Connect Pro is using some external library that do AEC. I'd like to follow this direction and do something similiar.
There comes two possibilities in my mind:
1) Independend custom AEC filter.
The custom AEC filter will be run in the background and will be processing all data from microphone and sound card and doing AEC. The echo signal will be the data that is to be played but delayed in a temporary buffer, something like this: aec(input, delayed_input, output).
I don't know if it work, because Flash microphone input doesn't know about my custom input and the same with the speakers. But how it is done in WinXP/Vista that have AEC at the system level?
2) AEC filter interacting with Flex's NativeProcess.
The filter will be run by NativeProcess. Flex app will pass microphone sound, received remote voice to the filter and return voice with echo removed and then Flex will output this to the speakers. Will it be correct?
If the 2) method is OK then I have following questions:
I will start with Speex's AEC so in what format should be the data pased from Flex? If I choose Flex Speex codec for sound compression can I pass it directly to the speex library? Will be the performance OK? Calling NativeProcess library every sound frame buffer can be time consuming I think. Why there is no AEC implementation in AS3 that can be used directly from Flash? As far I know to do AEC you must have echo data and microphone data (in Flash 10 there is direct access to the microphone). There is definetly something that is stopping doing it like this but I don't know what it is yet :) Is there some free AEC implementation or a DSP library with in except Speex's that I can use?
Well i have an adobe air which runs vlc-player at background as service. i check that in Windows Task Manager , the service runs when air application launches.
here is the code
processArgs.push("--extraintf");
processArgs.push("rc"); //Remote control
processArgs.push("--rc-fake-tty"); //Use terminal as output
[code]......
I want to call 3 commands one by one , the relation between each commands are command should execute one by one in the previous command result. How to Queue Command's? What is the best practice to handle Queue command , my requirement is adding n number of commands and execute them.Main -> Execute c1c1 got the Result - Execute c2c2 got the Result - Execute c3
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 am working with videoChat application.Videos are good to display to all.But the voice getting problem.If I speek using microphone(included with headphone set)the voice is echoed.How to cancell it.Presently is there any solution to resolve it, bcz since this is a bug as reported.Any third party softwares are available to work with echo.
View 2 RepliesHI have a php setup to echo an XML document.In actionscript, I'm trying to send the artist's name to PHP, PHP will pull the artist info from SQL and echo out in XML for flash.Is there something wrong with my Flash Script? The artistName variable will contain a string with an artist's name...just an FYI, but like I said, it returns back with information, but not in XML format.[code]
View 1 Repliesi m using these setting
[Code]...
i am facing the problem of echo .i am speaking than i can also hera my voice . how to reduce that problem that user can not hear own voice .
i have a php script that print with echo this: '&string="tom,dick,harry"' and i need to put the "tom,dick,harry" in an actionscript string, that i have to split in an array. I'm having problems reading the php output, i'm using the URLLoader and TheURLVariables Classes in this way
[Code]...
Has anyone experienced an echo when using Google Chrome? It seems to only happen if the sound begins playing while other assets are loading, and while that may seem like an easy fix I want the sound playing during the loading sequence. I've tested playing the sound on a key stroke after all of the other assets have loaded and it does not play twice. This behaviour does not occur in Firefox.
View 2 Repliesi am trying to send a variable from my swf to a PHP and echo it.
[Code]....
I am trying to query a sql database and echo the image into xml so I can view the queried image in flash.
I already know how to query and echo the image url from the database.
This is the code:
//The database is already queried at this point.
echo "<?xml version="1.01"?>
";
echo "<content>
[Code].....
The echoed xml in the first code produces a url link that contains a link to an image in the database. The flash is supposed to display the image on a flash movie clip call movieobject. I am having problem getting the image displayed in flash.
I'm working on a project that requires me to communicate with a database. I am using PHP and mySQL with flash on the front end. My problem is that in order get variables back from PHP I have to double them or atleast double the first 2. So this doesn't work:
$loginResult .= " " ;
$loginResult .= "wasSuccessful=" . $wasSuccesful . "&" ;
echo $loginResult ;
But this does:
$loginResult .= " " ;
$loginResult .= "wasSuccessful=" . $wasSuccesful . "&" ;
$loginResult .= "wasSuccessful=" . $wasSuccesful . "&" ;
echo $loginResult ;
And I only get one result.
ActionScript 3 can send UDP packets via flash.net.DatagramSocket. Is their any way to send an ICMP packet? I'd also like to set the TTL flag so I can implement traceroute in an SWF.
View 1 RepliesI can't paste the example link - but the source I am referring to below is the Sound class definition in the ActionScript documentation on [URL] when I duplicate the upOctave example on extract, I get echo. I want to play the sounds not only "up and octave" but twice as fast - is there a good way to double the playback speed of a sound file?
View 1 RepliesI'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 trying to change the text color when getting echo text from php:
Have defined in MC a dynamic field: EmailStatus
"Submit" back command from php:
Code:
lv.onLoad = function() {
_root.pages.Mail.EmailStatus = this.msg;
};
And echo from PHP
PHP Code:
echo "&msg=Your mail was sent";
How can I make "Your mail was sent" another color instead of already chosen color for that field?
My code:
mic = Microphone.getEnhancedMicrophone();
var options:MicrophoneEnhancedOptions = new MicrophoneEnhancedOptions();
options.mode = MicrophoneEnhancedMode.FULL_DUPLEX;
options.autoGain = false;
options.echoPath = 256;
[Code]...
In my application I am indeed using the enhanced mic, but echo cancellation still persists.
I think this is a bug Adobe needs to fix, am I the only one having this issue?
I am using FMS for live streaming. Am using Flash to publish live video, I have one to one live streaming where I can see other end user live video and other end person can see mine live video. So one input stream going to server and one out put stream coming back. The problem what I was getting is sound is getting echo i.e., Repetitive sound getting.
View 1 RepliesI'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] .....
I'm new to Adobe Flash and especially new to Actionscript. Could somebody give an example and explain how to make and "Ignore *this* command if..." style command. Here's what I want to achieve:I have made a button (I may have done it in an odd way but it works) that moves when the mouse hovers over it and then moves back when the mouse moves away. I plan to put the finished product into Dreamweaver and have tried what I've done so far and it works. The problem is that if I move the mouse away before the first animation of the button has finished. It doesn't reach the *Mouse Out* command and then just sticks/stops in the bit where I have put a *stop* command.Basically, what I want is a way to ignore a command if something happens earlier on (such as the cursor being moved away).I've tried to explain the best I can without actually screenshotting it and copying commands.
View 6 RepliesI signed on to this adobe forum hoping some one can help me. Ive created a navigation bar in Flash CS5.
Ive got my up, down, hover states to work perfectly but the state hit i just cant seem to figure out what it does. What im looking for, is for someone to help me with, when a user lets say clicks on 'Home', i want that link to stay 'red' so that user knows its on 'Home Webpage'.
I dont know if i have to add code in flash for it to do that or if its done by the hit function. Because ive set which colour hit should be, but when i hit/activate the 'Home Webpage', it wont stay a solid colour, to show its active. It just goes back to its original colour after doing hover/down/hit.
Is it possible to delete the contents of a local XML file using a Flash CS5 document being played on the desktop and using AS3?
Ok i have done some research but still no luck. I was going to use a separate batch file with a windows command that did what I needed but since I will be calling the fscommand once a second the dos window would pop up a lot.
Are there any thirdy party plugins that will allow flash to run windows commands?