Actionscript :: Check Network Availability ?
Feb 19, 2012I want to check network and Internet availability in Action Script programming language.
View 2 RepliesI want to check network and Internet availability in Action Script programming language.
View 2 RepliesI was wondering if there's a remote file availability check using Flex-AIR. Not a local file.
Example: For displaying a image place holder instead of a broken image icon.
how to check a network connection status with flash?
If XMLSocket.connect returns a value of true, the initial stage of the connection process is successful; later, the XMLSocket.onConnect method is invoked to determine whether the final connection succeeded or failed. If XMLSocket.connect returns false, a connection could not be established.
Example
The following example uses XMLSocket.connect to connect to the host where the movie resides, and uses trace to display the return value indicating the success or failure of the connection.
function myOnConnect(success) {
if (success) {
trace ("Connection succeeded!")
[Code]....
I have the following scenario:
One application JEE / Flex 4 running on a tomcat, inside my Flex layer I have a iFrame passing a url to an ip of my internal network (http:url....) which is another application running within an industrial PLC.When access this app from within my internal network works fine, but when I try to access this iFrame to an external network in my home for example have a timeout error onhttp:[url].........
I believe this error occurs because the flex client is trying to run this url as I was in a internal network.Is there any way to run this url from an external network?
I need to swap a JSP form with a Flash form should the user have it installed. I know there is a JavaScript option, but don't want to use this as that cuts out people who have Flash but not JavaScript.
View 1 RepliesI'm trying to write a test page which a customer can send us to identify whether they can use various parts of our site. Typical support stuff I guess.Anyway, the test for flash is straightforward enough, but can anyone suggest how I might test if they can access the Google Maps API on their browser?
View 2 RepliesI'm looking to use the Smart Seek options with netStream in an upcoming project. Currently, we are using Flash CS4 and it seems this API is not available. Am I correct on this? Is this only available in CS5 as far as Flash Professional goes? What about Flex? Which version of Flex is required to access the smart seek API? Or am I misunderstanding this, and the Smart Seek API is server side only AS?
View 2 RepliesSee [URL] Now there is a button called Answera, which when clicked should have a symbol (movie clip) called Check appear at the cordinated specified. Check exists in the libary (but does not have an instance name) and no where else on the stage. when I run this code I get: 1180: Call to a possibly undefined method Check. -> var rightCheck = new Check(); How is it undefinded if it exists in the libary?
View 7 RepliesThe following is my codes. This is still work in progress; so, you will see some functions with empty contents. Plus, this is my first Flex application; please bear with me. This is a quiz application that gets the questions and answers to each questions from a ColdFusion web service. There are three types of questions, True or False, Multiple Choice with single selection, and Multiple Choice with multiple selections. So, based upon the question type, the application would dynamically generate the appropriate amount of radio buttons or check boxes for the users to select. I got these working. The problem that I am having is, I am not sure how to check what the users have actually selected. In some other forums and posts on other web site, it said that I can use event.currentTarget.selectedValue to get the user selection. But when I actually do it, I got a run-time error saying, "Property selectedValue not found on mx.controls.FormItem and there is no default value." My question is, what do I need to do to capture the user selections?
[Code]...
We recently upgraded our network to Leopard and Flash to CS3,and since then, I can't publish to a network drive.The reason I need to do this is that we're on a network where all our project files are on the server, and we work directly from the server. With previous versions of Flash and the system, I was able to work on a Flash file on the server and publish or test to the same place. Now I need to copy my flash file to my local
computer in order to publish or test.If I try, I get this error: "Error creating Flash movie file.Be sure the destination file is not locked or on a locked drive.Also, check that the file name is not too long." Neither of those are the case.
I've got a Flash Banner worked with AS3.0. It loads XML and then load the Jpegs. At the beginning, the SWF accesses the files under the same directory. So the code goes like
[Code]...
I just installed FMS 4.5 w/ built in apache on Win2008R2 - accepting all defaults. Samples streams play fine when playing on the server. I copied the sample directory and put on a client on the network. I modified the stream URL using the server's IP address. I also modified the manifest files so that localhost was replaced with the server's IP. When I attempt to view in the sample player I get the following:
"We are unable to connect to the network.
I've recently started using FDT, for a while I was using FlashDevelop, it had a really handy feature in Compiler options where you can set UseNetworkServices to false which would stop the compiled swf from connecting to the internet and became very useful for running standalone flash apps without security warnings when loading in an external xml file etc.
View 1 RepliesI have a swf (flash file) who is making http request.
Which is the easiest way to see what request the flash application is doing?
P.S. I do not have the program as a fla file
Can u recommend me a good book/e-book/tutorial to network programming in as 3.0 ? I'd like to create a multiplayer game.
View 0 RepliesJust created a banner for our intranet and I have a getURL inside the flash which should open an html file on the local network. The paths:\networkcompetworkfolderfile.htmlIt works from my computer but when we put it on the intranet it doesn't.
View 4 RepliesI'm FMS beginner (server side newbie in general)... I installed FMS 3.5 (Development) on my computer which is inside of local network. Now I try to connect to rtmp service from another machine in same network using my computer's IP as I used to while connecting to my apache, but it is worthless. Everything works fine on my computer.
View 2 Repliesi am new to flex4.i want to pass network credentials (username and password) through flex.i was not able to get appropriate results using [code]
View 1 RepliesI would like to list all network shares but have no idea where to even begin my search, I assume that it has something to do with Samba etc., but really some guidance would be very useful.
I will be using Adobe AIR 2.5 - so I assume I have access to that sort of information, though I will be using the PlayBook from BlackBerry to access the network which has a full AIR implementation.
What is the reason Flash Builder 4's Network Monitor does not support applications that were created using pure ActionScript and Library projects? It seems to work only for Flex projects.
View 1 RepliesI developed a flash app and i need the functionality when I click on a sprite I want to open a web page in browser for example [URL]. I use flex sdk 4.5 and I changed the use-network tag from false to true in flex-config.xml. But when i compile my project and load the swf in browser I get everything blank. I tried also to use html page with swf embeded but same result
View 1 RepliesIs there a way within ActionScript 3.0 to:
Get all URLRequests() that are made within the application?
Get all RTMP:// connections to a Flash Media server?
Since my application contains SWC files which were compiled by another developer, I cannot directly access the ActionScript which creates the URL requests and RTMP connections.
I'm having same inconvenience while integrating YuMe Ads Module in my project. YuMe's documentation is really bad & pretty confusing. Here Now I have done some manipulations with code in AS2 based player.
I was trying to run it locally while connected to internet so it may load ads from the online source defined. But it does not load anything. I have also made the controls btns hidden, as i dont need them. I dont know if I just need to upload these files on web server and test it online to get it working. Not Sure.
[Code]....
I have a SWF that I am running on a kiosk and the Actionscript is calling a PHP script residing on an internal IP address. As everyone always says, it runs great with the IDE, however when I publish this file and run it, I get nothing. I cannot even output errors and such into a textfield. I'm totally baffled as to how I can debug this.
Code:
//set up request and loader
var request:URLRequest = new URLRequest("http://10.25.241.11/custom/test.php");
var loader:URLLoader = new URLLoader();
[Code]......
im testing out some AS3 and working on my first preloader. Ive run into the file access problem and looked about for a while and found that locally I can get files to load with the compiler flag -network=off. To put this online would I have to do a compile with the network on but with a Security.allowDomain("myDomain") line. Would this then work online so long as all the required files are in the same place.
View 3 RepliesI am working on creating a network diagram. I used the "Creating Connected Lines" tutorial to start off. I need to place the object equal distance from each other around a center object so they don't overlap. Is there a way to set the distance or maybe the line length so they don't end up on top of each other?
View 2 Replies[URL]..We're looking into integrate this into our player, but we're also looking to allow others to embed our custom player + content.
However, it seems YuMe relies on a bunch of custom javascript, which is needed in the page the player is embedded in.
Since we'd essentially only be offering people to embed our swf, does anyone know if there's any way around this?
I was wondering if it was possible to send a string to a flash application from a flash application on the same local network? Can i put the code requiered on a mobile (android) in air?
View 1 RepliesHow I can use ip/network camera with Flash Media Server.I am not able to configure it.Is there any other way of configuring such cameras ?I want to publish live stream data captured by ip camera on Flash Media Server.
View 1 RepliesBy default, the server runs as System Account with no access to network drives. You can change the service user to a user with network access privileges with a UNC path. In Windows 2008, when I change FMS service to log on as user and start the service I get
"Windows Could not start the Flash Media Server (FMS) service on Local Computer.
Error 1067: The process terminated unexpectedly".
When I change it back to Local System Account, it works fine. Tested in Windows 7 x64 and I was able to start the service as a user log on. I checked the local policy group and the user have rights to log on as a service. I compared Windows 7 setting to Windows 2008 and they match.