<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://wiki.winamp.com/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://wiki.winamp.com/index.php?action=history&amp;feed=atom&amp;title=Modern_Skin%3A_Animating_a_Skin</id>
		<title>Modern Skin: Animating a Skin - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.winamp.com/index.php?action=history&amp;feed=atom&amp;title=Modern_Skin%3A_Animating_a_Skin"/>
		<link rel="alternate" type="text/html" href="http://wiki.winamp.com/index.php?title=Modern_Skin:_Animating_a_Skin&amp;action=history"/>
		<updated>2026-05-17T12:38:46Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.22.3</generator>

	<entry>
		<id>http://wiki.winamp.com/index.php?title=Modern_Skin:_Animating_a_Skin&amp;diff=901&amp;oldid=prev</id>
		<title>Tarik: Protected &quot;Modern Skin: Animating a Skin&quot; [edit=autoconfirmed:move=autoconfirmed]</title>
		<link rel="alternate" type="text/html" href="http://wiki.winamp.com/index.php?title=Modern_Skin:_Animating_a_Skin&amp;diff=901&amp;oldid=prev"/>
				<updated>2008-09-25T12:59:26Z</updated>
		
		<summary type="html">&lt;p&gt;Protected &amp;quot;&lt;a href=&quot;/wiki/Modern_Skin:_Animating_a_Skin&quot; title=&quot;Modern Skin: Animating a Skin&quot;&gt;Modern Skin: Animating a Skin&lt;/a&gt;&amp;quot; [edit=autoconfirmed:move=autoconfirmed]&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 12:59, 25 September 2008&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan='2' style='text-align: center;'&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Tarik</name></author>	</entry>

	<entry>
		<id>http://wiki.winamp.com/index.php?title=Modern_Skin:_Animating_a_Skin&amp;diff=873&amp;oldid=prev</id>
		<title>Tarik: Unprotected &quot;Modern Skin: Animating a Skin&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.winamp.com/index.php?title=Modern_Skin:_Animating_a_Skin&amp;diff=873&amp;oldid=prev"/>
				<updated>2008-09-24T17:15:52Z</updated>
		
		<summary type="html">&lt;p&gt;Unprotected &amp;quot;&lt;a href=&quot;/wiki/Modern_Skin:_Animating_a_Skin&quot; title=&quot;Modern Skin: Animating a Skin&quot;&gt;Modern Skin: Animating a Skin&lt;/a&gt;&amp;quot;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 17:15, 24 September 2008&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan='2' style='text-align: center;'&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Tarik</name></author>	</entry>

	<entry>
		<id>http://wiki.winamp.com/index.php?title=Modern_Skin:_Animating_a_Skin&amp;diff=801&amp;oldid=prev</id>
		<title>Tarik: Protected &quot;Modern Skin: Animating a Skin&quot;: There seems to be a problem with your login session [edit=sysop:move=sysop]</title>
		<link rel="alternate" type="text/html" href="http://wiki.winamp.com/index.php?title=Modern_Skin:_Animating_a_Skin&amp;diff=801&amp;oldid=prev"/>
				<updated>2008-09-22T21:30:31Z</updated>
		
		<summary type="html">&lt;p&gt;Protected &amp;quot;&lt;a href=&quot;/wiki/Modern_Skin:_Animating_a_Skin&quot; title=&quot;Modern Skin: Animating a Skin&quot;&gt;Modern Skin: Animating a Skin&lt;/a&gt;&amp;quot;: There seems to be a problem with your login session [edit=sysop:move=sysop]&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 21:30, 22 September 2008&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan='2' style='text-align: center;'&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Tarik</name></author>	</entry>

	<entry>
		<id>http://wiki.winamp.com/index.php?title=Modern_Skin:_Animating_a_Skin&amp;diff=561&amp;oldid=prev</id>
		<title>Wahdahtahdammie at 19:37, 27 August 2008</title>
		<link rel="alternate" type="text/html" href="http://wiki.winamp.com/index.php?title=Modern_Skin:_Animating_a_Skin&amp;diff=561&amp;oldid=prev"/>
				<updated>2008-08-27T19:37:52Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Creating a Modern Skin --&amp;gt; [[Modern Skin: Intro|Intro]] --&amp;gt; [[Modern Skin: Winamp 2 to W3+|Winamp 2 to Winamp 3+]] --&amp;gt; [[Modern Skin: Simple Skin Tutorial|Simple Skin Tutorial]] --&amp;gt; [[Modern Skin: XML Intro|XML Intro]] --&amp;gt; [[Modern Skin: Simple Skin Tutorial (Continued)|Simple Skin Tutorial (Continued)]] --&amp;gt; [[Modern Skin: Container| Container]] --&amp;gt; [[Modern Skin: Group|Group]] --&amp;gt; [[Modern Skin: Relative Positioning| Relative Positioning]] --&amp;gt; [[Modern Skin: Complex Skin|Complex Skin]] --&amp;gt; [[Modern Skin: Non-Rect Player| Non-Rect Player]] --&amp;gt; [[Modern Skin: Layer Composition| Layer Composition]] --&amp;gt; [[Modern Skin: Alpha Channels| Alpha Channels]] --&amp;gt; [[Modern Skin: Animatedlayer|Animatedlayer]] --&amp;gt; [[Modern Skin: Snap Points|Snap Points]] --&amp;gt; [[Modern Skin: Drawers|Drawers]] --&amp;gt; [[Modern Skin: Skin Scripting| Skin Scripting]] --&amp;gt; [[Modern Skin: Drawer Scripting| Drawer Scripting]] --&amp;gt; [[Modern Skin: Animating a Skin|Animating a Skin]] --&amp;gt; [[Modern Skin: Maki Overview| Maki Overview]] --&amp;gt; [[Main_Page#Glossary_of_Terms|Glossary]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
An animated layer does not move. However, an animating skin does move. To actually move a graphical element you must write a MAKI script. In this section, we will show you how to do a sequence of animation that you see in this skin.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Flash2.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==MAKI Script - anim.m==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Couple things you need to notice in your XML:&lt;br /&gt;
&lt;br /&gt;
*Both animated layer and animating skin are &amp;quot;AnimatedLayer&amp;quot; type.&lt;br /&gt;
*Both use the same graphical element.&lt;br /&gt;
*The difference lies that animating skin uses a MAKI script to move the arrow.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:scripting_animxml.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Lets break down the script:'''&lt;br /&gt;
&lt;br /&gt;
==Introduction Comments:==&lt;br /&gt;
&lt;br /&gt;
The first part of the script should be a brief introduction to the script. It should talk about the purpose and the functionality of the script.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:scripting_animmaki1.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==#include Section:==&lt;br /&gt;
&lt;br /&gt;
The second part is the #include section. Use &amp;quot;#include&amp;quot; to include any file you need. If you need to call or use another function that is defined in another file, make sure you include that file in your script.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:scripting_animmaki2.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Variable Declaration Section==&lt;br /&gt;
&lt;br /&gt;
Any variable that you'll use in your script, declare them in this section.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:scripting_animmaki3.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==System.onScriptUnloading() Section==&lt;br /&gt;
&lt;br /&gt;
When the script is unloaded, this part of the script will run. Typically, you do your clean up in this section. Our triangle script is simple and therefore doesn't need anything in this section.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:scripting_animmaki4.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==System.onScriptLoaded() Section==&lt;br /&gt;
&lt;br /&gt;
When the script is first loaded, this part of the script will run. Typically, if anything you want to make happen when the script first start, you do that here. In our example, we initialized some objects and set the initial state for those objects. Just like the previous section, it is perfectly fine to leave this section empty. If you do that, nothing will happen when the script is loaded.&lt;br /&gt;
&lt;br /&gt;
In this script, we set the initial state for several variables and call &amp;quot;move_arrow()&amp;quot; function when the script is loaded.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:scripting_animmaki5.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==You own functions==&lt;br /&gt;
&lt;br /&gt;
To move the arrow, we use two functions. The first function, &amp;quot;move_arrow()&amp;quot;, is called by &amp;quot;system.onScriptLoaded()&amp;quot; when the script is loaded. The function of &amp;quot;move_arrow()&amp;quot; is to move the arrow down from its initial location. To do this, it sets the x and y coordinate and the speed for that movement. When the arrow reaches the target location, an event is fired telling the system that the arrow has reached the target location.&lt;br /&gt;
&lt;br /&gt;
Winamp3 is an event driven system. The second function is designed to handle the event when the arrow reaches its destination. Depending on its state, it will direct the arrow to move to a new location. This function is called over and over again every time the arrow reaches its destination. This simple function directs the movement of the arrow that you see in the skin.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:scripting_animmaki6.png]]&lt;/div&gt;</summary>
		<author><name>Wahdahtahdammie</name></author>	</entry>

	</feed>