ActionScript 2.0 :: Access File In Different Folder?
Jul 31, 2010
Due to reasons beyond my control, I need to be able to open an xml file located in a different folder on the same branch of the tree on a Windows client. The paths for the files are known; see example below.
Source Folder/File - D:mediasourcemovie.swf
Data Folder/FIle - D:mediadatadata.xml
Source Folder - This is the folder & file where the swf is located & executed from.Data Folder/File - This is the folder & file for the XML data file.How would I reference the XML data file path in AS2 to be executed by my source SWF?
i.e. - dataXML_xml.load("D:mediadatadata.xml");
View 2 Replies
Similar Posts:
Jul 29, 2010
i have situation in which i have some library projects, say
"DataProcessors","Lib2"
, included in my lets say "MainProject" (a web project) placed on directory
"E:in-debugMainProject.swf"
, when i build the project it automatically place all the libs .swf in its "E:in-debug" folder, but when i debug or run the project it it gives loading error that
"E:DataProcessors.swf"
not found but i have those lib files on
"E:in-debugDataProcessors.swf"..
what could be the possible errors.
View 1 Replies
Apr 13, 2012
I AM USING AIR FOR ANDROID. I want to get all the jpg's (or Mp3's) in a folder of an external folder ... that will be stored on the users PHONE with included in the APP.
How can I do that from FLASH using Action-script 3?[code]...
View 2 Replies
Dec 2, 2011
I have a db file Resided in Flex Air Bindebug Folder,Here i want to Move/save this db File at another location let say In mydocument/or any Folder, I am not able to do it's programatically.
View 2 Replies
Mar 24, 2010
I dont know if its the right forum for my post or not. But I need to ask if there is anyway to show the folder structure of a clients PC in flash when the user clicks on a browse button in a web site just like the one below? I googled for a "Multiple File Uploader using flash" but what I found there is that an open file window opens and we are able to select multiple files from it. I could not found anything like below. So my question is that whether we will be able toshow all the folder structure or not?
View 2 Replies
Dec 18, 2006
I have a text file in a folder in E Drive.how to reach to that folder and read the file..
View 1 Replies
Mar 29, 2010
I've got various flash files stored on my server. For this example - here is the directory structure:
Files > Example >
-> example.swf
-> example.xml
So then on a separate webpage stored in the root of my server.. I'm embedding the flash.
<param name="movie" value="[URL]">
Now the issue comes. Because the .swf is trying to access example.xml ... which is NOT stored in the root directory.
View 3 Replies
Oct 24, 2011
I have a flash player which play mp3 files from xml. at now mp3 files are downloadable with software like internet download manager. if i move mp3 files to out of www and change xml location attribute to '../mp3filename.mp3' player can not play mp3. my question are
1) flash file can access files out of root folder
2) what is best way to protect files from download?
View 2 Replies
Oct 7, 2009
I am having problems accessing my xml on the server. On my local drive, it works fine. As soon as I load it on my site, it no longer pulls the xml rss feed.
Here is the working example, to get it to work, I had to copy the feed into an xml file, and place it in my fla root folder[code]...
View 3 Replies
Mar 20, 2010
When I compiled the following code I had some problem.[code]...
View 12 Replies
Jul 23, 2009
how to know the folder as write permission in air application..in my application i am saving txt file in folder,so that i need to test that folder as write permission...
var file:File = File.desktopDirectory.resolvePath("TxtFolder/DataFile.txt"); i need to check "TxtFolder" has write permission...? before saving the file(DataFile.txt)..how can i do it in flex Air as3
View 3 Replies
Jan 14, 2012
Does anybody know how to make a folder inaccessible by direct address yet accessible to a flash file within that domain? Consider the following scenario.[URL]
View 9 Replies
Mar 20, 2010
When I compiled the following code I had some problem.
private var image_loader:URLLoader;
public function loadImageData():void {
image_loader=new URLLoader(new URLRequest("studentphotosBlue hills.jpg"));
[code].....
View 8 Replies
Feb 5, 2009
Can I do this in AS3?
(1) add the caurina folder to the folder
(2) add Thumbnail.as to the folder
(3) add
[Code]....
View 1 Replies
Jul 14, 2011
I am using a local computer and will only be running the flash app on locals. I want users to have access to a gallery which I built with xml and to be able to add to the gallery. I thought I could do it with an append child to the xml but flash cant write to file. I was going to use filereference and then save the file in the flash folder and add the new object to the xml file, but this is the wrong route.
View 1 Replies
Jul 17, 2010
i finished air application and it is need a local permission for the installed folder ( C:Program FilesAppName ) as i am generate xml ( desktopFileStream.writeUTFBytes(newXMLStr); ) from the application and its need local permission.first time i run the application i got ( error 3001 indicates a file or directory permissions issue ); when adjusted the permission for the current user ( manually ) to fullcontrol, its work great and perfect. how to give my application folder FullControl access by code ( AS3Flash )? as i can't ask each user to give my app folder manual permission.
View 5 Replies
Sep 29, 2009
When I use swfobject (or, for that matter, publish from Flash)...if my HTML file is in the same folder as my Flash .swf (called "bin")...the flash file displays as a blank white page. I can tell the .swf is on the page, because when I right-click I see the flash context menu...however, the swf is blank. So the path isn't written incorrectly.If I move the HTML file inside the "bin" folder and change the path from "bin/myFile.swf" to "myFile.swf" everything works again...what gives?I think it might have something to do with using the Loader class...I am using loaders to loader external .jpeg files. But I don't know what to do about this other than to keep my HTML files in my "bin" folder which is a bit of a pain.
[code]...
View 2 Replies
Jul 27, 2009
i have uploaded a simple 1 page website with the flash video sitting outside of the root folder of the site itself. i have pointed the flv playback components to the video and published it and uploaded it but the video does not appear on the pages.
View 1 Replies
Oct 20, 2010
On my PC I cant run swf file from a folder if I click on it as I get an error (no program asscoiated with this ). On my laptop it works fine.Both have flash installed.
View 3 Replies
Aug 3, 2011
I ve got this xml file called "icon.xml" saved in the same folder of my flash file:
Code:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<images>
[code].....
View 3 Replies
Jul 12, 2010
So I've created an xml slideshow using Flash Slideshow maker pro, because its very fast and versatile and I need to update my galleries frequently. I'm trying to load it into my flash site using the following AS3 script:
var Xpos:Number = 20;
var Ypos:Number = 20;
var swf:MovieClip;
[Code]....
and when I do that, it seems to be unable to read the xml file anymore and I get a "load fail" message.
On looking at the error message, its trying to call the xml file from the same folder that the site is saved in. How do i tell it to get the xml file from a different folder?
View 4 Replies
Jun 15, 2009
is it possible to open a folder or file by using AS3?
View 6 Replies
Jul 20, 2011
I usually work with many AS files in the same folder and it is easy to address those files to each other. But I now have a sub folder inside the name folder which stores most of my files; and there is another as file inside that sub folder. How can I change variables of the AS file(inside the sub folder) from the AS files from the main folder and vice verses.
View 1 Replies
Aug 1, 2011
I need to make a Windows application in which, at loading time, I need to play a Flash (.swf) file in WebBrowser. But I can play the Flash file directly from hard disk to WebBrowser control. Here I need to play the .swf file in the Resources folder and load it in WebBrowser control.
View 2 Replies
Feb 25, 2010
I load a swf movie from a folder from my desktop. as i want organize my movie into 1 main root folder(main folder) and smaller folders inside the main folder so i can organize my files .
View 2 Replies
Dec 25, 2010
some games that each one loads it's on data from xml file placed in the same folder with swf. now i want to load these swfs in a main loader swf, but the problem is games try to load xml relative to loader swf location. is it possible to isolate game swfs to prevent this?
View 2 Replies
Nov 24, 2009
i have a script that load pics (named as "1.jpg" "2.jpg" "3.jpg" ...) in a movieclip. to load pic i use a variable
+[i]+.jpg
and so with i++ i load others pics.. but i need a way to restart "i" if there aren't no more pictures...
View 1 Replies
Jul 7, 2004
if the fla.file and the sun.swf is in different folderhe fla.file is in C:Documents and Settingsstudentthe sun.swf is in C:Documents and Settingsstudentexamplewhat should i type on the parameter.i dun understand the file:///
this my script
*************
on (release) {
[code]....
View 3 Replies
Mar 30, 2006
i am using this xml scheme, i wonder if anyone can tell me how to target only the last <file> in each <folder>?
[Code]....
View 2 Replies
Jul 7, 2004
if the fla.file and the sun.swf is in different folderthe fla.file is in C:Documents and Settingsstudentthe sun.swf is in C:Documents and Settingsstudentexamplewhat should i type on the parameter.i dun understand the file:///
this my script
*************
on (release) {
this.fung_mc.loadMovie("sun.swf");
[code]........
View 3 Replies