ActionScript classes need to be referenced with their proper package name in the class definition.
Jeff Tapper blog: jeff.mxdj.com
At 05:58 PM 3/17/2005, you wrote:
Xmlns:mk="com.test.components.*"
Make sure the * is there in the end.
Matt
---------- From: Tom Fitzpatrick [mailto:[EMAIL PROTECTED] Sent: Thursday, March 17, 2005 2:46 PM To: [email protected] Subject: [flexcoders] Class path for component
I'm getting an error when I try to instantiate a component using a classpath.
In my application tag, I set a class path of xmlns:mk="com.test.components". In the folder com/test/components I have the Pod.as class. When I try to create a component with:
<mk:Pod id="test" title="Test Pod">
</mk:Pod>
I get an error:
"The class being compiled, 'Pod', does not match the class that was imported, 'com.test.components.Pod'"
This class works fine when I have it in the same directory as the app and invoke it without the classpath abbreviation.
Any ideas?
Thanks.
- Tom
Yahoo! Groups Sponsor ADVERTISEMENT <http://us.ard.yahoo.com/SIG=129mi8jta/M=298184.6191685.7192823.3001176/D=groups/S=1705007207:HM/EXP=1111186692/A=2593423/R=0/SIG=11el9gslf/*http://www.netflix.com/Default?mqso=60190075> click here
----------
Yahoo! Groups Links
* To visit your group on the web, go to:
* <http://groups.yahoo.com/group/flexcoders/>http://groups.yahoo.com/group/flexcoders/
*
* To unsubscribe from this group, send an email to:
* <mailto:[EMAIL PROTECTED]>[EMAIL PROTECTED]
*
* Your use of Yahoo! Groups is subject to the <http://docs.yahoo.com/info/terms/>Yahoo! Terms of Service.

