ActionScript 3.0 :: Get The User To Select A Local Directory?

Oct 12, 2009

I've been asked to write an app where I have to get the user to select a local directory, scan that directory for all images inside and then upload these images to the web. After a few hours of searching the only way that seems like it could be possible is with the use of an AIR application rather than just a flash application.

View 3 Replies


Similar Posts:


ActionScript 3.0 :: Select Variable Filename From Local Directory With Fn To Load XML

Aug 23, 2011

I would like to select a specific xml file to load from a local directory. The file name is composed of "Title" + "number sequence". I know the Title (in this case its XLink07), but I need to select the latest number sequence or the latest by date stamp.

For example, the local directory has the following files:
XLink01[36735298100].xml
XLink02[36735298100].xml
XLink02[36735298101].xml
XLink07[36735298100].xml
XLink07[36735298101].xml

In this example I need to select file XLink07[XXXXXXXXXXX].xml where XXXXXXXXXXX is the highest number within the XLink07[XXXXXXXXXXX].xml files. Title is Xlink07 and function should return Number sequence [36735298101]. Files with higher number sequence have later date stamps than files with lower number sequences. I need to select the highest number or the latest date stamp for the file that begins with XLink07.

My action script to load the local .xml file without any function to select the correct file is:
Security.allowDomain("*", "*")
var xmlLoader:URLLoader = new URLLoader();
xmlLoader.load(new URLRequest("XLink07[36735298101].xml"));
xmlLoader.addEventListener(Event.COMPLETE, showXML);
function showXML(e:Event):void {
[Code] .....

View 1 Replies

ActionScript 3.0 :: Uploading Local Files Without Requiring User To Select Files?

Feb 3, 2009

My users upload a certain kind of text file that sometimeshas references to images stored locally on their hard drive. I needto check this file either on the server or within a flash app tosee if it has these references and then grab those images in aflash app to upload to my server.So I can use FileReference easily enough to have users uploadlocal images. But FileReference requires users to select their files with a dialog box. I can't have that. Myusers wouldn't know where to look and there are typically way toomany files, sometimes with the same name but in differentdirectories.

I can also just use URLLoader with a local URL, I guess I canprobably just use Loader too? That works great. The problem here isI can't communicate with both the server and the local filesystemin the same flash application due to Flash's security sandboxrestrictions. So I can get out of those security restrictions byplacing or editing a trust file in designated locations on variousOSes. I then need to install this trust file which is more invasiveand confusing to users then I want to be...Java's method of accessing local files from a web applet bysimply signing the applet with a certificate and having a dialogbox popup where the users grants access is ideal. Is there anything

View 4 Replies

Xml :: Load XML From Outside Web Directory On The Local Server?

Jan 26, 2010

Is it possible for flash to access data from outside of the root directory of the server it resides.i.e.

Root directory = /var/www/httpdocs

SWF = /var/www/httpdocs/flash/file.swf

XML = /var/www/xml/file.xml

View 1 Replies

Professional :: Record Video To Local Directory

May 26, 2010

Is there still really no way to use the Flash Player, whether embedded in a web page or as a projector, to record video files to a local directory on a user's computer?I understand that this is potentially a security nightmare, but I thought Adobe had worked around those issues.

View 2 Replies

ActionScript 3.0 :: Make A Button That Links To A Image In A Local Directory

Jun 13, 2010

Trying to make a button that links to a image in a local directory, but am having no luck. What i want to happen is: User Clicks a Thumbnail (as a button)> Button then opens a new window in the browser where the full-sized image is displayed ( i have the full-sized image on file, its not on the web)

View 4 Replies

Browse And Select Video From Local File System?

Mar 20, 2010

I'm building an application in Flash CS3 to be deployed on CD as a Projector file. Is there any way to enable the user to browse to and play video files from their local file system.

View 3 Replies

ActionScript 2.0 :: How To Select File From Local Disk Dynamically

Feb 22, 2004

I want to do a stand alone application in wich you can select a mp3 from local disk with Flash MX. I've been searching for a function or a method who allows to open a "browser window" or to have a string with the filenames but I haven't find nothing. I also have searched for an argument for fscommand but nothing. Does someone know if some function exists in javascript to give a string with the filenames of a folder? And in this case, how to integrate it in actionscript? I know that I can use a explorer to do that with javascript, but I need to do it without browsers.

View 3 Replies

Professional :: Let User Select Multiple Buttons?

Oct 18, 2011

I was wondering, if I had an image with multiple sections that are highlighted on rollover(like a car), and I wanted to give the user an opportunity to select multiple sections and on release they are taken to a page that displays relevant info on each clicked section, how would I go about doing that?

View 2 Replies

ActionScript 3.0 :: Letting Each User Select Only 1 Item From A Pool?

Dec 4, 2011

I'm working on an 8-user app that runs over a wi-fi network using an XML socket. All of the hardware is located inside a medium sized room in a school building.At the start of the app, each user can select 1 role from a pool of 8. However, the socket connection runs at less than realtime, probably because of latency from the wi-fi, so it's possible for two users to make the same selection at the same time. How would I prevent this?

View 1 Replies

ActionScript 2.0 :: User Must Be Unable To Select Any Dates After Today

Jul 2, 2010

You can find the file in the attachment. It's not the site, but it's the datechooser I use as base. I found this code and this is probably the one I need, with a little modifications. The question is: in what place do I have to insert this code and to what object I need to link it? The target is that the user can't select a day in the future.
comp.disabledRanges = [ {rangeStart: new Date(mydate.getYear, mydate.getMonth, mydate.getDay)} ];

I also found this one:
if (selectecDate > Date){
alert("This date can't be in the future");
return false
}

View 0 Replies

ActionScript 3.0 :: Custom Font - User To Be Able To Select The Text?

Jul 27, 2011

ok so i have drawn some letters up, this way i can have everything looking just the way i like. i was going to put it in as an image but then it hit me, what if i wanted the user to be able to select the text? so i wanted to ask if there was a way you could make it act like a textfield. i was thinking it finds the character value and gives a value of 1-26. 1 being a and 26 being z. then it adds the movieclip to stage, changes to the frame relying on that value i just mentioned and positions itself accordingly.but what i haven't thought of yet is how you'd make it selectable.

View 4 Replies

Load A Varible Xml File Based On User Select Box?

May 12, 2007

I am putting together an artists gallery, and i need to show each artist's collection when you select their name from a drop down combo box. [url]...

create a new xml file for every artist (artistname.xml) to load in to the thumbnail gallery.

QUESTION - How do I make this file to be a variable depending on the user selection from the dropdown.[code]...

View 14 Replies

ActionScript 3.0 :: Open A Browse Dialog For User To Select A File?

Dec 8, 2009

How can I open a browse dialog for user to select a file ;after selecting file, the address to be passed into a variable for later use?I mean I want btn1 to open a browse dialog and var1 to get the address of the selected file on my local drive.

View 6 Replies

Actionscript 2.0 :: Datefield / Calendar / User Cannot Select Previous Data

Aug 27, 2009

I use a datefield on a form for user to pick an appointment date.All is working fine but I would like to make users cannot select previous date (ie yesterday).

View 3 Replies

ActionScript 3.0 :: Creating An Image Gallery Where The User Can Select From Several Thumbnail Images?

Aug 12, 2009

I am creating an image gallery where the user can select from several thumbnail images. Once selected, the thumbnails will enlarge and load the full sized image. My problem is that while the user is waiting for the full sized image to load, he may decide to close that image and view another image. I am trying to find a way to stop a loader from loading.ere is the code I have used. My problem is that even though the user has clicked on the unloadBtn, the loader continues to load the file. Is there a way to disable that?

Code:
import flash.net.URLRequest;
import flash.display.Loader;

[code]....

View 4 Replies

Flex :: Show Email In Textbox When User Select Any Item In The Grid?

Feb 2, 2010

i have following xml

<?xml version="1.0" encoding="UTF-8" ?>
<Users>
<User>
<ID>SMSUser(63)</ID>

[CODE]...

How can i show Email in textbox when user select any item in the grid?

View 2 Replies

Flex :: Know If The User Allows Storage Of Local Shared Objects (LSO)

Nov 25, 2010

There is a small feature I have implemented that makes uses of the Local Shared Objects to work properly.

I wish to be able to help the user self-diagnose if he is unable to use the said feature because he refused access for this computer to writing local shared objects and give him instructions to work around the issue if it applies to him.

I'm looking for something similar to the muted property of the Microphone class [URL] or the Camera class.

View 1 Replies

ActionScript 2.0 :: Possible NOT To Cache Mp3 Files To User's Local Machine?

Jan 11, 2005

I want to use this Flash MP3 player URL...on my website to play my music compositions. It is a fantastic player, but it is caching the mp3 files to location "C:Documents and SettingsuserLocal SettingsTemporary Internet Files" on the user's machine.Is it possible NOT to cache the mp3 files to the user's local machine.Pls let me know if there is any other flash xml mp3 player which has the same functionalities.

View 14 Replies

ActionScript 3.0 :: Detect If User Doesn't Allow Local Storage?

Mar 18, 2009

I have an actionscript app which needs to use SharedObjects. I see how if the user doesn't allow the Flash Player to access local storage, the security settings panel automatically pops up and asks for user input.

My problem is that my app runs with a 1x1 pixel stage, because it doesn't display anything. So the user will never see that panel and the program will seem to hang.

What I want to do is to somehow detect that the user doesn't allow the Player to access local storage so that I can open a new window large enough to display that panel.

The only way I've been able to detect this so far is to try to call SharedObject.flush() and check the return value, but that displays the settings panel.

View 2 Replies

Actionscript 3 :: Why Moving A Symbol's Class File From Top-level Directory To Deeper Directory Break

Feb 9, 2010

When I have a class linked to a MovieClip in my library and that class takes an argument in its constructor method. That class will compile properly ONLY when it's located in my top-level directory (same dir as the .fla and Document.as files). If I move that class to a deeper directory, say com.place, and update the package statement and symbol link appropriately, the compiler will generate error "1136: Incorrect number of arguments. Expected 0."Create flash project and put a rectangle on the stage. Covert it to symbol and assign it to class TestPanel - or whatever you choose. Also configure the fla so that is uses a Document (Main) class.Create Main.as and TestPanel.as in the same folder. In the Main class, instantiate a instance of TestPanel and add it to the stage. Flash will, predictably, add the rectangle symbol and everything is fine.Now modify TestPanel so that its constructor method takes a Number and have Main.as pass some number to TestPanel.[code]You now get the error: 1136: Incorrect number of arguments.Expected 0.When I move the TestPanel.as into a deeper directory, Flash somehow is looking elsewhere for the base class for Symbol, even though I'm mapping that Symbol to com.place.TestPanel.

View 4 Replies

ActionScript 2.0 :: [CS3] Load External Png/jpg Chosen By User From Local Computer

Feb 7, 2009

how to allow the user to upload some image of his/her choice from his/her local computer, plus adding some control on size and dimension limit.

I've seen this performed for instance in webs where they sell sunglasses. The movie allows you to upload your own picture of yourself so that you can virtually try them on.

View 2 Replies

Professional :: Save And Load The Swf-file To A Local Disk Of Any User?

Sep 28, 2010

I am a developer in Web Flash Game.(I use AS3.0) I want to save and load the swf-file to a local disk of any user,Because I want to decrease the time for loading a flash movie from site.Is it possible?If it is possible, I hope the swf-file has only one loading from site and it will be loaded from a local disk of any user after that. (I know a concept of Internet temporary file. I want to know the other techniques of only using AS3.0.)

View 3 Replies

Actionscript 3 :: Possible For It To Play User's Local Video Files In A Web Browser?

Nov 23, 2010

Or only possible to play it loading over the internet?

View 1 Replies

Flex :: Load A Local File Without Having To Ask The User To Browse To It First In An AIR Application?

Jul 22, 2011

I'm writing a small application for myself and instead of using a database I'd like to just use Excel to store the small amount of data I have on my local file system. I want to be able to load that data without having to use the typical FileReference browse() method as it would just be annoying to do every time I use the application.

The code below seems to find the file fine as the file.exists method below and most of the other attributes seem to be correct but the file.data is always null.I'm guessing this is a security issue and that's why I'm running into this problem but I thought I'd ask and see if there is in fact a way around this problem.

var file:File = new File(fullPath + "\" + currentFolder + ".txt");
if(file.exists) {
var byteArray:ByteArray = file.data;
}

View 2 Replies

Actionscript 3 :: Flex Swf Write To Local File If Given Authorization By The End User

Feb 2, 2012

Is it possible to write to a local file 'example.txt' from a Flex swf? FileStream class is available in Adobe AIR, not in Flex. I want to write to from a swf,not AIR application. I am developing a kiosk type application which has to log user interaction data to a text file on the machine. Is there a code example for doing this? [URL]

View 1 Replies

ActionScript 2.0 :: Load External Png/jpg/gif Chosen By User From Local Computer?

Feb 7, 2009

I'd like to know how to allow the user to upload some image of his/her choice from his/her local computer, plus adding some control on size and dimension limits, and to check that the file to be uploaded is actually a JPG/PNG/GIF and not another else.

I've seen this performed for instance in webs where they sell sunglasses. The movie allows you to upload your own picture of yourself so that you can virtually try them on.

View 6 Replies

ActionScript 2.0 :: Local Shared Object - Detecting User Status

Aug 28, 2007

I am trying to have a local shared object in flash to detect whether a user is a new user or a returning user. If they are a new user I want to do newUser function and if they are a previous user I want to do a previousUser function. This should all be happening on an onEnterFrame.

Here is my code I have so far:
//shared object - cookie
newUser_test = SharedObject.getLocal("newUser");
newUser.text = newUser_test.data.title = "new user";
newUser.text.onEnterFrame = function () {
newUser.text = "new user";
} newUser.text.onEnterFrame = function(){
newUser.text = newUser_test.data.title = "previous user";
newUser_test.flush();
}

View 3 Replies

Javascript :: Play Local XviD (.avi) Files That Are Chosen By The User In The Browser?

Dec 21, 2011

So I'm building a web application, and in part of the application the user should choose an XviD (.avi) video file from his machine, to be played in the browser (without uploading it). I decided to use Flash for this.

Now I have two questions about this:

Which Flash video player is free to use and capable of doing this? How should I let the user choose a video file, and how can I link the Flash video player to the file?

View 1 Replies

Flash - Adobe Cirrus (Stratus) Doesn't Work If User Have Local Network

Aug 20, 2011

I am developing flash p2p chat. It works fine on my friends' computers (they can chat each other), but not on mine. The problem is that I have local network at home, and I think that Flash Player tries to make p2p requests to peers inside my local network.Can I check if user have local network in AS3 and up the level of network to the WWW?

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved