Hello, i'm going to share my problem in this old thread and hopefully someone can help me to find a solution. Actually i've post a new thread for this, but it still left unanswered.
http://forum.starling-framework.org/topic/starling-filter-doesnt-work-in-bluestacks
To cut it short, i've been using Starling Filter (ColorMatrixFilter and BlurFilter) to make some effects, such as grayscale effect. Works fine in mobile but not in BlueStacks, the objects attached with the filter disappeared in BlueStacks.
I am using starling 1.7 and AIR 19.
Here is the code of it:
public static function initGrayscaleFilter(img:DisplayObject):void {
if (!img) return;
if (img.filter) {
img.filter.dispose();
img.filter = null;
}
var _filter:ColorMatrixFilter = new ColorMatrixFilter();
_filter.adjustSaturation( -1);
img.filter = _filter;
img.filter.cache();
_global.assetManager.addEventListener(Event.TEXTURES_RESTORED, function():void {
if (!img) return;
if (!img.filter) return;
img.filter.clearCache();
TweenLite.delayedCall(.5, img.filter.cache);
});
img.addEventListener(Event.REMOVED, function():void {
if (img.filter) {
TweenLite.killDelayedCallsTo(img.filter.cache);
img.filter.dispose();
img.filter = null;
}
});
}