# Problem with BitmapAsset

**URL:** <https://forum.kirupa.com/t/problem-with-bitmapasset/308061>\
**Category:** flash\
**Created:** [April 16, 2010, 11:49am UTC](https://forum.kirupa.com/t/problem-with-bitmapasset/308061 "2010-04-16T11:49:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Koki](https://avatars.discourse-cdn.com/v4/letter/k/5daacb/32.png) [@Koki](https://forum.kirupa.com/u/Koki)\
**Post date:** [April 16, 2010, 11:49am UTC](https://forum.kirupa.com/t/problem-with-bitmapasset/308061/1 "2010-04-16T11:49:56Z")

</div>

Hi, folks. So I have this:  
ActionScript Code:  
[LEFT][COLOR=#000000][[/COLOR]Bindable[COLOR=#000000]][/COLOR]  
[COLOR=#000000][[/COLOR]Embed[COLOR=#000000]([/COLOR]source=[COLOR=#0000FF]“images/slider/path.gif”[/COLOR], scaleGridTop=[COLOR=#0000FF]“0”[/COLOR], scaleGridBottom=[COLOR=#0000FF]“13”[/COLOR], scaleGridLeft=[COLOR=#0000FF]“0”[/COLOR], scaleGridRight=[COLOR=#0000FF]“2”[/COLOR][COLOR=#000000])[/COLOR][COLOR=#000000]][/COLOR]  
[COLOR=#993300]public[/COLOR] [COLOR=#993300]var[/COLOR] sliderPath:[COLOR=#993300]Class[/COLOR];

internal [COLOR=#993300]var[/COLOR] BA:BitmapAsset = BitmapAsset[COLOR=#000000]([/COLOR][COLOR=#993300]new[/COLOR] sliderPathCOLOR=#000000[/COLOR][COLOR=#000000])[/COLOR];  
[COLOR=#993300]public[/COLOR] [COLOR=#993300]var[/COLOR] pathimg:BitmapData = BA.[COLOR=#000000]bitmapData[/COLOR];  
[/LEFT]

and It’s giving me error:  
**TypeError: Error #1034: Type Coercion failed: cannot convert comps::Path\_sliderPath@46afd01 to mx.core.BitmapAsset.**

The strange thing is that, it used to work before, but since I re-installed Flex it began giving me this error ![](http://forum.kirupa.com/uploads/kirupa/1799/6a24f1d926eff459.gif)

Can anyone help?
