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?
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
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.
I have two swf files: swf_sender and swf_receiver. The swf_sender controls the swf_receiver via java script.Everything works fine in IE however, the swf_receiver doesn't receive communication from java script if openned by Safari or Firefox.The first part of communication: swf_sender - Java works ok (I tested it with alert() in Java) in all browsers.Here is my Java interface code:
Code: <script type="text/javascript"> function getFlashMovie(movieName) {
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.
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.
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.
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?
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.
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.
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.
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
I have configured FMS on Amazon EC2 I am trying to capture data from my webcam and push it to the server.For storing the webcam i created a new folder but as it is recommended in other forums "You need to replace the signed Live application (main.far) with main.asc in[FMS-Install-Dir]/samples/applications/live/ ;(For more Info: refer to documentations & live/readme.txt) "I am not able to locate samples folder from where i can get my main.asc file
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?
I have some problems about installing FMS 4 on a CentOS 6 x64. After installing, FMS doens't start properly. I don't see the videos on the web interface. In the log file master.00.log, i can see these errors messages
I try to do live stream by FMS 4.5.1 and FMLE 3.2 (H.264&MP3 encoding) It's all good no matter video or audio. But after about 30 mins, stream freeze. Refresh doesn't help, only get a black screen without any error message.
restart service or reboot my PC still the same. The only way to fix it is uninstall FMS and Install it again. HDS works again....but same problem happens after 30 mins or a couple of hours.
I have a flash swf file which I don't want people to be able to download and decompile it . my first solution was to load this swf file in another swf file and put the container swf file in my site . but something's wrong . when I load my swf file in another swf file using : myloader.loadMovie ("myswffile.swf");it works fine in my local computer but when I load these two swf files to my server and try to use them there , it doesn't work .
I've made a preloader. When i load the SWF within flash, or play it from my harddisk, everything works fine. But when it's uploaded to my server, the preloader doesn't respond.
this is my preloader code:
ActionScript Code: //Import the required assets import flash.display.*;
I'm trying to load xml-file, get addresses from there, then load images and finally put them in caruselBut it wokrs or desn't work dependin on where my swf file isWhen I run swf from my flash compiler it loads xml and images from server 1 and server 2.When I run swf from server 1 it loads xml and images from server 1 but not server 2.
I created a preloader. When I test it in Flash CS4, it works fine. When I upload the swf files to my server, the preloader doesn't work. I put both swf files in the same folder.
I'm working with flash CS4, with an adobe air file with as3, doing a desktop application to use in Windows , I google about information, but only find answers for web.I'm using a flvplayback, and when at source property add a local path as C:folderVideomyvideo.mp4 ,everything works fine, but when source is a server path from other computer as therpcfolderVideomyVideo.mp4 , doesn´t works. I'm not if a flvplayback bug.I have always the possibility to make a map folder, but this application is for a client, and if I can solve if add new map folder, it's better to me.
I'm having some problems on some systems (seems to affect mostly 64-bit systems) where videos streamed from Flash Media Server 3.5 doesn't start from the beginning. I'm using NetStream.Buffer.Full to detect when the video starts. Usually this works ok, but sometimes the video doesn't skips a couple of seconds from the beginning even though the value of NetStream.time property is 0 when this happens.
I'm trying to get the id3 information from an mp3 being streamed from FMS.I followed the samples I found online and am using the following client-[code]As a note the above code works fine to play the actual file (substituting mp3: for id3:, of course) it just doesn't seem to trigger the onID3 method (I've tried onId3 which is what the samples use).I am also able to view the id3 information from windows explorer and other external readers.The platform I'm ultimately targeting is Flash Lite 3.1 AS2, but I've tried various configurations and haven't had any success.
I have a Flash website with 5 sections (Featured Work, News, About Me, Services, Contact). All the sections works fine, both in Flash and on the server, if the content isn't loaded from XML. But in the News section i use XML for loading the news.If i test my movie in flash, the whole site works fine, and the XML News works perfect. But if i test the movie in a virtual server (like MAMP) or if i test it on my own server, the news section doesn't show.
I'm currently having an issue with FMS4 developer edition on both Linux (x64) and Windows XP (x86).When I stream a webcam using ns.publish("foobar", "live") I can watch the live stream on another client, however when i use ns.publish("foobar", "record"); neither broadcasting nor recording works.Using the "live" parameter the client appears in the log files and in the administration console as "publishing", using "record" the client appears as "idle".Is there anything I need to configure besides LIVE_DIR in fms.ini?
Is this a restriction in the developer edition? Here is the relevant part of the code (condensed):
-------------------------------------------------------------------- var camLive:Camera = Camera.getCamera(); var nc:NetConnection = new NetConnection();[code]............
I have problems with Darwin Streaming server 5.5.5 on Debian.When i'm trying to open some stream, for ex.player reports it can't load stream and breaks connection."Access History" section reports file was requested, so, at least initial connection is working, but nothing more.