|
|||
|
Can someone show me an example how to load all files name in a specific folder (without path) into an array (in SWFKIT) and then pass back to Flash as an array so that I can access individual file name ? I've been looking at this forum but unable to find a solution.
Thanks in advanced. |
|
|||
|
Maybe this old project of my could be helpful to you
It lists the pdf-files in a directory and passes them to flash. to view the pdf files you must have the foxit acitveX installed and registered. but it's not necessairy to build the file list. project url: http://www.vbsdiksmuide.be/pdfviewer.zip foxit activeX url: http://www.foxitsoftware.com/foxitre...Xwin32demo.zip |
|
|||
|
Hi meester,
Thanks for the sample and I'm really appreciate that. The sample looks complicated to me. Do you have a more simple example just to put all the files in a specific folder into an array (inside swfkit) then pass the array back to Flash so that I can use the individual file name ? What about anyone here, especially the Admin, can help me with an example? I'm stuck here with my project. Thanks a lot. |
|
|||
|
|
|
|||
|
Many many thanks to meester
![]() To get all files in a specific folder: Code:
var myfolder = new Folder("some folder");
var myfilearray = myfolder.files;
Code:
FlashPlayer.putArray("_root.myfilesinas", myfilearray);
Code:
var myfolder = new SWFKit.Folder("some folder");
var myfilesinas = myfolder.files;
myfolder.Release();
|
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|