StarlingGraphics / Starling-Extension-Graphics

flash.display.Graphics style extension for the Starling Flash GPU rendering framework
https://github.com/StarlingGraphics/Starling-Extension-Graphics/wiki
MIT License
282 stars 89 forks source link

IShader type coercion problems #111

Closed robsilv closed 10 years ago

robsilv commented 10 years ago

Hi guys,

I'm just trying to run 01_Graphics_API_Example from the examples folder using AIR SDK 3.4, and am getting this funny error:

"TypeError: Error #1034: Type Coercion failed: cannot convert to starling.display.shaders.IShader."

..on the line...

https://github.com/StarlingGraphics/Starling-Extension-Graphics/blob/master/extension/src/starling/display/graphics/Graphic.as#L81

Any ideas?

Ta! Rob

jonathanrpace commented 10 years ago

I vaguely remember someone else having this, and it turning out to be a bug in a particular version of the ASC compiler. It fails to resolve a circular dependency in some situations - or something . . . .maybe.

Try grabbing the latest and see if it goes away.

Oh, and hi Rob!

robsilv commented 10 years ago

Hi Jon!

Thanks, yeah super old version of the AIR SDK (3.4) installed by default with Flash Builder 4.7. Have updated and it's fine now.

Ta Rob