@Michael: That code looks dangerous. Right now you are assuming that the assets that are returned are either bitmaps or meshes. If a material is returned, that code will crash.
Either check for assetType == AssetType.MATERIAL (and set the assets mipmap property) or do what you do now but make sure to check that the asset is really a mesh (assetType == AssetType.MESH). Cheers /R On May 18, 12:42 pm, Michael Iv <[email protected]> wrote: > This worked: > > private function onAssetComplete(e:AssetEvent):void{ > if(e.asset.assetType == AssetType.BITMAP){ > BitmapDataAsset(e.asset).name; > }else{ > Mesh(e.asset).material.mipmap=false; > > } > } > > :) . > Feeling a total n00b with Away4 ;) ! > > > > > > > > > > On Wed, May 18, 2011 at 1:33 PM, Michael Iv <[email protected]> wrote: > > @John it is 2048x512 > > > @Richard so where do i ACCESS the mipmap property? on the material? > > > Tnx > > > On Wed, May 18, 2011 at 1:29 PM, John Brookes <[email protected]>wrote: > > >> or > >> Just resize the image in photoshop to power of 2 square > >> It will still work. > > > -- > > Michael Ivanov ,Programmer > > Neurotech Solutions Ltd. > > Flex|Air |3D|Unity| > >www.neurotechresearch.com > >http://blog.alladvanced.net > > Tel:054-4962254 > > [email protected] > > [email protected] > > -- > Michael Ivanov ,Programmer > Neurotech Solutions Ltd. > Flex|Air |3D|Unity|www.neurotechresearch.comhttp://blog.alladvanced.net > Tel:054-4962254 > [email protected] > [email protected]
