<?xml version="1.0" encoding="windows-1251"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Flash Обучение - Уроки Flash - Все о Flash | Флеш - Flash Уроки Скачать, Скачать Видео Обучение Во Flash, Flash Видео Уроки, Статьи Flash, Flash Игры, Книги О Flash.</title>
<link>http://easyflash.org/</link>
<language>ru</language>
<description>Flash Обучение - Уроки Flash - Все о Flash | Флеш - Flash Уроки Скачать, Скачать Видео Обучение Во Flash, Flash Видео Уроки, Статьи Flash, Flash Игры, Книги О Flash.</description>
<generator>DataLife Engine</generator><item>
<title>Использование библиотеки Graffiti Library 2.5</title>
<guid isPermaLink="true">http://easyflash.org/flashlearn/flatexttutorials/897-ispolzovanie-biblioteki-graffiti-library-25.html</guid>
<link>http://easyflash.org/flashlearn/flatexttutorials/897-ispolzovanie-biblioteki-graffiti-library-25.html</link>
<description><![CDATA[<p style="text-align: center;"><img title="Пример" src="http://i8.fastpic.ru/big/2010/0703/38/668a94933066692ed27ba70a2f60f238.jpg" alt="вот что можно сделать при помощи этой библиотеки" width="450" height="331" /></p>
<p>Видел много постов где люди просят сделать или описать как сделать примитивный графический редактор.</p>
<p>Так вот я наткнулся на уже готовый пакет. Чтобы было понятнее, это на подобии PaperVision 3D только не для 3D а для создания графического редактора.</p>
<p>Подумал, что новичкам очень будет интересно сделать свой собственный редактор.</p>]]></description>
<category><![CDATA[Flash Уроки Текстом]]></category>
<dc:creator>Worfollomey</dc:creator>
<pubDate>Mon, 05 Jul 2010 18:51:17 +0300</pubDate>
</item><item>
<title>BTL (моя игра)</title>
<guid isPermaLink="true">http://easyflash.org/flashlearn/yourflashwork/900-btl-moya-igra.html</guid>
<link>http://easyflash.org/flashlearn/yourflashwork/900-btl-moya-igra.html</link>
<description><![CDATA[<p><div align="center"><!--TBegin--><a href="http://easyflash.org/uploads/posts/2010-07/1278345915_9698041851.png" onclick="return hs.expand(this)" ><img src="http://easyflash.org/uploads/posts/2010-07/thumbs/1278345915_9698041851.png" alt='BTL (моя игра)' title='BTL (моя игра)'  /></a><!--TEnd--></div></p>
<p><strong>Название:</strong> BTL<br /><strong>Жанр:</strong> не поймёшь. мультиплеерная на одном компьютере.<br /><strong>Автор:</strong> Deniiel3@mail.ru<br /><strong>Управление:</strong> Внутри есть Readme.<br /><strong>Редактор:</strong> Есть</p>]]></description>
<category><![CDATA[Ваши flash работы]]></category>
<dc:creator>Дэнииэль</dc:creator>
<pubDate>Mon, 05 Jul 2010 08:22:15 +0300</pubDate>
</item><item>
<title>Пчелка</title>
<guid isPermaLink="true">http://easyflash.org/flashlearn/yourflashwork/884-pchelka.html</guid>
<link>http://easyflash.org/flashlearn/yourflashwork/884-pchelka.html</link>
<description><![CDATA[<p>Вот картинка, из которой сделал:</p>
<p style="text-align: center;"><img style="vertical-align: middle;" src="http://s003.radikal.ru/i201/1006/dd/43a0624fd737.jpg" alt="вжж" width="300" height="300" /></p>]]></description>
<category><![CDATA[Ваши flash работы]]></category>
<dc:creator>rest</dc:creator>
<pubDate>Fri, 02 Jul 2010 03:16:49 +0300</pubDate>
</item><item>
<title>Презентация - Технология Flash</title>
<guid isPermaLink="true">http://easyflash.org/flashlearn/yourflashwork/876-prezentaciya-texnologiya-flash.html</guid>
<link>http://easyflash.org/flashlearn/yourflashwork/876-prezentaciya-texnologiya-flash.html</link>
<description><![CDATA[<div style="text-align: center;"><img src="http://easyflash.org/uploads/posts/2010-06/1276512341_bez-imeni-2.jpg" border="0" alt="" /></div>
<p>Презентация посвященная flash-технологиям!!!</p>]]></description>
<category><![CDATA[Ваши flash работы]]></category>
<dc:creator>mony</dc:creator>
<pubDate>Fri, 02 Jul 2010 03:11:40 +0300</pubDate>
</item><item>
<title>Flash-визитка (XML+AS3)</title>
<guid isPermaLink="true">http://easyflash.org/flashlearn/yourflashwork/878-flash-vizitka-xmlas3.html</guid>
<link>http://easyflash.org/flashlearn/yourflashwork/878-flash-vizitka-xmlas3.html</link>
<description><![CDATA[<img src="file:///C:/Users/%D0%98%D0%BB%D1%8C%D1%8F/Desktop/vizitka2.jpg" alt="" />
<p style="text-align: center;"><img src="http://ily294.narod.ru/vizitka2.jpg" alt="" /></p>
<p>Описание: Пример Flash визитки сделанной на основе XML+AS3</p>]]></description>
<category><![CDATA[Ваши flash работы]]></category>
<dc:creator>ily294</dc:creator>
<pubDate>Thu, 17 Jun 2010 17:29:55 +0300</pubDate>
</item><item>
<title>Видеоплеер</title>
<guid isPermaLink="true">http://easyflash.org/flashlearn/yourflashwork/875-videopleer.html</guid>
<link>http://easyflash.org/flashlearn/yourflashwork/875-videopleer.html</link>
<description><![CDATA[<div style="text-align: center;"><img src="http://easyflash.org/uploads/posts/2010-06/1276492237_wow.jpg" border="0" alt="" /></div>
<p><span style="font-family: Arial, &amp;amp;amp;"><span style="font-size: x-small;">Видеоплеер на AS2.0!!!!!!</span></span><span style="font-family: Arial, &amp;amp;amp;"><span style="font-size: x-small;">!!!!!</span></span></p>]]></description>
<category><![CDATA[Ваши flash работы]]></category>
<dc:creator>mony</dc:creator>
<pubDate>Thu, 17 Jun 2010 17:20:37 +0300</pubDate>
</item><item>
<title>вывод списка друзей (vkontakte.ru)</title>
<guid isPermaLink="true">http://easyflash.org/flashlearn/flatexttutorials/874-getfriends_vkontakte.html</guid>
<link>http://easyflash.org/flashlearn/flatexttutorials/874-getfriends_vkontakte.html</link>
<description><![CDATA[<div style="text-align: center;">
<div style="text-align: center;"><!--TBegin--><a href="http://easyflash.org/uploads/posts/2010-06/1276450375_329779471.png" onclick="return hs.expand(this)" ><img src="http://easyflash.org/uploads/posts/2010-06/thumbs/1276450375_329779471.png" alt='вывод списка друзей (vkontakte.ru)' title='вывод списка друзей (vkontakte.ru)'  /></a><!--TEnd--></div>
</div>
<div style="text-align: left;"><span style="font-size: small;">Как выводить список друзей в приложении и показывать аватар выбранного друга, независимо от их количества, в полной новости.</span></div>]]></description>
<category><![CDATA[Flash Уроки Текстом]]></category>
<dc:creator>lewka151</dc:creator>
<pubDate>Thu, 17 Jun 2010 16:59:49 +0300</pubDate>
</item><item>
<title>Создание покадровой анимации</title>
<guid isPermaLink="true">http://easyflash.org/flashlearn/flashvideotutorials/868-chelovechki.html</guid>
<link>http://easyflash.org/flashlearn/flashvideotutorials/868-chelovechki.html</link>
<description><![CDATA[<p style="text-align: center;"><!--dle_flash_begin:425||264||http://easyflash.org/uploads/files/1275766364_man.swf--><object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' width='425' height='264'><param name='movie' value='http://easyflash.org/uploads/files/1275766364_man.swf'><param name='wmode' value='transparent' /><param name='play' value='true'><param name='loop' value='true'><param name='quality' value='high'><param name='allowscriptaccess' value='never'><embed AllowScriptAccess='never' src='http://easyflash.org/uploads/files/1275766364_man.swf' width='425' height='264' play='true' loop='true' quality='high' wmode='transparent'></embed></object><!--dle_flash_end--></p>
<p style="text-align: center;">Как анимровать простых человечков в полной новости</p>]]></description>
<category><![CDATA[Видео Уроки Flash]]></category>
<dc:creator>TeT</dc:creator>
<pubDate>Sat, 05 Jun 2010 22:38:59 +0300</pubDate>
</item><item>
<title>Чат по средствам VkApi</title>
<guid isPermaLink="true">http://easyflash.org/flashlearn/flatexttutorials/857-4at_vkapi.html</guid>
<link>http://easyflash.org/flashlearn/flatexttutorials/857-4at_vkapi.html</link>
<description><![CDATA[<p><div align="center"><!--TBegin--><a href="http://easyflash.org/uploads/posts/2010-05/1274977212_328302352.png" onclick="return hs.expand(this)" ><img src="http://easyflash.org/uploads/posts/2010-05/thumbs/1274977212_328302352.png" alt='Чат по средствам VkApi' title='Чат по средствам VkApi'  /></a><!--TEnd--></div></p>
<p><span style="font-size: small;"><span style="color: #000000;">Сегодня я вам покажу как сделать простой, но  рабочий чат для сайта Vkontakte.ru используя только VkApi</span></span></p>
<div style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow: hidden;" id="_mcePaste">
<p>Приступим к стозданию чата. Для начала <a href="http://vkontakte.ru/apps.php?act=add" target="_blank">создаем приложение</a>:</p>
<p>&nbsp;</p>
<div style="text-align: center;"><!--TBegin--><a href="http://easyflash.org/uploads/posts/2010-05/1274972846_328302233.png" onclick="return hs.expand(this)" ><img src="http://easyflash.org/uploads/posts/2010-05/thumbs/1274972846_328302233.png" alt='Чат по средствам VkApi' title='Чат по средствам VkApi'  /></a><!--TEnd--></div>
<p>&nbsp;</p>
<p>Теперь  запомним некоторые данные, которые мы получили при  создании:</p>
<div style="text-align: center;"><!--TBegin--><a href="http://easyflash.org/uploads/posts/2010-05/1274973076_328301467.png" onclick="return hs.expand(this)" ><img src="http://easyflash.org/uploads/posts/2010-05/thumbs/1274973076_328301467.png" alt='Чат по средствам VkApi' title='Чат по средствам VkApi'  /></a><!--TEnd--></div>
<br />Далее  настраиваем прложение таким образом:
<p>&nbsp;</p>
<div style="text-align: center;"><img src="http://easyflash.org/uploads/posts/2010-05/1274973295_328301513.png" border="0" alt="" /></div>
<p><br />Теперь открываем <strong>adobe Flash</strong> и создаем новый<strong> Файл Flash(ActionScript3)</strong>. Нажимаем <strong>Ctrl+F7</strong>&nbsp;  и из появившегося окна на сцену тащим: <strong>Button</strong>, <strong>TaxtArea</strong> и  <strong>TextInput</strong>. Теперь обзываем Button - btn, TextArea - pole а  TextInput - Mess_tf. Нажимаем <strong>F9</strong>. В окне редактирования ода  пишем:</p>
<p><!--codesourse:W2NvZGU9YWN0aW9uc2NyaXB0M108L3A+DQo8cD5pbXBvcnQgdmsuKjs8YnIgLz4gLy/o7O/u8vDo8vPl7CDi8eUg9/LuIO3g7CDt4OTuPC9wPg0KPHA+Ly/i8eUg/fLuIO3l7uH17uTo7O7lIOXx8vwg4iDg8PXo4uUgIPEg6PH17uTt6Oru7DxiciAvPjxiciAvPnZhciBhcGlfaWQ6TnVtYmVyID0xNjA1MzgzOy8vSUQg7/Do6+7m5e3o/ywg6u7y7vDu5SAg7Psg7+7r8/fo6+gg4u3g9+Dr5TxiciAvPnZhciBhcGlfc2VjcmV0OlN0cmluZyA9IFwiSVF5Zm5oamxUY1wiOy8v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DAwMDgwXCImZ3Q7Jmx0O2EgIGhyZWY9XCJodHRwOi8vdmtvbnRha3RlLnJ1L2lkJytzYXZlLmNoaWxkcmVuKClbaV0udXNlcl9pZCsgJ1wiJmd0OycgKyAgc2F2ZS5jaGlsZHJlbigpW2ldLnVzZXJfbmFtZSArICcmbHQ7L2EmZ3Q7JysgXCImbHQ7L2ZvbnQmZ3Q7Jmx0Oy9iJmd0OzogXCIgICsgc2F2ZS5jaGlsZHJlbigpW2ldLm1lc3NhZ2U7Ly/k7uHg4uv/5ewg8fLw7urzIPEg5ePuIOjs5e3l7CDxIPHx++vq7ukgIO3gIOXj7iDx8vDg7ej36vMg8ejt5ePuIPbi5fLgPGJyIC8+Jm5ic3A7Jm5ic3A7ICZuYnNwOyZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7fTxiciAvPiZuYnNwOyZuYnNwOyAmbmJzcDsmbmJzcDsmbmJzcDsgJm5ic3A7fTxiciAvPiZuYnNwOyZuYnNwOyAmbmJzcDt9PGJyIC8+fTwvcD4NCjxwPlsvY29kZV0=--><!--codeview1--><div class="scriptcode"><!--ecodeview1--><pre class="actionscript3" style="font-family:monospace;"><span style="color: #000066; font-weight: bold;">&lt;/</span>p<span style="color: #000066; font-weight: bold;">&gt;</span>
<span style="color: #000066; font-weight: bold;">&lt;</span>p<span style="color: #000066; font-weight: bold;">&gt;</span>import vk<span style="color: #000066; font-weight: bold;">.*;</span>
 <span style="color: #009900; font-style: italic;">//импотритуем все что нам надо&lt;/p&gt;</span>
<span style="color: #000066; font-weight: bold;">&lt;</span>p<span style="color: #000066; font-weight: bold;">&gt;</span><span style="color: #009900; font-style: italic;">//все это необходимое есть в архиве  с исходником</span>
&nbsp;
<span style="color: #6699cc; font-weight: bold;">var</span> api_id<span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=number%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:number.html"><span style="color: #004993;">Number</span></a> =<span style="color: #000000; font-weight:bold;">1605383</span><span style="color: #000066; font-weight: bold;">;</span><span style="color: #009900; font-style: italic;">//ID приложения, которое  мы получили вначале</span>
<span style="color: #6699cc; font-weight: bold;">var</span> api_secret<span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=string%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:string.html"><span style="color: #004993;">String</span></a> = <span style="color: #990000;">&quot;IQyfnhjlTc&quot;</span><span style="color: #000066; font-weight: bold;">;</span><span style="color: #009900; font-style: italic;">//Ключ  приложения, которое мы получили вначале</span>
<span style="color: #6699cc; font-weight: bold;">var</span> viewer_id<span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=number%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:number.html"><span style="color: #004993;">Number</span></a><span style="color: #000066; font-weight: bold;">;</span><span style="color: #009900; font-style: italic;">//id  пользователя который просматривает приложение</span>
<span style="color: #6699cc; font-weight: bold;">var</span>  url_loader1<span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=urlloader%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:urlloader.html"><span style="color: #004993;">URLLoader</span></a> = <span style="color: #0033ff; font-weight: bold;">new</span> <a href="http://www.google.com/search?q=urlloader%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:urlloader.html"><span style="color: #004993;">URLLoader</span></a><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><span style="color: #009900; font-style: italic;">//лоадеры</span>
<span style="color: #6699cc; font-weight: bold;">var</span>  url_request1<span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=urlrequest%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:urlrequest.html"><span style="color: #004993;">URLRequest</span></a> = <span style="color: #0033ff; font-weight: bold;">new</span> <a href="http://www.google.com/search?q=urlrequest%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:urlrequest.html"><span style="color: #004993;">URLRequest</span></a><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #6699cc; font-weight: bold;">var</span> url_loader2<span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=urlloader%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:urlloader.html"><span style="color: #004993;">URLLoader</span></a>  = <span style="color: #0033ff; font-weight: bold;">new</span> <a href="http://www.google.com/search?q=urlloader%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:urlloader.html"><span style="color: #004993;">URLLoader</span></a><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #6699cc; font-weight: bold;">var</span> url_request2<span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=urlrequest%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:urlrequest.html"><span style="color: #004993;">URLRequest</span></a> = <span style="color: #0033ff; font-weight: bold;">new</span> <a href="http://www.google.com/search?q=urlrequest%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:urlrequest.html"><span style="color: #004993;">URLRequest</span></a><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #6699cc; font-weight: bold;">var</span>  url_loader3<span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=urlloader%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:urlloader.html"><span style="color: #004993;">URLLoader</span></a> = <span style="color: #0033ff; font-weight: bold;">new</span> <a href="http://www.google.com/search?q=urlloader%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:urlloader.html"><span style="color: #004993;">URLLoader</span></a><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #6699cc; font-weight: bold;">var</span> url_request3<span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=urlrequest%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:urlrequest.html"><span style="color: #004993;">URLRequest</span></a>  = <span style="color: #0033ff; font-weight: bold;">new</span> <a href="http://www.google.com/search?q=urlrequest%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:urlrequest.html"><span style="color: #004993;">URLRequest</span></a><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #6699cc; font-weight: bold;">var</span> api<span style="color: #000066; font-weight: bold;">:</span>VkApiNode<span style="color: #000066; font-weight: bold;">;</span><span style="color: #009900; font-style: italic;">//создаем переменную класса,  каждый вызов к Api буде создаваться ее экземпляр</span>
<span style="color: #6699cc; font-weight: bold;">var</span> query<span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=string%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:string.html"><span style="color: #004993;">String</span></a><span style="color: #000066; font-weight: bold;">;</span><span style="color: #009900; font-style: italic;">//  переменная пути запроса в URL, а данные будут передаваться методом GET</span>
<span style="color: #6699cc; font-weight: bold;">var</span>  <span style="color: #004993;">timer</span><span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=timer%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:timer.html"><span style="color: #004993;">Timer</span></a> = <span style="color: #0033ff; font-weight: bold;">new</span> <a href="http://www.google.com/search?q=timer%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:timer.html"><span style="color: #004993;">Timer</span></a><span style="color: #000000;">&#40;</span>2500<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><span style="color: #009900; font-style: italic;">//таймер, по срабатыванию которого будем  обновять поле сообщений 2.5, самое оптималное время, но меняйте как душе  угодно</span>
<span style="color: #6699cc; font-weight: bold;">var</span> <span style="color: #004993;">save</span><span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=xml%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:xml.html"><span style="color: #004993;">XML</span></a>=<span style="color: #0033ff; font-weight: bold;">new</span> <a href="http://www.google.com/search?q=xml%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:xml.html"><span style="color: #004993;">XML</span></a><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><span style="color: #009900; font-style: italic;">//XML который хранит сообщения</span>
<span style="color: #6699cc; font-weight: bold;">var</span>  VkAvatar<span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=loader%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:loader.html"><span style="color: #004993;">Loader</span></a> = <span style="color: #0033ff; font-weight: bold;">new</span> <a href="http://www.google.com/search?q=loader%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:loader.html"><span style="color: #004993;">Loader</span></a><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><span style="color: #009900; font-style: italic;">//Лоадер для аватара</span>
<span style="color: #6699cc; font-weight: bold;">var</span>  VkAvatarUrl<span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=urlrequest%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:urlrequest.html"><span style="color: #004993;">URLRequest</span></a> = <span style="color: #0033ff; font-weight: bold;">new</span> <a href="http://www.google.com/search?q=urlrequest%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:urlrequest.html"><span style="color: #004993;">URLRequest</span></a><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><span style="color: #009900; font-style: italic;">//путь аватара</span>
<span style="color: #6699cc; font-weight: bold;">var</span>  wrapper<span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=object%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:object.html"><span style="color: #004993;">Object</span></a><span style="color: #000066; font-weight: bold;">;</span><span style="color: #009900; font-style: italic;">//обьект &lt;&lt;контейнер&gt;&gt;, который загружает в  себя приложение</span>
&nbsp;
<span style="color: #0033ff; font-weight: bold;">this</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span> <a href="http://www.google.com/search?q=event%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:event.html"><span style="color: #004993;">Event</span></a><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">ADDED_TO_STAGE</span><span style="color: #000066; font-weight: bold;">,</span>  onAddedToStage <span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><span style="color: #009900; font-style: italic;">//событие произойдет, когда контейнер полностью  загрузит приложение</span>
&nbsp;
<span style="color: #339966; font-weight: bold;">function</span> onAddedToStage<span style="color: #000000;">&#40;</span>e<span style="color: #000066; font-weight: bold;">:</span> <a href="http://www.google.com/search?q=event%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:event.html"><span style="color: #004993;">Event</span></a><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span>
     <a href="http://www.google.com/search?q=security%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:security.html"><span style="color: #004993;">Security</span></a><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">allowDomain</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;*&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
    <span style="color: #004993;">stage</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">dispatchEvent</span><span style="color: #000000;">&#40;</span><span style="color: #0033ff; font-weight: bold;">new</span>  <a href="http://www.google.com/search?q=event%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:event.html"><span style="color: #004993;">Event</span></a><span style="color: #000000;">&#40;</span><a href="http://www.google.com/search?q=event%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:event.html"><span style="color: #004993;">Event</span></a><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">DEACTIVATE</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><span style="color: #009900; font-style: italic;">//решение проблемы неработоспособности  некоторых элементов</span>
    <span style="color: #004993;">stage</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">dispatchEvent</span><span style="color: #000000;">&#40;</span><span style="color: #0033ff; font-weight: bold;">new</span>  <a href="http://www.google.com/search?q=event%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:event.html"><span style="color: #004993;">Event</span></a><span style="color: #000000;">&#40;</span><a href="http://www.google.com/search?q=event%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:event.html"><span style="color: #004993;">Event</span></a><span style="color: #000066; font-weight: bold;">.</span>ACTIVATE<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
    wrapper =  <a href="http://www.google.com/search?q=object%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:object.html"><span style="color: #004993;">Object</span></a><span style="color: #000000;">&#40;</span><span style="color: #0033ff; font-weight: bold;">this</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">parent</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">parent</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><span style="color: #009900; font-style: italic;">//определяем контейнер</span>
    viewer_id =  wrapper<span style="color: #000066; font-weight: bold;">.</span>application<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">parameters</span><span style="color: #000066; font-weight: bold;">.</span>viewer_id<span style="color: #000066; font-weight: bold;">;</span><span style="color: #009900; font-style: italic;">//передаем переменной знчение  id просматривающего приложение</span>
    <span style="color: #004993;">timer</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">start</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><span style="color: #009900; font-style: italic;">//запускаем таймер</span>
&nbsp;
     <span style="color: #004993;">stage</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><a href="http://www.google.com/search?q=event%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:event.html"><span style="color: #004993;">Event</span></a><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">ENTER_FRAME</span><span style="color: #000066; font-weight: bold;">,</span> Emess<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><span style="color: #009900; font-style: italic;">//добавляем слушатели</span>
     btn<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><a href="http://www.google.com/search?q=mouseevent%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:mouseevent.html"><span style="color: #004993;">MouseEvent</span></a><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">CLICK</span><span style="color: #000066; font-weight: bold;">,</span> onMessGo<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
     <span style="color: #004993;">timer</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><a href="http://www.google.com/search?q=timerevent%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:timerevent.html"><span style="color: #004993;">TimerEvent</span></a><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">TIMER</span><span style="color: #000066; font-weight: bold;">,</span> onGetMess<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
     Mes_tf<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><a href="http://www.google.com/search?q=keyboardevent%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:keyboardevent.html"><span style="color: #004993;">KeyboardEvent</span></a><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">KEY_DOWN</span><span style="color: #000066; font-weight: bold;">,</span> onMessOtpr<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
     api=<span style="color: #0033ff; font-weight: bold;">new</span> VkApiNode<span style="color: #000000;">&#40;</span>viewer_id<span style="color: #000066; font-weight: bold;">,</span>api_id<span style="color: #000066; font-weight: bold;">,</span>api_secret<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><span style="color: #009900; font-style: italic;">//загружаем профиль  пользователя и самый маленький аватар(photo_medium и photo_big большее  размеры), который просматривает приложение</span>
     query=api<span style="color: #000066; font-weight: bold;">.</span>getProfiles<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#91;</span>viewer_id<span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000;">&#91;</span><span style="color: #990000;">'photo'</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
    url_request3=<span style="color: #0033ff; font-weight: bold;">new</span>  <a href="http://www.google.com/search?q=urlrequest%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:urlrequest.html"><span style="color: #004993;">URLRequest</span></a><span style="color: #000000;">&#40;</span>query<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
    url_loader3=<span style="color: #0033ff; font-weight: bold;">new</span> <a href="http://www.google.com/search?q=urlloader%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:urlloader.html"><span style="color: #004993;">URLLoader</span></a><span style="color: #000066; font-weight: bold;">;</span>
     url_loader3<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><a href="http://www.google.com/search?q=event%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:event.html"><span style="color: #004993;">Event</span></a><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">COMPLETE</span><span style="color: #000066; font-weight: bold;">,</span> EComplet2<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><span style="color: #009900; font-style: italic;">//событие  произойдет когда профиль загрузится</span>
     url_loader3<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">load</span><span style="color: #000000;">&#40;</span>url_request3<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #000000;">&#125;</span>
&nbsp;
<span style="color: #339966; font-weight: bold;">function</span>  EComplet2<span style="color: #000000;">&#40;</span>e<span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=event%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:event.html"><span style="color: #004993;">Event</span></a><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span>
<span style="color: #000000;">&#123;</span>
    <span style="color: #6699cc; font-weight: bold;">var</span> XmlO<span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=xml%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:xml.html"><span style="color: #004993;">XML</span></a> = <span style="color: #0033ff; font-weight: bold;">new</span>  <a href="http://www.google.com/search?q=xml%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:xml.html"><span style="color: #004993;">XML</span></a><span style="color: #000000;">&#40;</span>url_loader3<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">data</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><span style="color: #009900; font-style: italic;">//создаем переменную хранящую профиль</span>
     VkAvatarUrl = <span style="color: #0033ff; font-weight: bold;">new</span> <a href="http://www.google.com/search?q=urlrequest%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:urlrequest.html"><span style="color: #004993;">URLRequest</span></a><span style="color: #000000;">&#40;</span>XmlO<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">children</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#91;</span>0<span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">.</span>photo<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><span style="color: #009900; font-style: italic;">//загружаем  аватар</span>
    VkAvatar<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">load</span><span style="color: #000000;">&#40;</span>VkAvatarUrl<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
     VkAvatar<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">contentLoaderInfo</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><a href="http://www.google.com/search?q=event%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:event.html"><span style="color: #004993;">Event</span></a><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">COMPLETE</span><span style="color: #000066; font-weight: bold;">,</span>  onVkAvatar<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><span style="color: #009900; font-style: italic;">//событие произойдет когда аватар загрузится</span>
<span style="color: #000000;">&#125;</span>
<span style="color: #339966; font-weight: bold;">function</span>  onVkAvatar<span style="color: #000000;">&#40;</span>e<span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=event%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:event.html"><span style="color: #004993;">Event</span></a><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span>
<span style="color: #000000;">&#123;</span>
    VkAvatar<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">x</span> = <span style="color: #000000; font-weight:bold;">2</span><span style="color: #000066; font-weight: bold;">;</span>
    VkAvatar<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">y</span> =  <span style="color: #000000; font-weight:bold;">2</span><span style="color: #000066; font-weight: bold;">;</span>
    <span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>VkAvatar<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><span style="color: #009900; font-style: italic;">//добавляем на сцену аватар</span>
<span style="color: #000000;">&#125;</span>
<span style="color: #339966; font-weight: bold;">function</span>  onMessOtpr<span style="color: #000000;">&#40;</span>e<span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=keyboardevent%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:keyboardevent.html"><span style="color: #004993;">KeyboardEvent</span></a><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span>
<span style="color: #000000;">&#123;</span>
    <span style="color: #0033ff; font-weight: bold;">if</span><span style="color: #000000;">&#40;</span>e<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">keyCode</span> == <span style="color: #000000; font-weight:bold;">13</span><span style="color: #000000;">&#41;</span><span style="color: #009900; font-style: italic;">//если  пользавеиель нажал клавишу Enter</span>
    <span style="color: #000000;">&#123;</span>
        <span style="color: #0033ff; font-weight: bold;">if</span><span style="color: #000000;">&#40;</span>Mes_tf<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">text</span> <span style="color: #000066; font-weight: bold;">!</span>==  <span style="color: #990000;">&quot;&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #009900; font-style: italic;">//если пое для ввода сообщений не пустое</span>
        <span style="color: #000000;">&#123;</span>
             api=<span style="color: #0033ff; font-weight: bold;">new</span> VkApiNode<span style="color: #000000;">&#40;</span>viewer_id<span style="color: #000066; font-weight: bold;">,</span>api_id<span style="color: #000066; font-weight: bold;">,</span>api_secret<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><span style="color: #009900; font-style: italic;">//деаем запрос и ставим  сообщение в очередь</span>
              query=api<span style="color: #000066; font-weight: bold;">.</span>sendMessage<span style="color: #000000;">&#40;</span>Mes_tf<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">text</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
             url_request1=<span style="color: #0033ff; font-weight: bold;">new</span> <a href="http://www.google.com/search?q=urlrequest%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:urlrequest.html"><span style="color: #004993;">URLRequest</span></a><span style="color: #000000;">&#40;</span>query<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
                url_loader1=<span style="color: #0033ff; font-weight: bold;">new</span> <a href="http://www.google.com/search?q=urlloader%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:urlloader.html"><span style="color: #004993;">URLLoader</span></a><span style="color: #000066; font-weight: bold;">;</span>
                url_loader1<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">load</span><span style="color: #000000;">&#40;</span>url_request1<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
            Mes_tf<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">text</span> = <span style="color: #990000;">&quot;&quot;</span><span style="color: #000066; font-weight: bold;">;</span>
         <span style="color: #000000;">&#125;</span>
    <span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span>
&nbsp;
<span style="color: #339966; font-weight: bold;">function</span> Emess<span style="color: #000000;">&#40;</span>e<span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=event%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:event.html"><span style="color: #004993;">Event</span></a><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span>
<span style="color: #000000;">&#123;</span>
     <span style="color: #0033ff; font-weight: bold;">if</span><span style="color: #000000;">&#40;</span>Mes_tf<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">text</span> == <span style="color: #990000;">&quot;&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #009900; font-style: italic;">//если поле пустое на кнопку нажать нельзя</span>
     <span style="color: #000000;">&#123;</span>
        btn<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">enabled</span> = <span style="color: #0033ff; font-weight: bold;">false</span><span style="color: #000066; font-weight: bold;">;</span>
    <span style="color: #000000;">&#125;</span><span style="color: #0033ff; font-weight: bold;">else</span><span style="color: #000000;">&#123;</span><span style="color: #009900; font-style: italic;">//если нет то можно</span>
         btn<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">enabled</span> = <span style="color: #0033ff; font-weight: bold;">true</span><span style="color: #000066; font-weight: bold;">;</span>
    <span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span>
<span style="color: #339966; font-weight: bold;">function</span>  onMessGo<span style="color: #000000;">&#40;</span>e<span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=mouseevent%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:mouseevent.html"><span style="color: #004993;">MouseEvent</span></a><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span>
<span style="color: #000000;">&#123;</span>
    api=<span style="color: #0033ff; font-weight: bold;">new</span>  VkApiNode<span style="color: #000000;">&#40;</span>viewer_id<span style="color: #000066; font-weight: bold;">,</span>api_id<span style="color: #000066; font-weight: bold;">,</span>api_secret<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><span style="color: #009900; font-style: italic;">//деаем запрос и ставим сообщение  в очередь</span>
    query=api<span style="color: #000066; font-weight: bold;">.</span>sendMessage<span style="color: #000000;">&#40;</span>Mes_tf<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">text</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
     url_request1=<span style="color: #0033ff; font-weight: bold;">new</span> <a href="http://www.google.com/search?q=urlrequest%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:urlrequest.html"><span style="color: #004993;">URLRequest</span></a><span style="color: #000000;">&#40;</span>query<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
    url_loader1=<span style="color: #0033ff; font-weight: bold;">new</span> <a href="http://www.google.com/search?q=urlloader%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:urlloader.html"><span style="color: #004993;">URLLoader</span></a><span style="color: #000066; font-weight: bold;">;</span>
     url_loader1<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">load</span><span style="color: #000000;">&#40;</span>url_request1<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
    Mes_tf<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">text</span> = <span style="color: #990000;">&quot;&quot;</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #000000;">&#125;</span>
<span style="color: #339966; font-weight: bold;">function</span>  onGetMess<span style="color: #000000;">&#40;</span>e<span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=timerevent%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:timerevent.html"><span style="color: #004993;">TimerEvent</span></a><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span>
<span style="color: #000000;">&#123;</span>
    api=<span style="color: #0033ff; font-weight: bold;">new</span>  VkApiNode<span style="color: #000000;">&#40;</span>viewer_id<span style="color: #000066; font-weight: bold;">,</span>api_id<span style="color: #000066; font-weight: bold;">,</span>api_secret<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><span style="color: #009900; font-style: italic;">//загружаем очередь сообщений</span>
     query=api<span style="color: #000066; font-weight: bold;">.</span>getMessages<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
    url_request2=<span style="color: #0033ff; font-weight: bold;">new</span> <a href="http://www.google.com/search?q=urlrequest%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:urlrequest.html"><span style="color: #004993;">URLRequest</span></a><span style="color: #000000;">&#40;</span>query<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
     url_loader2=<span style="color: #0033ff; font-weight: bold;">new</span> <a href="http://www.google.com/search?q=urlloader%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:urlloader.html"><span style="color: #004993;">URLLoader</span></a><span style="color: #000066; font-weight: bold;">;</span>
     url_loader2<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><a href="http://www.google.com/search?q=event%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:event.html"><span style="color: #004993;">Event</span></a><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">COMPLETE</span><span style="color: #000066; font-weight: bold;">,</span> EComplet<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
     url_loader2<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">load</span><span style="color: #000000;">&#40;</span>url_request2<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #000000;">&#125;</span>
<span style="color: #339966; font-weight: bold;">function</span> EComplet<span style="color: #000000;">&#40;</span>e<span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=event%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:event.html"><span style="color: #004993;">Event</span></a><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span>
     <span style="color: #0033ff; font-weight: bold;">if</span><span style="color: #000000;">&#40;</span><a href="http://www.google.com/search?q=xml%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:xml.html"><span style="color: #004993;">XML</span></a><span style="color: #000000;">&#40;</span>url_loader2<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">data</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">.</span>message_info <span style="color: #000066; font-weight: bold;">!</span>== <span style="color: #0033ff; font-weight: bold;">null</span><span style="color: #000000;">&#41;</span><span style="color: #009900; font-style: italic;">//если в очереди хоть  что-то есть</span>
    <span style="color: #000000;">&#123;</span>
        <span style="color: #004993;">save</span> = <span style="color: #0033ff; font-weight: bold;">new</span>  <a href="http://www.google.com/search?q=xml%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:xml.html"><span style="color: #004993;">XML</span></a><span style="color: #000000;">&#40;</span>url_loader2<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">data</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><span style="color: #009900; font-style: italic;">//передаем XML полученные данные</span>
         <span style="color: #0033ff; font-weight: bold;">for</span><span style="color: #000000;">&#40;</span><span style="color: #6699cc; font-weight: bold;">var</span> i<span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=int%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:int.html"><span style="color: #004993;">int</span></a>=<span style="color: #000000; font-weight:bold;">0</span><span style="color: #000066; font-weight: bold;">;</span> i<span style="color: #000066; font-weight: bold;">&lt;</span>save<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">length</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span> i<span style="color: #000066; font-weight: bold;">++</span><span style="color: #000000;">&#41;</span><span style="color: #009900; font-style: italic;">//запускаем цикл</span>
        <span style="color: #000000;">&#123;</span>
             <span style="color: #0033ff; font-weight: bold;">if</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">save</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">children</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">.</span>user_id == viewer_id<span style="color: #000000;">&#41;</span><span style="color: #009900; font-style: italic;">//если данное  сообщение отправленно пользователем, который просматривает приложение</span>
             <span style="color: #000000;">&#123;</span>
                pole<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">htmlText</span> <span style="color: #000066; font-weight: bold;">+</span>= <span style="color: #990000;">'&lt;b&gt;&lt;font  color=&quot;#ff0000&quot;&gt;'</span> <span style="color: #000066; font-weight: bold;">+</span> <span style="color: #004993;">save</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">children</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">.</span>user_name <span style="color: #000066; font-weight: bold;">+</span>  <span style="color: #990000;">&quot;&lt;/font&gt;&lt;/b&gt;: &quot;</span> <span style="color: #000066; font-weight: bold;">+</span> <span style="color: #004993;">save</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">children</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">message</span><span style="color: #000066; font-weight: bold;">;</span><span style="color: #009900; font-style: italic;">//добавляем  строку с его именем и сообщением без ссылки и красного цвета</span>
             <span style="color: #000000;">&#125;</span><span style="color: #0033ff; font-weight: bold;">else</span><span style="color: #000000;">&#123;</span><span style="color: #009900; font-style: italic;">//если это отправил другой пользователь</span>
                 pole<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">htmlText</span> <span style="color: #000066; font-weight: bold;">+</span>= <span style="color: #990000;">'&lt;b&gt;&lt;font color=&quot;#000080&quot;&gt;&lt;a  href=&quot;http://vkontakte.ru/id'</span><span style="color: #000066; font-weight: bold;">+</span><span style="color: #004993;">save</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">children</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">.</span>user_id<span style="color: #000066; font-weight: bold;">+</span> <span style="color: #990000;">'&quot;&gt;'</span> <span style="color: #000066; font-weight: bold;">+</span>  <span style="color: #004993;">save</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">children</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">.</span>user_name <span style="color: #000066; font-weight: bold;">+</span> <span style="color: #990000;">'&lt;/a&gt;'</span><span style="color: #000066; font-weight: bold;">+</span> <span style="color: #990000;">&quot;&lt;/font&gt;&lt;/b&gt;: &quot;</span>  <span style="color: #000066; font-weight: bold;">+</span> <span style="color: #004993;">save</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">children</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">message</span><span style="color: #000066; font-weight: bold;">;</span><span style="color: #009900; font-style: italic;">//добавляем строку с его именем с ссылкой  на его страничку синего цвета</span>
            <span style="color: #000000;">&#125;</span>
        <span style="color: #000000;">&#125;</span>
    <span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span><span style="color: #000066; font-weight: bold;">&lt;/</span>p<span style="color: #000066; font-weight: bold;">&gt;</span>
<span style="color: #000066; font-weight: bold;">&lt;</span>p<span style="color: #000066; font-weight: bold;">&gt;</span></pre><!--codeview2--></div><!--ecodeview2--></p>
<p>&nbsp;</p>
<p>Нажимам  <strong>Ctrl + Enter</strong> и если ошибок компиляции небыло, а приложение не  работает, то значит все правильно. Заходим в контакт и переходим к  нашему, ране созданному, приложению. Заходим в настройки и загружаем <strong>SWF</strong>:</p>
<div style="text-align: center;"><img src="http://easyflash.org/uploads/posts/2010-05/1274976616_328301541.png" border="0" alt="" /></div>
<p><br />На всякий случай проверяем  настройки:</p>
<p><span style="color: #ff0000;"><strong>Приложение включено и видно всем</strong></span></p>
<p><span style="color: #ff0000;"><strong>С  использованием контейнера(Можно и Без отступов и элементов управления)</strong></span></p>
<p><span style="color: #ff0000;"><strong>Можно  добавлять на страницу</strong></span></p>
<p><span style="color: #ff0000;"><strong>Тип приложения Flash</strong></span></p>
<p>&nbsp;</p>
<p><em>Это  был самый пример самого простого чата. Я даже не исползоват <strong>time</strong> сообщений. Вы можете изменить его как душе угодно и вставить в свое  приложение. Но даже не пытайтесть создать обычный чат и отправить его на  проверку<br /> </em></p>
<p>&nbsp;</p>
<p>исходник:<span class="attachment"><a href="http://easyflash.org/engine/download.php?id=428" >4at_po_vkapi.rar</a> [302,34 Kb] (cкачиваний: 516)</span><br /><br /></p>
автор: <a href="http://vkontakte.ru/e1ectronic" target="_blank">Lewka151</a></div>]]></description>
<category><![CDATA[Flash Уроки Текстом]]></category>
<dc:creator>lewka151</dc:creator>
<pubDate>Sat, 29 May 2010 17:17:03 +0300</pubDate>
</item><item>
<title>Flex4 launch tour Belarus</title>
<guid isPermaLink="true">http://easyflash.org/flashlearn/flasharticles/851-httpflash-rippercomcontentflex4-launch-tour.html</guid>
<link>http://easyflash.org/flashlearn/flasharticles/851-httpflash-rippercomcontentflex4-launch-tour.html</link>
<description><![CDATA[29 Мая при поддержке компании Intetics и BAFPUG в Минске состоится семинар &laquo;Flex 4. Новые возможности для разработки RIA&raquo;.]]></description>
<category><![CDATA[Статьи и Новости]]></category>
<dc:creator>SarGun</dc:creator>
<pubDate>Fri, 21 May 2010 19:07:30 +0300</pubDate>
</item></channel></rss>