Welcome, Guest
Want to take part in these discussions? Sign in if you have an account, or apply for one below
-
- CommentAuthoremotse
- CommentTimeDec 4th 2009
So, I have a class which extends Sprite that contains a 2d emitter and a pixel renderer masked by a text field. The class works fine when I run it in its own swf, but I'd like to be able to import it into a papervision class I'm doing which is extending BasicView. When I call the constructor though it's crashing with an error of ArgumentError: Error #2015: Invalid BitmapData.
Unfortunately I can't paste the code, but I figured I'd check to see if this rings a bell with anyone. -
- CommentAuthorRichard
- CommentTimeDec 4th 2009
It'll be hard to help without seeing some code. Can you say where the error occurs? i.e. is it in the PixelRenderer (what line?) in the Papervision3D code (what class and line?) or in your custom code? -
- CommentAuthoremotse
- CommentTimeDec 4th 2009 edited
Hey, thanks for the quick reply!
I don't know why I didn't paste this originally. :3
ArgumentError: Error #2015: Invalid BitmapData
at flash.display::BitmapData()
at org.flintparticles.twoD.renderers::BitmapRenderer/createBitmap()[***/org/flintparticles/twoD/renderers/BitmapRenderer.as:263]
at org.flintparticles.twoD.renderers::BitmapRenderer()[***/org/flintparticles/twoD/renderers/BitmapRenderer.as:128]
at org.flintparticles.twoD.renderers::PixelRenderer()[***/org/flintparticles/twoD/renderers/PixelRenderer.as:65]
at ParticleText/particleFill()[***/ParticleText.as:135] ----> this is the line creating the renderer:
var renderer:PixelRenderer = new PixelRenderer( new Rectangle( 0, 0, _width, _height ) );
at ParticleText/createTextField()[***/ParticleText.as:108] ----> this is just a call to the function containing the Flint code
at ParticleText()[***/ParticleText.as:65] ----> ditto
at main()[***/main.as:42] ----> ditto
So it looks like it's some issue with the canvas dimensions? The class's dimensions are set by default in the constructor to 100x100. -
- CommentAuthoremotse
- CommentTimeDec 4th 2009 edited
Yeah, it was a typo.
Very embarrassing, I should probably go home now and get some sleep.
Thanks again for your help though, this is awesome work you're doing.
1 to 4 of 4
