Xml :: Flash Player Can Not Access Files Out Of Www Folder?
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?
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.
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
1 is there a way to load an external mp3 file randomly from a list of files in a folder? is there a "rand" function (as in php) or something to get random numbers?
I have a flash file located on a web server. When it's loaded, I want it to access the user's PC and display some data (such as file directories, files, etc)I know there are security rules about what a flash player can access, but so far all I can seem to find are rules regarding local flash players accessing the internet, but not much on the other way around, or how do go about doing that.
I would like to build an image gallery in Flash with AS2 or AS3 that detects automatically the number of images available in a specific folder (say a level below the swf file).The goal is to don't have to config any xml files with the images to show.
I want to get a list images inside a folder but in order to do that, I need to get the names all the files inside a folder first. What flash class should I look into to allow me to do this?
EDIT:how about doing this using php? what should I return/echo on my php file?
I want to embed all xml files of a given folder. For now I'm doing something like this:
[Embed(source="../somefolder/file1.xml", mimeType="application/octet-stream")] private var MyClass1:Class; [Embed(source="../somefolder/file2.xml", mimeType="application/octet-stream")] private var MyClass2:Class;
[Code]....
The list of XML files will grow to 10+ files, so I'm looking for a more elegant and dynamic way to embed those files.
The files should be embedded on compilation, to load them via URLLoader is not an option.
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?
I try to open pdfs or folders (in finder/explorer) triggered by a mouse click in an swf application running in flash player. opening a pdf via urlRequest and navigateToUrl() always opens the browser.
I read about this solution with fscommand: http://www.artfans.info/open-pdf-file-from-flash-using-fscommand/ seems then we had to write shell scripts for mac and pc...? doesnīt sound perfect. the swf is executed on cd rom. so i think we canīt use an air application and the classes of the air framework (File
I recently got the following code from one of your tutorials and am wondering why it is that when I try to change the .jpg images to .png images, the images no longer appear in the swf file. Does flash no allow .png files to be loaded.The reason that I need the files to be png is because the have to have a transparent backgroung.[code].....
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.
I am having problems with building my webpage with Flash. I have imported the the swf files I want in my library but when I try to put them into folders my computer seems to seize up and takes a few minutes to do the job and can be very slow and I am unable to anything on PC while it is doing this. I have not incounted this problem before on my PC but I have had it for over 5 years now and I am due to buy a new PC in spring next year when Windows 7 is released on all new PCs. I am using windows XP with all the updates available plus upgraded to 1GB memory last year. Is my PC to old to work with FLASH CS3 or is it another problem entirely?
I was wondering if it was possible to list all the files inside a specific folder using Flash 8 Action Script. Just that I have an image gallery that has all the image names in an array. What I would like to do instead is get the image names from the folder they are in. Is something like this possible without the use of a server side programming language like PHP since the flash file will not be on a PHP server.
Is there any way for flash to determine the number of files contained in a folder? If so how. I am trying to create a photo gallery which will load as many pictures as there are in a specified folder.
I am trying to put together a simple game and have been doing really well until I decided I am going to have to create a new class to handle enemies.What I have so far is a player walking around on random terrains and I am up to the point where I have placed x amount of enemies on stage at appropriate times. I have written their class which will hopefully eventually handle their behavior and it outputs simple trace("BOO!").
Where I face the problem is that I obviously would like to make these enemies follow the player to attack. But when I try to access the .x or .y attributes of the player, it throws an error: 'call to a possibly undefined property with static type Class'?I have tried accessing the .x using the following ways (where badger is my player instance and Main is my class definition within the properties of the FLA):
Main.badger.x Main(root).badger.x Stage.badger.x
I have also tried to access other vars and still nope..My class code is this:
how do you setup a full Flash web site, do all files including linked docs go in one folder?. are you suposed to use the publish pannel? The Flash site i am trying to create is to be used as an intrenet site that resides on the server how do I name links to doc in that folder?
I see plenty of AS3 examples of loading 1 image file into a 1 frame movieclip, but how can you take a folder full of images, load them and treat each image as an individual frame of a single movieclip?
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.
I need to list the files under a local folder on web browser(flex app). How do i change the properties of flash player so that it will browser list the files?
I'm making a desktop application and I need to get all of the file from in certain folder. Is this possible in AS? IE, I need to get the name of and import every file in the folder C://documents and settings/my pics.
i am trying to create a flash movie for my browser page. i am able to import and export the movie just fine, the problem comes after i export the movie. As long as i leave the flash file in the folder it was created in things work great. If i try to move the folder or rename the folder it stops working. It acts like it cant find the flv file i created the flash with. if i rename or move the folder back where it was created things work fine.
I am creating an autorun exe file. Basically the CD is filled with markering materials. What I need to know is how to get Flash to open a folder on the CD so the viewer can pick from what is in side the folder.
What I want to do is to extract a zip file to a specific folder.I am using the code below that promts the user to choose which directory the zip should be extracted to and the extracts it succesfully.Now I would like define a fixed folder where the files should be axtracted to instead of letting the user decide.
Actionscript Code: function extractZIP():void { output.text = "extractZIP MANUAL"; zipOutput.browseForDirectory("Select Directory for extract");
I'm trying to get the name of every files from a specific folder into an array, but I get this error and I can't find why... TypeError: Error #1009: Cannot access a property or method of a null object reference.
Here's my code: import flash.filesystem.File; function getFileList(directory:String):Array { var folder:File = new File(directory); var files:Array = folder.getDirectoryListing(); var fileList:Array; [Code] .....
I'm working on an application where client may upload any folder which may contain sub folders along with files. Is it possible to upload a folder instead of a file?