Canvas and filters...

General talking about BaseUI layouts manager.

Canvas and filters...

Postby niklasinla on Wed Mar 10, 2010 9:34 am

Hi there!

I've tried to add a glowfilter to the canvas but the scroller stops working - the filter is added though.
Scroller works with mousewheel but not with the mouse the "normal way".

I've setup the canvas and that works. I'm calling it canvas then I try to add this filtercode:

Code: Select all
var myGlow:GlowFilter = new GlowFilter();
myGlow.color = 0x000000;
myGlow.blurX = 2;
myGlow.blurY = 2;
canvas.filters = [myGlow];


Is there some sort of workaround or is this just not possible?

Best, Nikas
niklasinla
 
Posts: 23
Joined: Thu Jan 29, 2009 2:03 pm

Re: Canvas and filters...

Postby romu on Wed Mar 10, 2010 10:28 am

hmm I've never tried I think.

Did you try to apply the filter to "canvas.container" ?
Or did you try to put the canvas in another Sprite and apply the filter on it?

Romu
romu
Site Admin
 
Posts: 195
Joined: Thu Sep 11, 2008 10:01 am

Re: Canvas and filters...

Postby niklasinla on Wed Mar 10, 2010 10:50 am

Hi Romu!

Thanks for your fast answer.
Applying it to canvas.container applies it to the text which might be what you want is some cases...
So I wrapped it in a sprite & that works perfectly.
Duh - I should have thought about that. :oops:

Thanks again...

Niklas
niklasinla
 
Posts: 23
Joined: Thu Jan 29, 2009 2:03 pm


Return to General Talking

Who is online

Users browsing this forum: No registered users and 1 guest

cron