Mailing List
Home
Flash Pro
Extending Flash
Flash Macromedia Developer
Subjects
Firework Effect
setInterval bug identified and fixed
setInterval bug identified and fixed
ScrollPane component doesn 't auto update
Help: MX 2004 How to script a print button to print the entire sli
Event Dispatcher between classes
memory management removeMovieClip /
MX2004 Dataset itemClassName
Order of events per frame
XML to Object help
Textfield prototype question
Flash and QuickTime VR
Reading and displaying RSS feeds in Flash MX
Flash MX 2004 Sucks
AW: [Flashcoders] Switch/Case vs If/else
AW: [Flashcoders] Switch/Case vs If/else
Flash Interface with 10mb xml file
Web Service Results
Listener Object 's best practice
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
Proper Component Paths

Proper Component Paths

2004-02-23       - By HM Tobor

 Back
Reply:     1     2     3     4  

I can 't seem to figure out how to give my components a proper package path.

They live in a folder like /com/me/components/

There I have the MyComp.FLA and MyComp.AS.

The package in the class definition is,
class MyComp extends mx.core.UIComponent

But when I change it to something like,
class com.me.components.MyComp I get several errors like this,

"**Error** C:\Documents and Settings\User\My
Documents\...\src\com\me\components\MyComp.as: Line 4: The class being
compiled, 'com.me..components.MyComp ', does not match the class that was
imported, 'MyComp '. "

What is the correct way to create components that exist in packages? What am
I doing wrong?

-HM


=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Supported by Fig Leaf Software
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Be sure to check the archives and the wiki:
http://chattyfig.figleaf.com/
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:104988
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
To unsubscribe send a blank e-mail to:
Normal Mode: flashcoders-unsubscribe@(protected)
Digest Mode: flashcoders-digest-unsubscrive@(protected)