A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: importing external classes

  1. #1
    Junior Member
    Join Date
    Apr 2002
    Posts
    12

    importing external classes

    I'm having some problems with importing classes in AS3. I'm kinda new to flash and programming in general. I searched on these forums and couldn't find anything in regards to importing an external class. I'm trying to import the tweener class and I used the code: import caurina.transitions.Tweener; on the first frame of the symbol I'm trying to load the class in. But I get a syntax error and an error that says "statement must appear within on/onclipevent handler". What am I doing wrong?

  2. #2
    Registered User nunomira's Avatar
    Join Date
    May 2002
    Location
    portugal
    Posts
    7,003
    hi,

    If you've got that error, I'd say that you don't have the publishing settings set to ActionScript 3. Make sure you have.

    In AS3, you can't add code to Movie Clips, Buttons, or any other objects.
    Code should be attached to frames on the (main) timeline.

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