Javascript :: Let Flash App Communicate With Server?

Jun 2, 2011

What's an easy and secure way to let my Flash app communicate with my back-end server?

The Flash app, which is a video player, should retrieve the person's username and send back an ID. How would I do this?

Note: Back-end is written in Javascript.

View 2 Replies


Similar Posts:


Javascript :: Facebook Flash App Cannot Communicate

Nov 27, 2010

My index.php file loads the Facebook JavaScript SDK and the FBJS bridge:[code]When I run this file on my server, I can communicate with Facebooks JavaScript SDK either indirectly through ExternalInterface calls, launching various Facebook UI dialogs etc. And I can also use the facebook-actionscript-api to launch the same dialogs directly from ActionScript.When I however use this index file as my Facebook canvas url and load the swf in a Facebook iFrame, the communication crashes the application. I'm not sure how to debug this but I think it might have to do with crossdomain security. Any ideas on debugging and/or solutions are welcome.

View 3 Replies

Javascript :: Unable To Communicate With Javascript From Flex After Dymanically Loading A Swf?

Aug 1, 2009

for some reason, whenever I dynamically load a swf on a $(document).ready() by writing to a div, I am unable to make javascript calls to the browser. Specifically, all calls to the browser return "null". This does not occur when embedding the swf normally on the page load, but I would like to prevent loading of the swf until a specified point in time.

