ActionScript 2.0 :: Sending Image To Server Using LoadVars

Oct 20, 2009

I need to send a image to PHP (server) and get it in my mail. Sending using LoadVars.
Code:
import flash.display.BitmapData;
var bmd:BitmapData = new BitmapData(20,20,false,0x00ffff);
var output:String = bmd.getPixel(1,1).toString(16);
trace(output);
while (output.length<6){
output = "0"+output;
[Code] .....

View 2 Replies


Similar Posts:


ActionScript 2.0 :: Sending Email Using LoadVars And CGI?

Sep 27, 2005

I'm am trying to send an email form, from flash to my web hosts cgi scipt (mailgate). I am unsure how to translate the html code given by the host to use in actionscript and where to put the hidden variables to make this work. My action script reads-

stop ();
function sendForm () {
my_lv = new LoadVars ();

[code].....

View 2 Replies

IDE :: Sending And Loading Gif Images Via Loadvars?

Jun 24, 2009

I'm trying to create a test taking application for a system that already exists. Currently everything is done in HTML, but they need to convert the app to flash to add tricky components. So for now, everything is in HTML format and everything is created dynamically using mod_perl and a mysql database.The problem really comes in when one of the test questions has an image included with it. The image is stored in the database and with HTML was just inserted into the <HEAD> tag in raw format. The image does not actually reside anywhere on the server , just in the database.

View 6 Replies

ActionScript 2.0 :: Limits On Sending Data With LoadVars?

Feb 21, 2008

I was wondering if anyone had found out that there is a limit to how much information can be sent with LoadVars. I guess that limit could be the number of properties of the loadVars object, or size of the properties being sent.

View 2 Replies

ActionScript 2.0 :: Sending Large Data With Loadvars?

Mar 20, 2009

I've got a small problem with loadvars. I want to send data from Flash to PHP, which usually works well. But right now I need to send "larger" amounts of data around 10-20kb and loadvars doesn't work anymore.

Using loadvars to open browser-windows seems to work fine, but I want everything to happen inside of flash.

The code is:

Code:
datastring = "1, 2, 3 (...) 4998, 4999, 5000"; // long text
loadstring = 'save.php?data='+datastring;
db = new LoadVars();

[Code].....

Works fine with small text, with big text nothing happens. How to do this the right way?

Edit: Loadvars seems to work up until 4050 characters, 4051 and it doesn't send anymore. But I can't really split the query..

View 1 Replies

ActionScript 2.0 :: LoadVars - Sending Contact Info To PHP File

Jan 19, 2004

I am using loadVars with the send method to send my contact info to a php file. This works fine but when I press the submit button the browser goes to the email.php file. How do i prevent it from opening that file in the browser window?

Heres the [AS]
lv = new LoadVars();
lv.name = name;
lv.company = company;
lv.phone = phone;
lv.email = email;
lv.message = message;
lv.send("email.php", "POST");
}
[/AS]

View 2 Replies

ActionScript 2.0 :: Include POST As A Method Of Sending LoadVars To The Php File?

Nov 21, 2008

I was just wondering if it is important to include POST as a method of sending loadVars to the php file. i was using POST before and i still ecountered some problems of receiving empty mails. Since i found an example which do not use POST or REQUEST method i dont have anymore prob. I just wanted to get another opinion about that as i wanna start using server side script with flash and i know that ill be using the POST method.

View 2 Replies

Data Integration :: Firefox 2.x Sending Variables To PHP Scripts With The LoadVars.send / POST Method

Dec 29, 2006

There seems to be a problem with Firefox 2.x sending variables to PHP scripts with the LoadVars.send/POST method.

<br>

The same problem doesn't occur in IE or Opera. <br>See this url for example to try in both FF and IE/Opera: here. <br>The source files are here g.zelenka@iinet.net.au

View 4 Replies

Media Server :: Sending Information From Server-side Script To Client?

Apr 18, 2010

I have created a script for an Adobe FMS application to broadcast a playlist of video files as a live stream. (internet tv)
 
I am now working on a custom Flash-based video player to play my stream.

How do I send information from my server-side FMS application (main.asc) to the client-side video player? (e.g: title, duration of current video player)

View 2 Replies

Media Server :: FMIS 3.5 - No Response When Sending Seriel To Server For Approval?

May 6, 2010

I have upgraded from FMS2 > Flash Media Interactive Server 3.5 I added both the seriel number for FMS3 and FMS2 during the installation process.  When I logged onto the admin panel there was no licence listed, and a link saying "to upgrade to unlimited connections now, click here".
 
So, I checked the fms.ini and no seriel was there.  I put the seriel number in and restarted the server through the FMSadmin tool.  Still, no licence file was showing. I then added the licence file via the admin panel and got a dialogue saying "Seriel Key "blah" Sent To The Server for approval".  The seriel key now appears with a valid status of false.  And no further progress after that.   The documentation states that when you add the seriel key in this manner it should recognise it immediately.
 
Can anyone suggest what I might have done wrong?  I have trebble checked the seriel number, and copied and pasted it to make sure it is exactly right.

View 3 Replies

Media Server :: Fms Live Stream Server Stops Sending Data Around 4+hrs?

Mar 21, 2012

My rtmp client connects to the server ok and rtmp data flowing ok for about 4hours, in the wireshark trace I can see that the server just stops sending data roughly after 4hours. The server version is 3.5.1, and I also try it on a 4.0 server the data stops coming from the server as well after 5+hours. There are no errors or any indication of session disconneciton in the diagnostic logs. I have also looked thru the settings in applicaiton.xml and server.xml I just don't see any obviious reason for the issue. I do send rtmp Acknowledgement to server after the client receives "window size" bytes, and the client sends ping response to server.

View 1 Replies

ActionScript 2.0 :: LoadVars On The Server Is Not Working?

Nov 18, 2002

I'm using the LoadVars object to read data from a textfile. Everything works fine when I play my movie locally or on another computer in the network, but when I play it on the server, it does not load any data at all

[Code]...

View 11 Replies

Media Server :: LoadVars - PHP Taking Long To Display The XML

Oct 9, 2009

I am using sendAndLoad heavily in my fms3.5.2 application because it accesses an API on the webserver to execute commands. It calls a PHP file on the webserver which connects to a database, does some processing and returns XML output. Now, LoadVars has been giving me problems for months now. I suspect it is the reason my application crashes intermittently.

Also, lately.. it takes about 2 minutes just for the sendAndLoad to reach the onData stage. I have no idea why. This is not a problem of the PHP taking long to display the XML because if I access the PHP directly using `links` linux command, then it returns practically immediately.

View 1 Replies

ActionScript 2.0 :: LoadVars Get Extra Html Stuff From Server

Jul 17, 2008

[Code]...

when i trace the loaded content, it shows html part too. has anyone encountered the same problem? How i can prevent html part being sent to flash? trace result:

[Code]...

View 1 Replies

ActionScript 2.0 :: Use LoadVars.sendAndLoad To Get An Image?

May 17, 2007

From what I understand, LoadVars.sendAndLoad( ) is generally used to request variable data form a server. I am trying to download an image (which can be returned to me as a bitmap, jpeg, or png depending on my a variable i pass to the server in the sendAndLoad command.

Is this possible? If so, what object do I specify as the target object in the sndAndLoad( ) command?[code]...

View 7 Replies

Media Server :: Using LoadVars In SSAS To Send Data To A Php File?

Mar 21, 2012

I am using FMS 4.5 and have a simple application which I want to use to send two strings to a php file. But I get a compilation error whenever I try to assign any value to these objects:
 
Here is main.asc:
 
<code>
var variables = new LoadVars();
variables.username = "uname";
variables.send(http://url.abc.com/test.php,POST)
</code>
  
I can't compile with the second line. FMS just says: Sending error message: Compilation error
 
How do I send variables to a HTTP URL?

View 2 Replies

ActionScript 2.0 :: LoadVars To Read Variables From .txt Files On A Different Server With Flash?

Mar 13, 2006

use loadVars to read variables from .txt files on a different server with flash, do any of you know because I'm getting really annoyed?

View 14 Replies

ActionScript 2.0 :: Obtain The Variables/contents Of A Php Or A Text File From Server Using LoadVars()?

Mar 5, 2010

I am trying to obtain the variables/contents of a php or a text file from my server using loadVars(), and the problem is that flash can get data from almost every server but from mine. (some shared hosting service) I just tried the code provided in the help files:

Code:

var my_lv:LoadVars = new LoadVars();
my_lv.onLoad = function(success:Boolean) {
if (success) {

[code]....

I'm sure that I did no mistake in typing the URL, for it works fine in the browser (also no spaces, no freaky chars), and when i change the URL to another domain (and put the txt file on that server) everything works fine. I tried both possibilities "network access" and "local access" as well as running from an exe projector. But no chance.

View 4 Replies

Actionscript 3 :: Client + Grails Server - Processing Audio At The Client And Sending It Back To The Server

Mar 8, 2012

We're writing a flash application that can download a MP3 file, convert it to a Sound object, get the raw data and make some processing (like adding sounds, change octaves). After the processing, we want to send the data back to the server in chunks, so the server will be able to glue the data together and recover the new generated file. The problem is: if we send to the server "wav" pieces of sound, we are able to glue them together without any problem in the generated file. However, if we convert each wav piece to a mp3 file (so we can send a smaller file to the server) and join the mp3 files at the server, the result is a sound with some problems at the merge point.

This is how we load the mp3 file from the server:

sourceSnd.load(new URLRequest("sample url to mp3"));
sourceSnd.addEventListener(Event.COMPLETE, carregou);

This is how we convert each piece of mp3 to bytearray and wav:

[Code]....

View 1 Replies

ActionScript 2.0 :: TUTORIAL Error - Change LoadVars() Into LoadVars()?

Apr 13, 2004

One of the moderators, could you've a look at this tutorial: [URL] it doesn't works with me, maybe because I've 2004 so if you change loadVars() into LoadVars() it should work

View 2 Replies

ActionScript 2.0 :: Using LoadVars.getBytesLoaded And LoadVars.getBytesTotal?

Sep 1, 2003

Whenever i try to display anything returned by LoadVars.getBytesLoaded or Load....Total, it gives me NaN.

View 14 Replies

ActionScript 3.0 :: Sending JPG Data To Server

Feb 8, 2012

I have a project, that sends JPG data to server. 3 hours ago this script was working fine. Here is the as3:

switchToLooking();
content.bgr.visible = true; //SETS WHITE BACKGROUND
var jpgSource:BitmapData = new BitmapData(273, 414);
jpgSource.draw(content.content); //ACtual movieClip that I'm sending as bitmap data
var jpgEncoder:JPGEncoder = new JPGEncoder(100);
[Code] .....

The problem is - $GLOBALS["HTTP_RAW_POST_DATA"] is not set. I'm just not receiving any jpg data. But $_POST has 200 indexes. I know that it sends correct bitmapData, because I tried adding it to stage and it worked. And I know, that the request is reaching the server, because I get the right response. But I don't know, what the problem is. Maybe there is any other approach at the php side?

View 1 Replies

ActionScript 2.0 :: Sending Data To Server?

Aug 1, 2004

this is the first time i've used flash to send data to a server. what i'm doing is sending input form data to a coldfusion mail page. check out the syntax that is causing the problem.

stop();
emailAddress_txt.text = "join the mailing list?";
var emailAddressData:LoadVars = new LoadVars();

[Code].....

View 1 Replies

ActionScript 3.0 :: XML Socket - Sending Video To Server

Feb 19, 2010

I'm working on a small school project, and I'm grabbing video from my webcam like this:

camera = Camera.getCamera();
if (camera == null) {
Security.showSettings(SecurityPanel.CAMERA);
} else {
camera.setMode(960, 600, 30, true);
camera.setQuality(0, 100);
outgoingVideo = new Video();
[Code] .....

And I would like to now send this video to a server I am connected to using an XMLSocket. Is this possible?

View 1 Replies

ActionScript 2.0 :: Sending Variables To Server Using POST?

Nov 16, 2005

I am trying to convert this form into flash.

Code:
<form action="http://www.myserver.com/add.tag" method="post" name="tagform" target="tag">
<input name="name" value="myname" type="hidden">
Name<br>
<input name="tagname" maxlength="20"><br>

[code]....

View 1 Replies

ActionScript 3.0 :: Sending Textfield Input To Server?

Apr 7, 2012

I've got a textfield for the user to enter their name and I want to take the users name and sent it to my server so that at the end of the game I can call the name back. (And show the user their time)The problem is that I've never done this before and haven't a clue what I need to do. I've tried creating a php doc and saved some code in that and put it in the root folder on my website but nothing :I've also had a good look at every tutorial I can find on this but they all seem to not explain the php doc very well.

View 5 Replies

ActionScript 2.0 :: Flash 8 - Sending Variables Via Post To Another Server

Feb 17, 2009

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).

View 2 Replies

Data Integration :: Sending Form Information To Server?

Dec 20, 2006

I am in the process of creating a flash site for friend of mine. He wants to be able to have a guest list for his events in DC. I have created form boxes and have given them all "instance names". But I have absoultely NO clue how to have the text entered by people trying to get on the guest list sent to my server so we can all read it.

I have a book on Flash but it really doest explain how to do it at all. I'm guessing I need to do some actionscript?

[Code]....

View 8 Replies

Media Server :: Xml.send() Sending Blank Data?

Sep 22, 2010

I am attempting to send XML data to a PHP script from my server-side app using the following code:
 
var my_xml = new XML("<highscore><name>Ernie</name><score>13045</score></highscore>");  my_xml.contentType = "text/xml"; my_xml.send("http://www.server.com/temp/fms_post.php");
 
I am logging anything that the outside server receives at $_REQUEST, $_POST, $_GET. I can see that my server-side app is reaching out to the external server, but the data is always blank.

View 3 Replies

Media Server :: Sending Data Between Clients Using Port 80?

Oct 15, 2010

Im need to send some data between 2 Flash clients. I have an issue whereby there is a probability that there could be firewall issues with communicating over port 1935 or 443 know you can use RTMPT to tunnel video over port 80 but im not sure about sending data objects.

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved