flex - Invalid BitmapData randomness -


i started converting flex application run on android using new flex hero sdk. replaced mobile-incompatible components , got running few times succesfully.

when use same libraries running original webapplication works perfectly.

the big problem these random invalid bitmapdata errors while starting mobile application. here's whole output.

argumenterror: error #2015: invalid bitmapdata. @ flash.display::bitmapdata/ctor() @ flash.display::bitmapdata() @ spark.primitives::bitmapimage/http://www.adobe.com/2006/flex/mx/internal::applysource()[e:\dev\hero_private_beta\frameworks\projects\spark\src\spark\primitives\bitmapimage.as:1337] @ spark.primitives::bitmapimage/http://www.adobe.com/2006/flex/mx/internal::validatesource()[e:\dev\hero_private_beta\frameworks\projects\spark\src\spark\primitives\bitmapimage.as:1652] @ spark.primitives::bitmapimage/commitproperties()[e:\dev\hero_private_beta\frameworks\projects\spark\src\spark\primitives\bitmapimage.as:902] @ spark.primitives.supportclasses::graphicelement/validateproperties()[e:\dev\hero_private_beta\frameworks\projects\spark\src\spark\primitives\supportclasses\graphicelement.as:3487] @ spark.components::group/commitproperties()[e:\dev\hero_private_beta\frameworks\projects\spark\src\spark\components\group.as:931] @ mx.core::uicomponent/validateproperties()[e:\dev\hero_private_beta\frameworks\projects\framework\src\mx\core\uicomponent.as:8095] @ mx.managers::layoutmanager/validateproperties()[e:\dev\hero_private_beta\frameworks\projects\framework\src\mx\managers\layoutmanager.as:597] @ mx.managers::layoutmanager/dophasedinstantiation()[e:\dev\hero_private_beta\frameworks\projects\framework\src\mx\managers\layoutmanager.as:760] @ mx.managers::layoutmanager/dophasedinstantiationcallback()[e:\dev\hero_private_beta\frameworks\projects\framework\src\mx\managers\layoutmanager.as:1157] 

i debugged many times , found when reaches method

mx_internal function applysource():void { 

in bitmapimage.as, @ statement

if (!bitmapdata && tmpsprite) 

the bitmapdata == null. when run original webapplication however, bitmapdata not null. bitmapdata value should determined in line of code

<s:bitmapimage id="smalltriangle" smooth="true" source="@embed('/com/xploreplus/components/containers/panel/assets/images/smalltriangle.png')" /> 

now seems me that, wile running mobile application, unable find image, when run webapplication, using same library above line of code is, able find image.

this problem has been haunting me days , i'm starting think bug, because run. or there i'm missing here.

i'm memory issue. fact error in bitmapdata constructor says either app trying create bitmapdata invalid dimensions (not since works in other build , image fetched on compile time) or scenario flash has run out of memory , can't create bitmapdata (mobile devices have less memory pc).


Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -