# Converting a value to a percent

**URL:** <https://forum.kirupa.com/t/converting-a-value-to-a-percent/323205>\
**Category:** flash\
**Created:** [June 21, 2011, 6:33am UTC](https://forum.kirupa.com/t/converting-a-value-to-a-percent/323205 "2011-06-21T06:33:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![titoqan](https://avatars.discourse-cdn.com/v4/letter/t/dbc845/32.png) [@titoqan](https://forum.kirupa.com/u/titoqan)\
**Post date:** [June 21, 2011, 6:33am UTC](https://forum.kirupa.com/t/converting-a-value-to-a-percent/323205/1 "2011-06-21T06:33:20Z")

</div>

Hello,

I need to convert a value that I have loaded from an ArcGIS Server and convert it to a percentage. The data loads just fine and on the mouse over I see the correct data I just need to make it a percentage on line 27.

I am using Flash Builder 4 and the ArcGIS API for Flex. [Here is what I have posted](http://204.236.161.112/CBWS_MouseOver.html), any help would be appreciated.

```auto

21 private function onMouseOverHandler(event:MouseEvent):void
22 {
23 var gr:Graphic = Graphic(event.target);
24 gr.symbol = mouseOverSymbol;
25 myTextArea.htmlText = "<b> FIPS County Code: </b>" + gr.attributes['ba_cb_cty.FPS'] + "
"
26 + "<b>County Name: </b>" + gr.attributes['ba_cb_cty.Name'] + "
"
27 + "<b>Projected Population Change: </b>" + gr.attributes['3_PRJPOP.PRJPC___'] + "
"
28 myMap.infoWindow.label = gr.attributes['3_PRJPOP.LABEL'];
29 myMap.infoWindow.closeButtonVisible = false;
30 myMap.infoWindow.show(myMap.toMapFromStage(event.stageX, event.stageY));
31 }

```

Thanks,  
Titoqan
