View Single Post
Old 10th February 2006, 23:23   #44
Benski
Ben Allison
Former Winamp Developer
 
Benski's Avatar
 
Join Date: Jan 2005
Location: Brooklyn, NY
Posts: 1,057
Re: regions on components

Quote:
Originally posted by Plague
I get the attached message when I try using regions on components, with the following maki code:
PHP Code:
#include <lib/std.mi>

System.onScriptLoaded() {
  
component avs getScriptGroup().findObject("avs");
  
region r = new region;
  
r.loadFromBitmap("avs.map");
  
avs.setRegion(r);

the bitmap used was transparent with black parts where I wanted the component to be visible.
I've also tried using a transparent with white parts and a full black/white image, all with the same result.
Plague - can you provide a functional skin that replicates this? or at least attach your avs.map file
Benski is offline   Reply With Quote