Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Adobe AIR Development

Reply
Contributor
Posts: 17
Registered: ‎03-22-2011
My Device: BlacBerry Tablet OS
My Carrier: Developer

convert string value to unit

I m trying to change the bacground color of the stage as per the mouse pointer position value...

So i want to know how to change a string value to a unit value as "0xFF00FF"..

 

Any help...


--Mahesh--
Developer
Posts: 382
Registered: ‎05-19-2008
My Device: BlackBerry Torch
My Carrier: AT&T

Re: convert string value to unit

The Adobe Docs on TypeConversion has an example.

trace(int("0x1A"));   // 26

 

although, I think you should use uint instead, but it should work the same.

Bill
-------------------------------------------
Check out my book on BlackBerry Development for Java.
And my other really really old book
My Apps: FlashKids