Actionscript 3 :: Load Password Protected Swfs
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
Similar Posts:
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
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
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
Nov 13, 2010
I am loading eight external swfs by way of eight buttons with actionscript to remove the swfs and sound after a new button is clicked. This works fine except that as soon as you get to the frame where the actionscript is all the swfs load at one time on top of each other. I don't want any to load until the button is clicked for the right one. MouseEvent listener works but only after all the swfs have loaded. How do I get the swfs to load only when the buttons are clicked. I can't figure out what I am doing wrong.
[Code]...
View 5 Replies
Sep 23, 2008
Im new at actionscript, and I am making a very project. Basicly, I have some thing were there is a page you can get to by beating other parts of the 'game'. I want to add some sort of a password or save feature to people can type in the password of something at the opening screen and jump to that page.
View 1 Replies
Feb 19, 2010
I have a page that loads loads of swfs*. I'm loading in them all at the same time, Sequentially which is slowing down the intro animation. Is there a way to load swfs sequentially? Or if not load them on a timer (half a sec would do the trick I think)
*there lots of different dynamically generated Flex graphs so it's not possible to have them all in one.
[Code]...
View 2 Replies
Oct 19, 2009
I'm loading (and unloading) external swfs into a holder in my main document. However, they seem to load perfectly the first time, but after that, they load at a different x and y. I've seen this happen before in someone else's file, but I'm not sure what the solution is.
This is the bare bones of it:
Code:
sceneHolder.x=0;
sceneHolder.y=0;
addChild(sceneHolder);
[Code].....
View 1 Replies
Apr 11, 2009
Okay so I am trying to load external swfs which load videos dynamically.
I can load the swfs into the parent fla fine (if I remove all the code and just place a circle or something on the stage of the swf), and the swfs are also loading their respective videos correctly. But when I try to load the external swfs, if they contain any casting related code in them, I'm getting an error
[AS]TypeError: Error #1009: Cannot access a property or method of a null object reference.
at swf1_fla::MainTimeline/frame1()[/AS]
Is there some specific method to casting within external swfs?
My code for loading the videos is this:
[AS]var vc:NetConnection = new NetConnection();
vc.connect(null);
var vs:NetStream = new NetStream(vc);
[Code].....
View 1 Replies
Feb 19, 2009
I have a website im working on and I have it load multiple swfs etc. But although the site will load in the beginning it takes time to load each swf. Although I grasp the logic behind that is there a way to make them just all load at once? Like an AS code to include in a preloader of sorts?
View 1 Replies
Feb 17, 2010
is there a property for loading swfs which puts them infront or behind each other?
View 16 Replies
Aug 11, 2009
Trying to load swfs with loadmovie script. They load fine but when close window button is pressed the Main movie behind it dissappears to blank screen.
View 2 Replies
Sep 29, 2009
I'm having a heck of a time trying to get a number of external SWFs loaded into one main SWF in successive order, the next one playing after the other has ended. To complicate matters, the external SWFs have FLV files in them.
using Flash CS3
Actionscript 3.0
So, here's essentially what I'm looking to do: - I have one main SWF file (call it main.swf)- load several SWF files into this file so they play in order (let's call them movie1.swf, movie2.swf, movie3.swf, and so on) - these external SWF files all have FLV progressive downloads (not embedded, becuase then my audio doesn't sync up) - I want movie1.swf to load and play in the main file, then detect when the movie is complete, and unload that audio/video then load in movie2.swf, and so on.
This script seemed promising, but loads all of my SWFs on top of each other, making for some ::interesting:: audio... (i have it pasted in actions on first frame in main.swf)
var a:Array = new Array("movie1.swf", "movie2.swf", "movie3.swf");var tl:MovieClip=this
var index:uint=0;
loadF(new Event("nada"));
[Code]....
Maybe there's some code that can be pasted in the individual SWFs?
View 2 Replies
Feb 15, 2010
I am using this thumbnail gallery attached but instead of loading images through the xml I want to load external SWF'S. I also want to be able to control each SWF loaded in individually apparently in order to do that I need to give the container different instance names..however I don't know how to extend the code inorder to achieve this..
View 7 Replies
Apr 29, 2010
Im trying to load an external .swf, from one of those lazy-do-it-for-you photo gallery creators. Well, it just simply refuses to work
Ive tried using AS3 code straight off adobes site and i get this:
[CODE]
var request:URLRequest = new URLRequest("4melogo.jpg");
var loader:Loader = new Loader()
loader.load(request);
[Code]....
View 12 Replies
Jun 22, 2011
How do I load and unload three swfs, with a button that will navigate to the next swf? Also, will the sound unload with the swf as well?
View 3 Replies
Sep 12, 2011
I have a preloader and I want it to load each section when called with this code:
Callback function:
caps_mc.btn_continue_mc.addEventListener(MouseEvent.CLICK, nextpls);
function nextpls(e:MouseEvent):void {
MovieClip(parent.parent).nextSWF("startPage", parent);}
The code above tells the preloader that it is finished with the startPage and in the preloader it should next load faq, but I get an error saying that nextSWF is not a function when it clearly is, Is it even possible to use a preloader to load up swfs in this way??
Preloader:
import flash.display.*;import flash.events.*;
import flash.net.URLRequest;
var loadedSWF:Loadervar progressPercent:Number;
function startLoad(SWFName:String):void { loadedSWF = new Loader(); loadedSWF.contentLoaderInfo.addEventListener(Event.COMPLETE, gameLoaded);
[Code] .....
Here is the error:
TypeError: Error #1006: nextSWF is not a function. at startPages_fla::MainTimeline/nextpls()[startPages_fla.MainTimeline::frame1:7]
View 14 Replies
Mar 25, 2012
Let's assume that I can't script the loaded swf, nor can the loaded one script the loader swf.
I was attempting to set frame rate to 0, and wait after all swfs are loaded, and set frame rate back. But I found when I set the frame rate to 0, I could not receive the complete event! And it's weird that i can still receive UI events...
Is there a way to load several swfs and start them together?
View 2 Replies
Dec 17, 2009
i have a very frustrating problem, which occurs only in safari:the main.swf loads an external swf-file.alas in safari this does not work. Movie clipLoader throws out an URLNotFound with httpstatus:0.
View 2 Replies