Go Back   Winamp Forums > Skinning and Design > Modern Skins

Reply
Thread Tools Search this Thread Display Modes
Old 11th September 2002, 08:58   #1
rintaro82
Junior Member
 
rintaro82's Avatar
 
Join Date: Jul 2001
Posts: 25
101 Questions Regarding Animated Layers

Does the meer act of defining an image as an animated layer cause it to animate? Is that all I need to do; give it an image and tell it how wide and high each frame is? Does the image strip have to be stacked top to bottom or can I do it left to right? Can I create an animated layer and then assign it to a button, creating an animated button? Inquiring minds want to know.
rintaro82 is offline   Reply With Quote
Old 11th September 2002, 10:08   #2
rintaro82
Junior Member
 
rintaro82's Avatar
 
Join Date: Jul 2001
Posts: 25
OK, somehow I FINALLY got an animated later to work. But as I asked above, can this layer now be assigned somehow to a button as an image? Also, is there a way to regulate the animation speed?
rintaro82 is offline   Reply With Quote
Old 11th September 2002, 13:22   #3
Naamloos
Forum King
 
Naamloos's Avatar
 
Join Date: Mar 2001
Location: irc.tehflap.org/*******
Posts: 3,085
speed="100" (in ms)

you'll need some little maki for that
Naamloos is offline   Reply With Quote
Old 11th September 2002, 14:20   #4
Gonzotek
Gunslinger
 
Gonzotek's Avatar
 
Join Date: May 2000
Location: Terminus
Posts: 4,693
You can use an animatedLayer as a button, with MAKI

Here's a simple example:
code:

#include <lib/std.mi>

global container yourContainer;
global layout yourLayout;
global animatedLayer youraniLayer;

system.onscriptloaded(){
yourContainer = system.getContainer("yourContainerId");
yourLayout = yourContainer.getLayout("yourContainerId");
youraniLayer = yourLayout.findObject("youraniLayerId");
}

youraniLayer.onLeftButtonUp(int x, int y){
system.play();
}


I was away for a while.
But I'm feeling much better now.
Gonzotek is offline   Reply With Quote
Old 17th September 2002, 11:15   #5
rintaro82
Junior Member
 
rintaro82's Avatar
 
Join Date: Jul 2001
Posts: 25
Thanks for the help. I haven't tried maki yet at all. Guess I'll have to take a crack at it.
rintaro82 is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Skinning and Design > Modern Skins

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump