Actionscript 3.0 :: Load Files From Password Protected Folder?
Apr 29, 2009
I have a Flash application that displays online e-learning tests. Once a user successfully logs in(via .net webservice) the app loads in XML files, images and audio files via Loader/URLRequest objects and uses the loaded data to render the test on screen.This all works fine but recently the decision has been made to put the XML and media files used by the tests in a password protected directory for extra security.I was wondering if anyone has any experience loading files into Flash from password protected folders. From what I can see online I could specify the username and password for the folder as HTTP request headers using a URLRequestHeader object and set the requestHeaders property of the URLRequest to this URLRequestHeader obj. But this only seems a possibility with the POST method and I am using GET.Also even with the POST method there seems to be issues with sending a HTTP Authorization header in player versions before 9.0.124Is what I am trying to do possible or is it not allowed due to Flash security restrictions?
View 3 Replies
Similar Posts:
Apr 28, 2011
Today, we can create password protected swfs using various content generation tools. When the user opens that swf, he/she needs to enter a password, and only then the encrypted swf can be viewed.Now, I am trying to load one such encrypted swf in a flex based AIR application, and I am using the SWFLoader class for that. But instead of the user entering the password, I want the application to provide the password at the time of loading the swf. Is this even possible? I tried googling, but nothing came up.
View 1 Replies
Jul 29, 2002
that is there any way to protect the Flash source (FLA) file with password. So that if any body wants to open the file in flash it should ask the password before opening.
View 2 Replies
Oct 13, 2008
i have the url of a password protected xml, and i need to load it in my application. but i can't figure it out how. i did find an example but it was in actionScirpt 2 and i'm having troubles coding it in 3.0.
ActionScript Code:
var _login:LoadVars = new LoadVars();
var loggedInXML = new XML();
loggedInXML.ignoreWhite = true;
[Code]....
View 8 Replies
Aug 19, 2002
and i would like to know if there's a way to protect a movie with password like those javascript ones?~
View 1 Replies
Mar 8, 2010
I have my flash setup so that it stores information in an XML file. It grabs the current XML file and then appends the new data to the end of the XML file. It does this by using the short PHP file below:
[Code]....
The problem is that I want to make it so people can't just go and grab the data.xml file. How do I protect the data.xml file so that no one can access it unless it is accessed via the Flash?
I have tried messing with some .htaccess settings but can't seem to get it to work. I was thinking I could create some kind of .htaccess setting so that the data.xml file would be password protected and only the swf and php file could have access to it.
View 3 Replies
Mar 13, 2011
I am tring to build an application that remembers my passwords. like roboform. Is it possible to load the page and then fillin fields using AS?
View 4 Replies
Dec 15, 2011
How can I access a password protected webservice from AS3 (compiled using flash ide, so not flex application)I tried just calling it straight like lso tried using this
var authHeader:URLRequestHeader = new URLRequestHeader("Authorization","Basic " + credentials);
//add the header to request
[code]....
View 1 Replies
Oct 29, 2009
earlier using flash action script 2..i have created many password protected pages but how can i create a secure password protected page using Actionscript 3.
View 1 Replies
Feb 5, 2011
I use the JQuery plugin Uploadify for uploading files. It works fine in all browsers. If however I imlement a passwort protection via .htaccess like this
AuthType Basic
AuthName "Restricted Files"
AuthUserFile /my/path/to/.htpasswd
AuthPGAuthoritative Off
Require user dev
uploadify stops working in Firefox. In Chrome it still works.
In Firefox the file select box works, but after I selected a file the progress bar does stay at 0% and the file is not uploaded to the server.
I guess the issue is somewhere with flash on password protected sites. how I can fix this, without removing the password protection?
View 2 Replies
Jul 19, 2011
without having to hardcode a username / password in my .swf file (very easy to decompile!), is it possible to send a URLRequest for some file (perhaps .php?) to a loader object which can load assets that reside in password protected directories?my PHP skills are weak at best, so if calling a .php script is the solution.
View 2 Replies
Jul 13, 2004
How its done?
on (release, keyPress "<Enter>") {
if (password eq "caleb") {
tellTarget ("_root") {
gotoAndStop("private");
}} else {
tellTarget ("_root") {
gotoAndStop("error");
}}
It contains syntax error.
View 3 Replies
Sep 21, 2009
I have planned to create an educational application / movie in Flash 8 (contains exercises and final tests etc.). I want to protect my application with username and password. The script inside movie should generate the password for given key say in my case username it will output the hex key which can be your password and no need to store it. cause you put same logic in your app which will generate the same hex key for same key i.e. is your username
View 1 Replies
Mar 7, 2007
Say I have one of my server folders protected (requires username & password). Is it possible to read this swf file, say from another swf?Same applies to an XML file. If my XML file resides inside a protected folder, is there a way to read it from my flash movie ??
View 3 Replies
Apr 22, 2011
I'm building an AIR application which will be used to edit slideshows for another app (also built by me, but not in AIR). The slideshows and other data are defined in several xml files which are in the other application's program folder. When trying to load these into my AIR app I get the following error:
fault(mx.messaging.messages::ErrorMessage)#0
body = ""
clientId = "DirectHTTPChannel0"
[code].....
View 1 Replies
Aug 4, 2011
Ok this is what I would like to do. My project I am working on has an app that will upload image files to a specific folder on my server what I would like to do is have it load all the files in that folder through flash without me having to manually add the names of the files into the coding if possible.
I can create an image slideshow but I have to put in each and every .jpg and such I would prefer not to do that as in the future there may be more then 5-10 images.
In addition I already have the app created that uploads files.
View 5 Replies
Jul 9, 2010
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?
View 3 Replies
Nov 10, 2003
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?
2 how can I display the ID3 tags?
View 5 Replies
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
Jul 31, 2009
I own and I am trying learn and use the CS3 Master collection which comes with Flash 9. I own and had a website built several (9) years ago which I am trying to update the files, So basiclly, I am trying to make updated changes to my own orginal .swf files and todays Flash program give me the message of "cannot open protected movie" I was not ever aware we locked any of the oringal .swf files we produced.
View 8 Replies
Jul 5, 2011
I'm attempting to load an external SWF that's hosted on a site into a local SWF file. The external SWF is in a password-protected directory using htaccess.
Here is the code I'm currently trying to use:
var loaderUrlRequest:URLRequest = new URLRequest("http://www.my-website.com/externalFlashFile.swf");
loaderUrlRequest.requestHeaders.push(new URLRequestHeader("Authorization", "Basic
[Code]....
View 2 Replies
Mar 23, 2010
How Can I have a Flash AS3 Projector load protected images/mp3s/videos from a password protected server? I have a bunch of content in a password protected directory that I do not want people to access unless it is in my flash Projector.
View 1 Replies
Sep 11, 2011
Is there any AS3/Air library for Zip files with password protection support? Previously i check FZip, it was great but it doesn't support encryption! Also another library that works good, but it not support encryption too.
View 1 Replies
Sep 29, 2006
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.
View 1 Replies
Dec 29, 2010
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");
[code].......
View 1 Replies
Dec 2, 2009
what I need to do is get a list of files in a folder in a Flex application from the web (i.e. all the files in a location like [URL]
View 2 Replies
May 19, 2010
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.
View 1 Replies
Jun 29, 2010
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] .....
View 2 Replies
Aug 10, 2010
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?
View 3 Replies
May 9, 2011
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?
View 1 Replies