I tried to search this forum but its goes to a blank white page??Anyhow I'm trying to open a remote text file, the code below works locally I need to make this open from a remote server with a specified URL.
Ext_text = new LoadVars();
Ext_text.onLoad = addText;
Ext_text.load("ContactUs.txt");
I want my app (AIR app ported on iOS) to be able to show file located on the remote server and open it with default app (if there's one on device). Is it possible (maybe one can somehow use openWithDefaultApp here)?
UPD: I succeed with downloading (into File.documentsDirectory). I can't force iPad to open downloaded files.
UPD2: I tried to use both openWithDefaultApp and NavigateToUrl.
How can I send this variables and get a window to open at the remote site. I need this as an option cause perhaps I don�t need the data I�m fetching from the asp.[code]...
I am currently struggling with an error which is occurring on what should surely be the simplest of tasks. All I want to do is open a text file but I constantly get the following error: Error #2032: Stream Error
After searching the web for over an hour I just cannot find a solution to this problem. My conclusion is that I have a security issue and the error is occuring because I do not have permissions to access the file
The code is as follows:
import flash.events.*; import flash.net.*; function dataChanged(event:Event):void
I have attempted to have a hyperlink text using actionscript:
[Code]...
when I run the code it always creates a new window to open up the file in. I have even attempted to switch out _self with _top, _parent, and _blank, always with the same result. I simply want the file to open up in the same window.
Im trying to open an external text file with the help of button. It works locally on my computer. But as soon as i upload it on my site, it does not work any more. Im not sure, if im putting the wrong path.
on (release) { _root.flying_pages.empty_holder.loadMovie("1.jpg") ; loadText = new loadVars();
I have a problem loading remote XML file into SWF file. Im doing a banner for a client with adds that is supose to load constantly updated XML file from my clients server and load some images into flash form it. Everything works fine when i test the movie (CTRL+ENTER), but when i publish it and test it from explorer, XML file is just not loading into flash.
I'm having problems getting the tutorial to work so I decided to look at the source fla. But the Source file won't open on my computer, get the message "failed to open document".
My CS5 flash crashed when I changed the name of the root folder while it was open. Swf is working fine, but .fla file wont open, I get a "Failed to open document" message. This is a disaser because I've lost two days of work. Is there anything that could be done to fix this problem?
This seem like a silly question but as far as I've found: It's impossible to reload an xml file from a remote location while the SWF is running.
For example, I have a kiosk project that will run 24/7 (with a restart each night). I have an "calendar events" loading off an XML file that I want to keep on a webserver so I can update the kiosk by editing the XML file. However, the SWF caches the first XML file and keeps reusing it. I'm testing this by triggering a function that reloads the XML file with a button click.
I found trick that concats a unique ID to the file name which prevents using the old file but that means I'll have an ever growing list of XML files in the Temporary Internet Files folder.
I would like to do a URLRequest to a PHP file which contains xml, and the PHP file will be living on a seperate server from my flash file. I understand there are security issues in this sort of thing. figure out how to make this work?
I'm trying for making out application for vod.I want to know how a user can make his file readable by the AMS for vod when file is at different PC and AMS( includes swf and HTMl files) is at different PC.
When I set the 'Publishing Setting' to 'Permit Debugging', Flash never generates the swd file when the target script language is AS3.If I change the script language to AS2 it generates it.I have tried on CS3 and CS5.how to generate this swd file for AS3 projetcs?I have tried with large files and with empty files always with the same result.
I am trying to upload the files to the remote server using PHP with Flex interface. If it's not localhost, it shows the security error. I have already put the crossdomain.xml in the tomcat web app root directory to allow all the domains. However, the security error is still shown when I tried to upload the file.
i want to do is read variables from a php file on a remote server. i have the php file on the server and im echoing back a result. all i need in plain english is the AS3 to intercept read and display this variable in a text box.
I have two variables that I would like to store in a remote data file which can be accessed by my Flash file. It is for a voting system, so the first variable would be a counter that is incremented each time a user votes, and the second would be the total rating. The average rating would then be calculated from these.
How would one store, retrieve, and then update these variables from the data file?
I can create the system within a single Flash file for a single session, but obviously I'd like multiple users opening the file simultaneously to be able to access the data and update it.
We have a Flash application provided by a vendor. It reads its parameters from an xml file on our web server's file system. However, it can also be spoofed to read its parameters from an xml file sitting on another domain's web server. At first we thought crossdomain.xml might be able to fix this, but we've researched it and understand the purpose of crossdomain.xml. It won't solve this issue.Are there any ways of enforcing that a Flash application reads its input file only from the same server where the Flash application was served? Or is the recommendation just to initialize variables within the Flash app, not relying on an external file.
I'd like my users to be able to easily navigate their files, which live on my server. Is there an obvious / built in way to build the front end for this in Flex? My ideal scenario would be to have something that looks like the local file browser - but I'm pretty sure that's not an option (although I'd love to be wrong)
i try to load file from remote server and open the file with default application.
private function getRemoteCourr(PathFichier:String, FileName:String):void { urlStream = new URLStream(); fileData = new ByteArray(); var urlRemoteCourr:String = new urlManager().urlCourriersPat();
My client has asked me to provide a template for an investor relations section of their website. The HTML page or template for this page will be at the service providers site, but all the images etc. for the page will be linked to files on my clients server. Everything looks fine, but the absolute URL's in the .swf file back to my clients site aren't working.
This is what the service provider's guidlines say, but I'm not sure where the code is supposed to go:
Similarly, newer versions of the Flash Media Player installed by most users have a high level of security enabled by default. This is done to prevent Flash movies from playing on web pages that are hosted on different domains than the movie itself (again, to combat "phishing" or "spoofing").
I made web banners with the intent that the shell being the initial swf, could pull an external swf file from a remote site. View here: [URL]. The main .swf file has to be under 30k, which it is. now the other .swf files load when you rollover the buttons. this method fulfills the 30k requirement on the advertisers side - also allows the creative to have higher res images/swf files hosted on our site/side. In testing it locally, it all works great. But when I moved the .swf file to [URL] to test it - the files hang up when you mouse over the buttons - is there a chance you could check out my source? Here: [URL]. I checked out the security settings. security.allowDomain, not sure if I'm using it correctly?
I'm an application developer, and my standard usage of Flash is as follows: I'm creating an executable application, which contains a ShockwaveFlash object instance, which in turn is displaying a Flash Movie Clip - also created by myself. The executable application and the contained Flash clip are communicating via the ActionScript ExternalInterface (using XML strings) and the FSCommand.
I'd like to be able to debug the ActionScript code of the Flash file while I'm running/debugging my executable application. For that, I need to be able to start a remote debugging session from the Flash object running inside my executable. Problem is, I did not find any way of doing this.
When I publish the Flash SWF file with "permit debugging" checked, I'm able to start a remote debugging session when I'm displaying the file in a player or a browser (the "debugging" option is shown at the right-click menu of the Flash object), but I'm not able to do the same with the object inside my executable (the "debugging" option doesn't exist on the menu).
Environment Details: The executable application is using the ShockwaveFlash COM file to create the ShockwaveFlash object. The executable application is created using VB.NET, Visual Studio 2008, .NET 3.5. The Flash SWF file is created using Adobe Flash Professional CS4. I'm developing under Windows XP (SP3).