What the heck is going on here? Is there something special about dynamically embedding a swf that prevents the swf from talking to the browser? The methods ARE called (I've proven such by showing alerts), but all return values to any function, regardless of type returned, shows as null when it gets to flash.

View 3 Replies

Javascript :: Have A Flash Movie Communicate With Shadowbox Jquery Overlay?

May 17, 2010

I want to have my overlay adjust in size depending on how much content is being shown in the flash movie. Also, I want it to resize in real time when the user adjusts the content.

View 2 Replies

Javascript :: Allowing Flash Movie To Communicate To Containing Window Without Exposing Full ExternalInterface?

Oct 14, 2011

I'm working on a site that allows administrators to upload arbitrary SWFs and embed them on the page. Administrators are in theory trusted, but I still want to protect against potentially malicious administrators or misguided administrators from harming the site.

A part of the functionality of the site is that the SWFs can communicate to the containing browser page when it's finished and for the page to react.

Now, I can think of two ways to do this:

Use ExternalInterface.addCallback to create a global callback named something like isComplete that does logic and returns true or false depending on whether the Flash app is in a completed state. Then, just do something like setTimeout to just call that function repeatedly. I don't think this would require me to open up allowscriptaccess to the movie. Embed the movie with allowscriptaccess and have the movie call something like ExternalInterface.call('done') when it's finished. This option seems like it requires me to open up allowscriptaccess, which is a potential threat since I can't control the SWFs that would be embedded with this directive.

View 1 Replies

Flash :: Communicate Application With Server?

Jun 28, 2010

I'm trying to communicate my flash application with my server. Either the problem is my code is working on Flash Professional, but I have prepared all my interface on Flash Builder which uses Flex 4 -SDK. My code does not work on Flex Project.

[Code]...

View 1 Replies

C# :: Communicate To Flash Media Server From Browser Not With Swf

Aug 9, 2011

Cen i communicate to FMS from browser not with swf. For example - by javascript from user side or by C# from IIS server side.

I need to built a live chat application where the swf only get the live stream and show it to the user but all the other logic code that communicate to FMS will be not in the swf and not in some *.exe file.

I need this because this live chat appliction will have to work on apple ipad and iphone soon when FMS will be able to stream to those devices and i will have to abandon the swf anyway.

View 1 Replies

Ios :: Can An IPhone App Developed In Flash CS5 Communicate With An External Server

Sep 9, 2011

With normal Flash SWF's I use URLRequest to communicate with external servers/sites to send/retreive data from a database - pretty standard stuff. But can iPhone apps published from the CS5 environment communicate with external servers/sites?I'm still organising my development license for the iphone, so want to check before I fork out the money for the registration.

View 1 Replies

ActionScript 3.0 :: Communicate With Server Through Binary Socket To The Server Through IP Address?

Oct 10, 2009

I am working on the web base flash application I am trying to communicate with server through binary socket to the server through IP Address and Port using Action script 3.0 at the server side we are using java. I will like to send binary data string to the server in a clubbed single packet. I dont know the Action Script 3.0 as much.for this We will have to communicate through IP and Port only

View 1 Replies

Actionscript 3 :: Communicate Two Swfs Using Javascript

Aug 9, 2011

If I playing one swf, the other swfs should pause if it was playing. I can able to communicate two swfs using javascript(both swfs are different name). But come to multiple swfs, I don't know how to differentiate the swfs beacause all are same name. I have embed 3 swf files in my html page using the following script.

[Code]....

View 1 Replies

Javascript :: Html - Communicate Between Flex?

Feb 20, 2012

I have a windowed Flex application (AIR) that uses an HTML file for the UI, but I have some Flex code that needs to be executed when the page is loaded.I have imported the HTML interface into the app using the < mx:HTML /> tag. The communicate between javascript and flex, but only if you are using an external HTML file in a browser, and not in a windowed app.

View 2 Replies

Professional :: ScriptBridge Class Provides Another Way To Communicate From JavaScript?

Jun 3, 2010

In Flash Player 10.1 and later, the ScriptBridge class provides another way to communicate from JavaScript running in a browser to ActionScript (but not from ActionScript to JavaScript). The ScriptBridge class offers significantly better performance than the ExternalInterface class, and provides access to the entire ActionScript 3.0 API from JavaScript. By contrast, the ExternalInterface class provides access only to callback functions in ActionScript.If you need to call JavaScript from ActionScript, or need to communicate between ActionScript and any other programming language

you must use the ExternalInterface API. If you need to call ActionScript from JavaScript, the ScriptBridge class is recommended. The rest of the section describes the ExternalInterface class.my research makes me believe that this new Flash Player plugin API is most likely resulting from implementing recent changes in the Netscape Plugin API. Hopefully it should be as simple as having the player script NPObject properties and functions to use to access objects, packages and classes of the flash application.

View 2 Replies

Media Server :: Communicate Between Different Apps On 1 Server?

Nov 2, 2009

Like the title says: How to communicate between different apps on 1 server?I'm trying to build a program on which I need to have communication between 2 or more apps on the same server.

View 4 Replies

ActionScript 3.0 :: Communicate Javascript Function With Out Internet Connection?

Nov 4, 2011

My program running in web browser. I dont have internet connection. How can i call Javascript functions.Also not working ExternalInterface.

View 11 Replies

ActionScript 2.0 :: Alternative To ExternalInterface.addCallback() To Communicate With The Javascript

Feb 21, 2009

Any alternative to ExternalInterface.addCallback() to communicate with the javascript

View 2 Replies

ActionScript 3.0 :: _root Replacement / Javascript To Communicate With SWF And Pass It Some Values

Feb 3, 2009

Im having a little problem making javascript communicate with actionScript, Here is the problem, i have a application that uses javascript to communicate with SWF and pass it some values, and the code was working in AS2 with the following:

[Code]....

in this example the aplication would pass key to the javascrip function and the function would put the value in the swf variable called _root.valor. So the problem is (as you already know) _root has gone in AS3. And every thing i tryed so far seems not to work. every thing i read so far was to embeb the swf in the js and use
root.loaderInfo.parameters.valor, well i dont want to use the embedSWF because i need to get the activeX cotnrol from my document. Is there any _root replacement? is anyway to get this to work at all ?

View 5 Replies

ActionScript 3.0 :: Communicate With Server Via TLS?

Oct 16, 2009

communicating in as3 with an server via TLS? (I have on a server an mp3, and the server is HTTPS that requires an certificate and a key (TLS) and I need to get that mp3 on flash) I found some classes (Crypto) but there the TLS it's only partial implemented and support for client-side certificates is not implemented yet.

View 2 Replies

Media Server :: Communicate To FMS From Browser Not With Swf

Aug 9, 2011

Cen i communicate to FMS from browser not with swf. For example - by javascript from user side or by C# from IIS server side.
 
I need to built a live chat appliction where the swf only get the live streem and show it to the user but all the other logic code that communicate to FMS will be not in the swf and not in some *.exe file.
 
I need this because this live chat appliction will have to work on apple ipad and iphone soon when FMS will be able to stream to those devices and i will have to abandon the swf anyway.

View 1 Replies

Communicate With Java From Air Without The Use Of A Server Like Tomcat?

Jul 22, 2011

I'm currently working on a project that need to communicate with java from air without the use of a server like Tomcat. For this i found and use Flerry.Communicating between Java and Air is no problem, as long as I try to send a message from the class that I initially instantiated from Air.What I try to do is subscript to messages from a Message Class in java and use that class to send info and errors to Air from Java.

MessageController.java:

public class MessageController
{[code]....

the infoMessageHandler receives an message containing test message, as it should. How can I dispatch messages from whatever class in Java and catch them on the Air side?

View 1 Replies

ActionScript 3.0 :: AIR Doesn't Communicate With My Server ?

Aug 13, 2011

I have made an AIR application where the file communicates with a PHP file in order to display data.I have WAMP installed on my computer, and the application works when I test locally using WAMP but if I upload the php on an online server(I tried on two of my servers) and run the AIR application it seems that it doesn't communicate with the server so no data are displayed.

var url:URLRequest = new URLRequest("http://www.test.com/test.php")

This is how I call for the php on AS3, like shown above.The php file gives no errors when I browse it online so, I suppose there something else going on?

View 1 Replies

ActionScript 2.0 :: Local Swf On Linux Box Cannot Communicate With Server

Aug 9, 2009

I have a swf file stored locally on a linux machine, that is launched on boot up via opera. the swf communicates with the server to login and retrieve xml data, and then loads other swfs on the server.

i have added the crossdomain.xml to the root of my server, and added the appropriate System.security.allowDomain('my domain').

this process works fine on a windows machine, but with the linux setup, the call to login with 'sendAndLoad' does not return a successful result.

View 0 Replies

Python :: Create A Form In Flex And Then Communicate With The Django Server - Debugging Strategies

Feb 24, 2010

I love django, and I like flex. Django for it's cool debugging system (those yellow pages helps a lot to find bugs in my code), and flex for it possibilities. Recently I come across a problem. If I create a form in flex and then communicate with the django server, I can't see any debugging info (when the exception happens in django). Not sure, if there is a way to get the debugging info, because it is not accessible in command line (no error output), or in firebug.... Also I tried to create a quick html form, and post same data as I send from flex form, but it's a bit of pain to be honest. Will be happy to listen how do you solve the problem

View 1 Replies

Javascript :: Flash Voice Recording, Then Upload To Server

Nov 26, 2010

I'm looking for a flash widget that allows users to record their audio and then send it to the server.

There are a few similar questions:

Record Audio and Upload as Wav or MP3 to server

They advocate using Red5 or flash media server.

Shouldn't it be possible to record locally on the user's client using the codecs that the user already has and then upload the resulting file to the server, rather than say, process the and record the stream on the server itself.

View 2 Replies

Flash :: Javascript - Uploadify Uploading To Remote Server?

Jan 31, 2011

I'm trying to use uploadify to upload images to a remote server. I've have done everything I can think of for the cross scripting issue or whatever. Here is what i've done. scriptAccess to 'Always' in the uploadify function. I have a crossdomain.xml on my ww2 server with uploadify.swf in the root as well. I have uploaded my javascript jquery lib file to the remote ww2 server and put it in the header I put the jquery.uploadify.js and the swfobject.js in the root directory as well.

If I try to click the X to cancel a file I get the error: Error calling method on NPObject Or uploads don't work either. If anyone can help with this that would be great. If there are any other good flash based or non flash based multi uploaders that will do remote files with no issue please let me know.

View 2 Replies

Media Server :: JavaScript Runtime Is Out Of Memory; Server Shutting Down Instance?

Jun 29, 2010

I'm getting this error with one chat application. According to
 
[URL]
 
..I should "Check the JavaScript runtime size for this application in the  configuration file". By default it was set to 1024.  Any attempt to increase it causes FMS not to start again. This problem just came out of the blue.  This same chat app has been in operation with no trouble for about 10 months.  I restart the server machine on which it resides before each new chat session.

View 2 Replies

Actionscript 3 :: Communicate With Server-side Script - Only In Document Class Or In Sub-class?

Mar 14, 2012

Say i need to send some data from AS 3.0 to a server-side script for it to do some actions. Can I do this in a sub-class called some where in a document class or should we always do it in a document class?

View 1 Replies

C++ :: Communicate Between It And Flash?

Mar 18, 2011

Is there any way I can have an integration between Flash AS and C++? Let's say I have created a socket using C++ and multi-casting it to several ip addresses.

On one of the IPs I am running a Flash client. Can I receive the Multicast message (sent by MFC/C++ application) through my Flash application.

Or at least can I develop a Flash plugin (menu item) using C++?

View 1 Replies

Get Flash To Communicate With A Database?

Dec 18, 2009

I have written a flash program using AS3 which allows the user to build a picture of a product using a variety of options displayed in checkboxes. Very simply these checkboxes either make a layer visible or invisible in my flash movie and certain choices may change the list of options. This information is currently being supplied by XML. Once the user has built his product, I would like to be able to save his choices in a SQL Server database and also be able to download his options again at a later date and view these choices at the manufacturing plant.

So far I have tried using asp.net to write to the database and have got the information to the asp.net program by using the querystring, however there may be up to 50 options which does make a querystring rather unwieldy. Also I cannot seem to send back information from the asp.net page to my actionscript.Can anyone tell me how to do this or give me an example? I am supposing that I use the response.write function in asp.net but what command in AS3?I looked into the possibility of using a webservice but see that AS3 no longer supports this as all the functionality is in Flex. I have read about Flex but still do not understand whether

View 1 Replies

ActionScript 3.0 :: Communicate With C++ App In Flash?

Aug 3, 2009

How can you communicate with a c++ app in flash?

View 1 Replies

IDE :: Flash Game And Want Two Swf To Communicate With Each Other?

Jul 18, 2009

I am working on a flash game and want two swf to communicate with each other. I tried local connection but dont know why sometimes it doesnot work.

View 1 Replies







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