<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>EzeQL&#039;s Blog &#187; Actionscript 3</title>
	<atom:link href="http://www.ezeql.com/blog/category/actionscript-3/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ezeql.com/blog</link>
	<description>Actionscript and more..</description>
	<lastBuildDate>Tue, 01 Jun 2010 13:36:35 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>AMFPHP has new developers</title>
		<link>http://www.ezeql.com/blog/2010/02/08/amfphp-has-new-developers/</link>
		<comments>http://www.ezeql.com/blog/2010/02/08/amfphp-has-new-developers/#comments</comments>
		<pubDate>Mon, 08 Feb 2010 06:01:34 +0000</pubDate>
		<dc:creator>EzeQL</dc:creator>
				<category><![CDATA[AMFPHP]]></category>
		<category><![CDATA[Actionscript 3]]></category>

		<guid isPermaLink="false">http://www.ezeql.com/blog/?p=37</guid>
		<description><![CDATA[After several inactivity months, the popular remoting library, AMFPHP, has two new developers involved.
A 1.9 stable version is available and  a new 2.0 version is planned.
Changes in new version are:
 -Compatible with php5.3 and a new service browser has been completely rewritten.
You can download latest version here.
]]></description>
			<content:encoded><![CDATA[<p>After several inactivity months, the popular remoting library, AMFPHP, has two new developers involved.<br />
A 1.9 stable version is available and  a new 2.0 version is planned.<br />
Changes in new version are:<br />
 -Compatible with php5.3 and a new service browser has been completely rewritten.<br />
You can download latest version <a href="http://sourceforge.net/projects/amfphp/files/amfphp/amfphp%201.9.zip/download">here.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ezeql.com/blog/2010/02/08/amfphp-has-new-developers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A new tween engine is out</title>
		<link>http://www.ezeql.com/blog/2009/01/21/a-new-tween-engine-is-out/</link>
		<comments>http://www.ezeql.com/blog/2009/01/21/a-new-tween-engine-is-out/#comments</comments>
		<pubDate>Wed, 21 Jan 2009 20:46:28 +0000</pubDate>
		<dc:creator>EzeQL</dc:creator>
				<category><![CDATA[Actionscript 3]]></category>
		<category><![CDATA[Open Source]]></category>

		<guid isPermaLink="false">http://www.ezeql.com/blog/?p=24</guid>
		<description><![CDATA[Shane McCartney has published a new open sourced tween Engine called Tweensy.
The author claims that it's faster than the best (for me) tween engine used today: TweenMax
At first sight it looks a bit complex for novice developers. I will experiment a bit with it and then  post some src code here.
you can check the [...]]]></description>
			<content:encoded><![CDATA[<p>Shane McCartney has published a new open sourced tween Engine called Tweensy.</p>
<p>The author claims that it's faster than the best (for me) tween engine used today: <a href="http://blog.greensock.com/tweenmaxas3/">TweenMax</a><br />
At first sight it looks a bit complex for novice developers. I will experiment a bit with it and then  post some src code here.</p>
<p>you can check the Google code space for the project : <a href="http://code.google.com/p/tweensy/">here</a><br />
Author entry on his: <a href="http://www.lostinactionscript.com/blog/index.php/2009/01/05/tweensy-goes-public/">Blog</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ezeql.com/blog/2009/01/21/a-new-tween-engine-is-out/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nuevo Book Sobre Flash Open Source</title>
		<link>http://www.ezeql.com/blog/2008/07/14/nuevo-book-sobre-flash-open-source/</link>
		<comments>http://www.ezeql.com/blog/2008/07/14/nuevo-book-sobre-flash-open-source/#comments</comments>
		<pubDate>Mon, 14 Jul 2008 06:01:23 +0000</pubDate>
		<dc:creator>EzeQL</dc:creator>
				<category><![CDATA[AMFPHP]]></category>
		<category><![CDATA[Actionscript 3]]></category>
		<category><![CDATA[Docs and Books]]></category>
		<category><![CDATA[Papervision]]></category>
		<category><![CDATA[Books]]></category>

		<guid isPermaLink="false">http://www.ezeql.com/blog/?p=21</guid>
		<description><![CDATA[Ayer salio un nuevo libro sobre una tematica interesante .. OS Flash.
El nombre del libro es Essential Guide Source Flash Development
Saludos!
]]></description>
			<content:encoded><![CDATA[<p>Ayer salio un nuevo libro sobre una tematica interesante .. OS Flash.<br />
El nombre del libro es <a href="http://www.amazon.com/Essential-Guide-Source-Flash-Development/dp/1430209933/ref=sr_1_1?ie=UTF8&#038;s=books&#038;qid=1216014548&#038;sr=8-1"target="_blank">Essential Guide Source Flash Development</a></p>
<p>Saludos!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ezeql.com/blog/2008/07/14/nuevo-book-sobre-flash-open-source/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Alternativa3d is OUT!!!!!</title>
		<link>http://www.ezeql.com/blog/2008/06/01/alternativa3d-is-out/</link>
		<comments>http://www.ezeql.com/blog/2008/06/01/alternativa3d-is-out/#comments</comments>
		<pubDate>Sun, 01 Jun 2008 06:38:04 +0000</pubDate>
		<dc:creator>EzeQL</dc:creator>
				<category><![CDATA[Actionscript 3]]></category>

		<guid isPermaLink="false">http://www.ezeql.com/blog/?p=23</guid>
		<description><![CDATA[i have been waiting this a long time. Alternativa3d Engine is out.
you can read the full notice in the Alternativa's webpage :http://blog.alternativaplatform.com/en/
if you wanna go directly to the point , you should check this page :http://alternativaplatform.com/en/
i'll be testing the engine this weekend , stay tune.. more news are coming!!
]]></description>
			<content:encoded><![CDATA[<p>i have been waiting this a long time. Alternativa3d Engine is out.</p>
<p>you can read the full notice in the Alternativa's webpage :http://blog.alternativaplatform.com/en/</p>
<p>if you wanna go directly to the point , you should check this page :http://alternativaplatform.com/en/</p>
<p>i'll be testing the engine this weekend , stay tune.. more news are coming!!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ezeql.com/blog/2008/06/01/alternativa3d-is-out/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Google maps AS3 Api is Out!!</title>
		<link>http://www.ezeql.com/blog/2008/05/16/google-maps-as3-api-is-out/</link>
		<comments>http://www.ezeql.com/blog/2008/05/16/google-maps-as3-api-is-out/#comments</comments>
		<pubDate>Fri, 16 May 2008 04:00:37 +0000</pubDate>
		<dc:creator>EzeQL</dc:creator>
				<category><![CDATA[Actionscript 3]]></category>

		<guid isPermaLink="false">http://www.ezeql.com/blog/?p=22</guid>
		<description><![CDATA[Google has just released an AS3 version of their maps.
it works with Flash and Flex.You just need to import the SWC and write some code to get it working.
get the SWC here
examples
]]></description>
			<content:encoded><![CDATA[<p>Google has just released an AS3 version of their maps.</p>
<p>it works with Flash and Flex.You just need to import the SWC and write some code to get it working.</p>
<p>get the SWC <a href="http://code.google.com/apis/maps/documentation/flash/intro.html" target="_blank">here</a></p>
<p><a href="http://code.google.com/p/gmaps-samples-flash/">examples</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ezeql.com/blog/2008/05/16/google-maps-as3-api-is-out/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Flash player 10 public beta released!</title>
		<link>http://www.ezeql.com/blog/2008/05/16/flash-player-10-public-beta-released/</link>
		<comments>http://www.ezeql.com/blog/2008/05/16/flash-player-10-public-beta-released/#comments</comments>
		<pubDate>Fri, 16 May 2008 03:50:51 +0000</pubDate>
		<dc:creator>EzeQL</dc:creator>
				<category><![CDATA[Actionscript 3]]></category>

		<guid isPermaLink="false">http://www.ezeql.com/blog/?p=21</guid>
		<description><![CDATA[New version of flash player including features like 3d Support, advaced text renderer, Hydra's effects loader (now Pixel Blender) and the posibility to write local files without using the server.
find more info Here or Here
updated: secocular has written this excellent article!
]]></description>
			<content:encoded><![CDATA[<p>New version of flash player including features like 3d Support, advaced text renderer, Hydra's effects loader (now Pixel Blender) and the posibility to write local files without using the server.</p>
<p>find more info <a href="http://labs.adobe.com/technologies/flashplayer10/" target="_blank">Here</a> or <a title="flash player 10" href="http://opensource.adobe.com/wiki/display/flexsdk/Targeting+Flash+Player+10+Beta+with+Flex+SDK+3.0.x" target="_blank">Here</a></p>
<p>updated: secocular has written this <a title="secoular fp10" href="http://www.senocular.com/flash/tutorials/flash10drawingapi/" target="_blank">excellent article!</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ezeql.com/blog/2008/05/16/flash-player-10-public-beta-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Efecto Tv Rota (TV Noise)</title>
		<link>http://www.ezeql.com/blog/2008/04/30/efecto-tv-rota-tv-noise/</link>
		<comments>http://www.ezeql.com/blog/2008/04/30/efecto-tv-rota-tv-noise/#comments</comments>
		<pubDate>Wed, 30 Apr 2008 05:02:34 +0000</pubDate>
		<dc:creator>EzeQL</dc:creator>
				<category><![CDATA[Actionscript 3]]></category>

		<guid isPermaLink="false">http://www.ezeql.com/blog/?p=20</guid>
		<description><![CDATA[Les dejo esta clase pequeña que desarrolle, tvNoise
[SWF]

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
package  &#123;
	import flash.display.Bitmap;
	import flash.display.BitmapData;
	import flash.display.Sprite;
	import flash.events.Event;
	import flash.events.TimerEvent;
	import flash.utils.getTimer;
	import flash.utils.Timer;
&#160;
	/**
	* ...
	* @author EzeQL
	* @see www.EzeQL.com/blog
	*/
&#160;
	public class NoiseTV extends Sprite &#123;
		private var _bitmap:Bitmap;
		private var _bitmapData:BitmapData;
&#160;
		private var _bmpWidth:int;
		private var _bmpheight:int;
&#160;
		private var _timer:Timer;
&#160;
		public function NoiseTV&#40;pWidth:int=400,pHeight:int=300&#41;
		&#123;
			_bitmapData  = new BitmapData&#40;pWidth, pHeight, false, 0x000000&#41;;
			_bitmap = new Bitmap&#40;_bitmapData&#41;;
&#160;
			_bmpheight = pHeight;
			_bmpWidth = pWidth;
		&#125;
&#160;
		public function start&#40;&#41;:void
		&#123;
			addChild&#40;_bitmap&#41;;
			//Prueben [...]]]></description>
			<content:encoded><![CDATA[<p>Les dejo esta clase pequeña que desarrolle, tvNoise</p>
<p><a href="http://www.ezeql.com/blog/wp-content/uploads/2008/04/tveffect.swf ">[SWF]</a></p>

<div class="wp_codebox"><table><tr id="p143"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
</pre></td><td class="code" id="p14code3"><pre class="actionscript" style="font-family:monospace;">package  <span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">display</span>.<span style="color: #006600;">Bitmap</span>;
	<span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">display</span>.<span style="color: #006600;">BitmapData</span>;
	<span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">display</span>.<span style="color: #006600;">Sprite</span>;
	<span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">events</span>.<span style="color: #006600;">Event</span>;
	<span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">events</span>.<span style="color: #006600;">TimerEvent</span>;
	<span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">utils</span>.<span style="color: #0066CC;">getTimer</span>;
	<span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">utils</span>.<span style="color: #006600;">Timer</span>;
&nbsp;
	<span style="color: #808080; font-style: italic;">/**
	* ...
	* @author EzeQL
	* @see www.EzeQL.com/blog
	*/</span>
&nbsp;
	<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">class</span> NoiseTV <span style="color: #0066CC;">extends</span> Sprite <span style="color: #66cc66;">&#123;</span>
		<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> _bitmap:Bitmap;
		<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> _bitmapData:BitmapData;
&nbsp;
		<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> _bmpWidth:<span style="color: #0066CC;">int</span>;
		<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> _bmpheight:<span style="color: #0066CC;">int</span>;
&nbsp;
		<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> _timer:Timer;
&nbsp;
		<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> NoiseTV<span style="color: #66cc66;">&#40;</span>pWidth:<span style="color: #0066CC;">int</span>=<span style="color: #cc66cc;">400</span>,pHeight:<span style="color: #0066CC;">int</span>=<span style="color: #cc66cc;">300</span><span style="color: #66cc66;">&#41;</span>
		<span style="color: #66cc66;">&#123;</span>
			_bitmapData  = <span style="color: #000000; font-weight: bold;">new</span> BitmapData<span style="color: #66cc66;">&#40;</span>pWidth, pHeight, <span style="color: #000000; font-weight: bold;">false</span>, 0x000000<span style="color: #66cc66;">&#41;</span>;
			_bitmap = <span style="color: #000000; font-weight: bold;">new</span> Bitmap<span style="color: #66cc66;">&#40;</span>_bitmapData<span style="color: #66cc66;">&#41;</span>;
&nbsp;
			_bmpheight = pHeight;
			_bmpWidth = pWidth;
		<span style="color: #66cc66;">&#125;</span>
&nbsp;
		<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> <span style="color: #0066CC;">start</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
		<span style="color: #66cc66;">&#123;</span>
			addChild<span style="color: #66cc66;">&#40;</span>_bitmap<span style="color: #66cc66;">&#41;</span>;
			<span style="color: #808080; font-style: italic;">//Prueben Usar Ambos :=&gt;</span>
			<span style="color: #0066CC;">this</span>.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>Event.<span style="color: #006600;">ENTER_FRAME</span>, NoiseTV_EnterFrame<span style="color: #66cc66;">&#41;</span>;
&nbsp;
			<span style="color: #808080; font-style: italic;">//_timer = new Timer(50);</span>
			<span style="color: #808080; font-style: italic;">//_timer.addEventListener(TimerEvent.TIMER, Timer_TimerEvent);</span>
			<span style="color: #808080; font-style: italic;">//_timer.start();</span>
		<span style="color: #66cc66;">&#125;</span>
&nbsp;
		<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> <span style="color: #0066CC;">stop</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
		<span style="color: #66cc66;">&#123;</span>
			<span style="color: #0066CC;">this</span>.<span style="color: #006600;">removeEventListener</span><span style="color: #66cc66;">&#40;</span>Event.<span style="color: #006600;">ENTER_FRAME</span>, NoiseTV_EnterFrame<span style="color: #66cc66;">&#41;</span>;
			<span style="color: #808080; font-style: italic;">//_timer.stop();</span>
&nbsp;
		<span style="color: #66cc66;">&#125;</span>
&nbsp;
		<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> drawNoise<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
		<span style="color: #66cc66;">&#123;</span>
			<span style="color: #000000; font-weight: bold;">var</span> seed:<span style="color: #0066CC;">int</span> = <span style="color: #0066CC;">int</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">Math</span>.<span style="color: #0066CC;">random</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">*</span> <span style="color: #0066CC;">int</span>.<span style="color: #0066CC;">MAX_VALUE</span><span style="color: #66cc66;">&#41;</span>;
			<span style="color: #808080; font-style: italic;">//_bitmapData.lock();</span>
			_bitmapData.<span style="color: #006600;">noise</span><span style="color: #66cc66;">&#40;</span>seed, <span style="color: #cc66cc;">0</span>, <span style="color: #cc66cc;">255</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>; <span style="color: #808080; font-style: italic;">// este hermoso metodo hace todo el trabajo por nosotros :) :)</span>
			<span style="color: #808080; font-style: italic;">//_bitmapData.unlock(); // para este uso no gana performance ..pruebenlo ustedes.</span>
&nbsp;
		<span style="color: #66cc66;">&#125;</span>
&nbsp;
		<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> restart<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
		<span style="color: #66cc66;">&#123;</span>
			<span style="color: #0066CC;">stop</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
			removeChild<span style="color: #66cc66;">&#40;</span>_bitmap<span style="color: #66cc66;">&#41;</span>;
			_bitmapData  = <span style="color: #000000; font-weight: bold;">new</span> BitmapData<span style="color: #66cc66;">&#40;</span>_bmpWidth, _bmpheight, <span style="color: #000000; font-weight: bold;">false</span>, 0x000000<span style="color: #66cc66;">&#41;</span>;
			_bitmap = <span style="color: #000000; font-weight: bold;">new</span> Bitmap<span style="color: #66cc66;">&#40;</span>_bitmapData<span style="color: #66cc66;">&#41;</span>;
			<span style="color: #0066CC;">start</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
		<span style="color: #66cc66;">&#125;</span>
&nbsp;
			<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> NoiseTV_EnterFrame <span style="color: #66cc66;">&#40;</span>event:Event<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
		<span style="color: #66cc66;">&#123;</span>
			<span style="color: #808080; font-style: italic;">//var inicio:uint = getTimer();</span>
			drawNoise<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
			<span style="color: #808080; font-style: italic;">//trace(getTimer() - inicio);</span>
		<span style="color: #66cc66;">&#125;</span>
&nbsp;
		<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> Timer_TimerEvent<span style="color: #66cc66;">&#40;</span>event:TimerEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
		<span style="color: #66cc66;">&#123;</span>
			<span style="color: #808080; font-style: italic;">//var inicio:uint = getTimer();</span>
			drawNoise<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
			<span style="color: #808080; font-style: italic;">//event.updateAfterEvent(); =&gt; en nuestro caso no tiene sentido :)</span>
			<span style="color: #808080; font-style: italic;">//trace(getTimer() - inicio);</span>
&nbsp;
		<span style="color: #66cc66;">&#125;</span>
&nbsp;
&nbsp;
		<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> <span style="color: #0066CC;">get</span> bmpheight<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">int</span> <span style="color: #66cc66;">&#123;</span> <span style="color: #b1b100;">return</span> _bmpheight; <span style="color: #66cc66;">&#125;</span>
&nbsp;
		<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> <span style="color: #0066CC;">set</span> bmpheight<span style="color: #66cc66;">&#40;</span>value:<span style="color: #0066CC;">int</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
			_bmpheight = value;
		<span style="color: #66cc66;">&#125;</span>
&nbsp;
		<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> <span style="color: #0066CC;">get</span> bmpWidth<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">int</span> <span style="color: #66cc66;">&#123;</span> <span style="color: #b1b100;">return</span> _bmpWidth; <span style="color: #66cc66;">&#125;</span>
&nbsp;
		<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> <span style="color: #0066CC;">set</span> bmpWidth<span style="color: #66cc66;">&#40;</span>value:<span style="color: #0066CC;">int</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
			_bmpWidth = value;
		<span style="color: #66cc66;">&#125;</span>
&nbsp;
&nbsp;
&nbsp;
	<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #66cc66;">&#125;</span></pre></td></tr></table></div>

<p>clase Main,Ejemplo de uso</p>

<div class="wp_codebox"><table><tr id="p144"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
</pre></td><td class="code" id="p14code4"><pre class="actionscript" style="font-family:monospace;">&nbsp;
package  <span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">display</span>.<span style="color: #006600;">Sprite</span>;
	<span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">events</span>.<span style="color: #006600;">MouseEvent</span>;
&nbsp;
	<span style="color: #808080; font-style: italic;">/**
	* ...
	* @author EzeQL
	* @see www.EzeQL.com/blog
	*/</span>
	<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">class</span> Main <span style="color: #0066CC;">extends</span> Sprite<span style="color: #66cc66;">&#123;</span>
		<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> noiseTv:NoiseTV;
&nbsp;
		<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> Main<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
			noiseTv = <span style="color: #000000; font-weight: bold;">new</span> NoiseTV<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
			addChild<span style="color: #66cc66;">&#40;</span>noiseTv<span style="color: #66cc66;">&#41;</span>;
			noiseTv.<span style="color: #0066CC;">start</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
			<span style="color: #0066CC;">stage</span>.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>MouseEvent.<span style="color: #006600;">CLICK</span>, Stage_Click<span style="color: #66cc66;">&#41;</span>;
		<span style="color: #66cc66;">&#125;</span>
&nbsp;
		<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> Stage_Click<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:MouseEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
		<span style="color: #66cc66;">&#123;</span>
			noiseTv.<span style="color: #006600;">bmpheight</span> = <span style="color: #0066CC;">Math</span>.<span style="color: #0066CC;">random</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">*</span> <span style="color: #0066CC;">stage</span>.<span style="color: #006600;">stageHeight</span>;
			noiseTv.<span style="color: #006600;">bmpWidth</span> = <span style="color: #0066CC;">Math</span>.<span style="color: #0066CC;">random</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">*</span> <span style="color: #0066CC;">stage</span>.<span style="color: #006600;">stageWidth</span>
			noiseTv.<span style="color: #006600;">restart</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
		<span style="color: #66cc66;">&#125;</span>
&nbsp;
	<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #66cc66;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.ezeql.com/blog/2008/04/30/efecto-tv-rota-tv-noise/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>SimpleButton, Botones en as3</title>
		<link>http://www.ezeql.com/blog/2008/04/27/simplebutton/</link>
		<comments>http://www.ezeql.com/blog/2008/04/27/simplebutton/#comments</comments>
		<pubDate>Mon, 28 Apr 2008 02:13:54 +0000</pubDate>
		<dc:creator>EzeQL</dc:creator>
				<category><![CDATA[Actionscript 3]]></category>

		<guid isPermaLink="false">http://www.ezeql.com/blog/?p=16</guid>
		<description><![CDATA[La clase SimpleButton proporciona una forma fácil de crear los típicos estados de un botón pasandole  las imagenes de los estados que este mostrara.
Ejemplo:
[SWF]

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
package
&#123;
import flash.display.Graphics;
import flash.display.Shape;
import flash.display.SimpleButton;
import flash.display.Sprite;
import caurina.transitions.Tweener;
import flash.events.MouseEvent;
import flash.filters.DropShadowFilter;
import flash.geom.Rectangle;
&#160;
public class Main extends Sprite
&#123;
/*www.ezeql.com*/
private var _button_on:Sprite;
private var _button_out:Sprite;
private var _button_press:Sprite;
&#160;
private var _simpleButton:SimpleButton;
&#160;
public function Main&#40;&#41;:void
&#123;
_button_on = new Sprite&#40;&#41;;
_button_out = new Sprite&#40;&#41;;
_button_press = new Sprite&#40;&#41;;
&#160;
_button_on.addChild&#40;drawButton&#40;0xff0000&#41;&#41;;
_button_on.filters [...]]]></description>
			<content:encoded><![CDATA[<p>La clase SimpleButton proporciona una forma fácil de crear los típicos estados de un botón pasandole  las imagenes de los estados que este mostrara.</p>
<p>Ejemplo:</p>
<p><a href="http://www.ezeql.com/blog/wp-content/uploads/2008/04/simplebutton1.swf">[SWF]</a></p>

<div class="wp_codebox"><table><tr id="p126"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
</pre></td><td class="code" id="p12code6"><pre class="actionscript" style="font-family:monospace;">package
<span style="color: #66cc66;">&#123;</span>
<span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">display</span>.<span style="color: #006600;">Graphics</span>;
<span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">display</span>.<span style="color: #006600;">Shape</span>;
<span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">display</span>.<span style="color: #006600;">SimpleButton</span>;
<span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">display</span>.<span style="color: #006600;">Sprite</span>;
<span style="color: #0066CC;">import</span> caurina.<span style="color: #006600;">transitions</span>.<span style="color: #006600;">Tweener</span>;
<span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">events</span>.<span style="color: #006600;">MouseEvent</span>;
<span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">filters</span>.<span style="color: #006600;">DropShadowFilter</span>;
<span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">geom</span>.<span style="color: #006600;">Rectangle</span>;
&nbsp;
<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">class</span> Main <span style="color: #0066CC;">extends</span> Sprite
<span style="color: #66cc66;">&#123;</span>
<span style="color: #808080; font-style: italic;">/*www.ezeql.com*/</span>
<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> _button_on:Sprite;
<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> _button_out:Sprite;
<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> _button_press:Sprite;
&nbsp;
<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> _simpleButton:SimpleButton;
&nbsp;
<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> Main<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
<span style="color: #66cc66;">&#123;</span>
_button_on = <span style="color: #000000; font-weight: bold;">new</span> Sprite<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
_button_out = <span style="color: #000000; font-weight: bold;">new</span> Sprite<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
_button_press = <span style="color: #000000; font-weight: bold;">new</span> Sprite<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
_button_on.<span style="color: #006600;">addChild</span><span style="color: #66cc66;">&#40;</span>drawButton<span style="color: #66cc66;">&#40;</span>0xff0000<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;
_button_on.<span style="color: #006600;">filters</span> = <span style="color: #66cc66;">&#91;</span><span style="color: #000000; font-weight: bold;">new</span> DropShadowFilter<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#93;</span>;
&nbsp;
_button_out.<span style="color: #006600;">addChild</span><span style="color: #66cc66;">&#40;</span>drawButton<span style="color: #66cc66;">&#40;</span>0x00ff00<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;
_button_out.<span style="color: #006600;">filters</span> = <span style="color: #66cc66;">&#91;</span><span style="color: #000000; font-weight: bold;">new</span> DropShadowFilter<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">8</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#93;</span>;
&nbsp;
_button_press.<span style="color: #006600;">addChild</span><span style="color: #66cc66;">&#40;</span>drawButton<span style="color: #66cc66;">&#40;</span>0x0000ff<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;
_button_press.<span style="color: #006600;">filters</span> = <span style="color: #66cc66;">&#91;</span><span style="color: #000000; font-weight: bold;">new</span> DropShadowFilter<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">15</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#93;</span>;
&nbsp;
_simpleButton = <span style="color: #000000; font-weight: bold;">new</span> SimpleButton<span style="color: #66cc66;">&#40;</span>_button_on, _button_out, _button_press,_button_on<span style="color: #66cc66;">&#41;</span>;
_simpleButton.<span style="color: #006600;">x</span> = <span style="color: #cc66cc;">150</span>;
_simpleButton.<span style="color: #006600;">y</span> = <span style="color: #cc66cc;">125</span>;
&nbsp;
_simpleButton.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>MouseEvent.<span style="color: #006600;">CLICK</span>, SimpleButton_Click<span style="color: #66cc66;">&#41;</span>;
&nbsp;
addChild<span style="color: #66cc66;">&#40;</span>_simpleButton<span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> SimpleButton_Click<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:MouseEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
<span style="color: #66cc66;">&#123;</span>
<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;click&quot;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> drawButton<span style="color: #66cc66;">&#40;</span>pColor:uint <span style="color: #66cc66;">&#41;</span>:Shape
<span style="color: #66cc66;">&#123;</span>
<span style="color: #000000; font-weight: bold;">var</span> _rect:Shape = <span style="color: #000000; font-weight: bold;">new</span> Shape<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #0066CC;">with</span> <span style="color: #66cc66;">&#40;</span>_rect.<span style="color: #006600;">graphics</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#123;</span>
<span style="color: #0066CC;">lineStyle</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #0066CC;">beginFill</span><span style="color: #66cc66;">&#40;</span>pColor<span style="color: #66cc66;">&#41;</span>;
drawCircle<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">0</span>,<span style="color: #cc66cc;">0</span>,<span style="color: #cc66cc;">100</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #66cc66;">&#125;</span>
<span style="color: #b1b100;">return</span> _rect;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.ezeql.com/blog/2008/04/27/simplebutton/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Uso basico de Tweener</title>
		<link>http://www.ezeql.com/blog/2008/04/27/uso-basico-de-tweener/</link>
		<comments>http://www.ezeql.com/blog/2008/04/27/uso-basico-de-tweener/#comments</comments>
		<pubDate>Mon, 28 Apr 2008 01:30:19 +0000</pubDate>
		<dc:creator>EzeQL</dc:creator>
				<category><![CDATA[Actionscript 3]]></category>
		<category><![CDATA[Actionscript3]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Tweener]]></category>

		<guid isPermaLink="false">http://www.ezeql.com/blog/?p=14</guid>
		<description><![CDATA[Uso de Tweener - Tutorial 1
Tweener es una libreria OpenSource para crear "Tweens" de Manera Facil y rapida.
Esta Lib es muy util para alcanzar resultados rapidos y de calidad.
Existen versiones en AS2 para Flash 7 , AS2 para Flash 8 y AS3.Tambien Existen Ports en HaXe y JavaScript.
El proyecto esta hosteado en Google Code: http://code.google.com/p/tweener/
Podemos [...]]]></description>
			<content:encoded><![CDATA[<p>Uso de Tweener - Tutorial 1</p>
<p>Tweener es una libreria OpenSource para crear "Tweens" de Manera Facil y rapida.<br />
Esta Lib es muy util para alcanzar resultados rapidos y de calidad.</p>
<p>Existen versiones en AS2 para Flash 7 , AS2 para Flash 8 y AS3.Tambien Existen Ports en HaXe y JavaScript.</p>
<p>El proyecto esta hosteado en Google Code: http://code.google.com/p/tweener/</p>
<p>Podemos bajarnos un Release en la solapa Downloads o sincronizarnos via SVN : http://tweener.googlecode.com/svn/trunk/</p>
<p>La documentacion se encuentra en la pagina del Desarrollador del proyecto: http://hosted.zeh.com.br/tweener/docs/en-us/</p>
<p>Nuestro Primer Ejemplo : Tween perpetuo en X,Y y rotation</p>
<p><a href="http://www.ezeql.com/blog/wp-content/uploads/2008/04/tweener_ex1.swf">[SWF]<br />
</a></p>

<div class="wp_codebox"><table><tr id="p108"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
</pre></td><td class="code" id="p10code8"><pre class="actionscript" style="font-family:monospace;">&nbsp;
package
<span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">display</span>.<span style="color: #006600;">Sprite</span>;
	<span style="color: #0066CC;">import</span> caurina.<span style="color: #006600;">transitions</span>.<span style="color: #006600;">Tweener</span>;
&nbsp;
	<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">class</span> Main <span style="color: #0066CC;">extends</span> Sprite
	<span style="color: #66cc66;">&#123;</span>
		<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> _sprite:Sprite;
&nbsp;
		<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> Main<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
		<span style="color: #66cc66;">&#123;</span>
			_sprite = <span style="color: #000000; font-weight: bold;">new</span> Sprite<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
			_sprite.<span style="color: #006600;">graphics</span>.<span style="color: #0066CC;">beginFill</span><span style="color: #66cc66;">&#40;</span>0x3399FF, <span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span>;
			_sprite.<span style="color: #006600;">graphics</span>.<span style="color: #006600;">drawCircle</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">0</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #cc66cc;">25</span><span style="color: #66cc66;">&#41;</span>;
			_sprite.<span style="color: #006600;">graphics</span>.<span style="color: #0066CC;">beginFill</span><span style="color: #66cc66;">&#40;</span>0xFF00FF, <span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span>;
			_sprite.<span style="color: #006600;">graphics</span>.<span style="color: #006600;">drawRect</span><span style="color: #66cc66;">&#40;</span> -<span style="color: #cc66cc;">10</span>, -<span style="color: #cc66cc;">10</span>, <span style="color: #cc66cc;">20</span>, <span style="color: #cc66cc;">20</span><span style="color: #66cc66;">&#41;</span>;
			addChild<span style="color: #66cc66;">&#40;</span>_sprite<span style="color: #66cc66;">&#41;</span>;
			step<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
		<span style="color: #66cc66;">&#125;</span>
&nbsp;
		<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> step<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
		<span style="color: #66cc66;">&#123;</span>
			Tweener.<span style="color: #006600;">addTween</span><span style="color: #66cc66;">&#40;</span>_sprite, <span style="color: #66cc66;">&#123;</span> <span style="color: #0066CC;">time</span>:.5, delay:.2, x:<span style="color: #0066CC;">Math</span>.<span style="color: #0066CC;">random</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">*</span> <span style="color: #0066CC;">stage</span>.<span style="color: #006600;">stageWidth</span>, y:<span style="color: #0066CC;">Math</span>.<span style="color: #0066CC;">random</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">*</span> <span style="color: #0066CC;">stage</span>.<span style="color: #006600;">stageHeight</span>, rotation:<span style="color: #0066CC;">Math</span>.<span style="color: #0066CC;">random</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">*</span> <span style="color: #cc66cc;">360</span>, transition:<span style="color: #ff0000;">&quot;linear&quot;</span>,onComplete:step <span style="color: #66cc66;">&#125;</span> <span style="color: #66cc66;">&#41;</span>;
		<span style="color: #66cc66;">&#125;</span>
	<span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.ezeql.com/blog/2008/04/27/uso-basico-de-tweener/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Uso de Eventos en Actionscript 3</title>
		<link>http://www.ezeql.com/blog/2008/04/16/uso-de-eventos-en-actionscript-3/</link>
		<comments>http://www.ezeql.com/blog/2008/04/16/uso-de-eventos-en-actionscript-3/#comments</comments>
		<pubDate>Wed, 16 Apr 2008 06:24:28 +0000</pubDate>
		<dc:creator>EzeQL</dc:creator>
				<category><![CDATA[Actionscript 3]]></category>

		<guid isPermaLink="false">http://www.ezeql.com/blog/?p=13</guid>
		<description><![CDATA[En este primer post voy a mostrar el uso basico de Eventos en AS3
[SWF]

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
package  &#123;
import flash.display.Sprite;
import flash.events.MouseEvent;
import flash.text.TextField;
&#160;
/**
* ...
* @author EzeQL
* @see WWW.EZEQL.COM/BLOG
*/
&#160;
public class EventosIntro extends Sprite &#123;
private var _box:Sprite;
private var _tf:TextField;
private var _click:int = 0;
&#160;
private const VECES_CLICK:String = &#34; veces clickeado&#34;;
&#160;
public function EventosIntro&#40;&#41; &#123;
draw&#40;&#41;;
initListeners&#40;&#41;;
&#125;
&#160;
private function draw&#40;&#41;:void &#123;
_box = new Sprite&#40;&#41;;
_box.graphics.lineStyle&#40;1, 0&#41;;
_box.graphics.beginFill&#40;0xFF0000&#41;;
_box.graphics.drawCircle&#40;50, 75, 50&#41;;
_box.graphics.endFill&#40;&#41;;
_box.alpha [...]]]></description>
			<content:encoded><![CDATA[<p>En este primer post voy a mostrar el uso basico de Eventos en AS3</p>
<p><a href="http://www.ezeql.com/blog/wp-content/uploads/2008/04/basicoevents1.swf">[SWF]</a></p>

<div class="wp_codebox"><table><tr id="p810"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
</pre></td><td class="code" id="p8code10"><pre class="actionscript" style="font-family:monospace;">package  <span style="color: #66cc66;">&#123;</span>
<span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">display</span>.<span style="color: #006600;">Sprite</span>;
<span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">events</span>.<span style="color: #006600;">MouseEvent</span>;
<span style="color: #0066CC;">import</span> flash.<span style="color: #0066CC;">text</span>.<span style="color: #0066CC;">TextField</span>;
&nbsp;
<span style="color: #808080; font-style: italic;">/**
* ...
* @author EzeQL
* @see WWW.EZEQL.COM/BLOG
*/</span>
&nbsp;
<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">class</span> EventosIntro <span style="color: #0066CC;">extends</span> Sprite <span style="color: #66cc66;">&#123;</span>
<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> _box:Sprite;
<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> _tf:<span style="color: #0066CC;">TextField</span>;
<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> _click:<span style="color: #0066CC;">int</span> = <span style="color: #cc66cc;">0</span>;
&nbsp;
<span style="color: #0066CC;">private</span> const VECES_CLICK:<span style="color: #0066CC;">String</span> = <span style="color: #ff0000;">&quot; veces clickeado&quot;</span>;
&nbsp;
<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> EventosIntro<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
draw<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
initListeners<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> draw<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
_box = <span style="color: #000000; font-weight: bold;">new</span> Sprite<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
_box.<span style="color: #006600;">graphics</span>.<span style="color: #0066CC;">lineStyle</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">1</span>, <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#41;</span>;
_box.<span style="color: #006600;">graphics</span>.<span style="color: #0066CC;">beginFill</span><span style="color: #66cc66;">&#40;</span>0xFF0000<span style="color: #66cc66;">&#41;</span>;
_box.<span style="color: #006600;">graphics</span>.<span style="color: #006600;">drawCircle</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">50</span>, <span style="color: #cc66cc;">75</span>, <span style="color: #cc66cc;">50</span><span style="color: #66cc66;">&#41;</span>;
_box.<span style="color: #006600;">graphics</span>.<span style="color: #0066CC;">endFill</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
_box.<span style="color: #006600;">alpha</span> = <span style="color: #cc66cc;">0.4</span>;
addChild<span style="color: #66cc66;">&#40;</span>_box<span style="color: #66cc66;">&#41;</span>;
&nbsp;
_tf = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">TextField</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
_tf.<span style="color: #0066CC;">selectable</span> = <span style="color: #000000; font-weight: bold;">false</span>;
_tf.<span style="color: #0066CC;">textColor</span> = 0x0000ff;
_tf.<span style="color: #0066CC;">autoSize</span> = flash.<span style="color: #0066CC;">text</span>.<span style="color: #006600;">TextFieldAutoSize</span>.<span style="color: #0066CC;">LEFT</span>;
updateText<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
addChild<span style="color: #66cc66;">&#40;</span>_tf<span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> initListeners<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
_box.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>MouseEvent.<span style="color: #006600;">CLICK</span>, onBoxCLick, <span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
_box.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>MouseEvent.<span style="color: #006600;">MOUSE_OVER</span>, onBoxOver, <span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
_box.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>MouseEvent.<span style="color: #006600;">MOUSE_OUT</span>, onBoxOut, <span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> onBoxOut<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:MouseEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
_box.<span style="color: #006600;">alpha</span> = .4;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> onBoxOver<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:MouseEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
_box.<span style="color: #006600;">alpha</span> = <span style="color: #cc66cc;">1</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> onBoxCLick<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:MouseEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
_click++;
_box.<span style="color: #006600;">x</span>++;
_box.<span style="color: #006600;">y</span>++;
updateText<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> updateText<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><span style="color: #66cc66;">&#123;</span>
_tf.<span style="color: #0066CC;">text</span> = _click.<span style="color: #0066CC;">toString</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> + VECES_CLICK;
<span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.ezeql.com/blog/2008/04/16/uso-de-eventos-en-actionscript-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
