Re: [Spam] [flexcoders] what is wrong with this code?

2009-10-12 Thread Nick Middleweek
Hi, Try sticking inside your init function... private function init():void { var str:String = Area = ; var area:Number = Math.PI * Math.pow(3, 2); str = str + area.toString(); Alert.show(str); } And you probably need a toString() method after the area because it's a Number and needs

Re: [Spam] [flexcoders] what is wrong with this code?

2009-10-12 Thread valdhor
As I understand it, implicit casting to a string works as expected (See http://livedocs.adobe.com/flex/3/html/help.html?content=03_Language_and_Syntax_12.html) so the explicit toString() is not actually required. I believe it is a good idea to have it as it avoids confusion. --- In

[flexcoders] what is wrong with this code?

2009-10-10 Thread funandlearning3
public var str:String = Area = ; public var area:Number = Math.PI * Math.pow(3, 2); str = str + area; I am getting an error that str and area variable do not exist...

Re: [flexcoders] what is wrong with this code?

2009-10-10 Thread Sam Lai
2009/10/10 funandlearning3 funandlearni...@yahoo.com: public var str:String = Area = ; public var area:Number = Math.PI * Math.pow(3, 2); str = str + area; I am getting an error that str and area variable do not exist... Is the last line located elsewhere in your code? Does the code appear

[flexcoders] what is wrong with this code?

2006-07-18 Thread arnold_charming
Hi! I'm having difficulties to find out what is wrong with this code. Please help me out. Kategorije.mxml --- ?xml version=1.0 encoding=utf-8? mx:Panel xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute width=245 height=465 title=Kategorije mx:XML

Re: [flexcoders] what is wrong with this code?

2006-07-18 Thread Jeff Tapper
Try mx:Label x=10 y=316 text=[EMAIL PROTECTED] width=169/ At 08:29 AM 7/18/2006, arnold_charming wrote: Hi! I'm having difficulties to find out what is wrong with this code. Please help me out. Kategorije.mxml --- ?xml version=1.0 encoding=utf-8? mx:Panel