|
I'm using a blur, glow and a dropshadow filter and none of them are blurring - the filter is applied but with no feathering of the edges.
Below are the 3 helper function that I'm using - but I've also tried to do it manually and it didn't help.
Any ideas? Doesn't look like I'm doing anything incorrectly - is this a bug?
public static function applyBlurFilter(s ynamic, blurx:Float, blury:Float):Void {
var quality:Int = STDFILTERQUALITY;
var f:BlurFilter = new BlurFilter(blurx,blury,quality);
var fArry:Array<Dynamic> = s.filters;
fArry.push(f);
s.filters = fArry;
}
public static function applyGlowFilter(s ynamic, color:Int, alpha:Float, blur:Float, strength:Float, inner:Bool=false):Void {
var knockout:Bool = false;
var quality:Int = STDFILTERQUALITY;
var f:GlowFilter = new GlowFilter(color,alpha,blur,blur,strength,quality,inner,knockout);
var fArry:Array<Dynamic> = s.filters;
fArry.push(f);
s.filters = fArry;
}
public static function applyDropShadowFilter(s ynamic, distance:Float, angle:Float, color:Int, alpha:Float, blur:Float, strength:Float, knockout:Bool=false):Void {
var quality:Int = STDFILTERQUALITY;
var f ropShadowFilter = new DropShadowFilter(distance, angle, color,alpha, blur, blur,strength, quality, false,knockout,false);
var fArry:Array<Dynamic> = s.filters;
fArry.push(f);
s.filters = fArry;
}
Posted on December 08, 2011 at 9:48 AM
|
|
Have been painstakeingly converting a lot of code over from ActionScript for the past few days and I've gotten out all of the errors that I can find, but now when I compile, I get this message. I have no idea where to look or how to begin solving for this. Any ideas? Thanks in advance.
Running process: C:\Program Files (x86)\FlashDevelop\Tools\fdbuild\fdbuild.exe "C:\Users\nbkg8ic\Projects\001 Archive Site\Archives.hxproj" -ipc cd88f7e8-2041-47fc-8d23-82032322b371 -version "2.08" -compiler "C:\haxe-2.08-win" -notrace -library "C:\Program Files (x86)\FlashDevelop\Library" -cp "C:\haxe-2.08-win\lib\hsl-1\1,6\hsl"
Building Archives
haxelib run nme build "C:\Users\nbkg8ic\Projects\001 Archive Site\Archives.nmml" flash
Called from ? line 1
Called from InstallTool.hx line 549
Called from InstallTool.hx line 94
Called from installers/InstallerBase.hx line 116
Called from installers/FlashInstaller.hx line 80
Called from format/swf/Writer.hx line 59
Called from format/swf/Writer.hx line 1234
Called from format/swf/Writer.hx line 1142
Called from format/swf/Writer.hx line 1105
Called from C:\Motion-Twin\haxe/std/haxe/io/Output.hx line 127
Uncaught exception - Overflow
Build halted with errors (haxelib.exe).
Posted on December 07, 2011 at 9:41 AM
|
|
Starting out with haXe and NME in FlashDevelop. I downloaded a FlashDevelop template for NME and I'm using that as the basis of the project. The generated main file has this at the head:
package;
import nme.display.Sprite;
import nme.display.StageAlign;
import nme.display.StageScaleMode;
import nme.Lib;
Which looks perfect to me. I've checked the publish/build settings and I can't find a fault either. nme is added to the compiler options/libraries also.
BUT
When I build the project I get these errors:
Source/Archives.hx:4: characters 0-26 : Class not found : nme.display.Sprite
Export/flash/haxe/ApplicationMain.hx:28: characters 9-22 : #Archives has no field main
Called from ? line 1
Called from InstallTool.hx line 384
Called from InstallTool.hx line 70
Called from installers/InstallerBase.hx line 102
Called from installers/FlashInstaller.hx line 31
Called from installers/InstallerBase.hx line 878
Called from InstallTool.hx line 205
Uncaught exception - Error running: haxe Export/flash/haxe/release.hxml
Build halted with errors (haxelib.exe).
I can't figure out why! If i press f4 to go to the class, FlashDevelop takes me there so that I know the files are in the proper place. If I take out Sprite, then i get the same error for StageAlign and StageScaleMode.
Any ideas what's up with this or where I could start looking for a resolution?
Posted on November 30, 2011 at 3:43 PM
|