<?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>She's in Actionscript</title>
	<atom:link href="http://www.meladori.com/shesinactionscript/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.meladori.com/shesinactionscript</link>
	<description></description>
	<lastBuildDate>Wed, 27 May 2009 18:59:43 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Papervision 3D Base Template</title>
		<link>http://www.meladori.com/shesinactionscript/?p=82</link>
		<comments>http://www.meladori.com/shesinactionscript/?p=82#comments</comments>
		<pubDate>Wed, 27 May 2009 18:53:32 +0000</pubDate>
		<dc:creator>Janice</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.meladori.com/shesinactionscript/?p=82</guid>
		<description><![CDATA[Sets up the ground, origin point, and basic camera movement. Meant to be used as a document class.

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;
&#160;
	import flash.display.*;
	import flash.events.*;
&#160;
	import org.papervision3d.view.BasicView;
	import org.papervision3d.objects.primitives.*;
	import org.papervision3d.materials.MovieMaterial;
	import org.papervision3d.events.InteractiveScene3DEvent;
&#160;
	import gs.TweenLite;
	import gs.easing.*;
&#160;
	public class PopupMain extends MovieClip &#123;
&#160;
		private var _w:BasicView;			// world, sets up BasicView 
		private var _origin:Plane; 		    // origin 
		private var _ground:Plane; 			// ground 
&#160;
		private var _destX:Number; [...]]]></description>
			<content:encoded><![CDATA[<p>Sets up the ground, origin point, and basic camera movement. Meant to be used as a document class.</p>

<div class="wp_syntax"><table><tr><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"><pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">package</span> <span style="color: #009900;">&#123;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">flash.display.*</span><span style="color: #339933;">;</span>
	<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">flash.events.*</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">org.papervision3d.view.BasicView</span><span style="color: #339933;">;</span>
	<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">org.papervision3d.objects.primitives.*</span><span style="color: #339933;">;</span>
	<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">org.papervision3d.materials.MovieMaterial</span><span style="color: #339933;">;</span>
	<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">org.papervision3d.events.InteractiveScene3DEvent</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">gs.TweenLite</span><span style="color: #339933;">;</span>
	<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">gs.easing.*</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> PopupMain <span style="color: #000000; font-weight: bold;">extends</span> MovieClip <span style="color: #009900;">&#123;</span>
&nbsp;
		<span style="color: #000000; font-weight: bold;">private</span> var _w<span style="color: #339933;">:</span>BasicView<span style="color: #339933;">;</span>			<span style="color: #666666; font-style: italic;">// world, sets up BasicView </span>
		<span style="color: #000000; font-weight: bold;">private</span> var _origin<span style="color: #339933;">:</span>Plane<span style="color: #339933;">;</span> 		    <span style="color: #666666; font-style: italic;">// origin </span>
		<span style="color: #000000; font-weight: bold;">private</span> var _ground<span style="color: #339933;">:</span>Plane<span style="color: #339933;">;</span> 			<span style="color: #666666; font-style: italic;">// ground </span>
&nbsp;
		<span style="color: #000000; font-weight: bold;">private</span> var _destX<span style="color: #339933;">:</span><span style="color: #003399;">Number</span><span style="color: #339933;">;</span> 
		<span style="color: #000000; font-weight: bold;">private</span> var _destY<span style="color: #339933;">:</span><span style="color: #003399;">Number</span><span style="color: #339933;">;</span> 
&nbsp;
		<span style="color: #000000; font-weight: bold;">public</span> function PopupMain<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">:</span><span style="color: #000066; font-weight: bold;">void</span> <span style="color: #009900;">&#123;</span>			
			initMaterials<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			initPapervision<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #009900;">&#125;</span> 		
&nbsp;
		<span style="color: #000000; font-weight: bold;">private</span> function initPapervision<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">:</span><span style="color: #000066; font-weight: bold;">void</span> <span style="color: #009900;">&#123;</span>
			 _w <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> BasicView<span style="color: #009900;">&#40;</span>stage.<span style="color: #006633;">stageWidth</span>, stage.<span style="color: #006633;">stageHeight</span>, <span style="color: #000066; font-weight: bold;">false</span>, <span style="color: #000066; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			 _origin <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Plane<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">null</span>, <span style="color: #cc66cc;">30</span>, <span style="color: #cc66cc;">30</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 		
&nbsp;
  		    _ground <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Plane<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">null</span>, <span style="color: #cc66cc;">1200</span>, <span style="color: #cc66cc;">1200</span>, <span style="color: #cc66cc;">6</span>, <span style="color: #cc66cc;">6</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			_ground.<span style="color: #006633;">rotationX</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">90</span><span style="color: #339933;">;</span> 
			<span style="color: #666666; font-style: italic;">// _ground.rotationY = 45;</span>
&nbsp;
			 addChild<span style="color: #009900;">&#40;</span>_w<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			 _w.<span style="color: #006633;">scene</span>.<span style="color: #006633;">addChild</span><span style="color: #009900;">&#40;</span>_origin<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			 _w.<span style="color: #006633;">scene</span>.<span style="color: #006633;">addChild</span><span style="color: #009900;">&#40;</span>_ground<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 			
&nbsp;
			addEventListener<span style="color: #009900;">&#40;</span><span style="color: #003399;">Event</span>.<span style="color: #006633;">ENTER_FRAME</span>, onRender<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
&nbsp;
		<span style="color: #000000; font-weight: bold;">private</span> function initMaterials<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">:</span><span style="color: #000066; font-weight: bold;">void</span> <span style="color: #009900;">&#123;</span>
&nbsp;
		<span style="color: #009900;">&#125;</span>
&nbsp;
		<span style="color: #000000; font-weight: bold;">private</span> function onRender<span style="color: #009900;">&#40;</span>e<span style="color: #339933;">:</span><span style="color: #003399;">Event</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">:</span><span style="color: #000066; font-weight: bold;">void</span> <span style="color: #009900;">&#123;</span>
			 _destX <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>mouseX <span style="color: #339933;">-</span> stage.<span style="color: #006633;">stageWidth</span> <span style="color: #339933;">/</span> <span style="color: #cc66cc;">2</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">*</span> <span style="color: #cc66cc;">2</span><span style="color: #339933;">;</span>
	 		 _destY <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>stage.<span style="color: #006633;">stageHeight</span> <span style="color: #339933;">-</span> mouseY<span style="color: #009900;">&#41;</span> <span style="color: #339933;">*</span> <span style="color: #cc66cc;">2</span><span style="color: #339933;">;</span>
&nbsp;
			 <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>mouseY <span style="color: #339933;">&lt;</span> <span style="color: #cc66cc;">100</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	 			 _destX <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
	   			 _destY <span style="color: #339933;">=</span> <span style="color: #cc66cc;">500</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span>
&nbsp;
			_w.<span style="color: #006633;">camera</span>.<span style="color: #006633;">x</span> <span style="color: #339933;">+=</span>  <span style="color: #009900;">&#40;</span>_destX <span style="color: #339933;">-</span> _w.<span style="color: #006633;">camera</span>.<span style="color: #006633;">x</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">/</span> <span style="color: #cc66cc;">4</span><span style="color: #339933;">;</span>
			_w.<span style="color: #006633;">camera</span>.<span style="color: #006633;">y</span> <span style="color: #339933;">+=</span>  <span style="color: #009900;">&#40;</span>_destY <span style="color: #339933;">-</span> _w.<span style="color: #006633;">camera</span>.<span style="color: #006633;">y</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">/</span> <span style="color: #cc66cc;">4</span><span style="color: #339933;">;</span>
			_w.<span style="color: #006633;">singleRender</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #009900;">&#125;</span> 
&nbsp;
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.meladori.com/shesinactionscript/?feed=rss2&amp;p=82</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Circular Motion: Rotation Around a Point</title>
		<link>http://www.meladori.com/shesinactionscript/?p=80</link>
		<comments>http://www.meladori.com/shesinactionscript/?p=80#comments</comments>
		<pubDate>Tue, 26 May 2009 16:03:54 +0000</pubDate>
		<dc:creator>Janice</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.meladori.com/shesinactionscript/?p=80</guid>
		<description><![CDATA[
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// p is planet, instance name &#34;p&#34;  
// c is center, instance name &#34;c&#34; 
// rotation about the center 
&#160;
var myRadius:Number = 100;
var mySpeed:Number = 7;
var xCenter:Number = c.x; 
var yCenter:Number = c.y; 
var myDegree:Number = 0; 	
&#160;
addEventListener&#40;Event.ENTER_FRAME, orbit&#41;;
&#160;
var myAngle:Number = 45;
var myRadian:Number = myAngle * &#40;Math.PI / 180&#41;;
&#160;
function orbit&#40;e:Event&#41;:void &#123;
    [...]]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><table><tr><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
</pre></td><td class="code"><pre class="java" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// p is planet, instance name &quot;p&quot;  </span>
<span style="color: #666666; font-style: italic;">// c is center, instance name &quot;c&quot; </span>
<span style="color: #666666; font-style: italic;">// rotation about the center </span>
&nbsp;
var myRadius<span style="color: #339933;">:</span><span style="color: #003399;">Number</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">100</span><span style="color: #339933;">;</span>
var mySpeed<span style="color: #339933;">:</span><span style="color: #003399;">Number</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">7</span><span style="color: #339933;">;</span>
var xCenter<span style="color: #339933;">:</span><span style="color: #003399;">Number</span> <span style="color: #339933;">=</span> c.<span style="color: #006633;">x</span><span style="color: #339933;">;</span> 
var yCenter<span style="color: #339933;">:</span><span style="color: #003399;">Number</span> <span style="color: #339933;">=</span> c.<span style="color: #006633;">y</span><span style="color: #339933;">;</span> 
var myDegree<span style="color: #339933;">:</span><span style="color: #003399;">Number</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> 	
&nbsp;
addEventListener<span style="color: #009900;">&#40;</span><span style="color: #003399;">Event</span>.<span style="color: #006633;">ENTER_FRAME</span>, orbit<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
var myAngle<span style="color: #339933;">:</span><span style="color: #003399;">Number</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">45</span><span style="color: #339933;">;</span>
var myRadian<span style="color: #339933;">:</span><span style="color: #003399;">Number</span> <span style="color: #339933;">=</span> myAngle <span style="color: #339933;">*</span> <span style="color: #009900;">&#40;</span><span style="color: #003399;">Math</span>.<span style="color: #006633;">PI</span> <span style="color: #339933;">/</span> <span style="color: #cc66cc;">180</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
function orbit<span style="color: #009900;">&#40;</span>e<span style="color: #339933;">:</span><span style="color: #003399;">Event</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">:</span><span style="color: #000066; font-weight: bold;">void</span> <span style="color: #009900;">&#123;</span>
    p.<span style="color: #006633;">x</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>myRadius <span style="color: #339933;">*</span> <span style="color: #003399;">Math</span>.<span style="color: #006633;">cos</span><span style="color: #009900;">&#40;</span>myRadian<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    p.<span style="color: #006633;">y</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>myRadius <span style="color: #339933;">*</span> <span style="color: #003399;">Math</span>.<span style="color: #006633;">sin</span><span style="color: #009900;">&#40;</span>myRadian<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    myDegree <span style="color: #339933;">+=</span> mySpeed<span style="color: #339933;">;</span>
    myRadian <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>myDegree<span style="color: #339933;">/</span><span style="color: #cc66cc;">180</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">*</span><span style="color: #003399;">Math</span>.<span style="color: #006633;">PI</span><span style="color: #339933;">;</span>
    p.<span style="color: #006633;">x</span> <span style="color: #339933;">=</span> xCenter <span style="color: #339933;">+</span> <span style="color: #003399;">Math</span>.<span style="color: #006633;">cos</span><span style="color: #009900;">&#40;</span>myRadian<span style="color: #009900;">&#41;</span> <span style="color: #339933;">*</span> myRadius<span style="color: #339933;">;</span>
    p.<span style="color: #006633;">y</span> <span style="color: #339933;">=</span> yCenter <span style="color: #339933;">-</span> <span style="color: #003399;">Math</span>.<span style="color: #006633;">sin</span><span style="color: #009900;">&#40;</span>myRadian<span style="color: #009900;">&#41;</span> <span style="color: #339933;">*</span> myRadius<span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.meladori.com/shesinactionscript/?feed=rss2&amp;p=80</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Snapshot of a Movie Clip</title>
		<link>http://www.meladori.com/shesinactionscript/?p=76</link>
		<comments>http://www.meladori.com/shesinactionscript/?p=76#comments</comments>
		<pubDate>Sat, 04 Apr 2009 05:01:05 +0000</pubDate>
		<dc:creator>Janice</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.meladori.com/shesinactionscript/?p=76</guid>
		<description><![CDATA[Here a simple way to get a snapshot on a movie clip in Flash. 
+flash
you can get the JPGEncoder here.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import com.adobe.images.JPGEncoder;
&#160;
var enc:JPGEncoder = new JPGEncoder&#40;90&#41;;
var file:FileReference = new FileReference&#40;&#41;;
&#160;
stage.addEventListener&#40;MouseEvent.CLICK, onClick&#41;;
function onClick&#40;e:MouseEvent&#41;:void&#123;
	capture&#40;&#41;;
&#125;
&#160;
// video is the instance name of whatever you want to capture 
var bit:BitmapData = new BitmapData&#40;video.width, video.height, false, 0x000000&#41;;
addChild&#40;new Bitmap&#40;bit&#41;&#41;;
var counter:int = 0;
function capture&#40;&#41;:void [...]]]></description>
			<content:encoded><![CDATA[<p>Here a simple way to get a snapshot on a movie clip in Flash. </p>
<p><a href="http://www.meladori.com/shesinactionscript_backup/content/040309_Capture/capture.html" target="_blank">+flash</a></p>
<p>you can get the JPGEncoder <a href="http://code.google.com/p/as3corelib/">here</a>.</p>

<div class="wp_syntax"><table><tr><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
</pre></td><td class="code"><pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">com.adobe.images.JPGEncoder</span><span style="color: #339933;">;</span>
&nbsp;
var enc<span style="color: #339933;">:</span>JPGEncoder <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> JPGEncoder<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">90</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
var file<span style="color: #339933;">:</span>FileReference <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> FileReference<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
stage.<span style="color: #006633;">addEventListener</span><span style="color: #009900;">&#40;</span><span style="color: #003399;">MouseEvent</span>.<span style="color: #006633;">CLICK</span>, onClick<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
function onClick<span style="color: #009900;">&#40;</span>e<span style="color: #339933;">:</span><span style="color: #003399;">MouseEvent</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">:</span><span style="color: #000066; font-weight: bold;">void</span><span style="color: #009900;">&#123;</span>
	capture<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// video is the instance name of whatever you want to capture </span>
var bit<span style="color: #339933;">:</span>BitmapData <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> BitmapData<span style="color: #009900;">&#40;</span>video.<span style="color: #006633;">width</span>, video.<span style="color: #006633;">height</span>, <span style="color: #000066; font-weight: bold;">false</span>, 0x000000<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
addChild<span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> Bitmap<span style="color: #009900;">&#40;</span>bit<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
var counter<span style="color: #339933;">:</span><span style="color: #000066; font-weight: bold;">int</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
function capture<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">:</span><span style="color: #000066; font-weight: bold;">void</span> <span style="color: #009900;">&#123;</span>
	bit.<span style="color: #006633;">draw</span><span style="color: #009900;">&#40;</span>video<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	counter<span style="color: #339933;">++;</span>
	<span style="color: #666666; font-style: italic;">// save out each screen capture</span>
	<span style="color: #666666; font-style: italic;">// file.save(enc.encode(bit), &quot;myImage_&quot; +counter+&quot;.jpg&quot;);</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.meladori.com/shesinactionscript/?feed=rss2&amp;p=76</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Side-scrolling Gallery</title>
		<link>http://www.meladori.com/shesinactionscript/?p=74</link>
		<comments>http://www.meladori.com/shesinactionscript/?p=74#comments</comments>
		<pubDate>Wed, 25 Mar 2009 14:08:26 +0000</pubDate>
		<dc:creator>Janice</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.meladori.com/shesinactionscript/?p=74</guid>
		<description><![CDATA[
Right now this has an XMLLoader class and class for navigation. Am working to make a better one that extends different ways images can be displayed. The content is some collages that I&#8217;ve been working on. 
( +flash )
]]></description>
			<content:encoded><![CDATA[<p><img src="http://farm4.static.flickr.com/3564/3367396205_e834a4627a_o.jpg"></p>
<p>Right now this has an XMLLoader class and class for navigation. Am working to make a better one that extends different ways images can be displayed. The content is some collages that I&#8217;ve been working on. </p>
<p>( <a href="http://www.meladori.com/work/flash/AS3/Parallax/" target="_blank">+flash</a> )</p>
]]></content:encoded>
			<wfw:commentRss>http://www.meladori.com/shesinactionscript/?feed=rss2&amp;p=74</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Navbar/gallery project</title>
		<link>http://www.meladori.com/shesinactionscript/?p=69</link>
		<comments>http://www.meladori.com/shesinactionscript/?p=69#comments</comments>
		<pubDate>Thu, 26 Feb 2009 16:14:48 +0000</pubDate>
		<dc:creator>Janice</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.meladori.com/shesinactionscript/?p=69</guid>
		<description><![CDATA[
some navbar/gallery i&#8217;ve been working on: XMLLoader (class), Navigation (class), document class (constructor). 
( +flash )
]]></description>
			<content:encoded><![CDATA[<p><img src="http://farm4.static.flickr.com/3568/3311922664_310b5db593_o.jpg"></p>
<p>some navbar/gallery i&#8217;ve been working on: XMLLoader (class), Navigation (class), document class (constructor). </p>
<p>( <a href="http://www.meladori.com/work/vlad/v4_r3/SideGallery.html" target="_blank">+flash</a> )</p>
]]></content:encoded>
			<wfw:commentRss>http://www.meladori.com/shesinactionscript/?feed=rss2&amp;p=69</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Centering content in Flash</title>
		<link>http://www.meladori.com/shesinactionscript/?p=67</link>
		<comments>http://www.meladori.com/shesinactionscript/?p=67#comments</comments>
		<pubDate>Tue, 17 Feb 2009 19:26:33 +0000</pubDate>
		<dc:creator>Janice</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[flash]]></category>

		<guid isPermaLink="false">http://www.meladori.com/shesinactionscript/?p=67</guid>
		<description><![CDATA[
1
2
3
private var container:MovieClip = new Container&#40;&#41;; 
private var content:MovieCLip = new Content&#40;&#41;; 
// where container is your stage, and content is the material you want to center

Initialize your stage listeners/event listeners.

1
2
3
4
5
6
7
8
9
10
11
12
function init&#40;&#41; &#123;
&#160;
stage.align=StageAlign.TOP_LEFT;
stage.scaleMode=StageScaleMode.NO_SCALE;
&#160;
stage.addEventListener&#40;Event.RESIZE, updateSize&#41;;
stage.dispatchEvent&#40;new Event&#40;Event.RESIZE&#41;&#41;;
&#160;
container.x = 0;
container.y = 0;
&#160;
&#125;

updateSize gets called every time the stage gets resized.

1
2
3
4
5
6
7
8
9
10
11
function updateSize&#40;e:Event&#41; &#123;
&#160;
// make container width/height equal to stage.width/height
container.width [...]]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">private</span> var container<span style="color: #339933;">:</span>MovieClip <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">Container</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
<span style="color: #000000; font-weight: bold;">private</span> var content<span style="color: #339933;">:</span>MovieCLip <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Content<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
<span style="color: #666666; font-style: italic;">// where container is your stage, and content is the material you want to center</span></pre></td></tr></table></div>

<p>Initialize your stage listeners/event listeners.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
</pre></td><td class="code"><pre class="java" style="font-family:monospace;">function init<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
stage.<span style="color: #006633;">align</span><span style="color: #339933;">=</span>StageAlign.<span style="color: #006633;">TOP_LEFT</span><span style="color: #339933;">;</span>
stage.<span style="color: #006633;">scaleMode</span><span style="color: #339933;">=</span>StageScaleMode.<span style="color: #006633;">NO_SCALE</span><span style="color: #339933;">;</span>
&nbsp;
stage.<span style="color: #006633;">addEventListener</span><span style="color: #009900;">&#40;</span><span style="color: #003399;">Event</span>.<span style="color: #006633;">RESIZE</span>, updateSize<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
stage.<span style="color: #006633;">dispatchEvent</span><span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">Event</span><span style="color: #009900;">&#40;</span><span style="color: #003399;">Event</span>.<span style="color: #006633;">RESIZE</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
container.<span style="color: #006633;">x</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
container.<span style="color: #006633;">y</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>updateSize gets called every time the stage gets resized.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
</pre></td><td class="code"><pre class="java" style="font-family:monospace;">function updateSize<span style="color: #009900;">&#40;</span>e<span style="color: #339933;">:</span><span style="color: #003399;">Event</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// make container width/height equal to stage.width/height</span>
container.<span style="color: #006633;">width</span> <span style="color: #339933;">=</span> stage.<span style="color: #006633;">stageWidth</span><span style="color: #339933;">;</span>
container.<span style="color: #006633;">height</span> <span style="color: #339933;">=</span> stage.<span style="color: #006633;">stageHeight</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//center content</span>
content.<span style="color: #006633;">x</span> <span style="color: #339933;">=</span> stage.<span style="color: #006633;">stageWidth</span><span style="color: #339933;">/</span><span style="color: #cc66cc;">2</span> <span style="color: #339933;">-</span> content.<span style="color: #006633;">width</span><span style="color: #339933;">/</span><span style="color: #cc66cc;">2</span><span style="color: #339933;">;</span>
content.<span style="color: #006633;">y</span> <span style="color: #339933;">=</span> stage.<span style="color: #006633;">stageHeight</span><span style="color: #339933;">/</span><span style="color: #cc66cc;">2</span> <span style="color: #339933;">-</span> content.<span style="color: #006633;">height</span><span style="color: #339933;">/</span><span style="color: #cc66cc;">2</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.meladori.com/shesinactionscript/?feed=rss2&amp;p=67</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Overwriting tweens in TweenLite</title>
		<link>http://www.meladori.com/shesinactionscript/?p=65</link>
		<comments>http://www.meladori.com/shesinactionscript/?p=65#comments</comments>
		<pubDate>Fri, 13 Feb 2009 18:01:53 +0000</pubDate>
		<dc:creator>Janice</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[tweenlite]]></category>

		<guid isPermaLink="false">http://www.meladori.com/shesinactionscript/?p=65</guid>
		<description><![CDATA[You can choose to overwrite tweens:

1
2
TweenLite.to&#40;mc, 1, &#123;x:100, y:200&#125;&#41;;
TweenLite.to&#40;mc, 1, &#123;x:300, overwrite:2&#125;&#41;; //only overwrites the &#34;x&#34; property in the previous tween

you can pass 0, 1, 2, or 3 to overwrite.
According to ]]></description>
			<content:encoded><![CDATA[<p>You can choose to overwrite tweens:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="java" style="font-family:monospace;">TweenLite.<span style="color: #006633;">to</span><span style="color: #009900;">&#40;</span>mc, <span style="color: #cc66cc;">1</span>, <span style="color: #009900;">&#123;</span>x<span style="color: #339933;">:</span><span style="color: #cc66cc;">100</span>, y<span style="color: #339933;">:</span><span style="color: #cc66cc;">200</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
TweenLite.<span style="color: #006633;">to</span><span style="color: #009900;">&#40;</span>mc, <span style="color: #cc66cc;">1</span>, <span style="color: #009900;">&#123;</span>x<span style="color: #339933;">:</span><span style="color: #cc66cc;">300</span>, overwrite<span style="color: #339933;">:</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//only overwrites the &quot;x&quot; property in the previous tween</span></pre></td></tr></table></div>

<p>you can pass 0, 1, 2, or 3 to overwrite.</p>
<p>According to <a href="http://blog.greensock.com/tweenliteas3/ target-="_blank">GreenSock&#8217;s site</a>: </p>
<p>0 (NONE): No tweens are overwritten. This is the fastest mode, but you need to be careful not to create any tweens with overlapping properties, otherwise they&#8217;ll conflict with each other.</p>
<p>1 (ALL): (this is the default unless OverwriteManager.init() has been called) All tweens of the same object are completely overwritten immediately when the tween is created. </p>
<p>2 (AUTO): (used by default if OverwriteManager.init() has been called) Searches for and overwrites only individual overlapping properties in tweens that are active when the tween begins. </p>
<p>3 (CONCURRENT): Overwrites all tweens of the same object that are active when the tween begins. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.meladori.com/shesinactionscript/?feed=rss2&amp;p=65</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Basic Line Drawer</title>
		<link>http://www.meladori.com/shesinactionscript/?p=59</link>
		<comments>http://www.meladori.com/shesinactionscript/?p=59#comments</comments>
		<pubDate>Fri, 13 Feb 2009 17:43:03 +0000</pubDate>
		<dc:creator>Janice</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.meladori.com/shesinactionscript/?p=59</guid>
		<description><![CDATA[Basic line drawer: (preview link)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// add stage listeners 
stage.addEventListener&#40;MouseEvent.MOUSE_DOWN, onDown&#41;; 
stage.addEventListener&#40;MouseEvent.MOUSE_UP, onUp&#41;; 
&#160;
function onDown&#40;e:Event&#41;:void &#123;
 graphics.moveTo&#40;mouseX, mouseY&#41;; 
 addEventListener&#40;Event.ENTER_FRAME, onLoop&#41;;
&#125;
&#160;
function onUp&#40;e:Event&#41;:void &#123;
 removeEventListener&#40;Event.ENTER_FRAME, onLoop&#41;;
&#125;
&#160;
// bit shifting colours
function onLoop&#40;e:Event&#41;:void &#123;
 graphics.lineStyle&#40;&#40;Math.random&#40;&#41;*45&#41;, Math.random&#40;&#41;*0xFFFFFF &#62;&#62; 23, Math.random&#40;&#41;, true, &#34;normal&#34;&#41;; // blue=black
 graphics.lineTo&#40;mouseX, mouseY&#41;;    
&#125;

]]></description>
			<content:encoded><![CDATA[<p>Basic line drawer: (<a href="http://www.meladori.com/work/flash/AS3/LineDrawer/" target="_blank">preview link</a>)</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
</pre></td><td class="code"><pre class="java" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// add stage listeners </span>
stage.<span style="color: #006633;">addEventListener</span><span style="color: #009900;">&#40;</span><span style="color: #003399;">MouseEvent</span>.<span style="color: #006633;">MOUSE_DOWN</span>, onDown<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
stage.<span style="color: #006633;">addEventListener</span><span style="color: #009900;">&#40;</span><span style="color: #003399;">MouseEvent</span>.<span style="color: #006633;">MOUSE_UP</span>, onUp<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
&nbsp;
function onDown<span style="color: #009900;">&#40;</span>e<span style="color: #339933;">:</span><span style="color: #003399;">Event</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">:</span><span style="color: #000066; font-weight: bold;">void</span> <span style="color: #009900;">&#123;</span>
 graphics.<span style="color: #006633;">moveTo</span><span style="color: #009900;">&#40;</span>mouseX, mouseY<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
 addEventListener<span style="color: #009900;">&#40;</span><span style="color: #003399;">Event</span>.<span style="color: #006633;">ENTER_FRAME</span>, onLoop<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
function onUp<span style="color: #009900;">&#40;</span>e<span style="color: #339933;">:</span><span style="color: #003399;">Event</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">:</span><span style="color: #000066; font-weight: bold;">void</span> <span style="color: #009900;">&#123;</span>
 removeEventListener<span style="color: #009900;">&#40;</span><span style="color: #003399;">Event</span>.<span style="color: #006633;">ENTER_FRAME</span>, onLoop<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// bit shifting colours</span>
function onLoop<span style="color: #009900;">&#40;</span>e<span style="color: #339933;">:</span><span style="color: #003399;">Event</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">:</span><span style="color: #000066; font-weight: bold;">void</span> <span style="color: #009900;">&#123;</span>
 graphics.<span style="color: #006633;">lineStyle</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span><span style="color: #003399;">Math</span>.<span style="color: #006633;">random</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">*</span><span style="color: #cc66cc;">45</span><span style="color: #009900;">&#41;</span>, <span style="color: #003399;">Math</span>.<span style="color: #006633;">random</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">*</span>0xFFFFFF <span style="color: #339933;">&gt;&gt;</span> <span style="color: #cc66cc;">23</span>, <span style="color: #003399;">Math</span>.<span style="color: #006633;">random</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>, <span style="color: #000066; font-weight: bold;">true</span>, <span style="color: #0000ff;">&quot;normal&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// blue=black</span>
 graphics.<span style="color: #006633;">lineTo</span><span style="color: #009900;">&#40;</span>mouseX, mouseY<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>    
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.meladori.com/shesinactionscript/?feed=rss2&amp;p=59</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Buttons in Flex</title>
		<link>http://www.meladori.com/shesinactionscript/?p=55</link>
		<comments>http://www.meladori.com/shesinactionscript/?p=55#comments</comments>
		<pubDate>Fri, 13 Feb 2009 17:41:24 +0000</pubDate>
		<dc:creator>Janice</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.meladori.com/shesinactionscript/?p=55</guid>
		<description><![CDATA[A button component in MXML:

1
&#60;mx:Button x=&#34;10&#34; y=&#34;10&#34; label=&#34;myButton&#34; id=&#34;newButton&#34; click=&#34;checkForm()&#34;&#62;


MXML is converted to AS3 when you compile it. MXML is used to define the structure of your Flex application, and Actionscript is used to define behavior.
]]></description>
			<content:encoded><![CDATA[<p>A button component in MXML:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="java" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>mx<span style="color: #339933;">:</span><span style="color: #003399;">Button</span> x<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;10&quot;</span> y<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;10&quot;</span> label<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;myButton&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;newButton&quot;</span> click<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;checkForm()&quot;</span><span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<p></mx:Application></pre>
<p>MXML is converted to AS3 when you compile it. MXML is used to define the structure of your Flex application, and Actionscript is used to define behavior.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.meladori.com/shesinactionscript/?feed=rss2&amp;p=55</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Easy tweens with TweenLite</title>
		<link>http://www.meladori.com/shesinactionscript/?p=49</link>
		<comments>http://www.meladori.com/shesinactionscript/?p=49#comments</comments>
		<pubDate>Fri, 13 Feb 2009 17:36:57 +0000</pubDate>
		<dc:creator>Janice</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[tweenlite]]></category>

		<guid isPermaLink="false">http://www.meladori.com/shesinactionscript/?p=49</guid>
		<description><![CDATA[TweenLite is a small and fast tweening engine for Flash Player 9 (AS3). TweenLite only adds about 3KB to published .swfs.
Somewhere above your constructor:

1
2
import gs.TweenLite; 
import gs.easing.*;

Basic TweenLite function: 
TweenLite.to tweens from an initial point to that point that you define. Position the clip on the stage where/how you want the tween to start.

1
2
TweenLite.to&#40;circle, 1, [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.greensock.com/tweenliteas3/" target="_blank">TweenLite</a> is a small and fast tweening engine for Flash Player 9 (AS3). TweenLite only adds about 3KB to published .swfs.</p>
<p>Somewhere above your constructor:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">gs.TweenLite</span><span style="color: #339933;">;</span> 
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">gs.easing.*</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>Basic TweenLite function: </p>
<p>TweenLite.to tweens from an initial point to that point that you define. Position the clip on the stage where/how you want the tween to start.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="java" style="font-family:monospace;">TweenLite.<span style="color: #006633;">to</span><span style="color: #009900;">&#40;</span>circle, <span style="color: #cc66cc;">1</span>, <span style="color: #009900;">&#123;</span>x<span style="color: #339933;">:</span><span style="color: #cc66cc;">300</span>, ease<span style="color: #339933;">:</span>Sine.<span style="color: #006633;">easeIn</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
<span style="color: #666666; font-style: italic;">// TweenLite.to(moviecliptotween, timeinsec, { .. properties... });</span></pre></td></tr></table></div>

<p>TweenLite.from does the opposite. Position the clip on the stage where you want the tween to end, and define where/how you want the tween to begin:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="java" style="font-family:monospace;">TweenLite.<span style="color: #006633;">from</span><span style="color: #009900;">&#40;</span>circle, <span style="color: #cc66cc;">1</span>, <span style="color: #009900;">&#123;</span>y<span style="color: #339933;">:</span><span style="color: #cc66cc;">300</span>, ease<span style="color: #339933;">:</span>Sine.<span style="color: #006633;">easeIn</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>Useful notes: </p>
<p>TweenLite has an onComplete function that you can map behaviour to upon finishing a tween.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="java" style="font-family:monospace;">TweenLite.<span style="color: #006633;">to</span><span style="color: #009900;">&#40;</span>circle, <span style="color: #cc66cc;">1</span>, <span style="color: #009900;">&#123;</span>onComplete<span style="color: #339933;">:</span>doneTween<span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
...
<span style="color: #006633;">function</span> doneTween<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">:</span><span style="color: #000066; font-weight: bold;">void</span> <span style="color: #009900;">&#123;</span>
   <span style="color: #666666; font-style: italic;">// finished tween, now do this </span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.meladori.com/shesinactionscript/?feed=rss2&amp;p=49</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
