-
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?
-
Registered User
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|