I'll try reading his mind. Did you simply paste your code into an <mx:Script> block? You don't want to put "loose statements" like 'for' loops there. A Flex script block should have declarations of vars and functions... things that go into the body of a class, because in Flex every MXML document actually defines a class. Your 'for' loop belongs inside some method, such as a handler for the 'initialize' event.
Gordon Smith Adobe Flex SDK Team ________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Paul Andrews Sent: Thursday, June 12, 2008 1:45 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Difference between Flash/Flex in AS 3 ----- Original Message ----- From: "Deniz Davutoglu" <[EMAIL PROTECTED] <mailto:denizdavutoglu%40bannerborsasi.com> > To: <flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> > Sent: Thursday, June 12, 2008 9:44 AM Subject: [flexcoders] Difference between Flash/Flex in AS 3 > Hello Guys, I wrote some code in flash AS3 (that one that I sended > yesterday ) > I copied it to flex and even sample codes like for (var i:uint; trow > error. do you have any idea why it is happening? Not unless we are mind readers. Show us an example. Paul