Does Program.as live in a subdirectory called test?
-----Original Message-----
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of eairox
Sent: Thursday, May 04, 2006 7:02 PM
To: flexcoders@yahoogroups.com
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
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.