ActionScript 3.0 :: SWF Can't Access Network
Feb 26, 2011I'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'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]...
My flash movie loads config.xml from the file system. Inside config.xml are urls and the base url to other xml files that I wish to load in to the flash movie.
These urls in config.xml are requested by the flash movie providing my flash movie with data. Again these are .xml files how ever they are being accessed using the network. EG " http domain dot com slash data dot xml"(i cant post links yet)
I know that I cant access both network and local files in the same movie so my question is this. What is the best way to pass in the base url dynamically to the flash movie so i can cut out config.xml?
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 RepliesThe reason Ordinarily I would just host everything on the server, the swf file and images and serve them out using something like apache. However, we're working with an embedded device with hardware limitations. So we thought we could avoid this by hosting the images locally on a cd.But Flash player moans about the security settings. I know a way to overcome this would be to give the user instructions to change the global security settings- hence allowing both network and local access. But we feel that this would be too much to expect the end user to do.We want our model to work out of the box so to speak. Or as best as possible.
View 1 RepliesIs it possible to access both network and local files, flash player 9/10?
Here is the situation:
I have an SWF which runs locally on the client's machine.
It communicates, via XML socket, to a C++ server.
It also needs to read some configuration files from the local file system...
c:config.xml <---> test.swf <---> C++ server
So I need the SWF to be fully trusted, as if it was ran from the Flash IDE.But I can't tell my clients to set it to be fully trusted using Adobe's Global Security Settings Panel
What I can do is alter my C++ server code, somehow granting permissions to the SWF.
In a plugin context (a swf loaded by an another swf), is there any way to restrict access to file system and network in the same time to the loaded swf?Compiler option "-use-network=true|false" does not fit because you cannot restrict both file/network.[code]The loaded swf is in user's document folder, outside Air app folder. Currently, the loaded swf is abble to load "c:/Windows/regedit.exe" and I don't want it (neither sending informations on the network).
View 2 RepliesI 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?
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 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 RepliesI want to check network and Internet availability in Action Script programming language.
View 2 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]......
I 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.
I have a problem with FMS 3.5 installed on Windows 7. The problem is that FMS works only on my local machine, I am not able to use it from computers in local network. I turned off all windows firewalls and my machine is visible for other computers - I am able to connect to FMS Welcome site on apache on default port 8134, but streaming fails, and I cannot do the same on port 80.
View 8 RepliesI need to create a network graph with nodes in flex. Once I give the input the nodes must get connected with each other if they have something in common.
The nodes must be click-able to show which other nodes it is connected to.
Can a bubble chart be modified to do this?
What Approach can you use to Connect Adobe Air Application to a Local Network? Examples of function is send a message to other computer that is connected to a network, sending files or viewing their desktop.
View 1 Replies