My blog has moved!

You should be automatically redirected in 6 seconds. If not, visit
http://yournewblog.wordpress.com
and update your bookmarks.

Wednesday, May 5, 2010

Save.exe

Save.exe is a piece of companion software for users of Walfas' and Thefre's fantastic create.swf flash software!

However, the software is a little limited, one of the biggest limitations being the fact that users cannot save their projects locally offsite, but that changes today!

Save.exe takes the data that flash saves locally and copies it to a folder that is far easier for the user to access. It then allows the user to load those projects back into the cache folders so that they may continue working on them!

UPDATE: A tutorial made by thefre!




Current Version Number: V. 1.0

The script was working on autohotkey, the code is posted below.


; User chooses what method they are using create.swf with
Gui, Add, Button, gWeb , Web (Walfas.org)
Gui, Add, Button, gLocal , Local (downloaded)
; Generated using SmartGUI Creator 4.0
Gui, Show, AutoSize, Choose your Method!
Return

Web:
Gui, Destroy
Gui, Add, Button, gWebSave , Save
Gui, Add, Button, gWebLoad , Load
; Generated using SmartGUI Creator 4.0
Gui, Show, AutoSize, Save or Load?
Return

Local:
Gui, Destroy
Gui, Add, Button, gLocalSave , Save
Gui, Add, Button, gLocalLoad , Load
; Generated using SmartGUI Creator 4.0
Gui, Show, AutoSize, Save or Load?
Return

WebSave:
FileSelectFile, Solsave, 16, %A_Scriptdir%,, Text (*.txt)
SetWorkingDir, %A_AppData%\Macromedia\Flash Player\#SharedObjects
; Establish where the walfas.org folder is, allowing it to copy the files
Loop, www.walfas.org, 2 , 1 ; Recurse into subfolders.
{
SetWorkingDir, %A_WorkingDir%\%A_LoopFileFullPath%
}
Loop, walfas_create_savedata.sol , 0, ; establish all sol files in the walfas folder
{
Filecopy, %A_LoopFileFullPath%, %Solsave%, 1
}
Gosub, Guiclose


WebLoad:
Gui, Destroy
FileSelectFile, Savefile
SetWorkingDir, %A_AppData%\Macromedia\Flash Player\#SharedObjects
Loop, www.walfas.org, 2 , 1 ; Recurse into subfolders.
{
CacheDir = %A_WorkingDir%\%A_LoopFileFullPath%
}
FileCopy, %Savefile%, %CacheDir%\walfas_create_savedata.sol, 1
Gosub, Guiclose
Return

LocalSave:
FileSelectFile, Solsave, 16, %A_Scriptdir%,, Text (*.txt)
SetWorkingDir, %A_AppData%\Macromedia\Flash Player\#SharedObjects
; Establish where the walfas.org folder is, allowing it to copy the files
Loop, localhost, 2 , 1 ; Recurse into subfolders.
{
SetWorkingDir, %A_WorkingDir%\%A_LoopFileFullPath%
}
Loop, walfas_create_savedata.sol , 0, ; establish all sol files in the walfas folder
{
Filecopy, %A_LoopFileFullPath%, %Solsave%, 1
}
Gosub, Guiclose
Return

LocalLoad:
Gui, Destroy
FileSelectFile, Savefile
SetWorkingDir, %A_AppData%\Macromedia\Flash Player\#SharedObjects
Loop, localhost, 2 , 1 ; Recurse into subfolders.
{
CacheDir = %A_WorkingDir%\%A_LoopFileFullPath%
}
FileCopy, %Savefile%, %CacheDir%\walfas_create_savedata.sol, 1
Gosub, Guiclose
Return

GuiClose:
ExitApp

3 comments:

  1. I'm new to the whole create.swf and I need help. I wanna be able to make .swf files like u. Could u put like a tutorial showing how to do everything from the beginning?

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete