|
-
Flash Incompetent
importing multiple classes??
I have two .as files and both of them I am trying to import but I get the following error:
Code:
The class 'uweap.as' cannot be imported because its leaf name is already being resolved to imported class 'eSet.as'.
can anyone clarify what the problem is or what a leaf name is?
-
Senior Member
i have never come across this error, but ..
im guessing uweap is extending eSet.
if so, you only need to import uweap.
-
Can you post your code?
This error is usually the result of either trying to import two classes with the sdame name, or trying to importing the same class that you are creating...
K.
-
Did anyone figure this one out? I'm having this problem, too.
I'm having the same problem in Flash 8. The classes have no references to each other. The code in the .fla is just:
import Piano.as
import Skateboard.as
and I get:
**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 3: The class 'Skateboard.as' cannot be imported because its leaf name is already being resolved to imported class 'Piano.as'.
I don't have the .as files in packages or subdirectories; they're just sitting in the same directory as the .fla.
Any ideas???
Unless otherwise specified, all code goes in Frame 1 of main timeline. FlashGizmo.com
-
D'oh! I got it: import the class name, Skateboard, not the file name Skateboard.as.
Unless otherwise specified, all code goes in Frame 1 of main timeline. FlashGizmo.com
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|