[osflash] MovieMaterial behaving weird w/ Papervision3D

zwetan zwetan at gmail.com
Fri Mar 7 12:06:33 PST 2008


On Fri, Mar 7, 2008 at 2:18 AM, Karega McCoy <karega.mccoy at gmail.com> wrote:
> I have loaded an external SWF which is a slideshow to a plane. It is
>  supposed to cycle through images and does so when ran autonomously.
>  But when loaded into a MovieMaterial and attached to plane it does not
>  cycle through the slides. I have set the material.animated property to
>  true and I know that it is doing something because the TextField.text
>  is being updated. An example can be found @
>  http://www.southernswerve.com/test/Redzone.html someone please provide
>  some insight into what is happening.
>


at first load of your example I got this error

----
ArgumentError: Error #2015: Invalid BitmapData.
	at flash.display::BitmapData()
	at org.papervision3d.materials::MovieMaterial/initBitmap()[C:\Documents
and Settings\partner\Desktop\Trunk\svn\trunk\branches\GreatWhite\src\org\papervision3d\materials\MovieMaterial.as:170]
	at org.papervision3d.materials::MovieMaterial/createBitmapFromSprite()[C:\Documents
and Settings\partner\Desktop\Trunk\svn\trunk\branches\GreatWhite\src\org\papervision3d\materials\MovieMaterial.as:151]
	at org.papervision3d.materials::MovieMaterial/set
texture()[C:\Documents and
Settings\partner\Desktop\Trunk\svn\trunk\branches\GreatWhite\src\org\papervision3d\materials\MovieMaterial.as:116]
	at org.papervision3d.materials::MovieMaterial()[C:\Documents and
Settings\partner\Desktop\Trunk\svn\trunk\branches\GreatWhite\src\org\papervision3d\materials\MovieMaterial.as:135]
	at Redzone/initMaterials()[C:\Documents and
Settings\partner\Desktop\Redzone\src\Redzone.mxml:192]
	at Redzone/init()[C:\Documents and
Settings\partner\Desktop\Redzone\src\Redzone.mxml:113]
	at Redzone/___Redzone_Application1_creationComplete()[C:\Documents
and Settings\partner\Desktop\Redzone\src\Redzone.mxml:2]
	at flash.events::EventDispatcher/dispatchEventFunction()
	at flash.events::EventDispatcher/dispatchEvent()
	at mx.core::UIComponent/dispatchEvent()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:9051]
	at mx.core::UIComponent/set
initialized()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:1167]
	at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:698]
	at Function/http://adobe.com/AS3/2006/builtin::apply()
	at mx.core::UIComponent/callLaterDispatcher2()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8460]
	at mx.core::UIComponent/callLaterDispatcher()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8403]

---

and if you reload without clearing the browser cache the error does not occurs,
so maybe you should try to first to fix that error

cheers,
zwetan



More information about the osflash mailing list