Blogadda

Blogadda
Visit BlogAdda.com to discover Indian blogs

Tuesday, May 5, 2009

Folder Creation-- Flash-- Not Possible

W can not make the folders or write any thing on our local using flash except for the shared object..

We can use third party tools like Zinc for that..

We can also use AIR for making that but these all are for desktop application.

web application cant do it ..

in Zinc we use it like this


working_folderLis.click = function (eventObject)
{
myfolder_br = mdm.Dialogs.BrowseFolder.show(
);
if (myfolder_br != "false")
{
working_folder.text = myfolder_br;
modules_combo.removeAll();
pageList.removeAll();
blankMc.unloadMovie();
refreshTracker();
refreshGlobals();
var _loc2 = mdm.FileSystem.fileExists(
working_folder.text + "\\index_tracker.txt");
if (!_loc2)
{
mdm.FileSystem.copyFolder(mdm.
Application.path + "\\att_common", working_folder.text);
mdm.FileSystem.copyFolder(mdm.
Application.path + "\\metadata", working_folder.text);
for (var _loc1 = 0; _loc1 <>
{
mdm.FileSystem.copyFolder(mdm.
Application.path + "\\sco_elements\\" + sco_folders[_loc1], working_folder.text);
} // end of for
for (var _loc1 = 0; _loc1 <>
{
mdm.FileSystem.makeFolder(
working_folder.text + "\\" + empty_folders[_loc1]);
} // end of for
mdm.FileSystem.makeFolder(
working_folder.text + "\\att_common\\includes");
mdm.FileSystem.makeFolder(
working_folder.text + "\\att_common\\images");
mdm.FileSystem.makeFolder(
working_folder.text + "\\att_common\\html");
mdm.FileSystem.makeFolder(
working_folder.text + "\\att_common\\css");
mdm.FileSystem.makeFolder(
working_folder.text + "\\att_common\\audio");
initTracker();
disableBtns(false);
}
else
{
refreshTracker();
disableBtns(true);
} // end if
} // end else if
};
working_folder_btn.
addEventListener("click", working_folderLis);


No comments: