A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: importing multiple classes??

  1. #1
    Flash Incompetent ChaseNYC's Avatar
    Join Date
    Jun 2002
    Location
    new york city
    Posts
    693

    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?
    mmm signature

  2. #2
    Senior Member dudeqwerty's Avatar
    Join Date
    Mar 2005
    Location
    Bosnia
    Posts
    1,626
    i have never come across this error, but ..

    im guessing uweap is extending eSet.

    if so, you only need to import uweap.
    New sig soon

  3. #3
    FK Slacker
    Join Date
    Jun 2000
    Location
    vancouver
    Posts
    3,208
    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.

  4. #4
    ActionScript Insomniac
    Join Date
    Jan 2003
    Location
    43d03.21'N, 89d23.65'W
    Posts
    1,173

    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

  5. #5
    ActionScript Insomniac
    Join Date
    Jan 2003
    Location
    43d03.21'N, 89d23.65'W
    Posts
    1,173
    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center