Hi,
Thanks for replying.

Yes, Program.as live in test package and it is in test directory. In
the flex builder, there is no compile-time error. I get the error,
when I run it.

This is the directory configuration:

- programview.mxml
- test\Program.as

Am I missing any configuration?

Thanks,
Umesh


--- In [email protected], "Peter Farland" <[EMAIL PROTECTED]>
wrote:
>
> Is the Program class correctly declared inside a package test {}
block?
> Does Program.as live in a subdirectory called test?
>
> -----Original Message-----
> From: [email protected]
[mailto:[EMAIL PROTECTED] On
> Behalf Of eairox
> Sent: Thursday, May 04, 2006 7:02 PM
> To: [email protected]
> Subject: [flexcoders] Please Help: Not being able to access the .as
> class from mxml in Flex 2 Beta 2
>
> Hi,
>
> I am not able to use the actionscript class in the mxml. I have
declared
> a class as follows:
>
> Class: Program.as
>
>     import mx.collections.*;
>     //These imports should be unnecessary in the final release
>     import mx.data.IManaged;
>     import mx.data.utils.Managed;
>     import mx.core.mx_internal;
>      
>       [Managed]
>       [RemoteClass(alias="test.Program")]
>      
>       public class Program {
>                 //auto generated
>     private var programId:int;
>    
>     //auto generated
>     private var programName:String;
>     ...
>     ...
> }
>
>
> mxml code:
>
> import test.Program;
>
> [Bindable]
> public var program:Program;
>
>
>
> Error:
>
> Type is not found or not a compile-time constant: Program
>
> 36:              public var risks:ArrayCollection;
> 37:              public var program:Program;
>
>
>
>
>
>
>
> ------------------------ Yahoo! Groups Sponsor --------------------
~-->
> Get to your groups with one click. Know instantly when new email
arrives
> http://us.click.yahoo.com/.7bhrC/MGxNAA/yQLSAA/nhFolB/TM
> --------------------------------------------------------------------
~->
>
> --
> Flexcoders Mailing List
> FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
>







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to