[HELP] Draw In Flash And Send To Server
Hi, I have written a flash paint or doodle, where user can draw anything they want. After this I want the drawing to be sent to server and make it as jpeg,png or whatever suitable image format, can it possible?
It may need some server side script, not sure, but I remember once people did it like guestbook.
Thanks in advance.
DevShed > Flash Help
Posted on: November 16th, 2005, 03:56 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Draw & Send In Flash
Does anyone know how to draw and send (like this: www.imaginationatwork.com/Imagine?_nolivecache ) in Flash? Need .fla/code if possible.
Thanks,
[CS3] LoadVars Send Works In Flash But Not On Server
I am struggling with what appears to be the simplest thing.
Please tell me why my highscores.php file doesn’t open with “?playerscore=5413&playername=Rowan” after it.
When tested on my local server, it outputs like this: “http://localhost/GameTest/highscores.php”
When tested from Flash (ctrl+Enter), it works perfectly. My browser opens and displays: “///D:/Work/GameTest/highscores.php?playerscore=5413&playername=Rowan” in the address bar.
What am I missing here?
(Please see attached files)
I am using CS3 but file must be published as v6.
LoadVars Send Works In Flash But Not On Server
I am struggling with what appears to be the simplest thing.
Please tell me why my highscores.php file doesn’t open with “?playerscore=5413&playername=Rowan” after it.
When tested on my local server, it outputs like this: “http://localhost/GameTest/highscores.php”
When tested from Flash (ctrl+Enter), it works perfectly. My browser opens and displays: “///D:/Work/GameTest/highscores.php?playerscore=5413&playername=Rowan” in the address bar.
What am I missing here?
(Please see attached files)
I am using CS3 but file must be published as v6.
Re-encode And Send To Flash Media Server?
Hi all,
I hope this is not a basic question - I'm in a bit of a loop with this.
I need to do two things:
grab a live video feed from a professional DV camera - the feed would be a standard BNC (composite) video cable + XLR mic cable or similar. I need to take that feed and somehow convert it to feed and broadcast live through Flash Interactive Streaming server (...a reliable hardware solution would be great!)
I will also be receiving Windows Media MMS feeds from our parent company - can I re-encode live and send through Flash Streaming Server in real-time?
Also - just in case it makes a difference, the camera is PAL - not NTSC. So far I've had no problem running tests with a camera connected directly via firewire.
Thank you for any help you can offer.
Draw And Send
Hi there,
I just did a "draw table" in my scene, like that: www.imagination3.com and www.flashpaint.com.
Now, i want to know how can the users send me the draws they do on the site? (in the two examples you can draw and save or send to the site gallery).
Thanks, and sorry for the bad english.
[CS3] Draw And Send
Hi there,
I just did a "draw table" in my scene, like that: imagination3 dot com and flashpaint dot com.
Now, i want to know how can the users send me the draws they do on the site? (in the two examples you can draw and save or send to the site gallery).
Thanks, and sorry for the bad english.
Protecting Server Side Script Send By Flash
i am trying to send data from flash to php using the sendAndLoadVars class. but i am experiencing some problems which i am not sure how i could solve it. that's, i realise that people could actually go directly into my php page "hack" my database.
for example, my flash is sending data to a php page call "editAccount.php". i will then do a post to the data in editAccount.php from flash. even though, this prevented people from adding GET variables at the back of the editAccount.php?uid=1&password=12345, i believe people could create them own html form and post it to editAccount.php and it still kind of 'hack' into it.
what are some of the solutions to it?
How Does Flash Send Outgoing HTTP Request To Server?
Hello everyone,
I would like to know how Flash sends outgoing HTTP requests. I would like to know when from the inside of a Flash SWF file request for another SWF or FLV file is made; how the Flash sends this request to server.
Thank you very much and have a great day,
Khoramdin
Draw A Signature And Save On Server ?
I need to make a flash that the user draws his signiture and then i must be able to save it onto the server .
HOW will i do this ?
Since i know one cannot save bitmaps with flash.
And how will i go about the drawing ? make use of lines and save the coordinates within an array ?
And then i will i save that ?
I really need help , please !
Thanks
Send To Server
'morning.
i'm making a drawing tool in flash. this drawing tool is now complete and working (thanks gparis again). Now i would like to put a "send" button that allow people to send the drawing to my site via php. It is possible? it is complicated?
this is the code of the drawing tool:
if (Number(mouse) == 1) {
if (Number(x1) == 0) {
x1 = int(getProperty("mc", _x));
y1 = int(getProperty("mc", _y));
} else {
x0 = int(getProperty("mc", _x));
y0 = int(getProperty("mc", _y));
if (Number(((x0-x1)*(x0-x1)))>5 or Number(((y0-y1)*(y0-y1)))>5) {
n1 = Number(n1)+1;
duplicateMovieClip ("line", "line" add n1, n1);
setProperty ("line" add n1, _x, x1);
setProperty ("line" add n1, _y, y1);
setProperty ("line" add n1, _xscale, (x0-x1));
setProperty ("line" add n1, _yscale, (y0-y1));
x1 = x0;
y1 = y0;
}
}
}
Send XML To Server
Hi
I am trying to send some xml to server side script, but im having problems when it gets to the server. Namely its messing up the xml data as soon as it hits a quotion. My fucntion is below:
function sendSavedData(e:Event){
var dataXML:XML =
<test id="1" gfx="8">
<attribute description='hiphop' name='STR' value='25' />
<attribute description='rock' name='SPD' value='20' />
</test>;
var request:URLRequest = new URLRequest("
Data Send To Server
Hello all...
I have created an online form using Flash MX which takes Name, Email Address, Arrival Date (in Month, Day, and Year), Departure Date (in Month, Day, and Year).
Fields contain text boxes, drop boxes, and radio buttons.
When the submit button is pressed, the data wasn't sent to the server. Is it something missing in the mail.php3? Can someone please help?!?
Code in mail.php3 is listed below:
<?php
mail("ddd@yahoo.com", $email_text, $name_text, $amonth_result, $aday_result, $ayr_result, $dmonth_result, $dday_result, $dyr_result, $room_result, $sweepstakes_text, "From: $email_text
Reply-To: $$from
X-Mailer: PHP/" . phpversion());
?>
P.S. Orange Fonts are the field names in the form.
Send Message To A TCP/IP Server
I am trying to communicate with Zoom Player (its a video player http://www.inmatrix.com/) via TCP the Zoom Player has a built-in TCP server. I can get Flash to connect via TCP but I can't seem to send the command.
the command I am trying to send is "5100 fnPlay"
I am use the XML Socket should I use something else?
Thanks;
Raymond
Send Array To Server
Hello,
I don´t know, how I send array with hexa number to server. When I send this code so one last number take into server wrong.
private function sendCommand(e:MouseEvent):void {
var ba:ByteArray = new ByteArray();
var i:int;
ba[0] = 0x01;
ba[1] = 0x00;
ba[2] = 0x00;
ba[3] = 0x01;
ba[4] = 0x18;
ba[5] = 0xC0;
telnetClient.writeBytesToSocket(ba.toString(16));
}
[as3.0] URLRequest Send XML To Server
Hi there.
I have XML object formed and data ready to write to the server by means of server-side script. The code used on the server-side script is testing code available from the ActionScript 3.0 cookbook examples (by Joey Lott).
It basically takes the XML object, parses it and writes some of the text node values into a textfile.
What i want to achieve
send the xml data from AS3.0 to PHP/PERL script, parse these data, write some variables from the xml object into a textfile on the server.
However
In case of PHP version of the server-side script:
Code:
<?php
........
// Read root element <gameinfo>.
$rootElement = $document->root( );
// Read child nodes <username> and <score>.
$childNodes = $rootElement->children( );
$data = "";
// Loop through child nodes and place in array.
foreach($childNodes as $childNode){
// Add data to array;
$name = $childNode->tagName( ); // [*] HERE THE ERROR OCCURS
............
}
// Append data to textfile on the server
........
// Return success code to Flash
......
?>
after the response from the script arrives, i get TypeError in AS3.0, since there is try/catch error filtering happening:
Code:
try {
// parse event.target.data
} catch ( e:TypeError ) {
// trace the error
_message.text = "returned: " + event.target.data;
}
When i trace the event.target.data of the event object i get:
Code:
Fatal error: Call to undefined function: tagname() in /data/web/flashprojects.sk/web/new/xml_test/php/gamescores.php on line 21
(see [*] inside PHP script); now sure that exaplins why there is TypeError (or SyntaxError) recognized by flash
Is my php5 on the server not enough? Why does it not seem to understand the $name = $childNode->tagName( ); syntax?
No matter, there is still perl script example, which does the same thing as the PHP example, and perl is supported by the server where my example is hosted.. so i try that one..
However, using the perl counterpart i get this error in AS3.0:
Code:
Error #2044: Unhandled ioError:. text=Error #2032: Stream Error.
Although the script file was found, it seems cgi is not enabled on my server or.. ? (i check my server settings, and cgi is enabled, supported perl filetypes are .cgi, .pl)
Anybody met these errors / found a solution?
Thank You
No PHP On My Server, How Do I Send Emails?
Hi,
Just found out that my web server doe's not support PHP
It states:
Unfortunately on the Shared MS Hosting there is no PHP or Perl, you will have to use .asp.
My question is, any tutorials on using asp for sending emails, or is there another workaround for this?
Hopefully
Kevin
Send Image To Server From Webcam
Hi friends,
we are improving personal tracking program with flash. And we want to use webcam that for take personal photos dailly.
We are taking photo with flash but we could not upload it to our server.
Thanks in advance.
rasim
Send Information To File On Server
Hi, I'm working on a sort of Message board for my site. I'd like to add functionality to it by letting users submit information such as Title, Name, Subject, Link and Message in addition to logging the date it was submitted.
I need the information to be sent to an rdf file on my server and to be added at the very bottom of the file. Is this possible?
How could I set up this kind of functionality? It seems a bit complicated to me because I also need the data written into a specific format... Here is an example of what I need added to the rdf file:
<title>Title Goes Here</title>
<link>Link In Here</link>
<description>Message Goes Here</description>
<dc:subject>The Subject Here</dc:subject>
<dc:creator>Name of User Here</dc:creator>
<dc:date>Log Date Here</dc:date>
</item>
After being submitted successfully, can I automatically refresh the message board within my flash page?
Thanks for your time!
Edited: 09/05/2007 at 07:04:27 AM by shojinate
Record Sound And Send It To A Server
Hi!
I worked with flash many years ago with... flash 5 :) Yes, I know that many things changed. Now I program on C, PHP and etc, but I need some help. I want to make a simple flash applet, that records a sound (voice) from the users mic and then sends it to my server. I was searching for such solution/tutorial, but I did not find something usefull. I changed maybe 15 times my keywords, but nothing helps. Could you please give me a hint or a link to tutorial where I can see how to make this?
Thanks in advance!
Send To The Server, Then Display Response
so here's my script to do this, will someone please please check it for me. It's supposed to send to a php script on my server, then take the response and display it within a scroller box (using the flash mx scroller component). Did I do this write?
ActionScript Code:
function submitForm(){ formData = new LoadVars(); formData.submit = "submit"; formData.dealer = "stores"; formData.txtZip = ""; formData.cboDist = cboDist.getValue(); response = new LoadVars(); response.onLoad = myOnLoad; formData.sendAndLoad("zipcodesearch.php", response, "post");}function getResponse(result){ if(result == true) { loadVarsText = new loadVars(); loadVarsText.load("textfield"); loadVarsText.onLoad = function(success) { if (success) { trace("done loading"); scroller.html = true; scroller.htmlText = this.textfield; } else { trace("not loaded"); } } }}
Send Info From Many Computers To One Server
i want to know what do i need to connect many computers in a classroom to a server, for every student to have a test made in flash and all the answers to get to my computer (the server), where all the answers of each student appear like:
student 1 answered:
q1=correct
q2=incorrect
q3=correct
i dont know can i send this answers from every student's machine to the server with a regular network connection, or is it that i need other type of network connection?
thanks
Forms Send From Hard Drive But Not From Server?
Hi,
Just got a confusing issue. I have developed a form which processes and works perfectly when it is sent from my pc (i know, servers should have tighter security) though when I upload it to the server it does not work at all. I have been told I need some javascript buried in my html doc to make this work. Does anyone know what scripting would make this work??
So far I am using the below in the flash doc.
on (release) {
subject = "Feed Back Form";
sendto = "damienj@xxx.com.au";
loadVariablesNum ("http://www.scripts.xxx/mailto.asp", 0, "POST");
gotoAndPlay ("ThankYou");
}
Thanks!
Send Data To Server With Limited Variables
Dear all kindly helpers,
I have this problem confusing me for weeks. While I need to send certain variables to server-side script upon a button was pressed in the swf file, I used the following Actionscript in the button to do it:
_root.loadVariables(temp_url,"post");
The problem is Flash will send ALL variable:value pairs to the server. Since there are too many variables and the firewall from server-side blocked them. Since I am not allow to config the server settings, are there any way from Actionscript to limit the number of variable:value pair being sent to server?
PS. No return respond from server is needed.
Million thanks.
Jason
Please Help Me How To Send Text Data To The Client From Server ?
Hi
I am using FMS3 for streaming live video and text.For that I created two SWF one is "Publisher" ,whic is used to capture video and send text to the FMS3.The next is "Viewer" which is the client application .Now i succeeded in streaming live video.But not able to send text
Please help me how to send text data to the client from server ?
Send.Vars To Server To Update Database - No Worky
I am trying to update a count in a database by using the send or sendAndLoad method to a ColdFusion script.
This script will not work in "stealth" or "silent" mode. Meaning whenever a browser window IS NOT opened, the CF script is not acted upon therefore not updating the database count.
However, anytime i ask flash to open up a blank window, the script works fine.
Any help on getting this script to work (and update the database count) without having to open up a browser window would be muchly appreciated
Thanks.
Capture Webcam Snapshot As Bitmap And Send To Server
I have a local webcam stream appearing on the stage in a movieclip.
When I click a "snapshot button", a still image from the webcam gets attached to a new movieclip on the stage with attachbitmap and then draw()
The snapshot shows up in the movieclip on the stage as a preview.
I want to know how to send the data of this bitmap in the movieclip to a server (php or coldfusion) to be saved as a JPEG.
I can't figure out how to access the bmp data and send it to a server... any answers?
Send Variables From Http To Https Before Php Server Script?
Hi, I am building a web site that gathers information from a user as he she navigates through the site, via buttons selected. Using screens, the user ends up at a form page where they need to enter private credit card info. This section needs to be https and the rest of the site requires only http. Somehow I would like to get the variables from the http section to the https section without having to go to php server, then after the personal info is entered into the form https, send variables to the php using maybe... sendAndLoad.
How can I change from http to https without actually changing the page. Can I send variables from one swf to another without a server side script?
If I use getURL, from http page and send values to a https php page, is the information encripted? , or do I need to be in https before I send the variables?
Stumped and beyond deadline.
Any Help?
Thanks,
Nate
Send Real Fax/send Pdf In Mail, Using Flash
Hi, I am a moderate flash designer and mostly make animations. I don't work with actionscript too much so I really need your guys' help. I need 2 things.
First: I am making an internet fax demo where I want someone to enter their email in a simple text box, click send, and it will email a pdf document to the email address (a sample fax).
Second: In the same demo, there will be another text box, where a user would enter a fax number, hit send, and it will fax them the pdf (or the stuff in the pdf in any other format) to their fax machine.
is this doable using flash? I don't even mind if i have to use a php or a xml file. but in that case, i also want to know what to write in the actionscript to call those files.
I would really appreciate if someone could please help me out with this. I had been searching all night, i found some actionscripts but have no clue what they mean.
SOAP, C++, C#, Or Other Access To Flash Media Server Server Management ActionScript API,
I'm writing code to manage a farm of Flash Media Servers, and I need to call some Flash Media Server APIs from languages other than ActionScript.
I'm happy to write some of my code in ActionScript subroutines, and just use the NetConnection remote call API to invoke those functions. But I can find no way to do this.
I was initially enticed by the alleged support for Web-Services, but was disappointed to find that it only (appears) to support consumption of web services - not PROVISION of web services.
I saw that there was an external API accessible from flash media player itself, but that appears to require embedding the media player in a web browser, etc.
Is it - perhaps - possible to directly invoke the flash-media-player from a C# application using their COM-bridge in .Net? And then use that to invoke remote connections - without having any client side actionscript?
Any other ideas?
Flash Media Server 3 And Windows 2003 Server Help For Live Streaming
Hi
I installed FMS 3 (developer) on my Windows 2003 Web Edition.server online
I booted the FMS 3 and it seems that it works correctly (I did the port scanner and is ok)
But I can not see the live streaming applications.
I followed the guidance of Tom Green
http://www.adobe.com/devnet/flashmediaserver/articles/beginner_vod_fm3.html
In local everything works, but in windows server 2003 does not see the movie: I see only the green bar.
Please, someone has had similar problems to my and resolved?
What should I do on Windows servers?
The firewall is open on port 1395, but I do not have results.
Also, if using Flash Media Encoder 2.5 (locally) and use <Stream to Flash media Server> after entering the username and password I have this error
Primary - [ AccessManager.Reject ] : [ authmod=adobe ] : ?reason=needauth&user ...
Someone can help me?
Thank you
Flash Media Server Only Works Local On Server
i just installed a developers version of the flash media server on a windows server.
i don't have any problems while starting my applications on the server itself.
the problem only appears when i try to connect from a different computer which is not located in this network,
at least a connection from "outside".
there is no firewall right now on that server that this can't be the problem.
when starting the media server by the managment console i also do login with the domain-name of the server and not with localhost...locally all is working well...but not from outside.
i also try to test port 1935, 443 and 80, but none succeed from outside.
what i also tried is to run a version of the flash communication server 1.5 on my home pc also running a windows server. in this case i had the same problems: could only get a connection locally but not from outside...i.e. the connection to the server failed.
anyone an idea?
Immitating Flash Streaming Server With Development Server
We have an FMS 2 application that we are getting ready to port to FMS 3. It works on the development server, which I understand, is full featured like the Flash Interactive Media Server. Since our customers are primarily K-12/colleges, and our application only streams very low quality audio we would like to suggest that our customers purchase the cheaper FMS Streaming Server 3.
The question:
Is there a way to make our Flash Media Development Server act like Flash Media Streaming Server with out purchasing a license, in order to test application compatibility? We don't want to have to purchase the streaming server only to find out it won't work and then pay another $3,500 in order to upgrade to FMS Interactive, when we could just pay $2000 to upgrade our existing FMS 2 license to FMS Interactive.
LoadVars With Server Side ActionScript (Flash Com Server)
I'm making a simple login application. I want to send a username/password while connecting to FCS, and have the SSAS of main.asc connect to a PHP document that will lookup the username/pass and make the necessary checks for the information in a mySQL database.
I'm trying to use the LoadVars() object, maybe you can't do this with SSAS? Or maybe i need to include some other actionscript file (I know when you use components you have to specify load("components.asc"); at the top of the main.asc file --- i'm hoping it's something that easy )
This is my first FCS app, I've done a lot of research but this one's sort of stumping me. I keep getting an error that looks like this:
/opt/macromedia/fcs/applications/my_app/main.asc: line 9: ReferenceError: LoadVars is not defined
Here is my code for main.asc:
ActionScript Code:
application.onAppStart = function(){ this.userCount = 0; this.users = [];}application.onConnect = function(thisClient, username, password){ thisClient.username = username; //authentication functions var my_lv:LoadVars = new LoadVars; //line 9 where error happens my_lv.load("http://10.10.1.200/_websites/quickconnect/verify.php?username="+escape(username)+"&password="+escape(password)); my_lv.onLoad = function(success){ if(success == true){ thisClient.username = my_lv.username; thisClient.email = my_lv.email; thisClient.firstname = my_lv.firstname; thisClient.lastname = my_lv.lastname; thisClient.usertype = my_lv.usertype; this.users[this.userCount] = thisClient; this.userCount++; } } //if login is okay //add user to users list this.acceptConnection(thisClient); }
LoadVars With Server Side ActionScript (Flash Com Server)
I'm making a simple login application. I want to send a username/password while connecting to FCS, and have the SSAS of main.asc connect to a PHP document that will lookup the username/pass and make the necessary checks for the information in a mySQL database.
I'm trying to use the LoadVars() object, maybe you can't do this with SSAS? Or maybe i need to include some other actionscript file (I know when you use components you have to specify load("components.asc"); at the top of the main.asc file --- i'm hoping it's something that easy )
This is my first FCS app, I've done a lot of research but this one's sort of stumping me. I keep getting an error that looks like this:
/opt/macromedia/fcs/applications/my_app/main.asc: line 9: ReferenceError: LoadVars is not defined
Here is my code for main.asc:
ActionScript Code:
application.onAppStart = function(){ this.userCount = 0; this.users = [];}application.onConnect = function(thisClient, username, password){ thisClient.username = username; //authentication functions var my_lv:LoadVars = new LoadVars; //line 9 where error happens my_lv.load("http://10.10.1.200/_websites/quickconnect/verify.php?username="+escape(username)+"&password="+escape(password)); my_lv.onLoad = function(success){ if(success == true){ thisClient.username = my_lv.username; thisClient.email = my_lv.email; thisClient.firstname = my_lv.firstname; thisClient.lastname = my_lv.lastname; thisClient.usertype = my_lv.usertype; this.users[this.userCount] = thisClient; this.userCount++; } } //if login is okay //add user to users list this.acceptConnection(thisClient); }
Flash Media Server Vs PROXY Server/firewire
Hi All,
Can anyone help us, we have a multiway communication app developed in flash utlising FMS for audio communication. But now we find out that the end client is sitting behind a proxy server. What are the best ways of being able to send the communication through their poxy server without making major changes to the server itself? Otherwise this whole project is floored because no connection can be made.
note: it works fine when the client is not behind the firewall.
Any help would be greatly apreciated.
Gz
Flash Media Server And Flash Comm Server Where 2 Start?
hey all,
i'm wanting to stream video or even just load it into my flash sites and not lag them....anyway i have had a few people tell me to look at flash media server and flash comm server.
i have but i am really confused with it all...WHERE DO I START?? WHAT TO KNOW?? HOW TO DO IT??? etc
any help would be great!! thanks peeps
Send "net Send" Messages By Clicking A Flash Button
Is it possible to send "net send" messages by clicking a flash button?
I want to send a message to another computer on the intranet to register that a certain button has been clicked.
I think the easiest way to do this is to create a batch file and run that on mouse release of the button, does that mean i need to have the flash file as an exe? Or is there an easier way to net send via a flash button.
Thanks.
MJ
Send "net Send" Messages By Clicking A Flash Button
Is it possible to send "net send" messages by clicking a flash button?
I want to send a message to another computer on the intranet to register that a certain button has been clicked.
I think the easiest way to do this is to create a batch file and run that on mouse release of the button, does that mean i need to have the flash file as an exe? Or is there an easier way to net send via a flash button.
Thanks.
MJ
Flash Media Server / Proxy Server / AS 2 Help
I was wondering any of you guys on the board can help me with an issue I'm having on this project I'm working on...
I'm working on this flash video player that loads .flv's stored on a Flash Media Server through a proxy server. So the swf that's on server A loads a .flv on server B through a proxy server. The thing is that I built the player in AS 2.0 -using the FLVplayback component (I know I know, but I'm just learning 3.0) , and it's not working right now, and we have diagnosed that it's most probably because the ProxyType is not set and it needs to be HTTP i think. I know you can do it in 3.0, but I'm not sure of an equivalent way to do it in 2.0? Would I have to write something to extend the class?
Help!
Thanks in advance
|