<?xml version="1.0" encoding="windows-1251"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>Форум Flasher.ru - Flex</title>
		<link>http://www.flasher.ru/forum</link>
		<description>Вопросы по Flash/Flex Builder, MXML, Flex 2-4 Framework и Flex Data Services.
Перед публикацией ознакомьтесь с Правилами раздела</description>
		<language>ru</language>
		<lastBuildDate>Tue, 07 Sep 2010 03:53:51 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://www.flasher.ru/forum/images/russian/style3/misc/rss.jpg</url>
			<title>Форум Flasher.ru - Flex</title>
			<link>http://www.flasher.ru/forum</link>
		</image>
		<item>
			<title>не получается распарсить преобразовать Json</title>
			<link>http://www.flasher.ru/forum/showthread.php?t=144222&amp;goto=newpost</link>
			<pubDate>Mon, 06 Sep 2010 15:27:29 GMT</pubDate>
			<description><![CDATA[Подскажите как преобразовать Object в ArraCollection. Я получаю данные в формате Json 
Вот кусок кода 
 
private var jsonDataH:Object = new Object; 
private function httpGetResultHome( event:ResultEvent ):void 
			{ 
				trace( "httpPostResult: " + event.result.toString() ); 
				jsonDataH =...]]></description>
			<content:encoded><![CDATA[<!-- BEGIN TEMPLATE: postbit_external -->
<div>Подскажите как преобразовать Object в ArraCollection. Я получаю данные в формате Json<br />
Вот кусок кода<br />
<br />
<!-- BEGIN TEMPLATE: bbcode_as3code_printable -->
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Код AS3:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #b1b100; font-weight: bold;">private</span> <span style="color: #b1b100; font-weight: bold;">var</span> jsonDataH:<span style="color: #6699cc;">Object</span> = <span style="color: #b1b100; font-weight: bold;">new</span> Object;<br />
<span style="color: #b1b100; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">function</span> httpGetResultHome<span style="color: #66cc66;">&#40;</span> event:ResultEvent <span style="color: #66cc66;">&#41;</span>:<span style="color: #b1b100; font-weight: bold;">void</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #6699cc;">trace</span><span style="color: #66cc66;">&#40;</span> &quot;httpPostResult: &quot; + event.result.<span style="color: #6699cc;">toString</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; jsonDataH = JSON.<span style="color: #6699cc;">decode</span><span style="color: #66cc66;">&#40;</span>event.result.<span style="color: #6699cc;">toString</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></pre></code><hr />
</div>
<!-- END TEMPLATE: bbcode_as3code_printable --><font size="1"><font color="#666686">Добавлено через 26 минут</font></font><br />
Решил проблему. Вот переписанный  код<br />
<!-- BEGIN TEMPLATE: bbcode_as3code_printable -->
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Код AS3:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #b1b100; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">function</span> httpGetResultHome<span style="color: #66cc66;">&#40;</span> event:ResultEvent <span style="color: #66cc66;">&#41;</span>:<span style="color: #b1b100; font-weight: bold;">void</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #6699cc;">trace</span><span style="color: #66cc66;">&#40;</span> &quot;httpPostResult: &quot; + event.result.<span style="color: #6699cc;">toString</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100; font-weight: bold;">var</span> rawData:<span style="color: #6699cc;">String</span> = <span style="color: #6699cc;">String</span><span style="color: #66cc66;">&#40;</span>event.result<span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100; font-weight: bold;">var</span> arr:<span style="color: #6699cc;">Array</span> = <span style="color: #66cc66;">&#40;</span>JSON.<span style="color: #6699cc;">decode</span><span style="color: #66cc66;">&#40;</span>rawData<span style="color: #66cc66;">&#41;</span> <span style="color: #b1b100; font-weight: bold;">as</span> <span style="color: #6699cc;">Array</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; arrayCol = <span style="color: #b1b100; font-weight: bold;">new</span> ArrayCollection<span style="color: #66cc66;">&#40;</span>arr<span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tlist.dataProvider=arrayCol;<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></pre></code><hr />
</div>
<!-- END TEMPLATE: bbcode_as3code_printable -->Подскажите как можно передать arrayCol в html страницу и уже там с помощью javascript работать?</div>


<!-- END TEMPLATE: postbit_external -->]]></content:encoded>
			<category domain="http://www.flasher.ru/forum/forumdisplay.php?f=84">Flex</category>
			<dc:creator>sqrt</dc:creator>
			<guid isPermaLink="true">http://www.flasher.ru/forum/showthread.php?t=144222</guid>
		</item>
		<item>
			<title>Использование Flash как контейнер для Flex приложений</title>
			<link>http://www.flasher.ru/forum/showthread.php?t=144199&amp;goto=newpost</link>
			<pubDate>Mon, 06 Sep 2010 05:48:52 GMT</pubDate>
			<description><![CDATA[Доброго времени суток. 
Разрабатывается Flex приложение по отображению статистических данных (Elixir библиотека, стандартные графики, таблицы). 
 
На данный момент поставлена задача создать "более интересный интерфейс" - сделать что-то более похожее на презентационную вещь. 
 
Предполагаю...]]></description>
			<content:encoded><![CDATA[<!-- BEGIN TEMPLATE: postbit_external -->
<div>Доброго времени суток.<br />
Разрабатывается Flex приложение по отображению статистических данных (Elixir библиотека, стандартные графики, таблицы).<br />
<br />
На данный момент поставлена задача создать &quot;более интересный интерфейс&quot; - сделать что-то более похожее на презентационную вещь.<br />
<br />
Предполагаю использовать флэш как контейнер для частей flex приложения.<br />
Но есть вопросы - как увязывать между собой это части?<br />
<br />
Например есть 2 контейнера - Elixir карта в одном и DataGrid в другом - как при клике на карте обновить данные в DataGrid? Как уведомлять контейнеры о событиях?<br />
<br />
Сталкивался ли кто-нибудь с подобным скрещиванием?</div>


<!-- END TEMPLATE: postbit_external -->]]></content:encoded>
			<category domain="http://www.flasher.ru/forum/forumdisplay.php?f=84">Flex</category>
			<dc:creator>im4LF</dc:creator>
			<guid isPermaLink="true">http://www.flasher.ru/forum/showthread.php?t=144199</guid>
		</item>
		<item>
			<title>Индивидуальный tooltip для иконок tabbar</title>
			<link>http://www.flasher.ru/forum/showthread.php?t=144198&amp;goto=newpost</link>
			<pubDate>Mon, 06 Sep 2010 04:56:57 GMT</pubDate>
			<description>Здравствуйте, подскажите пожалуйста как сделать такой компонент. 
 
Это должен быть tabbar например как в браузере, с иконкой в углу. При наведении в браузере на крестик, вылазит tooltip. Так вот мне надо реализоать подобный компонент но иконки могут быть разные и tooltip тоже. 
 
Подскажите...</description>
			<content:encoded><![CDATA[<!-- BEGIN TEMPLATE: postbit_external -->
<div>Здравствуйте, подскажите пожалуйста как сделать такой компонент.<br />
<br />
Это должен быть tabbar например как в браузере, с иконкой в углу. При наведении в браузере на крестик, вылазит tooltip. Так вот мне надо реализоать подобный компонент но иконки могут быть разные и tooltip тоже.<br />
<br />
Подскажите пожалуйста как правильно это реальзовать на Flex 3.<br />
Спасибо</div>


<!-- END TEMPLATE: postbit_external -->]]></content:encoded>
			<category domain="http://www.flasher.ru/forum/forumdisplay.php?f=84">Flex</category>
			<dc:creator>chata</dc:creator>
			<guid isPermaLink="true">http://www.flasher.ru/forum/showthread.php?t=144198</guid>
		</item>
		<item>
			<title>Любой простой пример</title>
			<link>http://www.flasher.ru/forum/showthread.php?t=144090&amp;goto=newpost</link>
			<pubDate>Thu, 02 Sep 2010 09:41:38 GMT</pubDate>
			<description>Здравствуйте подскажите пожалуйта как из as можно вызвать mxml, сколько пробую ничего толком не выходит если пытаюсь сделать сам.  
 
Задача стоит просто в отображение элемента mxml используя as3 и обращаясь к нему например слой с обводкой или простую кнопку. 
 
 
Читал в тебе что к имя mxml это...</description>
			<content:encoded><![CDATA[<!-- BEGIN TEMPLATE: postbit_external -->
<div>Здравствуйте подскажите пожалуйта как из as можно вызвать mxml, сколько пробую ничего толком не выходит если пытаюсь сделать сам. <br />
<br />
Задача стоит просто в отображение элемента mxml используя as3 и обращаясь к нему например слой с обводкой или простую кнопку.<br />
<br />
<br />
Читал в тебе что к имя mxml это есть имя класса к которому обращатся но тогда как сделать конструктор для этого класса в общем полная каша в голове.<br />
var somebtn:*=new MyMxmlClass();<br />
addChild(somebtn);<br />
хочу чтоб было примрно так.<br />
<br />
можно небольшой пример обращения или нормальную книгу по mxml где описаны все свойства данной разметки.</div>


<!-- END TEMPLATE: postbit_external -->]]></content:encoded>
			<category domain="http://www.flasher.ru/forum/forumdisplay.php?f=84">Flex</category>
			<dc:creator>lance666</dc:creator>
			<guid isPermaLink="true">http://www.flasher.ru/forum/showthread.php?t=144090</guid>
		</item>
		<item>
			<title>Мультизагрузка и уменьшение изображение на стороне клиента</title>
			<link>http://www.flasher.ru/forum/showthread.php?t=144089&amp;goto=newpost</link>
			<pubDate>Thu, 02 Sep 2010 09:25:24 GMT</pubDate>
			<description>Делаю мультизагрузку изображения на сервер.  
 
Не получается реализовать уменьшения изображения. Хочу сделать так, что если фотка больше заданных ширины и высоты, то она уменьшалась до этих размеров. Как я понимаю для этого используется Bitmap. 
 
Помогите решить данную проблему. И как лучше...</description>
			<content:encoded><![CDATA[<!-- BEGIN TEMPLATE: postbit_external -->
<div>Делаю мультизагрузку изображения на сервер. <br />
<br />
Не получается реализовать уменьшения изображения. Хочу сделать так, что если фотка больше заданных ширины и высоты, то она уменьшалась до этих размеров. Как я понимаю для этого используется Bitmap.<br />
<br />
Помогите решить данную проблему. И как лучше уменьшать изображение? При открытии его или непосредственно перед отправкой.<br />
<br />
Вот код<br />
<br />
<!-- BEGIN TEMPLATE: bbcode_as3code_printable -->
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Код AS3:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"><pre class="actionscript3" style="font-family:monospace;">&nbsp;<br />
&lt;<span style="color: #66cc66; font-weight: bold;">?</span>xml <span style="color: #6699cc;">version</span>=&quot;<span style="color: #cc66cc; font-weight:bold;">1.0</span>&quot; encoding=&quot;utf-<span style="color: #cc66cc; font-weight:bold;">8</span>&quot;<span style="color: #66cc66; font-weight: bold;">?</span>&gt;<br />
&lt;mx:Application xmlns:mx=&quot;http:<span style="color: #FF00FF;">//www.adobe.com/2006/mxml&quot; layout=&quot;absolute&quot; width=&quot;568&quot; height=&quot;300&quot; initialize=&quot;init()&quot;&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;mx:List <span style="color: #6699cc;">x</span>=&quot;<span style="color: #cc66cc; font-weight:bold;">10</span>&quot; <span style="color: #6699cc;">y</span>=&quot;<span style="color: #cc66cc; font-weight:bold;">58</span>&quot; <span style="color: #6699cc;">width</span>=&quot;<span style="color: #cc66cc; font-weight:bold;">326</span>&quot; id=&quot;photoList&quot; dataProvider=&quot;<span style="color: #66cc66;">&#123;</span>photos<span style="color: #66cc66;">&#125;</span>&quot; itemRenderer=&quot;Thumb&quot; verticalScrollPolicy=&quot;on&quot; <span style="color: #6699cc;">height</span>=&quot;<span style="color: #cc66cc; font-weight:bold;">218</span>&quot; itemClick=&quot;onSel<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>&quot;&gt;&lt;/mx:List&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;mx:Button <span style="color: #6699cc;">x</span>=&quot;<span style="color: #cc66cc; font-weight:bold;">10</span>&quot; <span style="color: #6699cc;">y</span>=&quot;<span style="color: #cc66cc; font-weight:bold;">28</span>&quot; label=&quot;Выбрать файлы&quot; id=&quot;SelectPhotosButton&quot; <span style="color: #6699cc;">click</span>=&quot;selectPhotos<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>&quot;/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;mx:Button <span style="color: #6699cc;">x</span>=&quot;<span style="color: #cc66cc; font-weight:bold;">138</span>&quot; <span style="color: #6699cc;">y</span>=&quot;<span style="color: #cc66cc; font-weight:bold;">28</span>&quot; label=&quot;Загрузить&quot; id=&quot;UploadPhotosButton&quot;/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;mx:ProgressBar <span style="color: #6699cc;">x</span>=&quot;<span style="color: #cc66cc; font-weight:bold;">10</span>&quot; <span style="color: #6699cc;">y</span>=&quot;<span style="color: #cc66cc; font-weight:bold;">284</span>&quot; id=&quot;photosProgress&quot; <span style="color: #6699cc;">mode</span>=&quot;manual&quot; labelPlacement=&quot;bottom&quot; <span style="color: #6699cc;">height</span>=&quot;<span style="color: #cc66cc; font-weight:bold;">16</span>&quot; minimum=&quot;<span style="color: #cc66cc; font-weight:bold;">0</span>&quot; maximum=&quot;<span style="color: #cc66cc; font-weight:bold;">100</span>&quot; indeterminate=&quot;false&quot; <span style="color: #6699cc;">visible</span>=&quot;false&quot;/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;mx:Button <span style="color: #6699cc;">x</span>=&quot;<span style="color: #cc66cc; font-weight:bold;">214.5</span>&quot; <span style="color: #6699cc;">y</span>=&quot;<span style="color: #cc66cc; font-weight:bold;">280</span>&quot; label=&quot;Отмена&quot; <span style="color: #6699cc;">width</span>=&quot;<span style="color: #cc66cc; font-weight:bold;">72</span>&quot; <span style="color: #6699cc;">height</span>=&quot;<span style="color: #cc66cc; font-weight:bold;">16</span>&quot; id=&quot;CancelUpload&quot; <span style="color: #6699cc;">visible</span>=&quot;false&quot;/&gt;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;mx:Script&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;!<span style="color: #66cc66;">&#91;</span>CDATA<span style="color: #66cc66;">&#91;</span><br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100; font-weight: bold;">import</span> mx.controls.Alert;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100; font-weight: bold;">import</span> mx.events.CollectionEvent;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100; font-weight: bold;">import</span> <span style="color: #6699cc;">flash.net</span>.FileReferenceList;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100; font-weight: bold;">import</span> mx.collections.ArrayCollection;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100; font-weight: bold;">import</span> <span style="color: #6699cc;">flash.net</span>.FileReference;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100; font-weight: bold;">import</span> <span style="color: #6699cc;">flash.utils</span>.ByteArray;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100; font-weight: bold;">import</span> <span style="color: #6699cc;">flash.display</span>.Loader;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100; font-weight: bold;">import</span> <span style="color: #6699cc;">flash.display</span>.Bitmap;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#91;</span>Bindable<span style="color: #66cc66;">&#93;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100; font-weight: bold;">private</span> <span style="color: #b1b100; font-weight: bold;">var</span> photos:ArrayCollection = <span style="color: #b1b100; font-weight: bold;">new</span> ArrayCollection;&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100; font-weight: bold;">private</span> <span style="color: #b1b100; font-weight: bold;">var</span> frList:<span style="color: #6699cc;">FileReferenceList</span> = <span style="color: #b1b100; font-weight: bold;">new</span> FileReferenceList;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100; font-weight: bold;">private</span> <span style="color: #b1b100; font-weight: bold;">var</span> bitmap: Bitmap;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100; font-weight: bold;">private</span> static const MAX_WIDTH: <span style="color: #6699cc;">Number</span> = <span style="color: #cc66cc; font-weight:bold;">800</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100; font-weight: bold;">private</span> static const MAX_HEIGHT: <span style="color: #6699cc;">Number</span> = <span style="color: #cc66cc; font-weight:bold;">600</span>;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">function</span> <span style="color: #6699cc;">init</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #b1b100; font-weight: bold;">void</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp;<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; frList.<span style="color: #6699cc;">addEventListener</span><span style="color: #66cc66;">&#40;</span><span style="color: #6699cc;">Event</span>.<span style="color: #6699cc;">SELECT</span>,onFileSelected<span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp;<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">function</span> selectPhotos<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #b1b100; font-weight: bold;">void</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100; font-weight: bold;">var</span> fileFilter:<span style="color: #6699cc;">FileFilter</span> = <span style="color: #b1b100; font-weight: bold;">new</span> <span style="color: #6699cc;">FileFilter</span><span style="color: #66cc66;">&#40;</span>&quot;Изображения jpeg&quot;,&quot;<span style="color: #66cc66; font-weight: bold;">*</span>.jpg;<span style="color: #66cc66; font-weight: bold;">*</span>.jpeg&quot;<span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; frList.<span style="color: #6699cc;">browse</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#91;</span>fileFilter<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100; font-weight: bold;">public</span> <span style="color: #6699cc; font-weight: bold;">function</span> onFileSelected<span style="color: #66cc66;">&#40;</span>evt:<span style="color: #6699cc;">Event</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #b1b100; font-weight: bold;">void</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span> <br />
&nbsp;<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100; font-weight: bold;">for</span> <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100; font-weight: bold;">var</span> i:<span style="color: #6699cc;">uint</span> = <span style="color: #cc66cc; font-weight:bold;">0</span>; i &lt; frList.<span style="color: #6699cc;">fileList</span>.length; i++<span style="color: #66cc66;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100; font-weight: bold;">var</span> elem:<span style="color: #6699cc;">Object</span> = <span style="color: #b1b100; font-weight: bold;">new</span> Object;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; elem.fr = <span style="color: #6699cc;">FileReference</span><span style="color: #66cc66;">&#40;</span>frList.<span style="color: #6699cc;">fileList</span><span style="color: #66cc66;">&#91;</span>i<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; elem.fr.<span style="color: #6699cc;">addEventListener</span><span style="color: #66cc66;">&#40;</span><span style="color: #6699cc;">ProgressEvent</span>.<span style="color: #6699cc;">PROGRESS</span>, onProgress<span style="color: #66cc66;">&#41;</span>; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  elem.fr.<span style="color: #6699cc;">load</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  elem.fr.<span style="color: #6699cc;">addEventListener</span><span style="color: #66cc66;">&#40;</span><span style="color: #6699cc;">Event</span>.<span style="color: #6699cc;">COMPLETE</span>, onComplete<span style="color: #66cc66;">&#41;</span>;<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; photos.addItem<span style="color: #66cc66;">&#40;</span>elem<span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100; font-weight: bold;">public</span> <span style="color: #6699cc; font-weight: bold;">function</span> onProgress<span style="color: #66cc66;">&#40;</span>evt:<span style="color: #6699cc;">ProgressEvent</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #b1b100; font-weight: bold;">void</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  photosProgress.<span style="color: #6699cc;">visible</span>=true;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <span style="color: #b1b100; font-weight: bold;">var</span> numPerc:<span style="color: #6699cc;">Number</span> = <span style="color: #6699cc;">Math</span>.<span style="color: #6699cc;">round</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span><span style="color: #6699cc;">Number</span><span style="color: #66cc66;">&#40;</span>evt.<span style="color: #6699cc;">bytesLoaded</span><span style="color: #66cc66;">&#41;</span> / <span style="color: #6699cc;">Number</span><span style="color: #66cc66;">&#40;</span>evt.<span style="color: #6699cc;">bytesTotal</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66; font-weight: bold;">*</span> <span style="color: #cc66cc; font-weight:bold;">100</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  photosProgress.setProgress<span style="color: #66cc66;">&#40;</span>numPerc,<span style="color: #cc66cc; font-weight:bold;">100</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  photosProgress.validateNow<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100; font-weight: bold;">public</span> <span style="color: #6699cc; font-weight: bold;">function</span> onComplete<span style="color: #66cc66;">&#40;</span>evt:<span style="color: #6699cc;">Event</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #b1b100; font-weight: bold;">void</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; photoList.invalidateList<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp;<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">function</span> resizeBitmap<span style="color: #66cc66;">&#40;</span> <span style="color: #6699cc;">target</span> : <span style="color: #6699cc;">Bitmap</span> <span style="color: #66cc66;">&#41;</span> : <span style="color: #b1b100; font-weight: bold;">void</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100; font-weight: bold;">if</span> <span style="color: #66cc66;">&#40;</span> <span style="color: #6699cc;">target</span>.<span style="color: #6699cc;">height</span> &lt; <span style="color: #6699cc;">target</span>.<span style="color: #6699cc;">width</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #6699cc;">target</span>.<span style="color: #6699cc;">width</span> = MAX_WIDTH;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #6699cc;">target</span>.<span style="color: #6699cc;">scaleY</span> = <span style="color: #6699cc;">target</span>.scaleX;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span> <span style="color: #b1b100; font-weight: bold;">else</span> <span style="color: #b1b100; font-weight: bold;">if</span> <span style="color: #66cc66;">&#40;</span> <span style="color: #6699cc;">target</span>.<span style="color: #6699cc;">width</span> &lt;= <span style="color: #6699cc;">target</span>.<span style="color: #6699cc;">height</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #6699cc;">target</span>.<span style="color: #6699cc;">height</span> = MAX_HEIGHT;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #6699cc;">target</span>.<span style="color: #6699cc;">scaleX</span> = <span style="color: #6699cc;">target</span>.scaleY;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#93;</span>&gt;<br />
&lt;/mx:Script&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;mx:Label <span style="color: #6699cc;">x</span>=&quot;<span style="color: #cc66cc; font-weight:bold;">173</span>&quot; <span style="color: #6699cc;">y</span>=&quot;<span style="color: #cc66cc; font-weight:bold;">0</span>&quot; <span style="color: #6699cc;">text</span>=&quot;Загрузка фотографии&quot; fontWeight=&quot;bold&quot; <span style="color: #6699cc;">fontSize</span>=&quot;<span style="color: #cc66cc; font-weight:bold;">12</span>&quot; textAlign=&quot;center&quot;/&gt;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&lt;/mx:Application&gt;</pre></code><hr />
</div>
<!-- END TEMPLATE: bbcode_as3code_printable --></div>


<!-- END TEMPLATE: postbit_external -->]]></content:encoded>
			<category domain="http://www.flasher.ru/forum/forumdisplay.php?f=84">Flex</category>
			<dc:creator>sqrt</dc:creator>
			<guid isPermaLink="true">http://www.flasher.ru/forum/showthread.php?t=144089</guid>
		</item>
		<item>
			<title>State  у MXDataGridItemRenderer</title>
			<link>http://www.flasher.ru/forum/showthread.php?t=144087&amp;goto=newpost</link>
			<pubDate>Thu, 02 Sep 2010 08:24:11 GMT</pubDate>
			<description><![CDATA[далею таблицу, хочу что бы при наведении у меня менялся цвет не всей строки а некоего окруленного прямоугольника. 
рендереры вставляю так :  
 
<mx:DataGrid dataProvider="{new Array({val:1},{val:2},{val:3})}"> 
	<mx:columns> 
		<mx:DataGridColumn itemRenderer="com.dk.mxml.RowRenderer"/>...]]></description>
			<content:encoded><![CDATA[<!-- BEGIN TEMPLATE: postbit_external -->
<div>далею таблицу, хочу что бы при наведении у меня менялся цвет не всей строки а некоего окруленного прямоугольника.<br />
рендереры вставляю так : <br />
<!-- BEGIN TEMPLATE: bbcode_ascode_printable -->
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Код AS1/AS2:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"><pre class="actionscript" style="font-family:monospace;">&lt;mx:DataGrid dataProvider=&quot;<span style="color: #66cc66;">&#123;</span><span style="color: #b1b100; font-weight: bold;">new</span> <span style="color: #6699cc;">Array</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>val:<span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#125;</span>,<span style="color: #66cc66;">&#123;</span>val:<span style="color: #cc66cc;">2</span><span style="color: #66cc66;">&#125;</span>,<span style="color: #66cc66;">&#123;</span>val:<span style="color: #cc66cc;">3</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#125;</span>&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;mx:columns&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;mx:DataGridColumn itemRenderer=&quot;com.<span style="">dk</span>.<span style="">mxml</span>.<span style="">RowRenderer</span>&quot;<span style="color: #66cc66;">/</span>&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;<span style="color: #66cc66;">/</span>mx:columns&gt;<br />
&lt;<span style="color: #66cc66;">/</span>mx:DataGrid&gt;</pre></code><hr />
</div>
<!-- END TEMPLATE: bbcode_ascode_printable -->теперь сам рендерер: <br />
<!-- BEGIN TEMPLATE: bbcode_ascode_printable -->
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Код AS1/AS2:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"><pre class="actionscript" style="font-family:monospace;">&lt;?<span style="color: #6699cc;">xml</span> <span style="color: #6699cc;">version</span>=&quot;<span style="color: #cc66cc;">1.0</span>&quot; encoding=&quot;utf-<span style="color: #cc66cc;">8</span>&quot;?&gt;<br />
&lt;s:MXDataGridItemRenderer&nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; xmlns:fx=&quot;http:<span style="color: #FF00FF; font-style: italic;">//ns.adobe.com/mxml/2009&quot; </span><br />
&nbsp; &nbsp; &nbsp; &nbsp; xmlns:s=&quot;library:<span style="color: #FF00FF; font-style: italic;">//ns.adobe.com/flex/spark&quot; </span><br />
&nbsp; &nbsp; &nbsp; &nbsp; xmlns:mx=&quot;library:<span style="color: #FF00FF; font-style: italic;">//ns.adobe.com/flex/mx&quot; </span><br />
&nbsp; &nbsp; &nbsp; &nbsp; autoDrawBackground=&quot;false&quot; <br />
&nbsp; &nbsp; &nbsp; &nbsp; minHeight=&quot;<span style="color: #cc66cc;">18</span>&quot; <br />
&nbsp; &nbsp; &nbsp; &nbsp; minWidth=&quot;<span style="color: #cc66cc;">50</span>&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;fx:Declarations&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;<span style="color: #66cc66;">!</span>-- Place non-visual elements <span style="color: #66cc66;">&#40;</span><span style="color: #6699cc;">e</span>.<span style="">g</span>., services, value objects<span style="color: #66cc66;">&#41;</span> here --&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;<span style="color: #66cc66;">/</span>fx:Declarations&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;<span style="color: #66cc66;">!</span>-- <span style="color: #6699cc;">border</span> <span style="color: #6699cc;">and</span> fill --&gt;&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;s:Rect radiusX=&quot;<span style="color: #66cc66;">&#123;</span><span style="color: #6699cc;">this</span>.<span style="color: #6699cc;">height</span>/<span style="color: #cc66cc;">2</span><span style="color: #66cc66;">&#125;</span>&quot; radiusY=&quot;<span style="color: #66cc66;">&#123;</span><span style="color: #6699cc;">this</span>.<span style="color: #6699cc;">height</span>/<span style="color: #cc66cc;">2</span><span style="color: #66cc66;">&#125;</span>&quot; top=&quot;<span style="color: #cc66cc;">0</span>&quot; <span style="color: #6699cc;">right</span>=&quot;<span style="color: #cc66cc;">5</span>&quot; bottom=&quot;<span style="color: #cc66cc;">0</span>&quot; <span style="color: #6699cc;">left</span>=&quot;<span style="color: #cc66cc;">5</span>&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;s:fill&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;s:SolidColor <span style="color: #6699cc;">color</span>=&quot;0xffa231&quot;<span style="color: #66cc66;">/</span>&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;<span style="color: #66cc66;">/</span>s:fill&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;<span style="color: #66cc66;">/</span>s:Rect&gt;<br />
&lt;<span style="color: #66cc66;">/</span>s:MXDataGridItemRenderer&gt;</pre></code><hr />
</div>
<!-- END TEMPLATE: bbcode_ascode_printable -->вот этот момент:<br />
<!-- BEGIN TEMPLATE: bbcode_ascode_printable -->
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Код AS1/AS2:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"><pre class="actionscript" style="font-family:monospace;">&lt;s:Rect radiusX=&quot;<span style="color: #66cc66;">&#123;</span><span style="color: #6699cc;">this</span>.<span style="color: #6699cc;">height</span>/<span style="color: #cc66cc;">2</span><span style="color: #66cc66;">&#125;</span>&quot; radiusY=&quot;<span style="color: #66cc66;">&#123;</span><span style="color: #6699cc;">this</span>.<span style="color: #6699cc;">height</span>/<span style="color: #cc66cc;">2</span><span style="color: #66cc66;">&#125;</span>&quot; top=&quot;<span style="color: #cc66cc;">0</span>&quot; <span style="color: #6699cc;">right</span>=&quot;<span style="color: #cc66cc;">5</span>&quot; bottom=&quot;<span style="color: #cc66cc;">0</span>&quot; <span style="color: #6699cc;">left</span>=&quot;<span style="color: #cc66cc;">5</span>&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;s:fill&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;s:SolidColor <span style="color: #6699cc;">color</span>=&quot;0xffa231&quot;<span style="color: #66cc66;">/</span>&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;<span style="color: #66cc66;">/</span>s:fill&gt;<br />
&lt;<span style="color: #66cc66;">/</span>s:Rect&gt;</pre></code><hr />
</div>
<!-- END TEMPLATE: bbcode_ascode_printable -->хочу что бы появлялось только тогда когда пункт или выбран или на него навели мыш. Как это можно реализовать ведь стандартный рендерер как-то реагирует когда мыш навели убрали кликнули и выбрали ... как мне унаследовать эти стейты или я да же не знаю...</div>


<!-- END TEMPLATE: postbit_external -->]]></content:encoded>
			<category domain="http://www.flasher.ru/forum/forumdisplay.php?f=84">Flex</category>
			<dc:creator>klafuda_klalafu</dc:creator>
			<guid isPermaLink="true">http://www.flasher.ru/forum/showthread.php?t=144087</guid>
		</item>
		<item>
			<title>Ошибка при подключении RSL библиотеки</title>
			<link>http://www.flasher.ru/forum/showthread.php?t=144083&amp;goto=newpost</link>
			<pubDate>Thu, 02 Sep 2010 06:11:40 GMT</pubDate>
			<description>При подключении swc библиотеки как RSL выдает ошибку: 
 
VerifyError: Error #1053: Недопустимое переопределение activate в mx.managers.SystemManagerProxy. 
Гугл не помог(( 
 
Кто ни будь сталкивался с чем то подобным? 
 
FIXED 
 
Подключаемая библиотека написана на sdk 3.5</description>
			<content:encoded><![CDATA[<!-- BEGIN TEMPLATE: postbit_external -->
<div>При подключении swc библиотеки как RSL выдает ошибку:<br />
<br />
VerifyError: Error #1053: Недопустимое переопределение activate в mx.managers.SystemManagerProxy.<br />
Гугл не помог((<br />
<br />
Кто ни будь сталкивался с чем то подобным?<br />
<br />
FIXED<br />
<br />
Подключаемая библиотека написана на sdk 3.5<br />
Собираемый проект на sdk 4.1<br />
Отсюда ошибка совместимости.</div>


<!-- END TEMPLATE: postbit_external -->]]></content:encoded>
			<category domain="http://www.flasher.ru/forum/forumdisplay.php?f=84">Flex</category>
			<dc:creator>Deidara</dc:creator>
			<guid isPermaLink="true">http://www.flasher.ru/forum/showthread.php?t=144083</guid>
		</item>
		<item>
			<title>ограничения на ввод в NumericStepper</title>
			<link>http://www.flasher.ru/forum/showthread.php?t=144066&amp;goto=newpost</link>
			<pubDate>Wed, 01 Sep 2010 14:49:55 GMT</pubDate>
			<description>Здравствуйте, подскажите пожалуйста как сделать ограничения на ввод в NumericStepper. Например можно выставить максимальное и минимальное значение, но когда вводим с клавиатуры, то можно ввести значение выходящее за пределы диапазона значений, только вот потом оно принимает максимальное, если его...</description>
			<content:encoded><![CDATA[<!-- BEGIN TEMPLATE: postbit_external -->
<div>Здравствуйте, подскажите пожалуйста как сделать ограничения на ввод в NumericStepper. Например можно выставить максимальное и минимальное значение, но когда вводим с клавиатуры, то можно ввести значение выходящее за пределы диапазона значений, только вот потом оно принимает максимальное, если его где то выводить.<br />
<br />
Необходимо сделать так что если у меня максимальное 30, то если я нажимаю 4 чтобы оно не нажималось. Подскажите можно ли это сделать и как?<br />
<br />
Спасибо</div>


<!-- END TEMPLATE: postbit_external -->]]></content:encoded>
			<category domain="http://www.flasher.ru/forum/forumdisplay.php?f=84">Flex</category>
			<dc:creator>chata</dc:creator>
			<guid isPermaLink="true">http://www.flasher.ru/forum/showthread.php?t=144066</guid>
		</item>
		<item>
			<title>dispatchEvent+кэширование</title>
			<link>http://www.flasher.ru/forum/showthread.php?t=144064&amp;goto=newpost</link>
			<pubDate>Wed, 01 Sep 2010 14:35:20 GMT</pubDate>
			<description>Привет всем!) 
У меня почему то срабатывает dispatchEvent только после перезагрузки страницы.То есть не с первого раза. 
Может оно как то что то кэширует и во второй раз срабатывает? 
У меня в одной swf-ке загружается 2я и я хочу из 2й swf-ки нажать на кнопку в 1ой. 
...</description>
			<content:encoded><![CDATA[<!-- BEGIN TEMPLATE: postbit_external -->
<div>Привет всем!)<br />
У меня почему то срабатывает dispatchEvent только после перезагрузки страницы.То есть не с первого раза.<br />
Может оно как то что то кэширует и во второй раз срабатывает?<br />
У меня в одной swf-ке загружается 2я и я хочу из 2й swf-ки нажать на кнопку в 1ой.<br />
<br />
Application.application.myBut.dispatchEvent(new MouseEvent(MouseEvent.CLICK));<br />
<br />
Если кто то с таким сталкивался, подскажите как можно это решить.Спасибо)</div>


<!-- END TEMPLATE: postbit_external -->]]></content:encoded>
			<category domain="http://www.flasher.ru/forum/forumdisplay.php?f=84">Flex</category>
			<dc:creator>vasyapunk</dc:creator>
			<guid isPermaLink="true">http://www.flasher.ru/forum/showthread.php?t=144064</guid>
		</item>
		<item>
			<title>Как передать результат запроса в массив?</title>
			<link>http://www.flasher.ru/forum/showthread.php?t=144060&amp;goto=newpost</link>
			<pubDate>Wed, 01 Sep 2010 12:33:48 GMT</pubDate>
			<description>Через amf из mysql выдергиваю данный. Если у Datagrid в DataProvider прописать Lastrusult, то результат выводится нормально. Но нужно Lastresult передать в массив (объект), и уже его использовать в качестве DataProvider. Вопрос в том как присвоить Lastresult (результат выполнения запроса) другой...</description>
			<content:encoded><![CDATA[<!-- BEGIN TEMPLATE: postbit_external -->
<div>Через amf из mysql выдергиваю данный. Если у Datagrid в DataProvider прописать Lastrusult, то результат выводится нормально. Но нужно Lastresult передать в массив (объект), и уже его использовать в качестве DataProvider. Вопрос в том как присвоить Lastresult (результат выполнения запроса) другой переменной.</div>


<!-- END TEMPLATE: postbit_external -->]]></content:encoded>
			<category domain="http://www.flasher.ru/forum/forumdisplay.php?f=84">Flex</category>
			<dc:creator>Freedom77</dc:creator>
			<guid isPermaLink="true">http://www.flasher.ru/forum/showthread.php?t=144060</guid>
		</item>
		<item>
			<title>Почему стоит переходить на Flex4(c Flex3)</title>
			<link>http://www.flasher.ru/forum/showthread.php?t=144053&amp;goto=newpost</link>
			<pubDate>Wed, 01 Sep 2010 08:53:16 GMT</pubDate>
			<description><![CDATA[Объясните пожалуйста, в чём состоит реальная польза перехода на Flex4. 
 
Перерыв всю документацию на предмет поиска "призов", смог нарыть только следующее: 
а. меня ждёт новая архитектура компонентов и оболочек(ура, ура, закричали швамбране) 
б. из-за почти полной совместимости, я не будут...]]></description>
			<content:encoded><![CDATA[<!-- BEGIN TEMPLATE: postbit_external -->
<div>Объясните пожалуйста, в чём состоит реальная польза перехода на Flex4.<br />
<br />
Перерыв всю документацию на предмет поиска &quot;призов&quot;, смог нарыть только следующее:<br />
а. меня ждёт новая архитектура компонентов и оболочек<i>(ура, ура, закричали швамбране)</i><br />
б. из-за почти полной совместимости, я не будут испытывать значительных сложностей с переходом<i>(швамбране продолжали ликовать, а я продолжать не понимать, я где же &quot;приз&quot;)</i><br />
в. ...<br />
<br />
В общем, сколько я ни искал, так я ни одной статьи или обзора на мою тему не нашёл.<br />
<br />
Что успел обнаружить сам:<br />
а. Приложения(и flex3, и flex4) откомпилированные мной при помощи четвёртого SDK, весят значительно больше, чем их аналогии откомпилированные мной при помощи третьего SDK.<br />
<br />
б. Полностью перейти на использование flex4 я всё равно не могу, так как некоторые классы flex3 до сих пор(и неизвестно измениться ли это в будущем) не имеют аналогов в flex4. Например mx.containers.ViewStack. И в на адобовском сайте честно сознаются, что единственным решением тут является использование вместе с новыми компонентами Spark - старые компоненты и контейнеры MX(и даже рекомендуют так поступать - что окончательно вводит меня в ступор непонимания).<br />
<br />
в. Единственное зрячее преимущество, которая я таки углядел - это новый синтаксис состояний, который позволяет встраивать их в код, обеспечивая внесение изменений в отдельные состояния на основе конкретного контекста. Это действительно приятно.<br />
<br />
А больше я ничего усмотреть не смог, поэтому прошу вашей помощи - помогите прозреть. =)</div>


<!-- END TEMPLATE: postbit_external -->]]></content:encoded>
			<category domain="http://www.flasher.ru/forum/forumdisplay.php?f=84">Flex</category>
			<dc:creator>maksimov</dc:creator>
			<guid isPermaLink="true">http://www.flasher.ru/forum/showthread.php?t=144053</guid>
		</item>
		<item>
			<title>Flex в AXDT</title>
			<link>http://www.flasher.ru/forum/showthread.php?t=143999&amp;goto=newpost</link>
			<pubDate>Tue, 31 Aug 2010 02:50:16 GMT</pubDate>
			<description>Подскажите, пожалуйста, возможно ли в AXDT обновить версию flex sdk? Та что идет внутри плагина ни рыба ни мясо, 4.0.0.72190. Куча примеров из документации не компилится. Я пытался подбрасывать внутрь sdk 4.1.0.16076, но так и не смог допилить flex-config.xml, скилов пока маловато.</description>
			<content:encoded><![CDATA[<!-- BEGIN TEMPLATE: postbit_external -->
<div>Подскажите, пожалуйста, возможно ли в AXDT обновить версию flex sdk? Та что идет внутри плагина ни рыба ни мясо, 4.0.0.72190. Куча примеров из документации не компилится. Я пытался подбрасывать внутрь sdk 4.1.0.16076, но так и не смог допилить flex-config.xml, скилов пока маловато.</div>


<!-- END TEMPLATE: postbit_external -->]]></content:encoded>
			<category domain="http://www.flasher.ru/forum/forumdisplay.php?f=84">Flex</category>
			<dc:creator>antiPooH</dc:creator>
			<guid isPermaLink="true">http://www.flasher.ru/forum/showthread.php?t=143999</guid>
		</item>
		<item>
			<title>DataGrid с закругленными строками</title>
			<link>http://www.flasher.ru/forum/showthread.php?t=143967&amp;goto=newpost</link>
			<pubDate>Mon, 30 Aug 2010 10:39:38 GMT</pubDate>
			<description><![CDATA[Хочу сделать нечто подобное : 
Изображение: http://www.flasher.ru/forum/attachment.php?attachmentid=25062&stc=1&d=1283164617  
то есть что бы каждая строка датагрида была закруглена, хочется сделать это с помощью скинования.... как можно такую фишку провернуть?  
вставка итемрендерера с...]]></description>
			<content:encoded><![CDATA[<!-- BEGIN TEMPLATE: postbit_external -->
<div>Хочу сделать нечто подобное :<br />
<img src="http://www.flasher.ru/forum/attachment.php?attachmentid=25062&amp;stc=1&amp;d=1283164617" border="0" alt="" /><br />
то есть что бы каждая строка датагрида была закруглена, хочется сделать это с помощью скинования.... как можно такую фишку провернуть? <br />
вставка итемрендерера с закруглениями не катит, <br />
было бы супер если бы кто-то подсказал способ вообще вместо того что бы указывать цвета строк указать путь до картинки с неким фоном для каждого состояния (up, down,...)</div>


	<br />
	<div style="padding:6px">

	

	
		<fieldset class="fieldset">
			<legend>Изображения</legend>
			<div style="padding:3px">
			<!-- BEGIN TEMPLATE: postbit_attachmentimage -->
<img class="attach" src="http://www.flasher.ru/forum/attachment.php?attachmentid=25062&amp;stc=1&amp;d=1283164617" border="0" alt="" />&nbsp;
<!-- END TEMPLATE: postbit_attachmentimage -->
			</div>
		</fieldset>
	

	

	

	</div>

<!-- END TEMPLATE: postbit_external -->]]></content:encoded>
			<category domain="http://www.flasher.ru/forum/forumdisplay.php?f=84">Flex</category>
			<dc:creator>klafuda_klalafu</dc:creator>
			<guid isPermaLink="true">http://www.flasher.ru/forum/showthread.php?t=143967</guid>
		</item>
		<item>
			<title>перевести из MXML в actionScript</title>
			<link>http://www.flasher.ru/forum/showthread.php?t=143950&amp;goto=newpost</link>
			<pubDate>Mon, 30 Aug 2010 07:47:15 GMT</pubDate>
			<description>Доброго времени суток.  
 
Возникла задача сделать некую панель, на которой бы располагались элементы управления (кнопки, комбобоксы и т.д.).  Панель не выполняет никаких функций кроме визуального оформления (закругленные края + фон). 
 
Вопрос собственно в чем. Этот компонент предполагается...</description>
			<content:encoded><![CDATA[<!-- BEGIN TEMPLATE: postbit_external -->
<div>Доброго времени суток. <br />
<br />
Возникла задача сделать некую панель, на которой бы располагались элементы управления (кнопки, комбобоксы и т.д.).  Панель не выполняет никаких функций кроме визуального оформления (закругленные края + фон).<br />
<br />
Вопрос собственно в чем. Этот компонент предполагается использовать так:<br />
<!-- BEGIN TEMPLATE: bbcode_as3code_printable -->
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Код AS3:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"><pre class="actionscript3" style="font-family:monospace;">&lt;Мой компонент&gt;<br />
&nbsp; &nbsp;  &lt;s:Button label=&quot;xxx&quot; /&gt;<br />
&nbsp; &nbsp;  &lt;s:Button label=&quot;xxx2&quot; /&gt;<br />
&lt;/Мой компонент&gt;</pre></code><hr />
</div>
<!-- END TEMPLATE: bbcode_as3code_printable --><br />
Но сам компонент унаследован от SkinnableContainer, внутри которого есть <br />
<!-- BEGIN TEMPLATE: bbcode_as3code_printable -->
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Код AS3:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #b1b100; font-weight: bold;">public</span> <span style="color: #b1b100; font-weight: bold;">var</span> container:HGroup;</pre></code><hr />
</div>
<!-- END TEMPLATE: bbcode_as3code_printable -->в который должны вставляться кнопки из MXML-кода выше.<br />
<br />
Сам вопрос в следующем: Какой метод вызывается у моего компонента при выполненнии такого кода:<br />
<!-- BEGIN TEMPLATE: bbcode_as3code_printable -->
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Код AS3:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"><pre class="actionscript3" style="font-family:monospace;">&lt;Мой компонент&gt;<br />
&nbsp; &nbsp;  &lt;s:Button label=&quot;xxx&quot; /&gt;<br />
&lt;/Мой компонент&gt;</pre></code><hr />
</div>
<!-- END TEMPLATE: bbcode_as3code_printable -->?<br />
<br />
опытным путем выяснил что это не addElement и не addChild. Что это за метод?</div>


<!-- END TEMPLATE: postbit_external -->]]></content:encoded>
			<category domain="http://www.flasher.ru/forum/forumdisplay.php?f=84">Flex</category>
			<dc:creator>britall</dc:creator>
			<guid isPermaLink="true">http://www.flasher.ru/forum/showthread.php?t=143950</guid>
		</item>
		<item>
			<title>Обработчик события click для HitTester</title>
			<link>http://www.flasher.ru/forum/showthread.php?t=143930&amp;goto=newpost</link>
			<pubDate>Sun, 29 Aug 2010 16:20:05 GMT</pubDate>
			<description>Есть такой полезный пример (http://dougmccune.com/blog/2007/02/03/using-hittestpoint-or-hittest-on-transparent-png-images/) создания сложных областей из PNG. 
Все работает замечательно, то если я теперь для этой области заданной в HitTester myHitTest1 = com.dougmccune.HitTester.realHitTest(idMyPNG,...</description>
			<content:encoded><![CDATA[<!-- BEGIN TEMPLATE: postbit_external -->
<div>Есть <a href="http://dougmccune.com/blog/2007/02/03/using-hittestpoint-or-hittest-on-transparent-png-images/" target="_blank">такой полезный пример</a> создания сложных областей из PNG.<br />
Все работает замечательно, то если я теперь для этой области заданной в HitTester <!-- BEGIN TEMPLATE: bbcode_as3code_printable -->
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Код AS3:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"><pre class="actionscript3" style="font-family:monospace;">myHitTest1 = com.dougmccune.HitTester.realHitTest<span style="color: #66cc66;">&#40;</span>idMyPNG, <span style="color: #b1b100; font-weight: bold;">new</span> <span style="color: #6699cc;">Point</span><span style="color: #66cc66;">&#40;</span>event.<span style="color: #6699cc;">stageX</span>, event.<span style="color: #6699cc;">stageY</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;</pre></code><hr />
</div>
<!-- END TEMPLATE: bbcode_as3code_printable -->попробую задать любой иное событие, например click, то ничего не работает.<br />
<br />
Вот сам этот класс:<br />
<br />
<!-- BEGIN TEMPLATE: bbcode_as3code_printable -->
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Код AS3:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #6699cc; font-weight: bold;">package</span> com.dougmccune<br />
<span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100; font-weight: bold;">import</span> <span style="color: #6699cc;">flash.display</span>.BitmapData;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100; font-weight: bold;">import</span> <span style="color: #6699cc;">flash.display</span>.DisplayObject;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100; font-weight: bold;">import</span> <span style="color: #6699cc;">flash.geom</span>.Matrix;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100; font-weight: bold;">import</span> <span style="color: #6699cc;">flash.geom</span>.Point;<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100; font-weight: bold;">public</span> <span style="color: #6699cc; font-weight: bold;">class</span> HitTester<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100; font-weight: bold;">public</span> static <span style="color: #6699cc; font-weight: bold;">function</span> realHitTest<span style="color: #66cc66;">&#40;</span>object:<span style="color: #6699cc;">DisplayObject</span>, point:<span style="color: #6699cc;">Point</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #6699cc;">Boolean</span> <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #FF00FF;">/* If we're already dealing with a BitmapData object then we just use the hitTest<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  * method of that BitmapData.<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  */</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100; font-weight: bold;">if</span><span style="color: #66cc66;">&#40;</span>object <span style="color: #b1b100; font-weight: bold;">is</span> <span style="color: #6699cc;">BitmapData</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100; font-weight: bold;">return</span> <span style="color: #66cc66;">&#40;</span>object <span style="color: #b1b100; font-weight: bold;">as</span> <span style="color: #6699cc;">BitmapData</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #6699cc;">hitTest</span><span style="color: #66cc66;">&#40;</span><span style="color: #b1b100; font-weight: bold;">new</span> <span style="color: #6699cc;">Point</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc; font-weight:bold;">0</span>,<span style="color: #cc66cc; font-weight:bold;">0</span><span style="color: #66cc66;">&#41;</span>, <span style="color: #cc66cc; font-weight:bold;">0</span>, object.<span style="color: #6699cc;">globalToLocal</span><span style="color: #66cc66;">&#40;</span>point<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100; font-weight: bold;">else</span> <span style="color: #66cc66;">&#123;</span><br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #FF00FF;">/* First we check if the hitTestPoint method returns false. If it does, that<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  * means that we definitely do not have a hit, so we return false. But if this<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  * returns true, we still don't know 100% that we have a hit because it might<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  * be a transparent part of the image. <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  */</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100; font-weight: bold;">if</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66; font-weight: bold;">!</span>object.<span style="color: #6699cc;">hitTestPoint</span><span style="color: #66cc66;">&#40;</span>point.<span style="color: #6699cc;">x</span>, point.<span style="color: #6699cc;">y</span>, <span style="color: #b1b100; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100; font-weight: bold;">return</span> false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100; font-weight: bold;">else</span> <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #FF00FF;">/* So now we make a new BitmapData object and draw the pixels of our object<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  * in there. Then we use the hitTest method of that BitmapData object to<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  * really find out of we have a hit or not.<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  */</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100; font-weight: bold;">var</span> bmapData:<span style="color: #6699cc;">BitmapData</span> = <span style="color: #b1b100; font-weight: bold;">new</span> <span style="color: #6699cc;">BitmapData</span><span style="color: #66cc66;">&#40;</span>object.<span style="color: #6699cc;">width</span>, object.<span style="color: #6699cc;">height</span>, <span style="color: #b1b100; font-weight: bold;">true</span>, 0x00000000<span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; bmapData.<span style="color: #6699cc;">draw</span><span style="color: #66cc66;">&#40;</span>object, <span style="color: #b1b100; font-weight: bold;">new</span> <span style="color: #6699cc;">Matrix</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100; font-weight: bold;">var</span> returnVal:<span style="color: #6699cc;">Boolean</span> = bmapData.<span style="color: #6699cc;">hitTest</span><span style="color: #66cc66;">&#40;</span><span style="color: #b1b100; font-weight: bold;">new</span> <span style="color: #6699cc;">Point</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc; font-weight:bold;">0</span>,<span style="color: #cc66cc; font-weight:bold;">0</span><span style="color: #66cc66;">&#41;</span>, <span style="color: #cc66cc; font-weight:bold;">0</span>, object.<span style="color: #6699cc;">globalToLocal</span><span style="color: #66cc66;">&#40;</span>point<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; bmapData.<span style="color: #6699cc;">dispose</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100; font-weight: bold;">return</span> returnVal;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
<span style="color: #66cc66;">&#125;</span></pre></code><hr />
</div>
<!-- END TEMPLATE: bbcode_as3code_printable --></div>


<!-- END TEMPLATE: postbit_external -->]]></content:encoded>
			<category domain="http://www.flasher.ru/forum/forumdisplay.php?f=84">Flex</category>
			<dc:creator>Astraport</dc:creator>
			<guid isPermaLink="true">http://www.flasher.ru/forum/showthread.php?t=143930</guid>
		</item>
	</channel>
</rss>
