ActionScript 2.0 :: Checking Local Folder Contents?
May 6, 2007
i have been juggling with this issue for some time now, and i haven't quite been able to coming up with something to solve this problem.this is an xml related matter.i have my xml file like this:
<files>
<file name="1" path="1.swf" />
<file name="2" path="2.swf" />
[code].....
View 1 Replies
Similar Posts:
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
Jul 22, 2011
I have a SWF file located at the local network in the public shared folder that I do not control over trying to read the external file on the local network.
I am currently hitting instead an security violation
Error #2148: SWF file file://....mySWF.swf cannot access local resource file://...config.xml"
I've added the network path where SWF an XML file resides to "trusted locations" via Flash Player Global Settings.
The added network path is successfully displayed at the list of "trusted locations" within Global Settings Manager, but it does not look like Flash Player is able to really parse the local network path as a "trusted location"
FP 10.3.181.23, Win XP
View 1 Replies
Jun 18, 2011
I am just trying to check the contents of text field that the user can enter text into.
Here's the code:
btn_check.addEventListener(MouseEvent.CLICK, checkAnswer);
function checkAnswer(evt:MouseEvent):void {
if (answer.text=="48%") {
messageBox.text="CORRECT";
} else {
messageBox.text="INCORRECT. TRY AGAIN.";
}}
View 1 Replies
May 7, 2009
I want to make an image gallery player that loads images from a folder that would change based on what page the user is on. How do I detect which page the user is on and how do I read the number of images in a specific folder?
View 3 Replies
Sep 22, 2009
I'd like to load the images in the folder dynamically without using XML.
Is there a mechanism in AS3 that enables me to read directly the content of images folder directly without using XML or should I use php to do that?
View 1 Replies
Sep 14, 2009
My teacher gave me the task of making an interactive touch screen flash for an open day at my school, i can easily do most of the things to make this work but two things evade me.
He wants the writing in a word document linked so he can easily change what the document says without re exporting the flash.
He also wants me to be able to make the pictures from a document appear in a slideshow without adding each individual picture in a random order as a screen saver effect.
View 1 Replies
Oct 8, 2005
i am trying to dynamically load the contents of a folder (containing swf`s) into a flash movie and order them into a list based on there file names.
View 4 Replies
Aug 5, 2009
I have a folder of different pdf files saved with my SWF file. I want the user to be able to click a button and have a new window open for that folder I tryed new URLRequest but that wants to open in internet explorer and wont display the folder contents..
View 9 Replies
Feb 19, 2010
Is it possible to turn off sandbox checking when developing on a local machine? I know this could never be allowed on a production version but publish and upload after every edit?
View 5 Replies
Nov 18, 2009
I'm trying to embed a font through as3 but nothing works.
I tried to embed source no clear, I tried even from library.nothing.
View 1 Replies
Oct 19, 2010
I manage to get fileRef.browse working locally to load some picture but it only works for pictures in same folder/directory as the .swf.
View 8 Replies
Oct 26, 2011
I have a swf and i want to click a button and for it to open a "save as" box (or something similar) and save a designated file to a location of my choice.
Basically it would be creating a copy of this file to a new location.
View 1 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 17, 2010
How to create a folder on your local hard drive via flash AS3, the name of the folder will depend on what you enter on the textfield in the .swf file.
View 2 Replies
Mar 5, 2009
An array of different pictures that I call in from a local folder. I have a method to mix up the array to make it random. I then want to display the first picture in the array and then when I press a next button I want it to go to the next item in the array and stop when there is no more items left in the array.
View 1 Replies
Apr 8, 2009
For example if I have 5 pdf files in a folder on the computer and then want to show these files in a swf file and if I then click on the pdf file open up the specific file. and if I remove or add a pdf file it will affect the list (its okay if its only updates the list when reloading the swf file)
View 1 Replies
Aug 17, 2010
Does anyone here have an idea on how to create a folder on your local hard drive via flash AS3, the name of the folder will depend on what you enter on the textfield in the .swf file.
View 5 Replies
Jul 8, 2010
I want to make an application that loads some images with a Loader by making URLRequests to a local folder. Can I build the application and include somehow this folder so when I send it from a server to a client the URLRequests operate normally on clients side? Also if this is possible, the folder may be not viewable/accessible by the client but only from the Flash application that comes with it? So for example, this piece of code that runs nicely, locally, to my machine, if i send it to a client will continue to run to its machine. Can somehow send the folder and the SWF as one object?
private function clothesOn( outfit:String ) {
var clothier:Loader = new Loader();
var item:String = "clothes/" + outfit + ".gif";
var getItem:URLRequest = new URLRequest( item );
clothier.load( getItem );
this.addChild( clothier );
}
View 1 Replies
Jul 30, 2003
Is it possible to pass the contents of an array to JavaScript code which then creates a text file on the local machine?
View 10 Replies
Aug 12, 2011
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?
View 3 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 4, 2010
I'm trying to load a local xml file:
xmlLoader.load(new URLRequest("../xml/xmlData.xml"));
But I'm getting this security sandbox violation:
#2148: Only local-with-filesystem and trusted local SWF files may access local resources.
I don't get this error when I embed the XML file directly with the EMBED metadata tag.
View 3 Replies
Oct 20, 2010
I have built a simple Flash application that will be presented using a projector, the application will show messages in the form of questions that will come from a simple flat-file text file or XML file.
In addition to this I would also like to be able to add my own messages using a simple HTML form.
I've been looking around the web for some resources, but have been struggling to find what I am looking for. The basic idea is that the flash application will loop through these different messages from the XML, but then when a user types in a message that will also appear within these messages. Think of it as a sort of dynamic tag cloud.
View 2 Replies
Oct 12, 2009
I'm customizing an xml flash website and while I can handle all the html and xml well enough, but in Flash, I have no clue how to:
Now go on the stage, and delete the contents of the last layer(background & pattern). Here, add from the library, the square movieclip, and name it mcBackColor(see attached image).And then to add your swf background in the "background & pattern" layer from the main.fla file.
I can change the name, but don't know how to delete just the contents of the layer and then add the new clip.I've made a slideshow before and that's all I can do.
View 1 Replies
Mar 31, 2010
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.
View 2 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
Aug 31, 2009
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.
View 4 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
Apr 28, 2010
I am using Flash CS3 and Actionscript 2.0.I want to make a photo.jpg that is in my images folder load into a swf that is in a swf folder. It works fine when I have the photo.jpg in the same folder as the swf. But it does not work when I have the photo.jpg in a different folder. What must I do to the AS2 to make this happen? Here is the path: mcLoader.loadClip("swf/images/photo1.jpg",mcHolder);
View 11 Replies