|
|||
|
hi
I just checked follwoing code using SWFKit 1.0. it doesnt work. the data is not transffering from flashplayer to FlashPlayer Object it doesnt show the value of the coresponding field but gives the compete path of vaiable "user" in the flashplayer. var usr = FlashPlayer.getVariable("user"); Dialogs.msgBox(usr, "User info", 0); any reason?
__________________
SWFBaz Preview [October 2006] http://www.SWFBaz.com |
|
|||
|
about your ffish script, I made a demo for your reference.
http://www.swfkit.com/download/demo/alert.zip If you have more question, just post here. ;D ;D ;D |
|
|||
|
well.. dear for some reason... i want to get all the details about a folder... so how can i do this... i used following script... but it doesnt work out...
function ShowFolderFileList(folderspec) { var fso, f, f1, fc, s; fso = new ActiveXObject("Scripting.FileSystemObject"); f = fso.GetFolder(folderspec); fc = new Enumerator(f.Files); s = ""; for (; !fc.atEnd(); fc.moveNext()) { s += fc.Item(); s += "<br>"; } return(s); } var fso = new ActiveXObject("Scripting.FileSystemObject"); var a = fso.CreateTextFile("c:\\testfile.html", true); a.writeLn(ShowFolderFileList("d:\\")); a.Close; can you plz elaborate?... i would appriciate if you give me some code or source. thanx
__________________
SWFBaz Preview [October 2006] http://www.SWFBaz.com |
|
|||
|
Code:
function ShowFolderFileList(folderspec)
{
var fso, f, f1, fc, s;
fso = new ActiveXObject("Scripting.FileSystemObject");
f = fso.GetFolder(folderspec);
fc = new Enumerator(f.Files);
s = "";
for (; !fc.atEnd(); fc.moveNext())
{
s += fc.item().name;
s += "<br>";
}
return(s);
}
var fso = new ActiveXObject("Scripting.FileSystemObject");
var a = fso.CreateTextFile("c:\\testfile.html", true);
a.writeLine(ShowFolderFileList("d:\\"));
a.Close;
return true;
2. "writeLn" is not a method of "TextStream" object, it should be "writeLine". Then the code works fine. ![]() |
|
|||
|
thanx...
well i am new to SWFKit... i will use this fragment of code in my project.. hopefully i will work out. thanx agian for letting me know about SWFKit sensitivity... regards SWFBaz
__________________
SWFBaz Preview [October 2006] http://www.SWFBaz.com |
|
|||
|
hi topcmm,
thank you for giving me time... well dear this code also doesnt work out... it still not printing the names of files. it says undefined for each file/folder... and it counts # of files than actual. i would appriciage if you give me an example .skp.. coz its not working if i make it. regards SWFBaz
__________________
SWFBaz Preview [October 2006] http://www.SWFBaz.com |
|
|||
|
The code had been tested before we posted it. It works well. Here is the output:
c:\testfile.html FILE0026.dat<br>mimi3.IMZ<br>mimi1.IMZ<br>mimi2.IM Z<br>mimi.IMZ<br>mimi4.IMZ<br>daemon323.exe<br> ![]() |
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|