Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Error #1034 #137

Open
wenguoqing opened this issue Jul 30, 2015 · 3 comments
Open

TypeError: Error #1034 #137

wenguoqing opened this issue Jul 30, 2015 · 3 comments

Comments

@wenguoqing
Copy link

TypeError: Error #1034: 强制转换类型失败:无法将 转换为 starling.display.shaders.IShader。
at starling.display.materials::StandardMaterial()[G:\work\github\Starling-Extension-Graphics\extension\src\starling\display\materials\StandardMaterial.as:0]
at starling.display.graphics::Graphic()[G:\work\github\Starling-Extension-Graphics\extension\src\starling\display\graphics\Graphic.as:84]
at starling.display.graphics::NGon()[G:\work\github\Starling-Extension-Graphics\extension\src\starling\display\graphics\NGon.as:0]
at starling.display::Graphics/drawEllipse()[G:\work\github\Starling-Extension-Graphics\extension\src\starling\display\Graphics.as:425]
at starling.display::Graphics/drawCircle()[G:\work\github\Starling-Extension-Graphics\extension\src\starling\display\Graphics.as:411]

@IonSwitz
Copy link
Member

I'm sorry, but this tells me absolutely nothing. If you can isolate the crash you have in a small code sample, it will help a lot, but just giving me a call stack tells me nothing, beyond that you encountered a crash.

@wenguoqing
Copy link
Author

public function StandardMaterial(vertexShader:AbstractShader = null, fragmentShader:AbstractShader = null)
{
this.vertexShader = vertexShader || new StandardVertexShader();
this.fragmentShader = fragmentShader || new VertexColorFragmentShader();
textures = new Vector.();
colorVector = new Vector.();
color = 0xFFFFFF;
}
this args modify AbstractShader,is OK.
I don't know why.

@IonSwitz
Copy link
Member

This looks like the same issue reported here:

#68

Please have a look over there. It might help you further

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants