SWF Maestro: óíèâåðñàëüíûé êîìïèëÿòîð äëÿ ñîçäàíèÿ ïðèëîæåíèé, èãð, õðàíèòåëåé ýêðàíà èç SWF ôàéëîâ

������ � �������

����������� ��� ������� ��� ������ � ������� � �������.

������� ������ ��������� ����������
file.getFolderPath EXE ������������� �����, ���������� ���������� ������ ���� � ����������� �����.
file.extract EXE ��� �������, ���� �������, ���������� ��������� ���� �� ������� ����.
file.exec EXE ���� � ����� ��������� ����������. ���� �� ���������� ���� � avi, mpg, mp3, zip ��� ������� ���������, �� ����� ������ � ����������, ������� ������������� � ���� ����� ������.

file.getFolderPath

��� ������� ���������� ������ ���� � ����� �� ����������� ����� �� ������� �����. 1� �������� � ��� ���� �� ��������� ��������������� �����:
CURAPP � �������� ����������, � ������� ��������� ����������.
TEMP � �������� ����������, ������� ����������� ��������� �����. �������� ����: C:\Documents and Settings\username\Local Settings\Temp.
APPDATA - �������� ����������, ������� ����������� ����� ��������� ������ ��� ���������� ����������. �������� ����: C:\Documents and Settings\username\Application Data.
MYMUSIC � �������� ����������, ������� ����������� ����� ��������� ����������� ������. �������� ����: C:\Documents and Settings\username\My Documents\My Music.
MYPICTURES � �������� ����������, ������� ����������� ����� ��������� ������ � ����������. �������� ����: C:\Documents and Settings\username\My Documents\My Pictures.
MYVIDEO � �������� ����������, ������� ����������� ����� ��������� ����� ������. �������� ����: C:\Documents and Settings\username\My Documents\My Videos.

2� �������� � ��� ����������, ������� ����� �������� ������ ���� � ����� � ����������� ������ �/� � �����.

��������� ������ ����������� ���������� CurDir ������ ���� � ����������, � ������� ��������� ����������:

fscommand(“file.getFolderPath”, “CURAPP,CurDir”);

file.extract

��� ������� ��������� ����, ����������� � ����������, �� ������� ����. ������ �������� � ��� ���� � ����� ������������ ����� ���������������� ����������, ������� ��������� �������. ������ �������� � ��� ������ ����, �� �������� ����� �������� ����. ������ �������� � ��� ����������, � ������� ������� ����� ���������� ��������� ����������. ��������� ���������� ����� ����� ��������� ��������:
-2 � �� ������� �������: ��� ������ ����� � ����������.
-1 � �� ������� �������: �� ������� �������� ���� �� ������� ���� �� ���������� ����.
0..100 � ������� ��������� ����� ���������
101 � ���������� ���������

��������� ������ ��������� ���� SomeFile.gif � ��������� � ����, ��������� � ���������� TargetFile, �������� ���������� ExtractMonitor � �������� ����������:

fscommand(“file.extract”, “SomeFile.gif,”+TargetFile+”,ExtractMonitor”);

file.exec

������� ��� exec.