Flash :: Flex - AIR HTTPService - No Internet Connection
Jun 8, 2011
I am creating an air app that uses HTTPService to connect to a .net api and get a user for example. It works great when I publish the move for "Flash Player 10" as a .swf, however, when I publish it as .air it seems like there is no internet connection at all. I am assuming it's internet securities (maybe firewall). I turned off my firewall and everything that might be blocking the internet access, but nothing seems to work.
This might seem like a simple question, but I searched the internet to no avail.I am creating an air app that uses HTTPService to connect to a .net api and get a user for example. It works great when I publish the move for "Flash Player 10" as a .swf, however, when I publish it as .air it seems like there is no internet connection at all. I am assuming it's internet securities (maybe firewall). I turned off my firewall and everything that might be blocking the internet access, but nothing seems to work.
At the end of the movie I would like to check if the user is still connected to the Internet (they maybe on an unstable dial-up connection and lost connection). Is there anyway to do that? I mean, is there a way to check if a user is connected to the Internet using ActionScript?
I got a mxml file that launch a script on my http server through a HTTPService.send() call. Since the script on the server side takes a LOOOONG time (it could take even more than a hour) i would like to drop the connection between my air application and server when a button is clicked. Don't know why but calling HTTPService.disconnect() is totally useless... No tcp connection drops and script keeps on running on server side. No HTTPService.cancel() nor set HTTPService var to null worked.
I am writing a peer-to-peer binary socket program. There are only two endpoints. One socket is listening on my laptop system. The other socket is broadcasting from my desktop system. I have a third program running on a hosted server, that is available to broker the connection between the two. My problem is that when the laptop and desktop are on the same network, they both have the same internet IP address but different intranet IPs, but when the laptop is on the road, then the IP addresses are different. In order to be truly peer-to-peer, I have to write it so that after the connection is established, that the two computers communicate directly between one another. How is this generally accomplished, when the two computers could potentially share the same IP address, if they are running on the same network?
I'm interested in building a thick client application for my existing web services that will run on the IPhone. Flash finally seems to be an option, so I thought about using Flex for client side development.
However, since flash apps are not natively supported by the IPhone, but only through a wrapper, I was wondering if these apps can persist any data. Data entered by the user should eventually be transmitted to the web service, but until then I want it to persist even if the Iphone should run out of power.
Is this possible? Or does the Iphone flash wrapper make it impossible to access the hard disk?
I've noticed in testing a problem whereby Flowplayer will not play any content without a internet connection. All the files which make up my project are stored locally, and I've gone through and checked all the paths to make sure nothing points outwards towards the internet.
Curiously if I pull the internet connection out before the web page loads, the video file fails to load, however installing a loopback adapter gets around this. How can I alleviate this problem?
For proofs sake I've loaded the page in chrome looked at the network activity;
I am creating a local app that is going to be a swf file. Is there anyway to check if the user has internet while they are using my app. I tried this, it works great if testing the movie from flash, however, It does not work when running the swf file independently. I'm guessing this is because it is strictly intended for air app.[code]...
I'm creating a stand-alone player based Flash app. Some of the required elements within it are links to areas in a site online. I need to test before hand if the user has a connection. I'm stumped on this one. I'm not worried about NetConnection etc. I'm simply trying to test if the user has an internet connection or not. Would anybody happen to know if there is a function or some combination of methods that is not browser-based that can test for an internet connection?
My connection at work seems to be a bit rocky. I'd like to make a simple graph using the awesome power of ActionScript to demonstrate the rockiness of work compared to the smoothness at home to my IT guys.Websites like speedtest.net won't cut it as sometimes my connection is great, with sudden cutoffs randomly. Other apps won't work as I can't install software at work.
Any thoughts on how to get started? I'm guessing I download some audio or something at regular intervals or something to test/graph (I can handle the graph part)? I don't need specifics, although I'd be delighted to see examples if any. I really just need some general guidance on where to get started.
I have two versions of video - low and high bandwidth. I want to detect client's internet connection speed to show low or high version of videos. Is it possible to detect Internet Connection Speed in AS2
I have two versions of video - low and high bandwidth. I want to detect client's internet connection speed to show low or high versions of videos. Is it possible to detect Internet Connection Speed in AS2?
I have trying to call javascript function through ExternalInterface. But flash player recomonding to have internet connectivity. i have allredy used allowscript="always" .
Im trying to make connection from flex to java and from java to mysql. I managed to connect to java, but having error that class not found: com.mysql.jdbc.Driver. But i downloaded mysql.jar, included it added to library, and connection works when i testing it from clipse scrapbook. Dont know what to do, i spend last couple days on this.
Basically the solution was simple. Everybody keeps saying to put jar into lib folder, so i done it, but i wasnt realised that i have to put into my servers lib directory, not app lib directory and this miserable mistake cost so much. Anyway i hope this will help for some newbie like me.In this particular situation im using red5, so i putted it into my red5 dist/lib directory and "surprisingly" its started to work.
I got a IP Communications new account having following paramters:
[Code]...
Its showing me connecting ... Status is not getting update like: "Connection Failed" or "Connection Success". how to use the above information in this app,
i created xml in flex after that creation i post to php via http service but when i add like xml in http service flex throws error msg like Error #1096: XML parser failure: Unterminated element." What did i worng ? How to send xml data flex to php ?
<mx:HTTPService id="createxml" method="POST" url="http://####/admin/?do=storebettingdetails" useProxy="false"></mx:HTTPService>var xm:XML = new XML("**********"); ------ adding child node -- Thend attached xml to service like createxml.request=xm; createxml.send();
I use the HTTPService() method to post a variable value to a SQL Server database. The suggestion came from someone with some past experience in Flash but nothing specifically related to posting variables to a database.
This person sent me the following code snippet that he found in a Flex forum (and changed a bit), with a suggestion that maybe it will work with a bit of massaging.
PHP Code:
private function start():void { service = new HTTPService(); service.url = "http://webServer.aspx";
[code]....
My biggest problem is that I'm using Flash instead of Flex. What is the Flash (non-Flex) equivalent of HTTPService() method in the following code snippet?
I'm using a PHP script to read an RSS feed in my Flex 4 app. The script works when I put the URL of the feed in the actual script, but I can't get it to work when I try to send the URL as a parameter from a HTTPService in Flex. Can anyone tell me what I'm doing wrong? Here is the HTTPService from Flex 4 that I'm using:
i was to create a type of ftp connection using flash/flex, however because actionscript doesnt support ftp i need to use other programs such as c#.net.intergration i have seen can be done with tools like WebOrb for .Net however because this is an Air application i want to be able to access .net class files(dll) from flash without havent to be connected to any sort of server.however i cant find any solutions to connecting to .net classes as a standalone application.