A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Import Classes syntax problem

  1. #1
    Member
    Join Date
    Apr 2007
    Location
    Manhattan, New York, USA
    Posts
    58

    Import Classes syntax problem

    I'm trying to import a class and all the classes in that directory. Here is my syntax:


    import mx.events.EventDispatcher.*;

    But Im getting this error message:

    **Error** Scene=Scene 1, layer=Layer 3, frame=1:Line 1: Syntax error.
    import mx.events.EventDispatcher.*;

    Total ActionScript Errors: 1 Reported Errors: 1


    And Im using AS 2.0...any answers? Thanks...

  2. #2
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,448
    There is no subclass to the EventDispatcher class.
    - The right of the People to create Flash movies shall not be infringed. -

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