Old 26th March 2005, 08:41   #1
nspmangalore
Senior Member
 
nspmangalore's Avatar
 
Join Date: Jan 2005
Location: mangalore, India
Posts: 127
button id (maki)

i want to add a spl effect to all the buttons in my skin but want to write only 1 common script to all. so, is it possible to have a 2nd id "commonid" to all the buttons so that i can write

btn=group.getObject("commonid");

instead of writing different script with

btn=group.getObject("play");
btn=group.getObject("pause");
btn=group.getObject("stop");
etc..

or is there any other way to achieve the same results???

any good opinion will be helpful
nspmangalore is offline   Reply With Quote
Old 26th March 2005, 13:18   #2
leechbite
Major Dude
 
leechbite's Avatar
 
Join Date: Sep 2003
Location: Canada
Posts: 635
Send a message via Yahoo to leechbite
you can:

XML
PHP Code:
<button id="button1">

<
script id="script.1" file="scripts/scriptname.maki" param="button1"/> 
MAKI
PHP Code:
System.onScriptLoaded() {
  
scriptGroup getScriptGroup();

  
string btnID getParam();
  
btn scriptGroup.getObject(btnID);

leechbite is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast 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