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


Similar Posts:


Media Server :: Advantage Of Writing A SSAS File Over An External AS3 File?

Jul 23, 2011

I do understand the differance between ssas and as3. Not all, but all most everything I see written in SSAS can be writen into a external AS3 file. This leads me to quite a few questions I'm hoping you kind people can shed some light on for me.
 
1)  What is the advantage of writing a SSAS file over an external AS3 file?
 
2) Can I write an .asc file in AS3 or do I have to use AS1? Please understand I'm using tuts from fmsguru.com and the books "Learning Flash Media Server" (pdf) and "Programming Flash Communication Server". I'm not a javascript programmer so nothing I do in AS1 seems to make any sence while everything I do in AS3 does. It may not seem like it to you people that are programmers, but to those of us that aren't, AS1 and AS3 are miles apart.
 
3) kind of off topic, but a security question. I'm not a "hacker" and don't like the jerks that are. My question is on external AS / SSAS files and swf files. When my fla is compiled into a swf does my external AS files remain external? I assume they do, but then what is the threat of the swf being decompiled? In most projects I would do I could care less if somebody had access to my fla as long as they don't have my actionscript files.
 
I don't know. Maybe on questions one and two I'm getting confused becasue I'm using out dated material. Again I assume that even though fms was built off of the javascript engine it should be able to read and execute my AS3 file. Other wise what was the point of the evolution of actionscript into a fully functional programming language?

View 1 Replies

Flash :: Media Server - Send Video And Audio Data To A Media Server By Using RTMP Protocol

Jul 22, 2010

I'm trying to make a software which sends video and audio data to a flash media server by using RTMP protocol. Currently, my program can communicate with a flash media server correctly. RTMP specifications does not describe about the raw data in video/audio messages, so I muxed raw H.264 and AAC data into video/audio messages and sent to the server. The server seems to accept them, but a video player cannot playback the stream sending from the server. The player just says "Loading..." For a test purpose, I sniffed the network packets between Wirecast and the flash media server and ripped off only video and audio data. Then, I muxed those data into video/audio message and sent to the flash media server. In this case, the video player connected to the server can playback the stream correctly.

I checked the stream sent from Wirecast, the stream seems not to be H.264 raw data because those data are not started from 0x17 instead of H.264 start code. With those situation, I am wondering what kind of container format I should use for H.264/AAC data to the flash media server.

View 12 Replies

Media Server :: SSAS Can't Connect To Services Via IP; Only Domain

Apr 6, 2010

Is there some FMS-specific reason why a sendAndLoad function in SSAS couldn't connect to a site on an IP address? Are there any configurations that would need to be set to allow/deny this type of connection? We have a server instance that can only connect to sites hosted on fully qualified domains.

View 1 Replies

Media Server :: Determine What Limitations SSAS Has That The C++ Plug-in Architecture Can Rectify?

Dec 9, 2010

I am currently trying to determine what limitations SSAS has that the C++ plug-in architecture can rectify.
 
Currently I have determined that C++ plug-ins can provide the following benefits: Quality of service increase/decrease based on client info via reserving a set of core processes for premium clients, then have a set of core processes for everyone else. Additional layer of security in the Authorization plug-in
 
I have not been able to find very many features that the C++ plug-in can provide that you can not provide with some code in the SSAS. So I guess I am just looking for a comparison table of advantages/disadvantages between the C++ and SSAS. How can I exploit the C++ plug-in architecture to do amazing things that the SSAS can not?

View 1 Replies

Media Server :: Send HTML Data?

Oct 9, 2009

I am working in flash chat in that I need font type,size and color for typed text. how to send the html data from client to server and get back for client.

View 1 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

Flex :: Adobe - Send/receive Data From/to Media Server

Oct 27, 2009

i want to make a simple chat with flex as3 and red5 media server

my idea is that i send from the swf a message to the server and the server sends it to all the swfs (including the one that sent the message)

i just don't know how to to send and receive and how to receive from the server

View 2 Replies

Media Server :: Send The String Value From .asc File?

Sep 29, 2009

I need to send the String value from .asc file to Flash AS3 in Application.rejectConnection();

[Code]...

View 2 Replies

Data Integration :: LoadVars-using Send To Pass A Variable From Flash To Php

Mar 24, 2008

For the life of me, I've tried everything: I've researched LoadVars on Adobe forum, used David Powers' books, googled 'flash to php', LoadVars, etc. and tried sendAndLoad, send, and using $_POST, $_GET, $_REQUEST. $HTTP_POSTVARS but I keep getting this same error.

I have a Unix server running Apache/PHP 4 - LoadVars worked to load name-value pairs into an array -see thread)

My goal with this simple app is to prototype being able to pass a variable from flash to a variable in php.

Parse error: syntax error, unexpected T_VARIABLE in flash_to_SQL.php on line 5

Actionscript 2.0 code:

var c :LoadVars = new LoadVars();
c.testing = "123FOUR";
c.send ("

[Code]....

View 3 Replies

IDE :: LoadVars - Send Data From PHP To Flash - Does Not Display The Contents In The Variable

Jun 23, 2009

I would like to send data from PHP to Flash however, it sends just fine but when displaying on Flash, it does not display the contents in the variable. Instead, it displays the name of the variable. This may be a simple answer but I'm quite new to this. Here is the code in Flash.

[Code]...

View 7 Replies

Media Server :: Shareobject.send() - Send Method Does Not Work

Mar 18, 2010

I have a problem with shareobject. the Send method does not work. I work with AS3 My code

[Code]....

View 4 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

ActionScript 2.0 :: Send A Negative Value To A Text File Using Loadvars()?

Apr 21, 2007

I'm trying to send a negative value to a text file using loadvars().

so i did this:

send_lv.xPos = currObj._x;

but if the _x is negative, the minus is replaced by '%2D' How do i send the minus sign??

View 2 Replies

Media Server :: Retrieve JSON Data In Asc File?

Dec 22, 2011

In an asc file, I am trying to retrieve some data from a server that uses JSON as its exchange format each time someone connects to a specific application. ( I can't control the exchange format)To do that I send a POST using the sendAndLoad method of a LoadVars ObjectSo far I only managed to get the HTTP header. The target object from the sendAndLoad method seems to be empty .he response format from the server is like this :{"result":{"uid":"24947431041778945007157724608309","sid":"20825068196 030559827758762683967"} (I got it by doing a POST with cURL)ince the data doesn't have the attribute=value&attribute2=value2..."format, I think I will not be able to get themoes anyone know if it is possible to first get and then parse these data using either ServerSide ActionScript's API

View 1 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

Media Server :: FMS Create A Text File And Write Data Into It In The Application Folders?

Sep 26, 2009

Recently, I writed a programe about creating a text file and writing data into it in the server application folder. My code is as following:

[Code]...

Supplement: The text file named test.txt doesn't exist before create the fileObj, an instance of File Class.

View 1 Replies

Media Server :: Receive Stream.send Commands On Server-side?

Nov 12, 2010

I am recording a video and while recording I issue some NetStream.send("doSomething", params) commands from client side. When I am playing back this video I receive the doSomething events on client side. No problems so far.Can I receive those events on server side? I want to handle those events on server side. Not client side.

View 2 Replies

ActionScript 3.0 :: Wait For Data - Send A 3 Byte Message To The Server (C) And Have The Server Return A Response?

Dec 17, 2010

I made a server connection with AC3 and C, I need the client(AC3) to be able to send a 3 byte message to the server (C) and have the server return a resopnse. So far everything works except for the fact that the feedback isn't fast enough becuase AC3 just tests for data once and moves on instead of waiting like in C. I'm using a binary socket at the moment but I was wondering if there was any way to wait for new data before moving on

View 2 Replies

ActionScript 2.0 :: Send The Data Using SendAndLoad Method To Asp File And Get Data Back From Asp File

Feb 13, 2008

I am the fan of kirupa but this is my first thread in forum. I have some problem with sendAndLoad method with actionscript 2.0. I am developing a online game with flash mx , MS SQL 2000 and asp. The problem is I send the data using sendAndLoad method to asp file and get data back from asp file. But when the internet connection is not good there is a problem like jam or lost packets. How can I prevent the lost of packets. Some of the data are important. Is there any way to solve this?

View 1 Replies

Media Server :: Send A Stream To Fms From A Webcam?

May 20, 2011

I wonder if i can do the following, send a stream to fms from a webcam and then serve it with apache on http x-flv format.

View 6 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

Media Server :: Configure Mfs To Send Only Intra Frames?

Mar 21, 2010

I need to display large number of streams in one flash player. In order to minimize cpu load i want to display only intra frames in h264 video. I have tired receiveVideoFPS method of netstream with value 1 and 2 but it is not giving the correct result.
 
In wowza server i tired recieveVideFPS with value -3 and it is giving the correct result as i want but after some time flash player crashes in all the browsers and in air too.

View 4 Replies

Media Server :: Send An Image Using NetStream Or NetConnection?

Jun 23, 2010

Would I be able to send a image using NetStream or NetConnection?

View 1 Replies

Media Server :: Send Webcamera Stream To FMS4 By UDP?

Nov 7, 2010

How can i send webcamera stream to FMS4 by UDP. i need the UDP speed and the server ability to save the audio/video confirence

View 3 Replies

Media Server :: Does NetStream.send Work With RTMFP?

Nov 23, 2010

I have application that uses the send functionally in the NetStream on the server-side. When a connect to the app using rtmp I am able to see the send come thru but if the app uses rtmfp it does notI gone thru all the examples in setting up a mutlicast app and I know the app works because when I publish a video out everyone in the group sees the video. The only thing not working is send. I've also set dataReliable to true.

View 3 Replies

Media Server :: Send PHP Command To Unload Live Stream

May 29, 2009

Is there anyway that i could send a php command to unload a live stream?

For instance i would like to click a logout button that would then tell the server that im logging off that live stream.

Here is what i have in my SWF file now..

[Code]....

I am sending flashvars to fill in the variables. And this is actionscript 2 because i havent ventured to AS3.

View 2 Replies

Media Server :: Sending MetaData With NetStream.send Is Not Working?

May 2, 2010

I'm trying to send metaData from client to FMS server when recording Webcam video and have implemented sending of metaData as stated on Adobe's help page at: http:[url]....

However when I play the recorded video from FMS, my custom metaData properties trace "undefined".I can trace default metaData properties such as duration or videocodecid successfully,but not my custom properties such customProp,width or height. Here is part of my code that is related to the issue: private function

ncNetStatus(event:NetStatusEvent):void  [code].....

View 21 Replies

Media Server :: Send A Video That Receiving Form Fms B To Another Fms A In A Flash App?

Aug 1, 2010

will i be able to send a video what i'am receiving form fms B to another fms A in a flash app?And how?

View 4 Replies

Media Server :: Send Message To Direct Connected Users?

Jan 17, 2011

working on a text Chat application with FMS4 "RTMFP" connection and i am looking a functionality to send direct message to one to another peer

View 6 Replies







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