������� swf � html �����
��� ������� �� Ctrl+Enter � ��� �� ����� �������� swf ���� (���, ��� �� ��������� ������). �� ������ ���� ��� ���� ��������, �������� my.swf � �������� � ���������� ������ ftp �������� � ������, ���������, �������� FileZilla.
�������� ��������, ��� ���������� Flash ������ ���� ������������ � � ������� ����� �������� �� HTML5!
������ ��� ���������� ������������ ���� ������ ����� �������� ���� swf � �������� ������ �����. ���� �� �� ����������� CMS (������� ���������� ���������� �����) � ��� ���� ������������ �� ���� ������� HTML �������� (���� �� �����), �� ��� ���������� �������� ��������� (����) � ���� index.html ������ �����.
���� �� ����������� �����-�� CMS � � ��� ���� ������, ������� �� ��������� ��� ���������������� ������� (� �� ����������������) �����, �� ��� ���������� ����� ��� ����������� ����� ������ �����. ��� ����� �������, ����������� Opera Dragonfly (��� �������� ���������� FF ��� Chrome), ������� ��������� ������������� �������� �����, ��������:
������� ��� ���������� �� ������ ������� �� ������ ���� � ����� ������ ������� ����, ������� ���� ����������������� ������� (Inspect Element).
����� ����, ��� �� ����������� ��� ����������� ������� ����� ������ �����. ������� ����� ������� ��
�����, ��� ����������� ������� java script ����, ������� ���������� ���������� �� � ������������ ������ ��� ������������ swf ������� ��� ���. � ������ ��� ���������� �������� ������� ��������� �������� ��� ��, ��� ��� ����������.
������� SWF Object. �� ����� ������ ��� ����������� ���� so.js.
����, ��� �������� ���������� JS ���� � ��������� ����������� ��� ��� ������� SWF Object. ���� � ����, � ������� ����� ��������� ������. � ���� ������ � ��������� CMS Joomla � ���� layouts/default.php.
���������� java script ���� (�������� ��� ������ � ���� ���� html ��� php � ��������� ���, �������� �� ftp):
templates/javascript/so.js — ��� ����, ��� ����� Java ������
��������� SWF Object:
«header», «1301», «135», «10» — �������� ����, ��� �� ����� ��������, ������, ������, ����������� ������ flash ������.
so.addParam(«wmode», «transparent») — ��� ���� �������� �������� �� ������������
�� �� ����� ���� ��� ����� ������� ��, ��� �� ����� �������� � ��, ��� �� ����� �������� � ������� ���������� ������� � ������������:
� ����� ������ � ��������� ��������, ������� ����� ���������� ������ flash �������, ���� ������������ �� ��������� Adobe Flash �����.
�� ����, ��� �� �������? �� ��������� � �������� JS ���, ������� ���������� ������� ������� � ������������ � ������� �������� (� ����� ������), ���� �� �����������. ����� �� ���������� SWF ����, ������� ����� ������������ � ������ �����, ��������� ������������ �� ���� ������������� ��������� (���������) � �� ������� ��������� ����� � Opera.
������� ������� Flash � HTML � XHTML
«��� ��������� �������� ������� Flash � ���� HTML-��������?»
��� ������ ���� ������� ������, �� �������� �������� ��������� ������, ��� ��� ������ �� ��������� �������� ����������� �������� ����� ���� ������������ � ����������. � ���� ������ �� ��������� ��������� � �������� ����������� Flash-����������� � ���������� �������� ���������� ������� ������� ��������.
�������� ���������� ������ ����������� Flash-��������
������ ��� ������� � ��������, ������� ������� �������������� ��������� �����. �� ����� ������, ��������� �������� ����� �������������� ��������.
������������ ����������
Web-��������� ���������� ������������� ���� ��� ���������� ���������, ��������������� ������������ � ���-���������� ��� ����, ����� ��� ����� �������� ������� �������������, ����������� �� ��������������, � ����� ��������� ��������� ����. ����� ���� ���-��������� ��������� ��������� ���������� HTML-��������, ������� � ���� �� ����� �������� ����������� � ���-��������.
������������� ���������
��������� ����� ��������� ���������� � ����������� ������������� ��������� � ��� ����������� �������. ��������� �������� ����� � ������� �������������� Flash embed test suite, ������� ��������� �������, ������������ �� �������� ��� ��� ���� ����� ��������, � ������� ������� ����� �������� Flash-�������. ���� ����� ������ ����� �������� ���������� � ����������, � ��� ����� ��������� ���������� Flash, ������� � ���������, �������������� ���������� � ��. �� ����� ������ ������� ������� �������, ������������ ��� ���������.
��������� ��������������� �����������
�� ���� �������, ����� �� �������� ����������, �������������� ���������� �������� ��� ��������� �����, ������� ���������� ��� ��� ��������� �����-���� ��������, ������������� ��������������� ����������� � ��� ��������� �������.
��������� �������������� ����� Flash-��������� � ������� Flash-������
� ��������� ��� ������ �� ���, Flash-������� ����� ���������������� ��� ����������� �� ������ Flash-������, ��� �������� �� ��� ������. � ���� ��� ������ ��������� �� ���� �������, ���� ���������� ������ �� ��������� �������, ������� �������� ������ � ��� ����� ������� �������. ���� ��� ����������, ���� ���������� ������ «����������» ���������� ��� ����� ������ �� ������.
������������� �������������� ��������
�������� �������� Microsoft �������� ���, ��� ���������� �� ����� �������� ����������������� � ���������� ���������� Microsoft ActiveX, ������� ��������� ��������� ������� � �������� embed , ����� ���������� «������������� ���������».
������ ������, �������� Microsoft �� �������� ����������������� � ������������� ���������, ���� ������������ �������������� ��� �� ����������. Opera ����� �������� ������� �������� «click-to-activate». ���� �������� �������� ��� «������� �����������» �� ������: �� ������ ������������� ��������, �������� ��������� ����� ����, � ������ ����� ������ ������ ����. ��� ����� �������� �������� ��������-������� � ��������� ���� ������ ��������.
�������� ����������
������� �� �������� ����� ��������. ����� ������� ���� ������, ���� ����� ������� �����?
������ ����������� Flash-��������: embed � object
���������� ��� �������� HTML, ������� ��������� �������� ������� Flash �� ���-��������. � ����� ����, � ��� ���� ��������������� ������� embed , ������� �������������� ������������ ���������:
� ������ ���� � ��� ������� object , ������� �������� ������������� W3C. ��� ��� ������������ W3C ������������� ������ ������������ ��� ����������� ������������� ��������, �� �������� ��������� ��� ��������� ������� ���������� ��������.
����������� ����������� ��������� ������� ���������� ������������ ���� embed , ��������� ��� ���� MIME-��� �������, ����� ���������� ��������������� ������ ��� ��������������� �����������:
���� ����� �� �������� � ������-���� ������������� �������� � ������� ��� ���������������� ����������.
������ ������ ���������� ������ ���������� ��� Internet Explorer �� Windows. ��� ���� ���������, ����� �� ���������� ������� classid � �������, ����� ������� ���� ��������� ����������� ������� ���������� ActiveX Flash-������. ����� ������ ��������, �� ������� �� ���� ��������:
���������: � ���� ��������� �������� ���� ���������� �� ������ �������� codebase � �� ����� ������������, ����� �������� URL ������������ Flash �� �������� Adobe (������� ����� ������������� ��������� ���, ���� �� ��� �� ����������). ������ ��� ��������� �������� �������������, ������� ������������ ��� ������ ������ � �������� ������ �������� ���������, � ������� ���� �������� �� �������������� ����� ������������ ����������.
������ embed ��� ��� ������������
� ���������� ���-���������� ����� ���� �� ���������� ����������� ������� ������� embed . �� ������ ������� �� ��� ������������� W3C � ������� �� �����, ������ ��� �� ��� ������������. ������ � ���������������� ���� ������ ����� �������������� ����������, ��� ��������� ���������� �������� object . � ���������� ����� ������ ���������� ������ �� ����������� ���-������, ����� ��� Google Video � Brightcove.
���� ���-��������� �������, ����� �������� ������� �������������, ������� embed ����� ���� � ������������, ��� ������� object , ���������� W3C. ������� ������� ���������� �������� embed � ������� ��������� ���������� ��� � ����������� ��������, ������� ����� �������������� �� ��� ���, ���� �� ����� ������������� ��������� �������� object , ����������� ��� ����, ����� ������������ ������ ���������, ������� ��� �� ������������.
��� �������� ��������� ���-����������
������������ ���������� �������� object ��������� �� �������� ���-���������, �� ������� ��������� �������. �������������, ��� ����� ����� ������ ���������� ��� ������ ���������� �������� � ����. ��� ���� ��, ��� �� ����� ������ ����������� � ����������, ������� ����� (��� ������ �����) ������������ ���������� ��������. ������� ���������� ��� ��������:
- ����� ���������� �������� �� �������� � Internet Explorer �� Windows. IE ��������� ������ � SWF-����, �� �� ���������� ��� ����������.
- ����� �� �������� ���������� ��� ������� ���������� ����������� ��������� movie � ����� ����������, Internet Explorer ���������� Flash-�������, �� �� ����������� ���.
- ���� �� ��������� �������� ��� ����������, ��� ���������� � Internet Explorer, �� �������� �� ���� Gecko ������������� Flash-������� � ������� �������������� ����������.
����� �� ������������ �������� object �������� ��, ��� �� ������ ��������� ���� ��� ���� � �����:
� ���������, ��-�� ������ � ������ ������� Internet Explorer ���������� ���� � ����� �������� object ��������������� ���, ��� ����� ��� ������� ���� �� ������, ������� ������������ ��� ��������.
��� ���� ��, ��� �������� Safari, ������� � ������ 1.2.2 ��� Mac OS 10.3, ���������� ������� param , ���������� � object , ���� ������������ ����� �� �������� ��� �������� embed .
���������: �� ����� ������ ��������, ��������� ������� ���������� �������, �������� � ��������� ������, ��� � �������������� �������. ���� ��������������� ����� ����� ������ ����� �������������� ������������� JavaScript ��� �������������� � Flash-���������. � ����� ������ �� ������ ���������, � ����� �������� �� ����������������.
��������� �� ������ ��� ����������, �� �������������� � ��������� � Internet Explorer ���������� object ��� ��� ���������� ���������� �������� ����� ��������. �� ����� ������ ���������, ��� ��� ����� ���������� � ��������� �������.
������ object �����, ��� embed
�������� �� ���������� ��������� ����� ���������� ������� object ��� �� ����� ��������������, ��� ������� embed , ������ ��� ����� ������������ ����������, �� ����� �������� ������������ ���������� ��������������� �����������.
������� object ��������� ���������� �������������� ����������, � ��� ���������� ������������, ���� ���������� �� �������������� ��� �� ���������� ������. ����� �������������� ���������� �������� ��������� �������, � ��� ����������� ���� ��� ����������� ��� ��������� �������.
������� embed ������������ �������������� ���������� ����������� �������� noembed , �� ����� ���������� �������� ������ � ��� ���������, ������� �� ������������ ��� ������� embed , �������� Internet Explorer �� ���������� Windows Mobile. � ������� �� �������� object , embed �� ������������ �������������� ����������, ����� �������������� ��� ������� embed , �� �� ���������� Flash-������. � ����� ��������, ����� ���������������� ������ ���������� pluginurl � pluginspage , � ������� ������� ������������ ��������, ������� �� ������� ����� ���������� ������.
� �����, ��� ������ ������� ��� ����������� ��������������� ��������, ����� ������� ����������� ������ � ���� ����� �� ��, ��� ������������ ����� ��������� � ���������� ������ Flash. (��� �� �����, ��� ������ ������, �� ������� �� ������ �������������� ��������� codebase .)
����� �������, ������� object �������� ������������� �������������� ����� ��������� embed � ��� ������, ���� �� ������������� ��������� ��������������� ���������� ��� ��� ���������, ������ ������������� ������������ ����������.
��������������� ������� ��������
�������� �� �������� ��������, ������������ ���� �����, � ������������ ����������, ������������� ���������, ��������� ��������������� �����������, ��������� �������������� ������/�������, ������������ �������������� ����������� � �������� ���������� � ����� ������, ��� � ���������������� ������������ ���� �� ������� ����������, ������� ����� ���� ������������ ������ ���������� ��������.
���� �������� ������������� �������� ������ Flash-�������� ��� ��������������� �����������, ��� �� �������� ������ �������� �������������� �������� � ������� Flash ��� ������ ��� ����������� �������������� ��������, � ��� �� ������ ����� ������� ������ ������ � ��, � ������ ��������.
������, ������� ������� ������� ����� �������� ���������� «���������������» ������� ������������ Flash, �������������� � ������� (X)HTML-��������.
������������ �����
� Flash IDE, �� ������ ��������� HTML-�������� � ������� ��� ����������� ������������� ������, ������������� ���������� �������� � ������� �������� object � embed , ����������� ������ ���� ��� �������������� �������:
��� ������, ���� ����� ������� ������������� �� ��������������� ��������. �� ���������� ������������ �� ������������� ���������, �� �� ������������� ����������.
������������ ����� ���������� ���������� ���, ������ ���� ���-�������� ��������� ������������������� � �� ��������� �������� �������������� ����������. � ������������ ������������ � ��� �������� � �������������, ��� ��� ��� ���������� Flash IDE: ��� ��� �� ��������� ������� ������������� ���� ����� �� ������.
����� ��������� ��������
�������� ���� ���������� �������� � ������� ������������ ������������� ������, ������ ��� ���� ����� ������������� ���������� � ������������ �������������� �������:
� ���������, � ���� ������ ����������� ������������� ��������� ���������� ������ �������� ��������� object � IE � ���������� ��������� ��������� ��������� param � Safari. �� ����� ������������ ����� � ��������� ������������� IE, ����� �������� ������ ��������:
��� ������������� ������������ ���� «���������» ����, ���� ����� ���������� ���� ����� ������� ��� ���������, ��� ������������. �� ���������� ����������� ������, ������� ����� ��������� ������� �������� ���� ��� ������������� ��������� ������.
Flash Satay
������ ������������ � ��� ����� Flash Satay, ������� ������� �� ����� ������� ���������� �������� � �������� �������������� �������� movie . ���� �������� ���������, ����� �������� ������ ����������� �������� � IE. �� ����� �������� movie-��������� Flash (c.swf � ���������� path), ����� ��������� ������ � ��������� ���������������� � IE:
���� �� ���������� ��� � «����������», �������������� ������� ���������� ��������, Flash Satay �������� ������, ���������� ������� �� �������� �������? � ��� ������������� ����� ������ ���������� �������� param �� �������������� ������� �������� Safari.
��������� � ������ DOM
����� �� ������� � ��������������� ������� ��������, �� ������ ����������������, ������ ������ ������������ ������� DOM. � ������� ���, �� ����� ����������� ��������� ���������, ��� ���� ������� ������ �������, ���������:
- ����������� ���������� ��� IE;
- ��������������� ������� embed ��� ������ ������ Safari;
- ����� ���������� ��� ���� ��������� ���������.
������ DOM � ���� �� ������ ����������, ����������� ��� ������� ��������� �������: ������ �����, �� ����� ������������ ��� ��� ������� �������� ��������������� Flash-������� � Flash-��������, ��������� ������ ������� � �������� ��, ��� ����� ���������� � Flash-������� ��� �������������� ����������. ����� ����������� ������ ������� ����������, �� ����� ������������ ��������-��������� Adobe, � �������� ���������� � Flash-������. ��� ����� �� �������� �������� ������ ������.
������� � ����������� DOM ����� ��������� ��� �������� ��������� «click-to-activate» � ������� ������������� �������� ��������� object .
������ ���������, ��������� JavaScript
��� ��� �� ������ �������� ������� ������������ �� JavaScript � �� � ���� ���, ��� �� ��������, �� ������ ������ ���������� ��������� � ������� ������������ ��� ������������ ���������� JavaScript ��� ����������� Flash. ������� ���������� �������� ������ �������� ����������.
�������� �� ���������� ����� �������������� ����������� ���������, ��� ��� ��� ���������� ���������� Flash-������� ���� � JavaScript, ���� ������� ���������� ����������. ����������� ��������� ������� ������������ HTML �, ��� ��� �������� �������� �����������, W3C-��������� �� �������� � ���������.
� ������ ������� ����� �����������, ��� �������� ����� �����, ���� JavaScript �� ��������, �� �������������� ��� �������������� ������ �������. ��� ������, ���� ��������� JavaScript, �� ������������� ����������� �������� ��� �������������?
������ �� �������� �������������, ������� ���������, ��� �������� ��������� ���������� ����������.
�������� �� ����������� ������� Adobe Flash
����� �������� �������� � Flash IDE, Adobe ����� ������������� �������� �� ����������� ������� Flash. ���������� ��� ������� ������������ ���� ��������:
- �������� ���������� ��� ��� ������ Detect Flash Version (� ���� File > Publish Settings > HTML) � Flash 8 IDE.
- ������� ��� �������, �������� ����������� ���� ����������.
- �������� � Flex Builder 2, ��� �� ������� �� ���������.
���� ����� ���� ��� ��� �������� �����������, ����� ��� ����������� ������, ��������-��������� � ������������� �������������� ��������, �� ��������� � ������������������. ����� �� ��������� �������� � ����������, ��� ���� ����������� ������: ���� ��� �� ������� �� ������������ ��������, ��� ��� ����� ���� ���������� �������� �� Microsoft, ���� ��������� ���������������� �������� embed , �� ���������������� ����������.
�� ����� ������������ �������������� �������, ���� �������� � �������������� �������. �� ������ ���������� �������������� ������� ������: � JavaScript � � �������� noscript .
� �������� �����, �������� �� ����������� ������� ��������� � ������ ����������.
UFO � SWF Object
���������� ������������ � �������� �������� �����, ��� UFO ���� ��� ��� ������ � SWF Object ������ ������� �������� ����� ������ � ������� � ������������� ����������, ��������� � ��������� �����.
���� �� ������ ������ ��� ������� ��������, ��� ��������� ���������� ���������� �����������. ��������, SWF Object ���������� ������������ ����� Adobe, � �� ����� ��� UFO ���������� ������� ������� ��������������� ���������� ��������. � ������ ������� ��� ���������� ����� ������������� ��������: ��� ���������� ��������� �� ���� �������� ��������, �������������� �������������� ���������� (����� ������� ��������� � ���������������� ��� ����������), ������� ���������� DOM-��������, ����� �������� ����������� ��������� Flash � JavaScript.
�������� �� �� ����� ��������� ��������������� �����������, ��� ���������� ����� ���� ������������ ����������: ��� ������� �� JavaScript ��� ������� Flash-��������. � ���������� ��������� ������ �����������, ������������ Flash ������, �� � ����������� JavaScript ��� � ����������� ����������� ��������� JavaScript, ����� ������ ������ �������������� ����������.
��������� � ������ «����������» ���������������� DOM
����� ������ ��� ��������, ������ ������� ������������ ��������� ����� �������: ��������� ��������, ����������� �� �����������, ��� ��, ������� ������������ ������� Flash Satay, ����� �������� � Flash-�������, � �������������� ����������, ������ � ����������� ���������� DOM-�������, ������� ��������� ��� ���������� ������� � ��������� ���������.
ObjectSwap ������� �� ���� ��������� � �� ��� ������ �������� �������� ��� ������� ��������� ����������� Flash-��������. � ���������, ObjectSwap ��������������� � �������� �� ������������� �������������� ��������, ������� �� �� �������� ��� ����������� ������ � �� ������ ������� � ���������, ����� ��� ��������� ���������� ��������������� � IE ��� ��������� ���������� � ������ ������� Safari.
� ������ ������� �� ����� ���� ����������������. ��� ������������� ������� onload , ���������, ���������� �� DOM, ����������� ������ ����� �������� ���� ��������. ������ ������� ����� �� ���� ������� DOMContentLoaded , ������� ��������� ��� ��������� ���� ����������� ���������, ��� ������ DOM ������ �������� �� ��������. ��� ��� ������� DOMContentLoaded ��� �� ��������� �������������� ����������, ������ ����� �� ������ ������������ ��� �������.
������� ����������� Flash
���� ����������� ������� ���� ��� �� �������, �� ��� �������� ������ ������������ � ���������� �����������. ����� �� ��������� ������ ����������� ��������� ���������, ��� ������� ��������� ��� ��������, ������������ � ������ ���� ������.
���������� ��������� ���� OBJECT � EMBED � Adobe Flash Professional
�� ���� ��������
� ���� ��������� ����������� �������� ����� OBJECT � EMBED, ������������ ��� ���������� ����������� SWF (� ���������� ������������ Flash) �� HTML-��������� ��� ��������� � ���-���������. �������� ��������� �������� ������������ ���������, ������� ����������, ��� � ��� �� Flash Player ������������ ���� SWF � ��������.
���������� � ���������� ����������� Flash (SWF-�����) �� ���-�������� ����� �������� � ����������� ������� ��������� ���� OBJECT | Flash (tn_4150).
��������� ��������
��������� �������� ������ ����� OBJECT � EMBED ��������� ��� ���������� ����� SWF �� HTML-��������. ��� ������������� ������� �������������� � ������������� Flash Professional ��������� ����� HTML � ���������� ���������� ����������.
����������. �������� � ������� � �������� ��������� �� ��, ��� �������� ���������� �������������.
��������� � ��� OBJECT, � ��� EMBED:
- width � ���������� ������ ����������� SWF � �������� ��� � ���� ����������� �������� ��� ���� ��������.
- height � ���������� ������ ����������� SWF � �������� ��� � ���� ����������� �������� ��� ���� ��������.
��������� ������ ��� ���� OBJECT:
- classid � ���������� ������� ���������� ActiveX ��� ��������. ������ ����������� �������� ���� �������� � ������� ��������� ���� OBJECT | Flash (tn_4150).
- codebase � ��������� �������������� �������� ���������� ActiveX ������������� Flash Player, ��������� ���� ������� ����� ������������� ��������� ���, ���� ���� ������� ���������� �� ���������� �� ����������. ������ ����������� �������� ���� �������� � ������� ��������� ���� OBJECT | Flash (tn_4150).
- movie (param) � ���������� �������� �������������� (URL) ������������ ����� SWF.
��������� ������ ��� ���� EMBED
- src � ���������� �������� �������������� (URL) ������������ ����� SWF.
- pluginspage � ��������� �� �������������� �������� ������ Flash Player, ��� ��������� ������������ ������������� ��������� ���, ���� ������ �� ����������.
�������������� ��������
��� ����������� ����� OBJECT � EMBED ��������� �������� �������� ���������������. ��� ���� OBJECT ��� �������� ������������ ������ param , ���� �� ������� ����:
- id (������� ��� ���� OBJECT) � name (������� ��� ���� EMBED) � ������������� ����� SWF. ���������� ���� SWF ��� ���-��������, ��������� ���� � �������� ��������� �������� ����� (��������, JavaScript) ��� ������ �� ���������� SWF. ����� ���������� ������������� � ����������� ����������, ��������� � ���, ��� ��� ���������� id � name ����������� ���� � �� �� ��������.
- play � ��������� ��������: true, false. ��������� �� ��, ����� �� SWF-����, ����������� �� ������ ���������� �����, ���������������� ���������� ��� �������� ����������� � ��������. ���� ���� ������� �� ������, �� �������� �� ��������� � true.
- loop � ��������� ��������: true, false. ��������� �� ��, ����� �� SWF-����, ����������� �� ������ ���������� �����, ���������������� ���������� ��� ��������������� ����������� �� ���������� ���������� �����. ���� ���� ������� �� ������, �� �������� �� ��������� � true.
- menu � ��������� ��������: true, false. ����������, �������� �� �������� ���������� ���������������� � ����������� ���� Flash Player.
- true � ������������ ������ ���� � ���������� ������������ ���������� ���������������� (��������, ��������, ���������, ����������������, �����, ����������, �������, ������).
- false � ������������ ����, � ������� �������� ���������� ���������������� (��������, ��������, ���������, ����������������, �����, ����������, �������, ������) ������. ������ ������� ����� ������������ ��� SWF-�����������, �� ���������� �� ������ ���������� �����, �������� �����������, ��������� ��������������� ������ ActionScript. � �������� ���� ������������ �������� ���������� � �� ��������� Flash Player�.
- quality � ��������� ��������: low, autolow, autohigh, medium, high, best. ���������� �������� ������������ ������� ������� � ������������ ������. ���� ������ �������� Stage.quality � ������� ActionScript, ��� �������� ����������������.
- low � ������������ �������� ��������������� �� ���� �������� ���� � �� ���������� �����������.
- autolow � ������������ ��������, �� �� ����������� �������� ������� ���. ��������������� ���������� � ����������� ������������. ���� Flash Player ���������, ��� ��������� �������� ��������� �����������, �� ��� ����� �������� �������������.
- autohigh � ������������ � ������ ������� �������� � ������� ���, �� ��� ������������� ������������ �������� �������� ���������������. ��������������� ���������� � ���������� ������������. ���� �������������� ������� ������ ������ ���� ��������, ����������� �����������, ����� �������� �������� ���������������. ����������� ���� ��������, ����� ������������ ��������� ��������� > ������������ �� Flash Professional.
- medium � ��������� ��������� �����������, �� �������� ��������� �����������. ���� �������� ���� �������� ����, ��� � ������ �������, �� ����, ��� � ������ ��������.
- high � ������������ ������� ��� �� ���� �������� ��������������� � ������ ���������� �����������. ���� ����� �� �������� ��������, �� ��������� ����������� ����������. � ��������� ������ ��������� ����������� �� ����������.
- best � ������������ ����� ������� �������� �����������, ���� �� ���� ��������. ������������ ���� �����, � ��� ��������� ����������� ����������.
- scale � ��������� ��������: showall, noborder, exactfit, noscale. ����������, ��� SWF-���������� �������������� �� Flash Player �� ������� ������� ��������, ������������ ����� OBJECT ��� EMBED.
- default � (��������� ���) ���������� ��� ���������� SWF-����� � �������� ������� ��� ���������, �������� �������� ����������� ������ ������. � ���� ������ �� ������ ����� ��������� ����.
- noborder ������������ SWF-����, ����� ��������� �������� �������, �������� �������� ����������� ������ ������. Flash Player ��������� �������� ����������, �� �������� ���������.
- exactfit � ���������� ��� ���������� SWF-����� � �������� ������� ��� ���������, �� �������� ��������� ����������� ������. ����� ���������� ��������� �����������.
- noscale ������������� ��������������� SWF-�����, ����� ������� ������� ���� OBJECT ��� EMBED. ����� ���� ��������� �������.
- align (������� ��� ���� Object) � ��������� ��������: l, t, r.
- �� ��������� ���������� ���������� � ���� �������� � �������� ����, ���� ��� ������ ���� � �������.
- l (left � �� ������ ����), r (right � �� ������� ����) � t (top � �� �������� ����): ����������� ����� �� ���������������� ���� ���� �������� � ��� ������������� �������� ���������� ��� �������.
- salign � ��������� ��������: l, t, r, tl � tr.
- l , r � t : ����������� ����� �� ������, ������� ��� �������� ���� ���� �������� � �� ������������� �������� ���������� ��� �������.
- tl � tr : ����������� ����� �� �������� ������ � �������� ������� ����� ���� ��������, �������� ��� �, �� �������������, ���������� �������.
- wmode � ��������� ��������: window, direct, opaque, transparent, gpu. ������������� ��� �������� ������ ���� �������� ��������������, �����, ���������� � ���������� ��� ����� SWF � ��������. ���� ���� ������� �� ������, �� �������� �� ��������� � window. ����������� ��������� � ������� ������������� �������� ������ ���� (wmode) ����.
- window � ���������� SWF ��������������� �� ���-�������� � �������� ������������ �������������� (����). ������� ���������� ���� ����������� SWF �� ��������� � ������ ��������� HTML. � ����� ��������� ���������� ���� �������, ��� ��������� ���������� SWF �� �������� � ��� ��� ��� ������� ���������� HTML.
- direct � ��� �������� ������������ ��� ���������� ����. ���� ������� ��������� ������ ���������� � ������ ������ � ������� ���������� SWF �������� �� �����. �������� wmode ������������� ������������, ����� �������������� ��������������� �����������. ��� ������������ ����������� SWF-����������� � ���������� ����������, ��� �������� ������������ Stage V >opaque � SWF-���������� ������������� �� ����� ������ � ������� ���������� HTML �� ��������. ���� SWF ������������, �� �������� ��� ������������ ����������, ����������� ��� ��� �� ��������. ���� �������� ��������� ������������������ ��������������� �� ��������� � ����������� wmode=window ��� wmode=direct .
- transparent � SWF-���������� ������������� �� ����� ������ � ������� ���������� HTML �� ��������. ���� ���� SWF-����� (���� ������� �������) ���������� ����������. �������� HTML, ������������� ��� SWF-������, ����� ����� ����� ���������� ������� ����� SWF � ���������� �����-������. ���� �������� ��������� ������������������ ��������������� �� ��������� � ����������� wmode=window ��� wmode=direct .
- gpu � ����� ������������ �������������� ���������� ��������� �� ��������� ��������� ����������� � �����������, ������������ � ���������. � ������� �� ������ �������� wmode �� ������������� ������ ����������� �������� � ������������ ������ �������. � ��������� ������ ��� �������� ���������� wmode=direct .
- bgcolor � [����������������� �������� RGB] � ������� #RRGGBB. ���������� ���� ���� ��� ����������� SWF-�����. ���� ������� ������������, ����� �������������� �������� ����� ���� (����� ������� �������), ������������ � ����� SWF. (�� ������ �� ���� ���� HTML-��������.)
- base — [������� �������] ��� [URL]. ������ ������� ������� ��� URL-����� ��� ���������� ������������� ����� � SWF-�����. ���� ������� ����� ��������� �������� � ��� �������, ����� SWF-���� �������� � ������ ��������, �������� �� ��������� ������.
- allowFullScreen � ��������� ��������: true � false. ������ �������� true ��� ����� ���������, ����� ������������� SWF-���� � ������ ������� ������ ����������� ActionScript. �������������� ���������� �� ���� ��������� � ������� ���������� � ������� ������� ������ � ������������� Flash Player. ���� ���� ������� �� ������, �� �������� �� ��������� � false .
- fullScreenAspectRatio � ��������� ��������: portrait � landscape. ������������ ��� ���������� ������������� ������������ SWF-����������� �� ��������� �����������, �������������� �������������� ������� ������, ����� ��� �������� � ��������. ���� ���� ������� ���������, ��� ��������� SWF-����� � ������������� ������ � ������������� Flash Player ������������ ��������� ���������� ������ (������� ��� ���������). ���������� ���������� �� ����� ��������. ���� ���� ������� �� ���������, �� ���������� ����������� ��������� ������������� ���������� ������ � ��������.
- flashvars � ����������, ������������ � ���� ������ ��� key=value, ������� ���������� � ���� SWF.
- � ������� flashvars ����� ���������� � SWF-����� ���������� ��������� ������. ������ ������ ������������ ����� ����� ���������� key=value, ������� ��������� �������� �&�.
- �������� ������������ ������ ������ �� 64 �� (65 535 ����).
- �������������� ���������� �� ������������� flashvars ��������� � ������� ������������� FlashVars ��� �������� ���������� � ���� SWF (tn_16417).
- browserzoom � ��������� ���� OBJECT � EMBED �������� �� Flash Player ��� ��������� ������� ����������� Flash � ����� �� ��������� ������������ ��������������� � ��������:
- scale : ��������� ������������ ��������������� � ��������
- noscale : ���������� ������������ ��������������� � ��������
������������� �������� ������ ���� (wmode)
������������ ����� ���������� �������� wmode (������ ����) ��� ����������� SWF, ����� �������������� ���� � ������������ ����������� � ��������. ��� ����������� �� �������� �������� wmode �� Flash Player ������������ ����������, ��������������� � ������������� ������ ��� ������������� ������� ���������� ����. � ������� ������� ���������� ���� ����� ������������� ����������� ������������� � ���������� ����������, �������� Stage Video � Stage3D.
����� ���������� ����� ������� �������� ��������������� ����������� Flash � ��������, ����������� ������� wmode=direct . � ������� ����� �������� ����� ������������� ����������� ������������� � ���������� ����������, � ��� ����� Stage Video � Stage3D. ��������� ������������ �������� SWF � ���������� HTML (��������, ������������ ���� �� ������ HTML), ������� ������ ������������ ��� SWF-������. ������ �������� ����� �������������� ������ � ��������� ����������� ��������� (��. ������� ����). � ������ ��������� ���������� SWF ������ ������������ ��� ������� ���������� HTML.
���� ��������� ����� ������ ���������� ������������� �����, ������������� ��� ���������� HTML, ������������� ��� ���������� SWF, ����������� ������� wmode=opaque ��� wmode=transparent . ����� � ������� HTML ����� ��������� ������������� ����� �� ��������� � ������ ��������� �� ��������. ������ ��� ������������� ���� ������� ���� ���� ����������� �������� ��������������� �� ��������� � �������������� ��������� wmode=window (�� ���������) � wmode=direct .
��� �������� ���� ���� � swf ������ �� ����
����� ���������� �� ����� flash ������ ��� ���� ������������ swf �����. ��������, � ����� �������, �������� ���� � ���� ������, ������� ����� ����� ��������� �� ���� ���� object.
��� ����� ��� ����������� ��������� swf ���� � ���������� ����� (����� ����� demo.swf � �������� �����) � ��������� � html ��������� ��������� ���:
���� �� �������� �������� � ����� �����, �� ������� ���� ������ (��������, ����, ������� ����� ��������). ��� ���������� ������� ���. � ��� �� ��������� �������, ������� ������ �������� swf �� ������.
����� ���������� ��� ����������� ����:
�� ���������� �� ������� ������� ����������� ���������� (param). classid — ����� ����������� ��������, ����������, ��� �� ���������� ActiveX �������.
���� ��������� �� ������ ���������, � ����������� �� ����� ����� ������ ���� object:
— �������� ������. ��������: low | autolow | autohigh | high | medium | best
— ������� ���� ������ ������� ������, � ������� #RRGGBB, ��������: #ffffff
— �������� �� ���������������� ������. ��������: true | false.
— ����� �� �������� ������������ ������. �� ����, ���� ��������, �� ����� ��������� ���������������, ������ ����������� ��� ������. ��������: true | false.
— ����������� ��������� swf ������ ������ ��� ������. ��������: l | r | t | b — �����, ������, ����� � ����
���������� � ������ ��������� ��� ���������� swf, �� ���� ����� ����� ���������� ��� ������� ������� ���� �������� � ��� �� ����.
Modifying swf bytecode to output variables
I have a swf file that I wish to modify the byte code ( I am using ActionScript Extractor ).
What is a good way to easily output a variable for example a quick way to do the equivalent of (in JS)
I have tried to use adobe’s trace function but it works very poorly and sometimes doesn’t seem to work at all.
2 Answers 2
The function is called
Parameters
message The message to display.
title The text in the Alert title bar. This parameter is optional; if you omit it, the title bar is blank.
flags An optional parameter that indicates the buttons to display in the Alert window. The default value is Alert.OK, which displays an OK button. When you use more than one value, separate the values with a | character. Use one or more of the following values: Alert.OK , Alert.CANCEL , Alert.YES , Alert.NO .
You can also use Alert.NONMODAL to indicate that the Alert window is nonmodal. A nonmodal window allows a user to interact with other windows in the application.
parent The parent window for the Alert component. The Alert window centers itself in the parent window. Use the value null or undefined to specify the _root timeline. The parent window must be a subclass of the UIComponent class, either as another Flash component that is a subclass of UIComponent, or as a custom window that is a subclass of the UIComponent (for more information see About inheritance in Learning ActionScript 2.0 in Adobe Flash). This parameter is optional.
clickHandler A handler for the click events broadcast when the buttons are clicked. In addition to the standard click event object properties, there is an additional detail property, which contains the flag value of the button that was clicked (Alert.OK, Alert.CANCEL, Alert.YES, Alert.NO). This handler can be a function or an object. For more information, see Using listeners to handle events in Using ActionScript 2.0 Components.
icon A string that is the linkage identifier of a symbol in the library; this symbol is used as an icon displayed to the left of the alert text. This parameter is optional.
defaultButton Indicates which button has initial focus and is clicked when a user presses Enter (Windows) or Return (Macintosh). If a user tabs to another button, that button is triggered when the Enter key is pressed.
This parameter can be one of the following values: Alert.OK , Alert.CANCEL , Alert.YES , Alert.NO .
Returns
The Alert instance that is created.
Description
Method (class); a class (static) method that displays an Alert window with a message, an optional title, optional buttons, and an optional icon. The title of the alert appears at the top of the window and is left-aligned. The icon appears to the left of the message text. The buttons are centered below the message text and the icon.
The following code is a simple example of a modal Alert window with an OK button:
The following code defines a click handler that sends a message to the Output panel about which button was clicked. (You must have an Alert component in the library for this code to display an alert; to add the component to the library, drag it to the Stage and then delete it):
������� � html ����� swf
������� ����� � ������� PDF � HTML
���� ������! ���������� ������ � ����. �� �������� ����� ����� �������� �������� PDF. ����� ����.
������ Swf � html
����-�������. ��� ������������� ����-����� � ���� ���? �������� ����� ��������� ������������.
����� � Html ����� swf
������������, ����������, ����������, ��� ��� ��������� ����� �� ��� ����� ����� �����-�� swf.
Html- ���������� swf ��� �������� ��������
������������. ���������� ����������: ��� �������, ����� ��� �������� �������� ���� ��� ����������.
html ������� ������������
01.05.2012, 19:13 | 2 |
02.05.2012, 17:15 [��] | 3 |
����� ������ �����?! ��������� ����� 5 ����� ��������� ����� 18 ����� ��������� ����� 49 ������ |
02.05.2012, 17:15 |
������� Fancybox � .html HTML �� ���������� ������� ����������� ������� ����������� � html �������� ��� ����� ��� swf_modifyobject��� HTML ��� ������� ���� �� ����� ������� ����. ��� ����� ������ ������ ���� � ������ � (������������� �� �������� ���������� ����-������ * .swf ) ������ ��� ��� �� �������. 1) �������� ��� ���� ���: 2) �������� ���� �������� ���� � �������� �� ������ HTML . ��� ��� �� ������, ������� �� ��������� ��� ������� �����. 3) � ����������� ���� ��������� ������������� ���. 4) �������� ����� « ������ �� ���� » 2 ���� �� ������ �� ����. ��� ������ ��������� �� ������ http://www.pineapple.ru/farb/bufa_boo.swf � ��� ����� �� �������� ������ ��������, �� ����� ���� � ��� ��������. 5) ������� ���� ��������, ��� � ���� HTML ������������ �����. � ������ ���� ��� 450 � 300 . �� ���� ����� ��������, ��� ����, ����� ��������� ��� ��������� ������� ������. ��������: ��������� ��� ������ �� ���� �����������, � �� �������� ���������. 6) �����, �������� ������ « �������� «. �������� ����� �������������. ��� ��� � ���� ���� ������. 7) ���� ������ ������ �������� �� ����� (����� ��� ��������), �� �������� « ������������ «. ���������� ��� ������������� �������� ������ : ��� ��������� �������� ����������� ����� ����� � ���� HTML �� ��������. � ������ ����� ������� ������ » �������� «, ����� �������� ����� �������������, �������� �� ���� � ��������� ��� �����, ������� �������� ���� �� ������ ��� � ������ ������ ��������������. � ���: ���������� ���� ���� ��� HTML � Word ��� » ������� » � ���������, ����� ����� ����� �� ������. ��� ������ ������� ���� ���, ���������� � ����������� txt �����. ��� ��� ����������. ��� ������� ������ ������� GO. ��� ����� ��� swf_modifyobjectSWFObject is no longer in active development. Flash Player is on the decline, and the authors of SWFObject have moved on to other projects. This project is being left on GitHub for historical purposes. SWFObject is a free, open-source tool for embedding swf content in websites. This GitHub edition of SWFObject is our 2.3 beta. The current release � 2.2 � is still available for download at code.google.com/p/swfobject/ SWFObject 2.3 introduces many small changes under the hood (almost exclusively aimed at fixing bugs), but the public API is mostly unchanged and completely backwards compatible with SWFObject 2.2. The only two significant changes to the API: You may now pass an element as an argument in embedSWF (in place of an ID) You may now use integers in place of number strings in embedSWF (e.g. 9 instead of �9�). Another significant change: SWFObject’s approach to dynamic embedding in Internet Explorer has been updated to use a more W3C-friendly way of creating the Similarly, since the elements are all generated using the same W3C techniques, encoding flashvars should be less troublesome. Developers will no longer need to create separate flashvars encoding workflows for IE and non-IE browsers. swf_modifyobjectswf_modifyobject � Modify an object ОписаниеUpdates the position and/or color of the object at the specified depth . Список параметровThe depth, as an integer. Determines what is updated. how can either be the constant MOD_MATRIX or MOD_COLOR or it can be a combination of both. MOD_COLOR uses the current mulcolor (specified by the function swf_mulcolor() ) and addcolor (specified by the function swf_addcolor() ) to color the object. MOD_MATRIX uses the current matrix to position the object. Возвращаемые значенияЭта функция не возвращает значения после выполнения. ��� ����� ��� swf_modifyobjectswf_modifyobject — ������������ ������. ��������void swf_modifyobject (int depth, int how) ��������� ������� �/��� ���� ������� �� ����������������� ������� depth . �������� how ����������, ��� ���������. how ����� ���� ���������� MOD_MATRIX ��� MOD_COLOR ��� ����������� ����� (MOD_MATRIX|MOD_COLOR). MOD_COLOR ���������� ������� mulcolor (����������������� �������� swf_mulcolor() ) � addcolor (����������������� �������� swf_addcolor() ) ��� ��������� �������. MOD_MATRIX ���������� ������� ������� ��� ���������������� �������. |