<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6647333275164039598</id><updated>2024-12-19T10:18:28.625+07:00</updated><category term="ActionScript 2.0"/><title type='text'>Learn Flash ActionScript</title><subtitle type='html'>Game, Aplication, and many more useful with ActionScript</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://actionscript-v2.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6647333275164039598/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://actionscript-v2.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>13</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6647333275164039598.post-7447351022408900801</id><published>2010-11-15T23:57:00.005+07:00</published><updated>2010-11-16T00:19:06.724+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ActionScript 2.0"/><title type='text'>Trace (message)</title><content type='html'>&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;The command &lt;b&gt;trace ()&lt;/b&gt; is used to display something on the output panel.&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;Usage of trace action is very useful in further programming later, as fault testing in a program line.&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt; A&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;n example of using trace action script as following:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 13px;&quot;&gt;Click frame 1, then open the action panel and typing the script:&amp;nbsp;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Times New Roman&#39;; font-size: medium;&quot;&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt; line-height: 115%;&quot;&gt;trace (1000);&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt; line-height: 115%;&quot;&gt; then run the movie by pressing CTRL+Enter.&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt; line-height: 115%;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt; line-height: 115%;&quot;&gt;It will appear the text &quot;1000&quot; on the output panel.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhmrMCeeIgnKFiD_GK5fSlwWvxS7NYMS58MUIx_6-1wvVGL1NM6KDILZl7rjVcL4xkplvCr4Fr8mfuKbYH4K7u-huPcMHCzq_CcrZLV8hfGX65eQ1urezlNtpJhMhQHHdtSCkh19uVCsWKA/s1600/1000.gif&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhmrMCeeIgnKFiD_GK5fSlwWvxS7NYMS58MUIx_6-1wvVGL1NM6KDILZl7rjVcL4xkplvCr4Fr8mfuKbYH4K7u-huPcMHCzq_CcrZLV8hfGX65eQ1urezlNtpJhMhQHHdtSCkh19uVCsWKA/s1600/1000.gif&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;Press Ctrl + W to return to the Stage.&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;Next change the action in frame 1 become:&amp;nbsp;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Times New Roman&#39;; font-size: medium;&quot;&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;trace (&quot;hello how are you?&quot;);&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt; Then run movie again.&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;So it will appear in output panel as follows:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvBQZaIgiHr9DvlNIs0sJbuEIoix2a5CNKdNlTbkgAGuiTb-V2kw8Pcw4SySdbozzOIIG4eWr0HmDEdc5skCjnFCJgwnNQkRVz9x24VhWZ2hB98cZ0uexytusyJJCtIuy5ddeDXXsk1GMX/s1600/hwru.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvBQZaIgiHr9DvlNIs0sJbuEIoix2a5CNKdNlTbkgAGuiTb-V2kw8Pcw4SySdbozzOIIG4eWr0HmDEdc5skCjnFCJgwnNQkRVz9x24VhWZ2hB98cZ0uexytusyJJCtIuy5ddeDXXsk1GMX/s1600/hwru.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;Press Ctrl + W to return to the Stage.&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;Next change the action in frame 1 become:&amp;nbsp;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Times New Roman&#39;; font-size: medium;&quot;&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;trace (number);&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt; Then run movie again.&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span title=&quot;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;So it will appear in output panel as follows:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGgEAaTa395g9RZzc7kD_4PKnLf2dEWSUE3tC_pmxmZeFFuc3BOI1GIyIn6-748fuypKxKf5SgrirVQAbGme16c997DCnw8zexEPVYOI3B2ShEWg6U88vSuR7tlpNWlxtianNafa9FSFVf/s1600/undefine.gif&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGgEAaTa395g9RZzc7kD_4PKnLf2dEWSUE3tC_pmxmZeFFuc3BOI1GIyIn6-748fuypKxKf5SgrirVQAbGme16c997DCnw8zexEPVYOI3B2ShEWg6U88vSuR7tlpNWlxtianNafa9FSFVf/s1600/undefine.gif&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;Press Ctrl + W to return to the Stage.&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;Next add the action in frame 1 becomes:&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;blockquote&gt;number = 1000;&lt;/blockquote&gt;&lt;blockquote&gt;trace (number);&lt;/blockquote&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;Then run movie again.&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;So the view that emerges is as follows:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhmrMCeeIgnKFiD_GK5fSlwWvxS7NYMS58MUIx_6-1wvVGL1NM6KDILZl7rjVcL4xkplvCr4Fr8mfuKbYH4K7u-huPcMHCzq_CcrZLV8hfGX65eQ1urezlNtpJhMhQHHdtSCkh19uVCsWKA/s1600/1000.gif&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhmrMCeeIgnKFiD_GK5fSlwWvxS7NYMS58MUIx_6-1wvVGL1NM6KDILZl7rjVcL4xkplvCr4Fr8mfuKbYH4K7u-huPcMHCzq_CcrZLV8hfGX65eQ1urezlNtpJhMhQHHdtSCkh19uVCsWKA/s1600/1000.gif&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;The conclusion that can be taken are as follows:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;Value inside () in the action trace () can be filled with numbers.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;Word&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt; &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&quot;hello how are you?&quot;&lt;/b&gt; can be displayed because it is a string object (located inside &quot;&quot;).&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;Word &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;number&lt;/b&gt; can not be displayed, because not enclosed in &quot;&quot;, so the word &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;number&lt;/b&gt; is considered as a &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;variable&lt;/b&gt; that must be defined first.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;Additional action number = 1000; is defining the &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;number&lt;/b&gt; variable, so this variable is valued at 1000 and can be displayed by the action &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;trace ()&lt;/b&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;</content><link rel='replies' type='application/atom+xml' href='http://actionscript-v2.blogspot.com/feeds/7447351022408900801/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://actionscript-v2.blogspot.com/2010/11/trace-message.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6647333275164039598/posts/default/7447351022408900801'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6647333275164039598/posts/default/7447351022408900801'/><link rel='alternate' type='text/html' href='http://actionscript-v2.blogspot.com/2010/11/trace-message.html' title='Trace (message)'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhmrMCeeIgnKFiD_GK5fSlwWvxS7NYMS58MUIx_6-1wvVGL1NM6KDILZl7rjVcL4xkplvCr4Fr8mfuKbYH4K7u-huPcMHCzq_CcrZLV8hfGX65eQ1urezlNtpJhMhQHHdtSCkh19uVCsWKA/s72-c/1000.gif" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6647333275164039598.post-6185491051511825710</id><published>2010-11-14T15:40:00.000+07:00</published><updated>2010-11-14T15:40:06.019+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ActionScript 2.0"/><title type='text'>OnClipEvent (event)</title><content type='html'>&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-bidi-font-family: Arial;&quot;&gt;OnClipEvent is a script that is used by a movie clip to execute some other commands in a block event.&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-bidi-font-family: Arial;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-bidi-font-family: Arial;&quot;&gt;Event parameters can contains:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-bidi-font-family: Arial;&quot;&gt;load&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-bidi-font-family: Arial;&quot;&gt; command will be executed when first movie clip loaded by the time line.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-bidi-font-family: Arial;&quot;&gt;unload &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-bidi-font-family: Arial;&quot;&gt;command will be executed when a movie clip is removed (omitted) from the time line.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-bidi-font-family: Arial;&quot;&gt;enterFrame&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-bidi-font-family: Arial;&quot;&gt; command will run continuously throughout the active frame.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-bidi-font-family: Arial;&quot;&gt;mouseMove&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-bidi-font-family: Arial;&quot;&gt; command will be executed when the mouse is moved.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-bidi-font-family: Arial;&quot;&gt;mouseDown&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-bidi-font-family: Arial;&quot;&gt; command will be executed when the mouse is pressed.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-bidi-font-family: Arial;&quot;&gt;mouseUp&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-bidi-font-family: Arial;&quot;&gt; command will be executed when the mouse is released.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-bidi-font-family: Arial;&quot;&gt;keydown&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-bidi-font-family: Arial;&quot;&gt; command will be executed when it detects a button pressed by using the action Key.getCode.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-bidi-font-family: Arial;&quot;&gt;keyUp&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-bidi-font-family: Arial;&quot;&gt; command will be executed when it detects a button released by using the action Key.getCode.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0cm; text-align: justify;&quot;&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-bidi-font-family: Arial;&quot;&gt;Advance understanding about this script will be formed in line with our practice in processing the action script.&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://actionscript-v2.blogspot.com/feeds/6185491051511825710/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://actionscript-v2.blogspot.com/2010/11/onclipevent-event.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6647333275164039598/posts/default/6185491051511825710'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6647333275164039598/posts/default/6185491051511825710'/><link rel='alternate' type='text/html' href='http://actionscript-v2.blogspot.com/2010/11/onclipevent-event.html' title='OnClipEvent (event)'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6647333275164039598.post-4290803372179139053</id><published>2010-11-13T09:54:00.008+07:00</published><updated>2010-11-13T09:54:00.243+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ActionScript 2.0"/><title type='text'>gotoAndStop() and gotoAndPlay()</title><content type='html'>&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #7030a0; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;gotoAndStop(frame)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0in; text-align: justify;&quot;&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt; line-height: 115%;&quot;&gt;Action &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;gotoAndStop ()&lt;/b&gt; is used to stop the movie at the desired frame.&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt; line-height: 115%;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt; line-height: 115%;&quot;&gt;Frame can be filled by using desired frame number or frame label.&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt; line-height: 115%;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt; line-height: 115%;&quot;&gt;Consider the following examples:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0in; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 13px; line-height: 14px;&quot;&gt;Create &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;a ball movieclip&lt;/b&gt; and place to the left of the stage.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt; line-height: 115%;&quot;&gt;Click on frame 20 and then insert keyframe.&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt; line-height: 115%;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt; line-height: 115%;&quot;&gt;Move &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;ball &lt;/b&gt;position to the right stage.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 13px; line-height: 14px;&quot;&gt;Right-click on frame 10 and select &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;create motion tween&lt;/b&gt;, it will form ball animation that moves from left to right in a loop.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 13px; line-height: 14px;&quot;&gt;Add new layer above the &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;layer 1&lt;/b&gt; and change its name to &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;action&lt;/b&gt;.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt; line-height: 115%;&quot;&gt;Click on frame 10 &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;action&lt;/b&gt; layer, insert keyframe&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt; line-height: 115%;&quot;&gt;, t&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt; line-height: 115%;&quot;&gt;hen open the action panel and typing action &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;gotoAndStop (1);&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjpp8k1LgII4vHH0BkZ0u3PsJYklZoWJ3F73a_Isbwj8DuGy85pLCpy1ETLArMenKuUkw8N4yo8WLJqzqlrAJh0Rvha7AoS2mN0G3baJTLUJ60xBfuSic2AxruMSBe4kVinPPwjFdej9pfI/s1600/goTo%2528%2529.gif&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjpp8k1LgII4vHH0BkZ0u3PsJYklZoWJ3F73a_Isbwj8DuGy85pLCpy1ETLArMenKuUkw8N4yo8WLJqzqlrAJh0Rvha7AoS2mN0G3baJTLUJ60xBfuSic2AxruMSBe4kVinPPwjFdej9pfI/s1600/goTo%2528%2529.gif&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: center; text-autospace: none;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0in; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 13px; line-height: 14px;&quot;&gt;Run the movie, then when ball reached the middle stage, ball will back and stop to the starting position in left of stage.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0in; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0in; text-align: justify;&quot;&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #7030a0; font-family: Verdana, sans-serif; font-size: 10pt; line-height: 115%;&quot;&gt;gotoAndPlay (frame)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0in; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0in; text-align: justify;&quot;&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt; line-height: 115%;&quot;&gt;Action &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;gotoAndPlay ()&lt;/b&gt; used to play the movie on the desired frame, as opposed to the action &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;gotoAndStop ();&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0in; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0in; text-align: justify;&quot;&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;&lt;span style=&quot;color: red; font-family: Verdana, sans-serif; font-size: 10pt; line-height: 115%;&quot;&gt;note:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt; line-height: 115%;&quot;&gt; once when we find action &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;gotoAndStop (&quot;start&quot;);&lt;/b&gt; the word &quot;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;start&lt;/b&gt;&quot; is frame label.&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt; line-height: 115%;&quot;&gt; To&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt; line-height: 115%;&quot;&gt; add frame label, input keyframe on the desired frame, open Properties panel and typing in &amp;lt;frame label&amp;gt; textbox.&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt; line-height: 115%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0rMOJ830V75gZo5QivCghOCtylNXa-bOFyH0UV-gjxOY43ejzO4-E_Da1122BBmNg7CQWKHxdl2ax3opxv18pUcP4D5MppU6b_vC74JeBilqmgJk-tUM8XF5mbsuDmP1aZAKPyXVpb4Rd/s1600/frame.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0rMOJ830V75gZo5QivCghOCtylNXa-bOFyH0UV-gjxOY43ejzO4-E_Da1122BBmNg7CQWKHxdl2ax3opxv18pUcP4D5MppU6b_vC74JeBilqmgJk-tUM8XF5mbsuDmP1aZAKPyXVpb4Rd/s1600/frame.JPG&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEga2kwwJv3I0nJ2jS8UjKeIPQYvrgL9VFg_ueq09ROFDYZ0AIj-EepD8dyCGHdcMrz9jdm3628PfxN9-sCka5GSTleIu7a2FBYM6NAS6qrxVqGHVwV5apLQPSmUrNafZYcj4mPSNLPqx8hF/s1600/label.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEga2kwwJv3I0nJ2jS8UjKeIPQYvrgL9VFg_ueq09ROFDYZ0AIj-EepD8dyCGHdcMrz9jdm3628PfxN9-sCka5GSTleIu7a2FBYM6NAS6qrxVqGHVwV5apLQPSmUrNafZYcj4mPSNLPqx8hF/s1600/label.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;a href=&quot;https://sites.google.com/site/as2sourcecode/home/gotoAnd.fla?attredirects=0&amp;amp;d=1&quot;&gt;Download&lt;/a&gt; &lt;a href=&quot;https://sites.google.com/site/as2sourcecode/home/gotoAnd.fla?attredirects=0&amp;amp;d=1&quot;&gt;Source Code&lt;/a&gt; &lt;a href=&quot;https://sites.google.com/site/as2sourcecode/home/gotoAnd.fla?attredirects=0&amp;amp;d=1&quot;&gt;Here&lt;/a&gt;&lt;/div&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0in; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt; line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt; line-height: 115%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://actionscript-v2.blogspot.com/feeds/4290803372179139053/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://actionscript-v2.blogspot.com/2010/11/gotoandstop-and-gotoandplay.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6647333275164039598/posts/default/4290803372179139053'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6647333275164039598/posts/default/4290803372179139053'/><link rel='alternate' type='text/html' href='http://actionscript-v2.blogspot.com/2010/11/gotoandstop-and-gotoandplay.html' title='gotoAndStop() and gotoAndPlay()'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjpp8k1LgII4vHH0BkZ0u3PsJYklZoWJ3F73a_Isbwj8DuGy85pLCpy1ETLArMenKuUkw8N4yo8WLJqzqlrAJh0Rvha7AoS2mN0G3baJTLUJ60xBfuSic2AxruMSBe4kVinPPwjFdej9pfI/s72-c/goTo%2528%2529.gif" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6647333275164039598.post-4539377406754031363</id><published>2010-11-12T09:09:00.031+07:00</published><updated>2010-11-12T09:09:00.253+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ActionScript 2.0"/><title type='text'>Playing Movie using play();</title><content type='html'>&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 13px;&quot;&gt;Action &lt;b&gt;play();&lt;/b&gt; used to running frame that stoped because action &lt;b&gt;stop();&lt;/b&gt;. For more detail see example as follow:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 13px;&quot;&gt;Continue step in last post (Stop Movie using stop();).&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 13px;&quot;&gt;Click layer 1, then add new layer above layer 1 and change name to &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;button&lt;/b&gt;.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtp-xcsT3Eo14zMevPJc4d_Kj7OuS-zkGXviu9Y9dnQxLJBRTuwydy48eF4FT1UCSCPnCvrdzGwzMfXwagQjeIz2eeDOh629a0x52NH69cO4vLkkZ_p8mL17aUePso8wht5_8n0TYHUVjU/s1600/add_layer.GIF&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtp-xcsT3Eo14zMevPJc4d_Kj7OuS-zkGXviu9Y9dnQxLJBRTuwydy48eF4FT1UCSCPnCvrdzGwzMfXwagQjeIz2eeDOh629a0x52NH69cO4vLkkZ_p8mL17aUePso8wht5_8n0TYHUVjU/s1600/add_layer.GIF&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: center; text-autospace: none;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;&lt;v:shapetype coordsize=&quot;21600,21600&quot; filled=&quot;f&quot; id=&quot;_x0000_t75&quot; o:preferrelative=&quot;t&quot; o:spt=&quot;75&quot; path=&quot;m@4@5l@4@11@9@11@9@5xe&quot; stroked=&quot;f&quot;&gt;  &lt;v:stroke joinstyle=&quot;miter&quot;&gt;  &lt;v:formulas&gt;   &lt;v:f eqn=&quot;if lineDrawn pixelLineWidth 0&quot;&gt;   &lt;v:f eqn=&quot;sum @0 1 0&quot;&gt;   &lt;v:f eqn=&quot;sum 0 0 @1&quot;&gt;   &lt;v:f eqn=&quot;prod @2 1 2&quot;&gt;   &lt;v:f eqn=&quot;prod @3 21600 pixelWidth&quot;&gt;   &lt;v:f eqn=&quot;prod @3 21600 pixelHeight&quot;&gt;   &lt;v:f eqn=&quot;sum @0 0 1&quot;&gt;   &lt;v:f eqn=&quot;prod @6 1 2&quot;&gt;   &lt;v:f eqn=&quot;prod @7 21600 pixelWidth&quot;&gt;   &lt;v:f eqn=&quot;sum @8 21600 0&quot;&gt;   &lt;v:f eqn=&quot;prod @7 21600 pixelHeight&quot;&gt;   &lt;v:f eqn=&quot;sum @10 21600 0&quot;&gt;  &lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:formulas&gt;  &lt;v:path gradientshapeok=&quot;t&quot; o:connecttype=&quot;rect&quot; o:extrusionok=&quot;f&quot;&gt;  &lt;o:lock aspectratio=&quot;t&quot; v:ext=&quot;edit&quot;&gt; &lt;/o:lock&gt;&lt;/v:path&gt;&lt;/v:stroke&gt;&lt;/v:shapetype&gt;&lt;v:shape id=&quot;Picture_x0020_1&quot; o:spid=&quot;_x0000_i1026&quot; style=&quot;height: 115.5pt; mso-wrap-style: square; visibility: visible; width: 202.5pt;&quot; type=&quot;#_x0000_t75&quot;&gt;  &lt;v:imagedata o:title=&quot;add_layer&quot; src=&quot;file:///C:\Users\Compaq\AppData\Local\Temp\msohtmlclip1\01\clip_image001.gif&quot;&gt; &lt;/v:imagedata&gt;&lt;/v:shape&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 13px;&quot;&gt;Click frame 10 in &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;button&lt;/b&gt; layer, then add new keyframe and create a button in center of stage using rectangle tool.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3cdNha_Vdky4xR_p7kCZJL-WJ3oOiHj5RjXBXKScjYnNsCV9_vgFourTp9OkEsbrrRZJG4A3iIW0BJ8FyHvujNENbpCXm7Qj3UkUTrSJ-iqYVtpUgVsKhBmUJavUwhu04pU-h8MASP-bZ/s1600/play.gif&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;67&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3cdNha_Vdky4xR_p7kCZJL-WJ3oOiHj5RjXBXKScjYnNsCV9_vgFourTp9OkEsbrrRZJG4A3iIW0BJ8FyHvujNENbpCXm7Qj3UkUTrSJ-iqYVtpUgVsKhBmUJavUwhu04pU-h8MASP-bZ/s200/play.gif&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: center; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;&lt;v:shape id=&quot;Picture_x0020_2&quot; o:spid=&quot;_x0000_i1025&quot; style=&quot;height: 110.25pt; mso-wrap-style: square; visibility: visible; width: 322.5pt;&quot; type=&quot;#_x0000_t75&quot;&gt;  &lt;v:imagedata o:title=&quot;play&quot; src=&quot;file:///C:\Users\Compaq\AppData\Local\Temp\msohtmlclip1\01\clip_image002.gif&quot;&gt; &lt;/v:imagedata&gt;&lt;/v:shape&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 13px;&quot;&gt;Select button that we make with rectangle tool and convert to symbol by pressing F8, type “play_btn” in name option then choose button in type option.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 13px;&quot;&gt;Select &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;play&lt;/b&gt; button then open action panel and type this script:&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;blockquote&gt;on (release) {&lt;/blockquote&gt;&lt;blockquote&gt;//if button play is pressed then play next frame&lt;/blockquote&gt;&lt;blockquote&gt;play();&lt;/blockquote&gt;&lt;blockquote&gt;}&lt;/blockquote&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 13px;&quot;&gt;Run movie by pressed CTRL+Enter. When ball is stop, press play button that we make and ball will move again. Action &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;play();&lt;/b&gt; in play button cause movie run again when button is pressed.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;&lt;a href=&quot;https://sites.google.com/site/as2sourcecode/home/play%28%29.fla?attredirects=0&amp;amp;d=1&quot;&gt;Download&lt;/a&gt; &lt;a href=&quot;https://sites.google.com/site/as2sourcecode/home/play%28%29.fla?attredirects=0&amp;amp;d=1&quot;&gt;Source Code&lt;/a&gt; &lt;a href=&quot;https://sites.google.com/site/as2sourcecode/home/play%28%29.fla?attredirects=0&amp;amp;d=1&quot;&gt;here&lt;/a&gt; &lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://actionscript-v2.blogspot.com/feeds/4539377406754031363/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://actionscript-v2.blogspot.com/2010/11/playing-movie-using-play.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6647333275164039598/posts/default/4539377406754031363'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6647333275164039598/posts/default/4539377406754031363'/><link rel='alternate' type='text/html' href='http://actionscript-v2.blogspot.com/2010/11/playing-movie-using-play.html' title='Playing Movie using play();'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtp-xcsT3Eo14zMevPJc4d_Kj7OuS-zkGXviu9Y9dnQxLJBRTuwydy48eF4FT1UCSCPnCvrdzGwzMfXwagQjeIz2eeDOh629a0x52NH69cO4vLkkZ_p8mL17aUePso8wht5_8n0TYHUVjU/s72-c/add_layer.GIF" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6647333275164039598.post-8275660284879503050</id><published>2010-11-11T11:45:00.004+07:00</published><updated>2010-11-11T11:45:00.632+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ActionScript 2.0"/><title type='text'>Stop Movie using stop();</title><content type='html'>&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;Action stop(); is used to stop running movie clip. &lt;/span&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;For more details, see the following example:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 13px;&quot;&gt;Make a ball with oval tool, then convert to symbol with the name &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;ball_mc.&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;Select &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;ball_mc&lt;/b&gt;, then place it in the left of the stage&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;Click on frame 20, then add a keyframe by pressing F6.&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;Then move &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;ball_m&lt;/b&gt;c to the right stage.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQAiofWqzScy_cRNRcsJ-ZyfmNTWuOUrwv_sEUj8aBGojxVIDaDlghaZ_GNlRovHMZ-mPZU5mXPW6VMnuNl3TFqzWuLsxIz6e9hTpOvNS1xWU1Y1B-KP6fmB1f1n6xMp94UqzR0HjqizCX/s1600/postion.gif&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;166&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQAiofWqzScy_cRNRcsJ-ZyfmNTWuOUrwv_sEUj8aBGojxVIDaDlghaZ_GNlRovHMZ-mPZU5mXPW6VMnuNl3TFqzWuLsxIz6e9hTpOvNS1xWU1Y1B-KP6fmB1f1n6xMp94UqzR0HjqizCX/s320/postion.gif&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 13px;&quot;&gt;Right click on the timeline frame 10, then choose create &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;motion tween&lt;/b&gt;.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgrb4-W-73axVEU1YEDx4RTtkyZ60VBBIAffwOA3EMRxW2Koy65DvYZ__L-43faAlO35BxSsyBQHXb24blM53ethEBo7stW6mxAazPmPdsvohzuEiWleGeioKxtBSbbuTz1CccnNc4TonWp/s1600/tween1.gif&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;83&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgrb4-W-73axVEU1YEDx4RTtkyZ60VBBIAffwOA3EMRxW2Koy65DvYZ__L-43faAlO35BxSsyBQHXb24blM53ethEBo7stW6mxAazPmPdsvohzuEiWleGeioKxtBSbbuTz1CccnNc4TonWp/s200/tween1.gif&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidXWHW_OMkFoQ-hBnH9dJpEYxDct52M_4DnianHA2FhtiVIeCRe323Cy8e_I73aYdPf4vHbRXeJfbj91Tt5qcg6pr-Z6okFq-UlnVwfg_ROjfmuUPNkQeWpCloi5IGcRqwTwB-24qZv8FX/s1600/tween2.gif&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;70&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidXWHW_OMkFoQ-hBnH9dJpEYxDct52M_4DnianHA2FhtiVIeCRe323Cy8e_I73aYdPf4vHbRXeJfbj91Tt5qcg6pr-Z6okFq-UlnVwfg_ROjfmuUPNkQeWpCloi5IGcRqwTwB-24qZv8FX/s200/tween2.gif&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;Run the movie by pressing Ctrl+Enter.&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;It will get a ball movement from left to right in loops&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 13px;&quot;&gt;Back to the stage by pressing the Ctrl + W, then add a new layer (action layer).&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYU_-aPuOnIKHN2aCsxHe4f8QOfySHl_V3HP2lOhDfnV3zI14Sb9RY9KZBbyQJmn7VJrOfx8NCM2J1zchg2Y6-b-YNcyukmmRQWopfaOAFyiEyAhKEDw08KVCRrfvmXx4mgi5hyKc526YK/s1600/add_layer.gif&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYU_-aPuOnIKHN2aCsxHe4f8QOfySHl_V3HP2lOhDfnV3zI14Sb9RY9KZBbyQJmn7VJrOfx8NCM2J1zchg2Y6-b-YNcyukmmRQWopfaOAFyiEyAhKEDw08KVCRrfvmXx4mgi5hyKc526YK/s1600/add_layer.gif&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 13px;&quot;&gt;Click the action layer frame 10, then input keyframe by pressing F6. Still frame 10 in selection, open the action panel and typing action &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;stop ();&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwQdA6ckMNKRiLGRcIwbz6D-Ex0sankpRLvj-lXGKaUe4ggnzZSjtrjgdNdW2ipoXgGcGbmT6pk2fGqEO_8Eo8hNNcm-MLgemrYburAdzH80OAPRD_9fihiZiW2uUv_0QmqOyKz9xwKEGD/s1600/stop%2528%2529.gif&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;68&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwQdA6ckMNKRiLGRcIwbz6D-Ex0sankpRLvj-lXGKaUe4ggnzZSjtrjgdNdW2ipoXgGcGbmT6pk2fGqEO_8Eo8hNNcm-MLgemrYburAdzH80OAPRD_9fihiZiW2uUv_0QmqOyKz9xwKEGD/s320/stop%2528%2529.gif&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;Run movie by pressing the Ctrl+Enter, then the ball will stop when located in the center stage.&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;This is caused due to the action &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;stop ();&lt;/b&gt; so the movie stop.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 13px; line-height: 14px;&quot;&gt;Save the file.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px; line-height: 14px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px; line-height: 14px;&quot;&gt;&lt;a href=&quot;https://sites.google.com/site/as2sourcecode/home/stop%28%29.fla?attredirects=0&amp;amp;d=1&quot;&gt;Source Code Download&lt;/a&gt; = &lt;a href=&quot;https://sites.google.com/site/as2sourcecode/home/stop%28%29.fla?attredirects=0&amp;amp;d=1&quot;&gt;Click Here&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://actionscript-v2.blogspot.com/feeds/8275660284879503050/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://actionscript-v2.blogspot.com/2010/11/stop-movie-using-stop.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6647333275164039598/posts/default/8275660284879503050'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6647333275164039598/posts/default/8275660284879503050'/><link rel='alternate' type='text/html' href='http://actionscript-v2.blogspot.com/2010/11/stop-movie-using-stop.html' title='Stop Movie using stop();'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQAiofWqzScy_cRNRcsJ-ZyfmNTWuOUrwv_sEUj8aBGojxVIDaDlghaZ_GNlRovHMZ-mPZU5mXPW6VMnuNl3TFqzWuLsxIz6e9hTpOvNS1xWU1Y1B-KP6fmB1f1n6xMp94UqzR0HjqizCX/s72-c/postion.gif" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6647333275164039598.post-7213350176634284314</id><published>2010-11-10T17:44:00.000+07:00</published><updated>2010-11-10T17:44:00.166+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ActionScript 2.0"/><title type='text'>Object Properties</title><content type='html'>&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: TimesNewRomanPSMT;&quot;&gt;An object properties could be movieclip, button, graphic, sound, video, bitmap anc component. But, only movieclip, button and sound can entered with actionscript. Componet have build in action script, so that we can directly use, while bitmap and graphic can’t entered with actionscript. Every object that can entered with actionscript have several properties like x axis, y axis, width, height, active frame, color and others. Because movieclip is frequently used in flash, &lt;/span&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: Arial;&quot;&gt;The following are some properties of a movieclip&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: TimesNewRomanPSMT;&quot;&gt; :&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Times New Roman&#39;; font-size: medium;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: Arial-BoldMT;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: Arial-BoldMT;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;b&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: Arial-BoldMT;&quot;&gt;_x&lt;/span&gt;&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Times New Roman&#39;; font-size: medium;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;_x is the coordinate of x axis symbol in stage. In last post I explain thar calculation of x calculated from registration point of symbol, not from upper left corner of object that seen in symbol properties.&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: Arial-BoldMT;&quot;&gt;_y&lt;/span&gt;&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: TimesNewRomanPSMT;&quot;&gt;_y is the coordinate of y axis symbol in stage. Calculation of y axis is same wit x axis which is calculate from registration point symbol. &lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;See action script below:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .25in; margin-right: 0in; margin-top: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: TimesNewRomanPSMT;&quot;&gt;onClipEvent(load){&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .25in; margin-right: 0in; margin-top: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: TimesNewRomanPSMT;&quot;&gt;_x = 100; &lt;/span&gt;&lt;span style=&quot;color: #818181; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: TimesNewRomanPSMT;&quot;&gt;// x axis&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .25in; margin-right: 0in; margin-top: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: TimesNewRomanPSMT;&quot;&gt;_y = 100; &lt;/span&gt;&lt;span style=&quot;color: #818181; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: TimesNewRomanPSMT;&quot;&gt;// y axis&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .25in; margin-right: 0in; margin-top: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: TimesNewRomanPSMT;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: TimesNewRomanPSMT;&quot;&gt;Action script above will set the position of object(symbol) to coordinate (100,100) in stage when symbol shown at first time.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: Arial-BoldMT;&quot;&gt;_xscale&lt;/span&gt;&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: TimesNewRomanPSMT;&quot;&gt;_xscale is percentage of horizontal scale symbol against registration point.Default value of _xscale is 100. Object which have value under 100 have small size than original size, otherwise have large size than original.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: Arial-BoldMT;&quot;&gt;_yscale&lt;/span&gt;&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: TimesNewRomanPSMT;&quot;&gt;_yscale is percentage of verical scale symbol against registration point. example :&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .25in; margin-right: 0in; margin-top: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: TimesNewRomanPSMT;&quot;&gt;onClipEvent(load){&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .25in; margin-right: 0in; margin-top: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: TimesNewRomanPSMT;&quot;&gt;_xscale = 200; &lt;/span&gt;&lt;span style=&quot;color: #818181; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: TimesNewRomanPSMT;&quot;&gt;// twice enlargement in x axis&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .25in; margin-right: 0in; margin-top: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: TimesNewRomanPSMT;&quot;&gt;_yscale = 200; &lt;/span&gt;&lt;span style=&quot;color: #818181; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: TimesNewRomanPSMT;&quot;&gt;// twice enlargement in y axis&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .25in; margin-right: 0in; margin-top: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: TimesNewRomanPSMT;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: TimesNewRomanPSMT;&quot;&gt;This action will enlarge object twice when object shown first time.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: Arial-BoldMT;&quot;&gt;_visible&lt;/span&gt;&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: TimesNewRomanPSMT;&quot;&gt;_visible is object properties that set visibility of object in stage. _visible = 1 for shown object and 0 for hide object.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: TimesNewRomanPSMT;&quot;&gt;example :&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: TimesNewRomanPSMT;&quot;&gt;onClipEvent(load){&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: TimesNewRomanPSMT;&quot;&gt;_visible = 0; &lt;/span&gt;&lt;span style=&quot;color: #818181; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: TimesNewRomanPSMT;&quot;&gt;// not visible&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: TimesNewRomanPSMT;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: TimesNewRomanPSMT;&quot;&gt;This action cause object not show in stage.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: Arial-BoldMT;&quot;&gt;_alpha&lt;/span&gt;&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: TimesNewRomanPSMT;&quot;&gt;_alpha is property of object that set alpha value (transparency). _alpha have value 0 to 100 where 0 mean that object is not shown (transparent) and 100 mean that object is shown (solid).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: TimesNewRomanPSMT;&quot;&gt;example :&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: TimesNewRomanPSMT;&quot;&gt;onClipEvent(load){&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: TimesNewRomanPSMT;&quot;&gt;_alpha = 50; &lt;/span&gt;&lt;span style=&quot;color: #818181; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: TimesNewRomanPSMT;&quot;&gt;// semi transparent&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: TimesNewRomanPSMT;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: TimesNewRomanPSMT;&quot;&gt;This action cause object have transparency 50%.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: Arial-BoldMT;&quot;&gt;_rotation&lt;/span&gt;&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: TimesNewRomanPSMT;&quot;&gt;_rotation is properties that indicate rotation position of object clockwise against registration point.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: TimesNewRomanPSMT;&quot;&gt;example :&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: TimesNewRomanPSMT;&quot;&gt;onClipEvent(enterFrame){&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: TimesNewRomanPSMT;&quot;&gt;_rotation += 10; &lt;/span&gt;&lt;span style=&quot;color: #818181; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: TimesNewRomanPSMT;&quot;&gt;// 10 degree clockwise rotation&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: TimesNewRomanPSMT;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: TimesNewRomanPSMT;&quot;&gt;This action cause object rotate 10 degree clockwise against registration point.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: Arial-BoldMT;&quot;&gt;_currentframe&lt;/span&gt;&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none; text-justify: inter-ideograph;&quot;&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; mso-bidi-font-family: TimesNewRomanPSMT;&quot;&gt;Value of _currentframe indicate active frame in movie or movie clip. More detail explanation I will post in nextpost.&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://actionscript-v2.blogspot.com/feeds/7213350176634284314/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://actionscript-v2.blogspot.com/2010/11/object-properties.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6647333275164039598/posts/default/7213350176634284314'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6647333275164039598/posts/default/7213350176634284314'/><link rel='alternate' type='text/html' href='http://actionscript-v2.blogspot.com/2010/11/object-properties.html' title='Object Properties'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6647333275164039598.post-6334496603085933474</id><published>2010-11-09T20:00:00.000+07:00</published><updated>2010-11-09T20:00:04.226+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ActionScript 2.0"/><title type='text'>Introducing to Variable</title><content type='html'>&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 13px;&quot;&gt;Variable is a location in computer memory that used to save a value and it can be changed. There are 2 way to make variable in flash, &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;first&lt;/b&gt; is write variable name and it value directly, example :&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;score = 1000;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt; with this action&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt; automatically will create new variable with namely score and the value is 1000.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;Second is typing action &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;var&lt;/b&gt; before variable name that we type, example :&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;var score = 1000; &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;with this action&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt; automatically will create new variable with namely score and the value is 1000.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;Name rule in variable :&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 13px;&quot;&gt;a variable must not same with instance name of symbol.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 13px;&quot;&gt;space, dot, and other punctuation can’t be used.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;Cant use name that same with flash command like : &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;obyek, level, break &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;and others.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;Variable name must not use only number, but variable name can following with number. Wrong example :&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;12, 13&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;, and others, Right example : &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;score1, score_2 &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;and others.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 13px;&quot;&gt;Variable name is not &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;case sensitive&lt;/b&gt;, there are no different between lower or uppercase.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;&lt;b&gt;Variable Type&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt; line-height: 115%;&quot;&gt;There are several variable type in flash, the most that used are :&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;center&quot;&gt;&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoTableGrid&quot; style=&quot;border-collapse: collapse; border: none; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;&quot;&gt;&lt;tbody&gt;&lt;tr style=&quot;height: 12.85pt; mso-yfti-firstrow: yes; mso-yfti-irow: 0;&quot;&gt;   &lt;td style=&quot;border: solid black 1.0pt; height: 12.85pt; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-border-themecolor: text1; padding: 0in 5.4pt 0in 5.4pt; width: 205.6pt;&quot; width=&quot;274&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;Variable Type&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-left: none; border: solid black 1.0pt; height: 12.85pt; mso-border-alt: solid black .5pt; mso-border-left-alt: solid black .5pt; mso-border-left-themecolor: text1; mso-border-themecolor: text1; mso-border-themecolor: text1; padding: 0in 5.4pt 0in 5.4pt; width: 205.6pt;&quot; width=&quot;274&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;Writing Sample&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr style=&quot;height: 12.05pt; mso-yfti-irow: 1;&quot;&gt;   &lt;td style=&quot;border-top: none; border: solid black 1.0pt; height: 12.05pt; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-border-themecolor: text1; mso-border-top-alt: solid black .5pt; mso-border-top-themecolor: text1; padding: 0in 5.4pt 0in 5.4pt; width: 205.6pt;&quot; width=&quot;274&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;Number&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-bottom: solid black 1.0pt; border-left: none; border-right: solid black 1.0pt; border-top: none; height: 12.05pt; mso-border-alt: solid black .5pt; mso-border-bottom-themecolor: text1; mso-border-left-alt: solid black .5pt; mso-border-left-themecolor: text1; mso-border-right-themecolor: text1; mso-border-themecolor: text1; mso-border-top-alt: solid black .5pt; mso-border-top-themecolor: text1; padding: 0in 5.4pt 0in 5.4pt; width: 205.6pt;&quot; width=&quot;274&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;score = 1000;&amp;nbsp;&amp;nbsp;&amp;nbsp; i++;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr style=&quot;height: 12.85pt; mso-yfti-irow: 2;&quot;&gt;   &lt;td style=&quot;border-top: none; border: solid black 1.0pt; height: 12.85pt; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-border-themecolor: text1; mso-border-top-alt: solid black .5pt; mso-border-top-themecolor: text1; padding: 0in 5.4pt 0in 5.4pt; width: 205.6pt;&quot; width=&quot;274&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;String&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-bottom: solid black 1.0pt; border-left: none; border-right: solid black 1.0pt; border-top: none; height: 12.85pt; mso-border-alt: solid black .5pt; mso-border-bottom-themecolor: text1; mso-border-left-alt: solid black .5pt; mso-border-left-themecolor: text1; mso-border-right-themecolor: text1; mso-border-themecolor: text1; mso-border-top-alt: solid black .5pt; mso-border-top-themecolor: text1; padding: 0in 5.4pt 0in 5.4pt; width: 205.6pt;&quot; width=&quot;274&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;name = “”;&amp;nbsp;&amp;nbsp;&amp;nbsp; text = “example”&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr style=&quot;height: 12.85pt; mso-yfti-irow: 3;&quot;&gt;   &lt;td style=&quot;border-top: none; border: solid black 1.0pt; height: 12.85pt; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-border-themecolor: text1; mso-border-top-alt: solid black .5pt; mso-border-top-themecolor: text1; padding: 0in 5.4pt 0in 5.4pt; width: 205.6pt;&quot; width=&quot;274&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;Boolean&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-bottom: solid black 1.0pt; border-left: none; border-right: solid black 1.0pt; border-top: none; height: 12.85pt; mso-border-alt: solid black .5pt; mso-border-bottom-themecolor: text1; mso-border-left-alt: solid black .5pt; mso-border-left-themecolor: text1; mso-border-right-themecolor: text1; mso-border-themecolor: text1; mso-border-top-alt: solid black .5pt; mso-border-top-themecolor: text1; padding: 0in 5.4pt 0in 5.4pt; width: 205.6pt;&quot; width=&quot;274&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;death = true;&amp;nbsp;&amp;nbsp;&amp;nbsp; lose = false;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr style=&quot;height: 13.65pt; mso-yfti-irow: 4; mso-yfti-lastrow: yes;&quot;&gt;   &lt;td style=&quot;border-top: none; border: solid black 1.0pt; height: 13.65pt; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-border-themecolor: text1; mso-border-top-alt: solid black .5pt; mso-border-top-themecolor: text1; padding: 0in 5.4pt 0in 5.4pt; width: 205.6pt;&quot; width=&quot;274&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;array&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-bottom: solid black 1.0pt; border-left: none; border-right: solid black 1.0pt; border-top: none; height: 13.65pt; mso-border-alt: solid black .5pt; mso-border-bottom-themecolor: text1; mso-border-left-alt: solid black .5pt; mso-border-left-themecolor: text1; mso-border-right-themecolor: text1; mso-border-themecolor: text1; mso-border-top-alt: solid black .5pt; mso-border-top-themecolor: text1; padding: 0in 5.4pt 0in 5.4pt; width: 205.6pt;&quot; width=&quot;274&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;playerdata = [];&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;date = [“monday”, “tuesday”];&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;highscore = [100,90,60];&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0in;&quot;&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://actionscript-v2.blogspot.com/feeds/6334496603085933474/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://actionscript-v2.blogspot.com/2010/11/introducing-to-variable.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6647333275164039598/posts/default/6334496603085933474'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6647333275164039598/posts/default/6334496603085933474'/><link rel='alternate' type='text/html' href='http://actionscript-v2.blogspot.com/2010/11/introducing-to-variable.html' title='Introducing to Variable'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6647333275164039598.post-626750717295472055</id><published>2010-11-09T01:15:00.003+07:00</published><updated>2010-11-10T13:45:48.703+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ActionScript 2.0"/><title type='text'>Introducing to Stage Coordinates System</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 13px;&quot;&gt;In Math, we know Cartesian coordinate system. Good knowledge in math will supporting us to understanding Stage coordinates system.&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;In Cartesian main axis is divided into x axis (horizontal) and y axis (vertical). X and Y axis meet in (0,0). In X axis, The value of x is rise if increasingly to right. In Y axis, the value of y axis rise if fall more down.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;In Flash stage, coordinates system is same with above, but the different is in y axis and coordinate (0,0). In Flash if y axis fall more down the value of y axis is rise. And Coordinate (0,0) is place in the upper left corner. Look at this picture:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;&lt;v:shapetype coordsize=&quot;21600,21600&quot; filled=&quot;f&quot; id=&quot;_x0000_t75&quot; o:preferrelative=&quot;t&quot; o:spt=&quot;75&quot; path=&quot;m@4@5l@4@11@9@11@9@5xe&quot; stroked=&quot;f&quot;&gt;  &lt;v:stroke joinstyle=&quot;miter&quot;&gt;  &lt;v:formulas&gt;   &lt;v:f eqn=&quot;if lineDrawn pixelLineWidth 0&quot;&gt;   &lt;v:f eqn=&quot;sum @0 1 0&quot;&gt;   &lt;v:f eqn=&quot;sum 0 0 @1&quot;&gt;   &lt;v:f eqn=&quot;prod @2 1 2&quot;&gt;   &lt;v:f eqn=&quot;prod @3 21600 pixelWidth&quot;&gt;   &lt;v:f eqn=&quot;prod @3 21600 pixelHeight&quot;&gt;   &lt;v:f eqn=&quot;sum @0 0 1&quot;&gt;   &lt;v:f eqn=&quot;prod @6 1 2&quot;&gt;   &lt;v:f eqn=&quot;prod @7 21600 pixelWidth&quot;&gt;   &lt;v:f eqn=&quot;sum @8 21600 0&quot;&gt;   &lt;v:f eqn=&quot;prod @7 21600 pixelHeight&quot;&gt;   &lt;v:f eqn=&quot;sum @10 21600 0&quot;&gt;  &lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:formulas&gt;  &lt;v:path gradientshapeok=&quot;t&quot; o:connecttype=&quot;rect&quot; o:extrusionok=&quot;f&quot;&gt;  &lt;o:lock aspectratio=&quot;t&quot; v:ext=&quot;edit&quot;&gt; &lt;/o:lock&gt;&lt;/v:path&gt;&lt;/v:stroke&gt;&lt;/v:shapetype&gt;&lt;v:shape id=&quot;Picture_x0020_1&quot; o:spid=&quot;_x0000_i1030&quot; style=&quot;height: 213.75pt; mso-wrap-style: square; visibility: visible; width: 218.25pt;&quot; type=&quot;#_x0000_t75&quot;&gt;  &lt;v:imagedata o:title=&quot;&quot; src=&quot;file:///C:\Users\Compaq\AppData\Local\Temp\msohtmlclip1\01\clip_image001.emz&quot;&gt; &lt;/v:imagedata&gt;&lt;/v:shape&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJfSnM0iDO_FYNTtbV2bIWYn84GY2aG9iPtwf59UqWkPUNAzWWy3MPViueE6U_6Wj4GkpfFkm2pm-k_FDabhn2pW7mtLt-Bv9cyUXtBixnRfH_F9_wuoD-wYv4IS_0mpozaWCJ0Kl_-uY/s1600/axis.gif&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;196&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJfSnM0iDO_FYNTtbV2bIWYn84GY2aG9iPtwf59UqWkPUNAzWWy3MPViueE6U_6Wj4GkpfFkm2pm-k_FDabhn2pW7mtLt-Bv9cyUXtBixnRfH_F9_wuoD-wYv4IS_0mpozaWCJ0Kl_-uY/s200/axis.gif&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyem8LquJKQ_pYDQkfqjaNzcBM8HchynhIXMJedEiMoLTt4qlPx1pMV6lZjw96EPkQZUvBanoXIxhXzXTN-jys_HdpfH0y3mQVc6861Iw8JG8z3ioGpxCX8KvIodSL1juO2WC-dGSOr8E/s1600/flash+axis.gif&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;178&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyem8LquJKQ_pYDQkfqjaNzcBM8HchynhIXMJedEiMoLTt4qlPx1pMV6lZjw96EPkQZUvBanoXIxhXzXTN-jys_HdpfH0y3mQVc6861Iw8JG8z3ioGpxCX8KvIodSL1juO2WC-dGSOr8E/s200/flash+axis.gif&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;For more explicit I’ll give example in application of flash coordinate system as following below:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.blogger.com/post-edit.g?blogID=6647333275164039598&amp;amp;postID=626750717295472055&quot; name=&quot;more&quot;&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: red; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;Problem :&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;blockquote&gt;&lt;b&gt;&lt;i&gt;Make a ball that move upper left to right bottom diagonally.&lt;/i&gt;&lt;/b&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #0070c0; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;To solve this problem, I’ll illustrate visually:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCe1jJiYpzWE-SBFsCnN9TuwLYiR9wObnYmSlaShoInP3a3lMehtzQ3tGEPGHthmo_0gMEf9cG0ThZdgTK3Gv-LRcK6lakd4ZymuuJ6fJsi-NHQYMagEm298Sn_wPfD_GyFOB-Kyy6Spw/s1600/axis+change.gif&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCe1jJiYpzWE-SBFsCnN9TuwLYiR9wObnYmSlaShoInP3a3lMehtzQ3tGEPGHthmo_0gMEf9cG0ThZdgTK3Gv-LRcK6lakd4ZymuuJ6fJsi-NHQYMagEm298Sn_wPfD_GyFOB-Kyy6Spw/s1600/axis+change.gif&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;&lt;v:shape alt=&quot;axis change.gif&quot; id=&quot;Picture_x0020_4&quot; o:spid=&quot;_x0000_i1028&quot; style=&quot;height: 215.25pt; mso-wrap-style: square; visibility: visible; width: 231.75pt;&quot; type=&quot;#_x0000_t75&quot;&gt;  &lt;v:imagedata o:title=&quot;axis change&quot; src=&quot;file:///C:\Users\Compaq\AppData\Local\Temp\msohtmlclip1\01\clip_image003.gif&quot;&gt; &lt;/v:imagedata&gt;&lt;/v:shape&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;Thus, to move a ball diagonally, it meant that we moving x axis to right and y axis to bottom. &lt;/span&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;The process of making the application are as follows:&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 13px;&quot;&gt;Create an object with oval tool.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEit9l6ip_HlHPtuAWAKtDIZPuxxidr8MBOyPj23Ujkh92IBunkmq_nNix-uhByOF0g8PFA6FZEXkib3GYBNVTCWw7lKoWVmL02PTjYwY4v7o0xDKHdutRD_GvTiEiluUmQ0CmDaxgu7508/s1600/oval+tool.gif&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEit9l6ip_HlHPtuAWAKtDIZPuxxidr8MBOyPj23Ujkh92IBunkmq_nNix-uhByOF0g8PFA6FZEXkib3GYBNVTCWw7lKoWVmL02PTjYwY4v7o0xDKHdutRD_GvTiEiluUmQ0CmDaxgu7508/s1600/oval+tool.gif&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;Select the object then convert into symbol by press F8 (menu insert&amp;gt;convert to symbol). Select &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;movieclip &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;&amp;nbsp;option type then type &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;ball_mc&lt;/b&gt; in name. Notice in &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;regristration&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;, this part is determine the position of movie clip. For example, when we select registration in center, then movie clip coordinate calculation is calculate from center of movie clip, it not like in properties. In properties, coordinate calculation is calculate from upper left corner.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgUkIrmE1DhMy_xhPf3GJWhFoIli_S2DHMyHONgzH8z7B2nA2hhHC2GtFdcwDE2NbMwIuuNqdAu3_IdX7lLfvPsjMpw7PckuEWFsZhWBWWxL-OBRsWJuB93xZlgGuX0e_fqcNSH39TY9j8/s1600/convert+to+symbol.gif&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;111&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgUkIrmE1DhMy_xhPf3GJWhFoIli_S2DHMyHONgzH8z7B2nA2hhHC2GtFdcwDE2NbMwIuuNqdAu3_IdX7lLfvPsjMpw7PckuEWFsZhWBWWxL-OBRsWJuB93xZlgGuX0e_fqcNSH39TY9j8/s320/convert+to+symbol.gif&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjcqkBR7IfB6loGeSVHQ75Qt8IwSn5cpcd6MdRVpBIZHLgtjpbqY6SjRMxHQFX3Gy0EJWC9kzuGvy-yBdjdgAjrHWgcL2DC8P3a11g6_yvnVjV8cbh2rLxPFXQyA-wHnWJks6pBt9uLRWM/s1600/calculation.gif&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;108&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjcqkBR7IfB6loGeSVHQ75Qt8IwSn5cpcd6MdRVpBIZHLgtjpbqY6SjRMxHQFX3Gy0EJWC9kzuGvy-yBdjdgAjrHWgcL2DC8P3a11g6_yvnVjV8cbh2rLxPFXQyA-wHnWJks6pBt9uLRWM/s320/calculation.gif&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 13px;&quot;&gt;Select movieclip &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;ball_mc&lt;/b&gt; then change postion. Place it in upper left corner of stage. Still in movie clip selcection, open action panel (press f9) then type this script:&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;blockquote&gt;&lt;b&gt;onClipEvent (enterFrame) {&lt;/b&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;blockquote&gt;&lt;b&gt;// Move ball diagonally&lt;/b&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;blockquote&gt;&lt;b&gt;_x += 10;&lt;/b&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;blockquote&gt;&lt;b&gt;_y += 10;&lt;/b&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;blockquote&gt;&lt;b&gt;}&lt;/b&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;ul&gt;&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 13px;&quot;&gt;Run movie clip by press CTRL+Enter, then a ball will move diagonally from upper left to rigt bottom until disappear from stage. Press CTRL+W to back into stage.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;Program Explanation&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;onClipEvent (enterFrame) {&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt; mean that command inside&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;{ } &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;will run over active frame (frame default setting is 12 fps), command inside &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;{ }&lt;/b&gt; will run every 1/12 sec in along running movieclip.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 13px;&quot;&gt;Line &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;//Move ball diagonally&lt;/b&gt; is comment line, this line not executed by flash.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;Line &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;_x += 10; &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;mean that every 1/12 sec the x coordinate of ball will added 10 pixel, so the ball will move to right.&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;+= is &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;simplification&lt;b&gt; &lt;/b&gt;of &lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;action &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;_x = _x+10&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;Line &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;_y += 10; &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;mean that every 1/12 sec the y coordinate of ball will added 10 pixel, so the ball will move to bottom.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;Because the computer calculate very fast, the calculation inside &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;{ }&lt;/b&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;seem done at once, thus ball look move diagonally&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;.&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;&lt;a href=&quot;https://sites.google.com/site/as2sourcecode/home/Diagonal_move.fla?attredirects=0&amp;amp;d=1&quot;&gt;Source Code Download&lt;/a&gt; = &lt;a href=&quot;https://sites.google.com/site/as2sourcecode/home/Diagonal_move.fla?attredirects=0&amp;amp;d=1&quot;&gt;Click Here&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://actionscript-v2.blogspot.com/feeds/626750717295472055/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://actionscript-v2.blogspot.com/2010/11/introducing-to-stage-coordinates-system.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6647333275164039598/posts/default/626750717295472055'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6647333275164039598/posts/default/626750717295472055'/><link rel='alternate' type='text/html' href='http://actionscript-v2.blogspot.com/2010/11/introducing-to-stage-coordinates-system.html' title='Introducing to Stage Coordinates System'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJfSnM0iDO_FYNTtbV2bIWYn84GY2aG9iPtwf59UqWkPUNAzWWy3MPViueE6U_6Wj4GkpfFkm2pm-k_FDabhn2pW7mtLt-Bv9cyUXtBixnRfH_F9_wuoD-wYv4IS_0mpozaWCJ0Kl_-uY/s72-c/axis.gif" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6647333275164039598.post-4140460692009083943</id><published>2010-11-01T01:00:00.002+07:00</published><updated>2010-11-16T01:48:21.443+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ActionScript 2.0"/><title type='text'>Error in actionscript</title><content type='html'>&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;Someone who is just learning action script or someone who advance in action script never apart from an error.&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;In a programming there are 2 types of errors, that is typing errors and logical errors&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;Typing error in Action Script&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;The most frequently error made by someone who was just learning script is a typing error in the script.&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;To find a typing error, flash provides &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;check syntax&lt;/b&gt; facility on the action panel.&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRdGoRYRSw0GCmLcbFl5L7RmRAVFYLzAQ3435ks9-8bTc6CVpi47e7sXPgBtoFOy8aks_Ius5oi-Ct9QQRqNNN1mLaY1kw7yuTSkLGGo9osG3sBRdlwfjS7OOGoCL8IJG27YaXZuyQK3k/s1600/check+syntax.gif&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;120&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRdGoRYRSw0GCmLcbFl5L7RmRAVFYLzAQ3435ks9-8bTc6CVpi47e7sXPgBtoFOy8aks_Ius5oi-Ct9QQRqNNN1mLaY1kw7yuTSkLGGo9osG3sBRdlwfjS7OOGoCL8IJG27YaXZuyQK3k/s200/check+syntax.gif&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: center; text-autospace: none;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;&lt;i&gt;&lt;br /&gt;
&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;By pressing &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;check syntax&lt;/b&gt;, we can know that script that we type is have an error or not.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgLe_Klmm3P6LiPZJtVqoOVNqgUl3VmifJ_Rdb_al5RaWPbDwaQMUOns2d9FRZkSwn-35Nhbf5UOFnD5_jB97oew7p6ojxPr652tnVBXNsiI0dsBdF4Sr3Jw4j-dhZ5j_NrQmIW_hQWcUQ/s1600/no+error.gif&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;139&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgLe_Klmm3P6LiPZJtVqoOVNqgUl3VmifJ_Rdb_al5RaWPbDwaQMUOns2d9FRZkSwn-35Nhbf5UOFnD5_jB97oew7p6ojxPr652tnVBXNsiI0dsBdF4Sr3Jw4j-dhZ5j_NrQmIW_hQWcUQ/s200/no+error.gif&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBl4MemWEPd-2TsFVSXscx3ty5PcpemUKRIQYglxdBZ5f8OZMidjDn-SGk8yGaR0tj7fWgY9faBP6fLya9TXMmIRjRJLiwhbbc8UpoKolocLoc9vuXG0wJ83RPjjuBex7KnWz-mC1jXws/s1600/error.gif&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;120&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBl4MemWEPd-2TsFVSXscx3ty5PcpemUKRIQYglxdBZ5f8OZMidjDn-SGk8yGaR0tj7fWgY9faBP6fLya9TXMmIRjRJLiwhbbc8UpoKolocLoc9vuXG0wJ83RPjjuBex7KnWz-mC1jXws/s200/error.gif&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: center; text-autospace: none;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;&lt;i&gt;&lt;br /&gt;
&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;Typing error&amp;nbsp;will show in &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;output panel&lt;/b&gt;. Scene, layer, and frame where we make error and which line we make error is showing in this panel, so it will help us to fix error.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;Errors that often occur are :&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 13px;&quot;&gt;Typing error of simple action, example : &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;duplicateMovieClip &lt;/b&gt;typed to &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;dupilcateMoviClip&lt;/b&gt;.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 13px;&quot;&gt;Use of space in write instance name or variable. Example: &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;origin size = 5; &lt;/b&gt;should be written &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;origin_size = 5;&lt;/b&gt;.&lt;br /&gt;
Tips : Don’t often write script with space, because flash can arrange automatically if we press &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;Auto Format&lt;/b&gt;.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt; text-align: center;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtFm0IigCjSyknmLYVWUWdPnscpKOgNUw586ASuZ8rmQ7t3liAE4zJhyZsKx0BpiukIH9JE5oULWT_CCnU9ffVsr255WMKvkawLTEFOjO0-8Y8DfGJH_HupUJT-xJ4qj5BqP6cwCqcx8c/s1600/autoformat.gif&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;120&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtFm0IigCjSyknmLYVWUWdPnscpKOgNUw586ASuZ8rmQ7t3liAE4zJhyZsKx0BpiukIH9JE5oULWT_CCnU9ffVsr255WMKvkawLTEFOjO0-8Y8DfGJH_HupUJT-xJ4qj5BqP6cwCqcx8c/s200/autoformat.gif&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;Error when we use lowercase and uppercase.&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt; In common &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;flash action script is not &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;case sensitive&lt;/b&gt; (sensitive to lowercase and uppercase).But flash distinguish a text with different colors.&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;When we write an action without regard to lowercase and uppercase letters, then the text turns black, while if it is true then the text will be colored dark blue.&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;Text color distinction in the action script is as follows&lt;/span&gt;&lt;/span&gt; :&amp;nbsp;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 13px;&quot;&gt;&lt;b&gt;&lt;br /&gt;
*&lt;/b&gt; Dark Blue is used in action color.&lt;b&gt;&lt;br /&gt;
*&lt;/b&gt; Light blue use as string color.&lt;b&gt;&lt;br /&gt;
*&lt;/b&gt; Gray use as comment color.&lt;b&gt;&lt;br /&gt;
*&lt;/b&gt; Black used in writing text beside 3 above&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 13px;&quot;&gt;Error when use “&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;{}&lt;/b&gt;”. Someone &amp;nbsp;who beginner in flash often confuse in using this. This symbol is action block, all action that inside “&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;{}&lt;/b&gt;” is categorized in certain block like &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;movie event&lt;/b&gt;, &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;mouse event, function, if, for &lt;/b&gt;and many more.&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt; &lt;/b&gt;Amount of “&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;{&lt;/b&gt;“ must same with amount of “&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;}&lt;/b&gt;”.&lt;br /&gt;
Tips : after we type “&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;{&lt;/b&gt;“ immediately type “&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;}&lt;/b&gt;”, then put cursor&amp;nbsp;between this character then press enter or type the action inside.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 13px;&quot;&gt;Error when use “&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;()&lt;/b&gt;”. In contrast with “&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;{}&lt;/b&gt;”, character “&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;()&lt;/b&gt;” is not state a block but usually represent part of typing action that used. Example if&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;(&lt;/b&gt;…&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;)&lt;/b&gt;{ }, trace&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;(&lt;/b&gt;..&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;)&lt;/b&gt;;. Note that amount of “(“ must same with “)”.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 13px;&quot;&gt;Error when use “=” and “==”. Character “==” only used in conditional, but “=” used to set value of variable.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 13px;&quot;&gt;Error when use dot. In all programming language, dot character “&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;.&lt;/b&gt;” is vital, so be aware using this character.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;Logical Error in Action Script&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;Logical errors cannot be detected by check syntax button, because errors comes from the programmers.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; Logical errors is actually a mistake in &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;develop and use action script,so can causing the program make slow, there are parts that should move but its not, consuming computer memory or often called as a &lt;/span&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;bug&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;, and others. To fix &lt;/span&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;bug&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; run first, then test the program as often as possible and look for opportunities that may occur as much as possible.&lt;/span&gt;&lt;/span&gt;&lt;span title=&quot;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;When find the wrong section, go back into action and find which parts causing the error, then correct as possible.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span title=&quot;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://actionscript-v2.blogspot.com/feeds/4140460692009083943/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://actionscript-v2.blogspot.com/2010/10/error-in-actionscript.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6647333275164039598/posts/default/4140460692009083943'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6647333275164039598/posts/default/4140460692009083943'/><link rel='alternate' type='text/html' href='http://actionscript-v2.blogspot.com/2010/10/error-in-actionscript.html' title='Error in actionscript'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRdGoRYRSw0GCmLcbFl5L7RmRAVFYLzAQ3435ks9-8bTc6CVpi47e7sXPgBtoFOy8aks_Ius5oi-Ct9QQRqNNN1mLaY1kw7yuTSkLGGo9osG3sBRdlwfjS7OOGoCL8IJG27YaXZuyQK3k/s72-c/check+syntax.gif" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6647333275164039598.post-142434055894472381</id><published>2010-10-30T12:42:00.012+07:00</published><updated>2010-11-10T19:04:32.730+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ActionScript 2.0"/><title type='text'>ActionScript Writing Pattern on Frame</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;Both ways of writing the script in last post, that is writing the script in the button and in the movieclip, can be written in any other form of writing, script placed inside a frame.&lt;/span&gt;&lt;span title=&quot;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;o:p&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;The main thing to remember in writing action on the frame is an &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;instance name&lt;/b&gt;.&lt;/span&gt;&lt;span title=&quot;&quot;&gt;&amp;nbsp;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;Instance name is one of the most important identity in a flash that distinguish between one object with another object&lt;/span&gt;&lt;/span&gt;.&lt;/span&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgS05csl5LIQxNRkpi-Z-w0lgr7bNyY-Z3anGDTviIwG9Wqd0XRyNKF5-qIm5tOwut0z-7ASPli4F85UEcgD94H0HEqgYQOox1PvLdIddLBZheICoiS00GGvy74F5dCkARCMw1xe5IQLqk/s1600/Symbol+Properties.gif&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgS05csl5LIQxNRkpi-Z-w0lgr7bNyY-Z3anGDTviIwG9Wqd0XRyNKF5-qIm5tOwut0z-7ASPli4F85UEcgD94H0HEqgYQOox1PvLdIddLBZheICoiS00GGvy74F5dCkARCMw1xe5IQLqk/s1600/Symbol+Properties.gif&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.blogger.com/post-edit.g?blogID=6647333275164039598&amp;amp;postID=142434055894472381&quot; name=&quot;more&quot;&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;&lt;b&gt;Naming rules of instance name are:&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;/div&gt;&lt;ul&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 13px;&quot;&gt;Instance Name can be equal with symbol name.&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 13px;&quot;&gt;Instance Name may not use spaces, dots, and other punctuation.&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 13px;&quot;&gt;Using same name with a command in flash not allowed, for example: &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;object&lt;/b&gt;, &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;level&lt;/b&gt;, &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;break&lt;/b&gt; and others.&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;Not allowed to use numbers only for instance name, but an instance name can be followed by number.&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;Wrong example: &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;12&lt;/b&gt;, &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;13&lt;/b&gt;, and other, Right examples: &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;ball1&lt;/b&gt;, &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;ball_2&lt;/b&gt; and other.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 13px;&quot;&gt;There should be no same instance name.&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;To simplify writing the script, you can add &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&quot;_mc&quot;&lt;/b&gt; to movieclip symbol and &quot;&lt;b&gt;_btn&lt;/b&gt;&quot; to button symbol.&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;Example: &quot;Ball1_mc&quot;, &quot;button1_btn&quot;.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 13px;&quot;&gt;Two or more same symbol may be used, but must have different instance name.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;&lt;b&gt;How to write action on the frame is as follows:&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;/div&gt;&lt;ul&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 13px;&quot;&gt;Create circle object with &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;oval tool&lt;/b&gt;. Select object that we make then convet to symbol by pressing F8 (menu insert&amp;gt;convert to symbol). Choose &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;Movie Clip&lt;/b&gt; in Type option then type &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;ball_mc&lt;/b&gt; in name option.&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgUkIrmE1DhMy_xhPf3GJWhFoIli_S2DHMyHONgzH8z7B2nA2hhHC2GtFdcwDE2NbMwIuuNqdAu3_IdX7lLfvPsjMpw7PckuEWFsZhWBWWxL-OBRsWJuB93xZlgGuX0e_fqcNSH39TY9j8/s1600/convert+to+symbol.gif&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;111&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgUkIrmE1DhMy_xhPf3GJWhFoIli_S2DHMyHONgzH8z7B2nA2hhHC2GtFdcwDE2NbMwIuuNqdAu3_IdX7lLfvPsjMpw7PckuEWFsZhWBWWxL-OBRsWJuB93xZlgGuX0e_fqcNSH39TY9j8/s320/convert+to+symbol.gif&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;ul&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 13px;&quot;&gt;Click ball in the stage, then open instance panel and type “ball” in instance name.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjUKEcZhTbHSzs7M8dxlSHQ90wlAx_NcsiqNIoIyGd4vSdmEobQDoIkll30ffQ0l1et9Yw2cUXLQHyCn1baH-eSLV31iAJRHALmqDAZsU30ARoEvPZcKZ8apACsXmR-L8yFUBC9i2oUoTU/s1600/ball+properties.gif&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjUKEcZhTbHSzs7M8dxlSHQ90wlAx_NcsiqNIoIyGd4vSdmEobQDoIkll30ffQ0l1et9Yw2cUXLQHyCn1baH-eSLV31iAJRHALmqDAZsU30ARoEvPZcKZ8apACsXmR-L8yFUBC9i2oUoTU/s1600/ball+properties.gif&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;ul&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 13px;&quot;&gt;Create a new layer then change name to &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;action&lt;/b&gt;, then rename layer 1 to &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;ball&lt;/b&gt;. Adding new layer we’ll ease us in action writing on frame, thus will not bother other object.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-4G-JiAcv1mYQTl5zA-mWJADzviPU4p8FfUErX1QjkdO2FSFaQOqlNa2U9iBw_vtySYTdC8kj6rkHeMWfeHPzIUukQB-edAoiLfpk3Ha_dy2Tk7PD7XrVCkyKjqYok8lBAeLC1KzxXjg/s1600/action+layer.gif&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-4G-JiAcv1mYQTl5zA-mWJADzviPU4p8FfUErX1QjkdO2FSFaQOqlNa2U9iBw_vtySYTdC8kj6rkHeMWfeHPzIUukQB-edAoiLfpk3Ha_dy2Tk7PD7XrVCkyKjqYok8lBAeLC1KzxXjg/s1600/action+layer.gif&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;ul&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 13px;&quot;&gt;Click frame 1 in action layer, open action panel (press F9 or menu windows&amp;gt;action if action panel is not opened), then type :&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .5in; margin-right: 0in; margin-top: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;ball.onEnterFrame = function() {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .5in; margin-right: 0in; margin-top: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;//move object to right&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .5in; margin-right: 0in; margin-top: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;this._x += 10;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .5in; margin-right: 0in; margin-top: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;};&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;/div&gt;&lt;ul&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 13px;&quot;&gt;Run Movie by press CTRL+Enter, so we can see the same result that we create in movie clip action writing.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;&lt;b&gt;The explanation of writing script in frame :&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;/div&gt;&lt;ul&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 13px;&quot;&gt;Writing script in frame have 3 type, that is writing in a movie event block or mouse event, example &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;onEnterFrame=function(){&lt;/b&gt; and writing without movie event or mouse event, then the third writing type is combination of both type, example will show in next post.&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 13px;&quot;&gt;Basically writing action in frame same with writing script in movie clip, but in frame there is &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;function()&lt;/b&gt; script in use of &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;instance name&lt;/b&gt;.&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 13px; line-height: 14px;&quot;&gt;Note the difference between the writing on the frame and the writing on moviclip here:&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
&lt;center&gt; &lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoNormalTable&quot; style=&quot;border-collapse: collapse; margin-left: 4.65pt; text-align: center; width: 463px;&quot;&gt;&lt;tbody&gt;
&lt;tr style=&quot;height: 11.25pt; mso-yfti-firstrow: yes; mso-yfti-irow: 0;&quot;&gt;   &lt;td nowrap=&quot;&quot; style=&quot;border: solid windowtext 1.0pt; height: 11.25pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 27.0pt;&quot; width=&quot;36&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;Line&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td nowrap=&quot;&quot; style=&quot;border-left: none; border: solid windowtext 1.0pt; height: 11.25pt; mso-border-bottom-alt: solid windowtext .5pt; mso-border-right-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 105.0pt;&quot; width=&quot;140&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;In Frame&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td nowrap=&quot;&quot; style=&quot;border-left: none; border: solid windowtext 1.0pt; height: 11.25pt; mso-border-bottom-alt: solid windowtext .5pt; mso-border-right-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 136.5pt;&quot; width=&quot;182&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;In Movie Clip&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td nowrap=&quot;&quot; style=&quot;border-left: none; border: solid windowtext 1.0pt; height: 11.25pt; mso-border-bottom-alt: solid windowtext .5pt; mso-border-right-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 79.0pt;&quot; width=&quot;105&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;Different&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr style=&quot;height: 2.5in; mso-yfti-irow: 1;&quot;&gt;   &lt;td nowrap=&quot;&quot; style=&quot;border-top: none; border: solid windowtext 1.0pt; height: 2.5in; mso-border-bottom-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-right-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 27.0pt;&quot; width=&quot;36&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; text-align: justify;&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 2.5in; mso-border-bottom-alt: solid windowtext .5pt; mso-border-right-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 105.0pt;&quot; width=&quot;140&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; text-align: justify;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;ball.onEnterFrame =function{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 2.5in; mso-border-bottom-alt: solid windowtext .5pt; mso-border-right-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 136.5pt;&quot; width=&quot;182&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; text-align: justify;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;onClipEvent(enterFrame){&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 2.5in; mso-border-bottom-alt: solid windowtext .5pt; mso-border-right-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 79.0pt;&quot; width=&quot;105&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; text-align: justify;&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;Changes in writing from movie clip to the frame is the use of   instance name before movie events and the use of&amp;nbsp; &lt;b&gt;&lt;i&gt;function () script&lt;/i&gt;&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr style=&quot;height: 33.75pt; mso-yfti-irow: 2;&quot;&gt;   &lt;td nowrap=&quot;&quot; style=&quot;border-top: none; border: solid windowtext 1.0pt; height: 33.75pt; mso-border-bottom-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-right-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 27.0pt;&quot; width=&quot;36&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; text-align: justify;&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;2&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 33.75pt; mso-border-bottom-alt: solid windowtext .5pt; mso-border-right-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 105.0pt;&quot; width=&quot;140&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; text-align: justify;&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;//Moving object to right &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 33.75pt; mso-border-bottom-alt: solid windowtext .5pt; mso-border-right-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 136.5pt;&quot; width=&quot;182&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; text-align: justify;&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;//Moving object to right &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 33.75pt; mso-border-bottom-alt: solid windowtext .5pt; mso-border-right-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 79.0pt;&quot; width=&quot;105&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; text-align: justify;&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;Comment line is same in all writing patern &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr style=&quot;height: 33.75pt; mso-yfti-irow: 3;&quot;&gt;   &lt;td nowrap=&quot;&quot; style=&quot;border-top: none; border: solid windowtext 1.0pt; height: 33.75pt; mso-border-bottom-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-right-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 27.0pt;&quot; width=&quot;36&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; text-align: justify;&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;3&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td nowrap=&quot;&quot; style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 33.75pt; mso-border-bottom-alt: solid windowtext .5pt; mso-border-right-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 105.0pt;&quot; width=&quot;140&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; text-align: justify;&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;this._x+=10;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td nowrap=&quot;&quot; style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 33.75pt; mso-border-bottom-alt: solid windowtext .5pt; mso-border-right-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 136.5pt;&quot; width=&quot;182&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; text-align: justify;&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;_x+=10;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 33.75pt; mso-border-bottom-alt: solid windowtext .5pt; mso-border-right-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 79.0pt;&quot; width=&quot;105&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; text-align: justify;&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;use of &lt;b&gt;this&lt;/b&gt; command must write in frame&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr style=&quot;height: 56.25pt; mso-yfti-irow: 4; mso-yfti-lastrow: yes;&quot;&gt;   &lt;td nowrap=&quot;&quot; style=&quot;border-top: none; border: solid windowtext 1.0pt; height: 56.25pt; mso-border-bottom-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-right-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 27.0pt;&quot; width=&quot;36&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; text-align: justify;&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;4&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td nowrap=&quot;&quot; style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 56.25pt; mso-border-bottom-alt: solid windowtext .5pt; mso-border-right-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 105.0pt;&quot; width=&quot;140&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; text-align: justify;&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;};&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td nowrap=&quot;&quot; style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 56.25pt; mso-border-bottom-alt: solid windowtext .5pt; mso-border-right-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 136.5pt;&quot; width=&quot;182&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; text-align: justify;&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 56.25pt; mso-border-bottom-alt: solid windowtext .5pt; mso-border-right-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 79.0pt;&quot; width=&quot;105&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; text-align: justify;&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;for writing in frame, in the end of movie event function closed   by &quot;;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;/center&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: .0001pt; margin-bottom: 0in; text-align: justify;&quot;&gt;&lt;/div&gt;&lt;ul&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 13px; line-height: 14px;&quot;&gt;If we want write action button in frame, then that we must change is : &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;movie event&lt;/b&gt; change to &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;mouse event&lt;/b&gt;.&lt;br /&gt;
Example : &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;button_btn.onRelease=function(){}&lt;/b&gt;;.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px; line-height: 14px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;&lt;b&gt;Advantage of writing script in frame:&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;ul&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 13px;&quot;&gt;Compare with writing script in movie clip that is complicated, writing script in frame is more easier for programmer who familiar with other programming language like C++, Java, Delphi or Basic.&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 13px;&quot;&gt;Easy to write certain function or looping command which frequently used.&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 13px;&quot;&gt;Because all of script written in frame, so if we want check action of all object will be easier without select each object (movie clip).&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;a href=&quot;https://sites.google.com/site/as2sourcecode/home/Frame_action.fla?attredirects=0&amp;amp;d=1&quot;&gt;Source Code&amp;nbsp;Download&lt;/a&gt; = &lt;a href=&quot;https://sites.google.com/site/as2sourcecode/home/Frame_action.fla?attredirects=0&amp;amp;d=1&quot;&gt;Click Here&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://actionscript-v2.blogspot.com/feeds/142434055894472381/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://actionscript-v2.blogspot.com/2010/10/actionscript-writing-pattern-on-frame.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6647333275164039598/posts/default/142434055894472381'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6647333275164039598/posts/default/142434055894472381'/><link rel='alternate' type='text/html' href='http://actionscript-v2.blogspot.com/2010/10/actionscript-writing-pattern-on-frame.html' title='ActionScript Writing Pattern on Frame'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgS05csl5LIQxNRkpi-Z-w0lgr7bNyY-Z3anGDTviIwG9Wqd0XRyNKF5-qIm5tOwut0z-7ASPli4F85UEcgD94H0HEqgYQOox1PvLdIddLBZheICoiS00GGvy74F5dCkARCMw1xe5IQLqk/s72-c/Symbol+Properties.gif" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6647333275164039598.post-6546493363365214798</id><published>2010-10-28T22:37:00.004+07:00</published><updated>2010-11-10T13:42:40.887+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ActionScript 2.0"/><title type='text'>ActionScript Writing Pattern on Movieclip</title><content type='html'>&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;Action writing steps on movieclip are:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 13px;&quot;&gt;Make an object with oval tool. Note that an object in flash have two part that is stroke and fill.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwaVNUJG2yuI8A5-NsxstvluMDaDF6CHr-49Q06QOFFJt_-aRb7HXfTRkNISM9K6F7HlbfFDdASs7gR5T7h6unJdXNsLCjQ9jgzCLuKO2qp3p30XN9QxLR8jzbnX9RaJW-k5RiOGeQPpk/s1600/oval.gif&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwaVNUJG2yuI8A5-NsxstvluMDaDF6CHr-49Q06QOFFJt_-aRb7HXfTRkNISM9K6F7HlbfFDdASs7gR5T7h6unJdXNsLCjQ9jgzCLuKO2qp3p30XN9QxLR8jzbnX9RaJW-k5RiOGeQPpk/s1600/oval.gif&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0eAj0I2VjiU9QtaOiYcUSY13-vbbmo-SPKc3NxoBLh5398JYvBEQh_4Fj9YuOJbN5nXnj3ZgTzPX6Rtp_6F7oJvno-vFYAV-7ClObcjlJ-vu4P8tmTnxETvqXBuUEXVVT8XURRCbJkNg/s1600/objek.gif&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0eAj0I2VjiU9QtaOiYcUSY13-vbbmo-SPKc3NxoBLh5398JYvBEQh_4Fj9YuOJbN5nXnj3ZgTzPX6Rtp_6F7oJvno-vFYAV-7ClObcjlJ-vu4P8tmTnxETvqXBuUEXVVT8XURRCbJkNg/s1600/objek.gif&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 13px;&quot;&gt;Select the object (circle) then convert to symbol by press F8 (menu insert&amp;gt;convert to symbol). Select &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;Movie clip&lt;/b&gt; in Type option and type &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;ball_mc&lt;/b&gt; in Name.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJdrxLpMsXAbO0BVxH9kr4kvEYiJnkRiVVAeuFC9qzYTRHeCrp5cUacvm_PXCH3zy-Nq89iW_lANYhQkjF-ye1YUH93WeHH836x3A0wyuqvgeiSrtUaoYETrxrxFO7Lpb30XTxwe9u73U/s1600/convert+to+symbol.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;110&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJdrxLpMsXAbO0BVxH9kr4kvEYiJnkRiVVAeuFC9qzYTRHeCrp5cUacvm_PXCH3zy-Nq89iW_lANYhQkjF-ye1YUH93WeHH836x3A0wyuqvgeiSrtUaoYETrxrxFO7Lpb30XTxwe9u73U/s320/convert+to+symbol.JPG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;a href=&quot;http://www.blogger.com/post-edit.g?blogID=6647333275164039598&amp;amp;postID=6546493363365214798&quot; name=&quot;more&quot;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 13px;&quot;&gt;Click movie clip &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;ball_mc&lt;/b&gt;, then open action panel (press F9 or click menu windows&amp;gt;action). Then type script like this:&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;&lt;blockquote&gt;onClipEvent(enterFrame){&lt;br /&gt;
//moving object to right&lt;br /&gt;
_x += 10;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;/blockquote&gt;&lt;ul&gt;&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 13px;&quot;&gt;Run movie by pressing CTRL+Enter, so ball will move to right until disappear from the screen. Press CTRL+W to back in stage.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: small;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: small;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: small;&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;&lt;b&gt;The explanation in ActionScript writing pattern at movieclip are :&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;Action in movieclip must started by &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;on()&lt;/b&gt; or &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;onClipEvent()&lt;/b&gt;.&lt;/li&gt;
&lt;li&gt;Inside “&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;()&lt;/b&gt;” at script &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;on&lt;/b&gt; or &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;onClipEvent&lt;/b&gt; contain &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;movie event&lt;/b&gt; like &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;load, enterframe, mouse down, release&lt;/b&gt; and others. Movie event expressing an event that will executed by it action.&amp;nbsp;For example : movie event &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;enterFrame&lt;/b&gt; meant command inside “&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;{}&lt;/b&gt;” will run a whole frame.where movieclip is active, but movie event &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;load&lt;/b&gt; is run once only when movie clip loading in flash player.&lt;/li&gt;
&lt;li&gt;Symbol &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;{&lt;/b&gt; is starting script block. Script block is a group of command that will run in a whole movie event&lt;/li&gt;
&lt;li&gt;Symbol &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;//&lt;/b&gt; is expressing coment. Line with this symbol wont executed by actionScript, but it very helpful for give information in action script that our write.&lt;/li&gt;
&lt;li&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;_x+=10;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt; is command lin. Command in movieclip must written in movie event block. In the end of writing a command is closed by “&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;;&lt;/b&gt;”.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Symbol &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;}&lt;/b&gt; is the end of script block.&lt;/li&gt;
&lt;/ul&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiiEkulj_xguSA1NEcLUm_8jOVQtJIGNSKtE5NNtt8aC_Fc7FZeKp-nRQu20QPDUwkopBjoIFuuTaFMp2diRQUW4b5m3RPtCINIhNQq60K2cP8cT2laob0_aWZRkn_jsOhlH1pLqh4QR90/s1600/polpen.GIF&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiiEkulj_xguSA1NEcLUm_8jOVQtJIGNSKtE5NNtt8aC_Fc7FZeKp-nRQu20QPDUwkopBjoIFuuTaFMp2diRQUW4b5m3RPtCINIhNQq60K2cP8cT2laob0_aWZRkn_jsOhlH1pLqh4QR90/s1600/polpen.GIF&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;Advantage of writing script in movieclip :&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;ol&gt;&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 13px;&quot;&gt;Action script writing in movie clip is easy than writing in frame.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 13px;&quot;&gt;For detect mistake on an object, writing script in movie clip is more faster than writing in frame (this effective when we processing script in hundred to thousand line).&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 18px;&quot;&gt;&lt;a href=&quot;https://sites.google.com/site/as2sourcecode/home/movieClip_action.fla?attredirects=0&amp;amp;d=1&quot; style=&quot;color: #ac0e0e;&quot;&gt;Source Code download&lt;/a&gt;&amp;nbsp;=&amp;nbsp;&lt;a href=&quot;https://sites.google.com/site/as2sourcecode/home/movieClip_action.fla?attredirects=0&amp;amp;d=1&quot; style=&quot;color: #e62100;&quot;&gt;click here&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://actionscript-v2.blogspot.com/feeds/6546493363365214798/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://actionscript-v2.blogspot.com/2010/10/actionscript-writing-pattern-on.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6647333275164039598/posts/default/6546493363365214798'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6647333275164039598/posts/default/6546493363365214798'/><link rel='alternate' type='text/html' href='http://actionscript-v2.blogspot.com/2010/10/actionscript-writing-pattern-on.html' title='ActionScript Writing Pattern on Movieclip'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwaVNUJG2yuI8A5-NsxstvluMDaDF6CHr-49Q06QOFFJt_-aRb7HXfTRkNISM9K6F7HlbfFDdASs7gR5T7h6unJdXNsLCjQ9jgzCLuKO2qp3p30XN9QxLR8jzbnX9RaJW-k5RiOGeQPpk/s72-c/oval.gif" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6647333275164039598.post-3396355193739429916</id><published>2010-10-28T22:09:00.003+07:00</published><updated>2010-11-10T13:38:24.077+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ActionScript 2.0"/><title type='text'>ActionScript Writing Pattern in Button</title><content type='html'>&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 12pt;&quot;&gt;ActionScript Writing Pattern&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;ActionScript in flash can be write in 3 method, that is in button, movieclip, and at frame with different rule.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 12pt;&quot;&gt;ActionScript Writing Pattern in Button&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;ActionScript writing steps in button are:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;Make a box with &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;rectangle tool&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;. We also can make rounded rectangle by choosing &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;rounded rectangle radius &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;option&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhv6RnI_kKaLZiPJbY2nJvRw1fzG5lWPC0GAmv18UX-cHhztKK44PM9OLxLr337qGLwGJCuSThlotmQOw-8xVPQjjXQR-PlIEHNo9hpTVr4Wh_fOwPAt9q-VNgXNIprugu6Km_QSavRLGM/s1600/setting+dalam+membuat+kotak.gif&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;75&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhv6RnI_kKaLZiPJbY2nJvRw1fzG5lWPC0GAmv18UX-cHhztKK44PM9OLxLr337qGLwGJCuSThlotmQOw-8xVPQjjXQR-PlIEHNo9hpTVr4Wh_fOwPAt9q-VNgXNIprugu6Km_QSavRLGM/s320/setting+dalam+membuat+kotak.gif&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 13px;&quot;&gt;Make static text “button” above box that we make before, by click text tool then open properties and arrange font, size and color. Open &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;Properties&lt;/b&gt; panel (if not yet opened, choose menu window&amp;gt;properties). Always check that static text option is active in Text Type.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhi3xqDGQ8MS28ITtTfyFCT1GB_Bz2wL8JyaUd5wMOojuRGktOVh0SxOZ2nUFKpHGuL9sdlemiQkkzw8Ko84P_ecD9obHHqoCy-nu2-cTAqN67V_PD5q8hvvWnD8_g95nFAB7jtfNBAcaM/s1600/text+tool+dan+properties.gif&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;66&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhi3xqDGQ8MS28ITtTfyFCT1GB_Bz2wL8JyaUd5wMOojuRGktOVh0SxOZ2nUFKpHGuL9sdlemiQkkzw8Ko84P_ecD9obHHqoCy-nu2-cTAqN67V_PD5q8hvvWnD8_g95nFAB7jtfNBAcaM/s320/text+tool+dan+properties.gif&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgn78gLc54PmyYwM-HfToBYKa0fLrW8iwrNDeWlf5e0M9ISrGcV6MSeKtpJCiyiNUxA9i9oivpdAa-4Q4SuF6HObxJ2NCdpwbqDOe4fH1nCLdYGrr_LNnfAQmTiF5kGNzPN3pe-zSX3pjg/s1600/bentuk+tombol.gif&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgn78gLc54PmyYwM-HfToBYKa0fLrW8iwrNDeWlf5e0M9ISrGcV6MSeKtpJCiyiNUxA9i9oivpdAa-4Q4SuF6HObxJ2NCdpwbqDOe4fH1nCLdYGrr_LNnfAQmTiF5kGNzPN3pe-zSX3pjg/s1600/bentuk+tombol.gif&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;&lt;a href=&quot;http://www.blogger.com/post-edit.g?blogID=6647333275164039598&amp;amp;postID=3396355193739429916&quot; name=&quot;more&quot;&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 13px;&quot;&gt;Select the box and text, then convert to symbol by press F8 button (menu insert&amp;gt;convert to symbol). Select &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;button&lt;/b&gt; in behavior option then type &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;button_btn&lt;/b&gt; in Convert to symbol name.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidLVOSW75JAmWRA1yOPZowOs3xL47M1tXOvVfdkv_SyHd0xOTSinwpbTIWB-ZcKqkRA-q-gsq1UN1rDyQcLgJ5id3JRF3FQOG9UZCDd6BfNaMEctY8JSaAc0VKwWzg0lcJ1sGHULwGaVk/s1600/convert+to+symbol.gif&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;108&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidLVOSW75JAmWRA1yOPZowOs3xL47M1tXOvVfdkv_SyHd0xOTSinwpbTIWB-ZcKqkRA-q-gsq1UN1rDyQcLgJ5id3JRF3FQOG9UZCDd6BfNaMEctY8JSaAc0VKwWzg0lcJ1sGHULwGaVk/s320/convert+to+symbol.gif&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 13px;&quot;&gt;Double click this button to enter button edit mode. Note in symbol with button type is consist of 4 frame that is &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;up&lt;/b&gt;, &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;over&lt;/b&gt;, &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;down&lt;/b&gt; and &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;hit&lt;/b&gt;. &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;Up&lt;/b&gt; showing normal condition in button. &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;Over&lt;/b&gt; showing button condition when mouse at above button. &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;Down&lt;/b&gt; showing button condition when pressed and &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;hit&lt;/b&gt; is press area (sensor) of button.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOMeI52OzTRZMxQszWo9XlRHJOAS1H6CjMqWsl6bocj9r25-wMTLNQYu7vNXQfg5z8IFL-KhBm35i4eroF9Q3c8LiJyZFyDfhnT_5ZEOdr8MKQ4rVHx0lq3l_jbC_N6SfsyjhJ7AW1Y3I/s1600/Frame+pada+symbol+button.gif&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOMeI52OzTRZMxQszWo9XlRHJOAS1H6CjMqWsl6bocj9r25-wMTLNQYu7vNXQfg5z8IFL-KhBm35i4eroF9Q3c8LiJyZFyDfhnT_5ZEOdr8MKQ4rVHx0lq3l_jbC_N6SfsyjhJ7AW1Y3I/s1600/Frame+pada+symbol+button.gif&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 13px;&quot;&gt;Click &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;over&lt;/b&gt; frame then input &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;keyframe&lt;/b&gt; by pressing &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;F6&lt;/b&gt; button (menu insert&amp;gt;keyframe). Change color and size of button in &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;over&lt;/b&gt; frame. For &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;down&lt;/b&gt; and &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;hit&lt;/b&gt; we can ignore it.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqRtFtdFlQEFxSAOYTg68pRK_i7lloOdQYPr_V0dMEbMacBKfSjTJl3ZnbJS87yai1ugkk6QDuAOJX3PFew4HysKZm6mZeGNXrrWVgj_ZkGhmVMhR06uvzML4166hyCeXChywJUEbLnJI/s1600/penambahan+keyframe+pada+frame+over.gif&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqRtFtdFlQEFxSAOYTg68pRK_i7lloOdQYPr_V0dMEbMacBKfSjTJl3ZnbJS87yai1ugkk6QDuAOJX3PFew4HysKZm6mZeGNXrrWVgj_ZkGhmVMhR06uvzML4166hyCeXChywJUEbLnJI/s1600/penambahan+keyframe+pada+frame+over.gif&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggJimuqIoJHipCRSHwPzl-s-Jg9nMvwDzvg0XC8FXZvkm2au7CBkqf4FBYPIjC0qdUfR6fzBbUV-5iVfuELTVlMFfZibJrfCZRIJhRwRu09P9N74jCjnBWrvCv0wWXYZ3EVa7NtD0AJhA/s1600/up&amp;amp;over+frame.gif&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;44&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggJimuqIoJHipCRSHwPzl-s-Jg9nMvwDzvg0XC8FXZvkm2au7CBkqf4FBYPIjC0qdUfR6fzBbUV-5iVfuELTVlMFfZibJrfCZRIJhRwRu09P9N74jCjnBWrvCv0wWXYZ3EVa7NtD0AJhA/s320/up&amp;amp;over+frame.gif&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 13px;&quot;&gt;Press &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;Ctrl+E&lt;/b&gt; to back in &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;Main Stage&lt;/b&gt;. Click the button which is in selection condition, open action panel (press F9 or click menu windows&amp;gt;action if action panel not yet opened and check that writing mode is expert mode if using flash MX or Flash 8). Then type this script :&lt;/span&gt;&lt;/li&gt;
&lt;blockquote&gt;on(release){ //showing message in output panel when button is pressed trace(“button is pressed”); }&lt;/blockquote&gt;&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 13px;&quot;&gt;Run movie by pressing &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;Ctrl+Enter&lt;/b&gt;. Then the button that we make is appear. Press the button, then in output panel we see “button is pressed” in output panel. Press Ctrl+w for back to stage.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;&lt;b&gt;Explanation ActionScript pattern in button is:&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;/div&gt;&lt;ol&gt;&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 13px;&quot;&gt;Action in button must started with script &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;on()&lt;/b&gt;.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 13px;&quot;&gt;Symbol “&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;()”&lt;/b&gt; at &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;on&lt;/b&gt; contain &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;mouse event&lt;/b&gt; such release, press, dragover, rollout and others.&amp;nbsp;Mouse event expressing event that will executed by the action when mouse is doing some event.&amp;nbsp;For example : mouse event &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;release&lt;/b&gt; is command in &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;{ }&lt;/b&gt; will run when mouse is press the button.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 13px;&quot;&gt;Symbol &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;{&lt;/b&gt; is starting script block. Script block is a group of command that will run in a whole movie event.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 13px;&quot;&gt;Symbol &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;//&lt;/b&gt; is expressing coment. Line with this symbol wont executed by actionScript, but it very helpful for give information in action script that our write.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 13px;&quot;&gt;Line with command &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;trace(“button is pressed”)&lt;/b&gt; is line command. Command in button must written at a mouse event block. In the end of writing command is always closed by symbol “&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;;”.&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: 13px;&quot;&gt;Symbol &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;}&lt;/b&gt; is the end of script block.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;&lt;a href=&quot;https://sites.google.com/site/as2sourcecode/home/action_button.fla?attredirects=0&amp;amp;d=1&quot;&gt;Source Code download&lt;/a&gt; = &lt;a href=&quot;https://sites.google.com/site/as2sourcecode/home/action_button.fla?attredirects=0&amp;amp;d=1&quot;&gt;click here&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://actionscript-v2.blogspot.com/feeds/3396355193739429916/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://actionscript-v2.blogspot.com/2010/10/actionscript-writing-pattern-in-button.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6647333275164039598/posts/default/3396355193739429916'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6647333275164039598/posts/default/3396355193739429916'/><link rel='alternate' type='text/html' href='http://actionscript-v2.blogspot.com/2010/10/actionscript-writing-pattern-in-button.html' title='ActionScript Writing Pattern in Button'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhv6RnI_kKaLZiPJbY2nJvRw1fzG5lWPC0GAmv18UX-cHhztKK44PM9OLxLr337qGLwGJCuSThlotmQOw-8xVPQjjXQR-PlIEHNo9hpTVr4Wh_fOwPAt9q-VNgXNIprugu6Km_QSavRLGM/s72-c/setting+dalam+membuat+kotak.gif" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6647333275164039598.post-4045962496685457389</id><published>2010-10-26T16:23:00.001+07:00</published><updated>2010-11-10T10:56:07.884+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ActionScript 2.0"/><title type='text'>Preface</title><content type='html'>&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; text-align: justify;&quot;&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 12pt;&quot;&gt;Flash Introduction&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; text-align: justify;&quot;&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;Adobe Flash or formerly named as Macromedia Flash is a multifunctional software. Apart from the starting function, which is simplify to create web animations, it turns out rapidly growing up utilized as extraordinary multi-media software.&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;Even Flash with action script can be used as game maker software that is easy and effective. Before go to next step about the flash game development, we must understand that makes flash games is fun and profitable. For some people play the game is very enjoyable, this concept must we use that we are trying to please others through a game. If many people enjoy playing games made by us, then we get success as a game maker.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; text-align: justify;&quot;&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;Computer programming in general will be difficult to be understood by someone who &amp;nbsp;beginner in programming language.&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span title=&quot;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;On the other hand make the game is application of computer programming knowledge.&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span title=&quot;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;But we do not need discouraged, because flash and action script is very easy to learn and through this blog I try to share my little knowledge about making games with flash.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; text-align: justify;&quot;&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;Next at this blog I will explains as much as possible about the process of making games sequence.&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;Follow the tutorial one by one in every chapter and do not skip a tutorial unless you already understand.&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;If you have difficulty in writing the script later, I will provide the source code.&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;Because actionscript that I use is basic action, so actionscript in this blog can work in Action Script 1.0, 2.0, and 3.0. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; text-align: justify;&quot;&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 12pt;&quot;&gt;Area Working in Flash&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; text-align: justify;&quot;&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;Before beginning the process of making games, it would be better if we knew who and how is flash.&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span title=&quot;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;Flash work area (mx, mx 2004, flash 8) basically consists of several components, namely Menu, Toolbox, Timeline, Stage and Panel.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; text-align: justify;&quot;&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;Menu&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt; contains controls for various functions such as create, open, save files, and so on according to the menu that appears.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;Stage&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt; is the rectangular area which is a place where we make animated objects or applications that will be run.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;Toolbox&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt; contains a menu to create or draw shapes.&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span title=&quot;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;Toolbox divided into four parts: drawing tool, view, color, and option&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;Timeline&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt; is a place where we can create and control objects and animation.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;Panel&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt; contains a control-function that is used in Flash, the function is to replace and modify various properties of the object animations quickly&lt;/span&gt;&lt;/span&gt;.&lt;/li&gt;
&lt;/ul&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 12pt;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: 800;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 12pt;&quot;&gt;Basic of Action Script writing&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;Macromedia Flash have facility namely Action Script, which is can we use as media to create Application program, multimedia, interactive cd even game. Macromedia Flash have many script with different function, but the most often used only a few script, so it will easy for us if we still newbie in Flash and the Action Script.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-align: justify; text-autospace: none;&quot;&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;In Flash there are two writing panel modes script, they are normal mode and expert mode.&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;Basically expert mode is easier to learn than normal mode, so that the entire action that I use is wrotten in expert mode.&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: justify;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBBACRI6lOIETEhZvhY3QAVXLW17u2VZ7-EQU_35TqKfXPdrgyITKJh_IP3iwbugCIHkoaA5ygV2zY4YcegXeCxJF4wR-pgyemC8aRvLz0jp_dhdDmqNOeAoGbG1iHc5El3AfeBJyguoI/s1600/expertmode.gif&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBBACRI6lOIETEhZvhY3QAVXLW17u2VZ7-EQU_35TqKfXPdrgyITKJh_IP3iwbugCIHkoaA5ygV2zY4YcegXeCxJF4wR-pgyemC8aRvLz0jp_dhdDmqNOeAoGbG1iHc5El3AfeBJyguoI/s1600/expertmode.gif&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Option Expert Mode in Flash&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;</content><link rel='replies' type='application/atom+xml' href='http://actionscript-v2.blogspot.com/feeds/4045962496685457389/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://actionscript-v2.blogspot.com/2010/10/preface.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6647333275164039598/posts/default/4045962496685457389'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6647333275164039598/posts/default/4045962496685457389'/><link rel='alternate' type='text/html' href='http://actionscript-v2.blogspot.com/2010/10/preface.html' title='Preface'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBBACRI6lOIETEhZvhY3QAVXLW17u2VZ7-EQU_35TqKfXPdrgyITKJh_IP3iwbugCIHkoaA5ygV2zY4YcegXeCxJF4wR-pgyemC8aRvLz0jp_dhdDmqNOeAoGbG1iHc5El3AfeBJyguoI/s72-c/expertmode.gif" height="72" width="72"/><thr:total>0</thr:total></entry></feed>