hi all,
normally this bug will occur at time of drawing bitmap data, the width and
height we are going set to the will not 0 , 0 or NaN, otherwise we will get
the runtime error like this.
Invalid BitmapData.
at flash.display::BitmapData()
I just shared my knowledge if you have any concern please let me know.
thanks,
Naresh MP
On Mon, Jun 14, 2010 at 3:09 AM, jens lofberg <[email protected]> wrote:
> I had the same problem once.
> For me this was happening when I use a MovieMaterial and scaled up the
> Movieclip too much. I guess Away3D is converting the movieclip to Bitmapdata
> intenally.
> ... but if you switch to flash player10 its should work.
>
> jens
>
>
> Le 14/06/2010 04:37, Mech7 a écrit :
>
> No it's not too big the only 800 x 600 but it only happends when I
>> make the plane object bigger then the image? But at first i draw a
>> sprite as big as the plane.. but even then I still get the error.
>>
>> On Jun 11, 5:43 pm, jens lofberg<[email protected]> wrote:
>>
>>
>>> Hi
>>> I guess yourBitmapDatais too big (2880 px in flash 9)
>>>
>>> jens
>>>
>>> Le 11/06/2010 11:36, Mech7 a crit :
>>>
>>>
>>>
>>>
>>>
>>>> I keep getting this error with the moviematerial...
>>>> the strange thing is normally it works but now I try to set the size
>>>> of the plane bigger and everytime this pops up...
>>>>
>>>>
>>>
>>>
>>>> InvalidBitmapData.
>>>> at flash.display::BitmapData()
>>>> at away3d.materials::MovieMaterial()[D:\_Work\2010\E-Book\ebook_2\src
>>>> \away3d\materials\MovieMaterial.as:169]
>>>> at ebook::Page/initMaterial()[D:\_Work\2010\E-Book\ebook_2\src\ebook
>>>> \Page.as:252]
>>>> at ebook::Page()[D:\_Work\2010\E-Book\ebook_2\src\ebook\Page.as:176]
>>>> at ebook::Book/addPage()[D:\_Work\2010\E-Book\ebook_2\src\ebook
>>>> \Book.as:188]
>>>> at ebook::Book/init()[D:\_Work\2010\E-Book\ebook_2\src\ebook\Book.as:
>>>> 127]
>>>> at flash.events::EventDispatcher/dispatchEventFunction()
>>>> at flash.events::EventDispatcher/dispatchEvent()
>>>> at ebook::Settings/completeHandler()[D:\_Work\2010\E-Book\ebook_2\src
>>>> \ebook\Settings.as:57]
>>>> at flash.events::EventDispatcher/dispatchEventFunction()
>>>>
>>>>
>>>
>>>
>>>> I saw in a other thread that setting the lock values would help but it
>>>> did not work for me..
>>>>
>>>>
>>>
>>>
>>>> this.f_material.lockW = this.width;
>>>> this.f_material.lockH = this.height;
>>>>
>>>>
>>>
>>>
>>>> Does anybody know what could be going on here ? :)
>>>>
>>>>
>>>
>>
>
>