ActionScript 3.0 :: Retrieving And Showing A List Of Files?
May 2, 2010
Is there any way to show a list of files in a directory without the use of PHP or some other language? I'm working with a standalone desktop application. NOT a web-based application. I would like to have a list of file names that were originally created by the program itself show up in a "list box" or "dynamic text" area, if possible.
So for example, if I have two files called "fileA.txt" and "fileB.txt," then the list box or dynamic text box area should display "file A" and "fileB."
i have a website like ustream, where user can register and create live channels and publish live video using FMLE.
Now i want to check wether a particular channel is online or offline. I have stream name for particular channel. My website is coded in PHP. I have tried using getLiveStreamStats function, it works fine where the XML file is not heavy. I mean number of subscribers are less. Then i can just check the Publisher Tag. if it exists that means stream video is live, else not.
But problem arrives when the number of subscribers are high. The XML file do not loads in PHP, and it takes too much time to load the page.
what can be done to just check if the xml file has publisher tag. and display if the stream is live or not
I've recently encountered a problem whilst coding when trying to upload local files to flash. With Flash Player 10 you can use the following code to load local files into flash.
[code]...
This is not available in Flash Player 9 which is causing me issues as I only have a copy of CS3. All I need to do is retrieve a local jpg from the users computer and temporarily display it in my flash application. So to clarify, uploading to the server isn't required unless this is the only way to do this with Flash Player 9?
I've recently encountered a problem whilst coding when trying to upload local files to flash. With Flash Player 10 you can use the following code to load local files into flash. FileReference.load(); This is not available in Flash Player 9 which is causing me issues as I only have a copy of CS3. All I need to do is retrieve a local jpg from the users computer and temporarily display it in my flash application. So to clarify, uploading to the server isn't required unless this is the only way to do this with Flash Player 9?
I am having a strange QNX problem here in Flex (Adobe AIR), I have created an init(); function and in it I have added the test_list() function yet the QNX List is just not showing up on the UI. [code]...
I am new to flash and having a problem with fonts not showing up in the font list. I am trying to develop my first flash based site and designed the base in Photoshop, using a .TTF font that I downloaded. The font shows up fine in photoshop but when the file is imported into flash it says the font is not available.
While using action script I can't seem to figure out how to show the list of fuctions for my instance. Example: clicker_mc. After the . it's suppose to show the fuctions like in this video at 16:45 /watch?v=LC7BaZCForE why it isn't doing it for me? The code works too.
I have a for loop which is grabbing data from a xml file and showing it to the user.. my problem is that I want to show 5 for let's say.. 30 seconds.. and then making a transition and show another 5 elements.
I can make the condition like:
Code: if(info.length() >= 5){ for (var i:int = 0; i < 5; i++) {
and I show the first 5. But what now? How do I hide those and show the next five?
I have a list of objects containing an icon, a label, and a tooltip. I want to show only the icon and the label. The tooltips should be visible on mouse over an item.
Is there a way i can achieve this without writing my own mouse-over/out functions?
(notice that dataTips are a different thing as they are displayed only when the label is cut)
I have a custom component that has an background image.ut when you generate this component by an ItemRenderer in a List, the background image is gone.hat am I doing wrong?Here is an image. The first element is not generated in a list and has a background image.he other three are part of a List and have no background image.Here is the code of the MXML of the List
<mx:VBox> <solutionItems:displaySolutionItem /> <!-- This element shows the background image --> <mx:List selectable="false"
I want is the Hand Cursor when it moves over an item in the List. I've tried the CellRenderer on it but that elimates all but my last item in the list. And it does show the Hand Cursor over that item. This seems pretty simple to me but I am missing something somewhere. I used a Listener on a Data List I had but think there must be a simpler way. In my List I can view the activeCellRenderers and can see that the useHandCursor on that item is set to false. I think this is where it needs to cahnge?
Is there anyway to change the colour of items showing in the dropdown list? By default, it's showing skyblue and I need to change it into grey? I'm using Flash CS4 IDE and AS3.
I want to show some different-2(dynamic) icon in my combo Box drop down list. I am able to show icon in combo box list but I want to change the color of this icon for different-2 values.
Here is ActionScript Code: for(i=0;i<len;i++){ newColor = "0x"+_root.colorList.items[i].ColorCode; labelText = _root.colorList.items[i].DeptCodeComboDesc; comboClip.clip.opaqueBackground = parseInt(newColor); _root.colorListCombo.addItem({label:labelText,pIcon:"comboClip"});
"comboClip" is a clip which I want to show as icon in combobox.
I'm using CS3 with ActionScript 3. I'm a designer by training and have been tossed into coding by happenstance. My perfect scenario: User sees an easily navigable list of colors, each with swatch (like a small square) and name (text). (I basically want something like the InDesign color swatch list, in dropdown or list form.) She selects a color. Appropriate movie clip is filled with said color. First of all I'm not even sure what component to use. I had a ComboBox that was working great except for only showing color names, not swatches. I could use a custom data provider with the ColorPicker, but the user needs to see our assigned color names.
Is a TileList my best bet? If so, how do I set up a TileList with color swatches and names to then change the color of a movie clip when the user selects a color? I can make it work (except for swatches showing) with my data provider set up with color name in the label spot and hex value in the data spot, with simple code of this sort:
I'm currently creating a slideshow, where I want to load all the images before starting that very slideshow. Is there a way to do this, without creating a bunch of movieClips and load every image into each movieClip, and then fade them out, depending on the state of time?
In other word, is there some sort of cache function in flash, that allows me to load all the images, before showing them?
PS. I'm loading the images through an XML file, just in case that should change the concept of coding.
I am having an issue with my swf files just showing up as a white background when embedded into dreamweaver. I am embedding them into a tabbed panel. The .swf files display fine when opened directly and viewed in web browser or flash player.[code]...
I'm very new to flash and have a question for you wizards
I've created a simple slideshow displaying images which are being loaded from a XML file. I wish to have a preloader which displays the % loaded , if possible, while it's preloading the images from the xml file.
I am publishing and AIR 1.5 application from Flash CS4 on Mac OS X. I add a list of files to include in the Installer Settings>Included Files box. Sometimes when I publish or click "OK", the included files listing is not saved except for app swf and xml listings. This means I have to select all the files again. This does work sometimes, the files list is saved, but other times, not. It doesn't require opening and closing the Flash app, just opening and closing the dialog for it to fail to retain the list.
I would like to know we could list all the files in .swf file.My application loads external .swf file (pure content inside it: Png, Mp3 inside) from Internet, and I would like to know the way how we could list all the files inside that .swf file.
i want to make an upload script with swf and javascript. I want to do selecting files via swf then uploading files to server via javascript. I have searched SWFupload plugins but they are not working as i need. I am new here and i do some search, i see it is possible to save list of selected files in FileReferenceList array, but i dont know if is it possible to pass this array into javascript and then make upload progress via javascript ?
I use the Open Resource Window (Command-Shift-R) a lot in Flash Builder and it saves me a lot of time. But I canīt seem to get it to work with my projects xml files. I know this has been working on previous projects ut I canīt find any settings for this.
suppose i receive some data from php separated by commas. Like:a, b, new, data...these will be in a variable say "files". Now, i receive the var and i have to show the names of the files in a vertical list. Like:
a b new data
And also they will be a link to some php file or any such thing. how to do this?
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.
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 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?