Import Class in to Flash using AS3

How would you import a class in Flash via the actions panel? I am using AS3 and the class I am trying to import is ".com.photo" Help me as I am new to this all together? Thanks!
beginnersdevelopmentAsked:
Who is Participating?
 
Ali KayahanConnect With a Mentor Full Stack DeveloperCommented:
You can write your class name also you may use * operator for ex.  if your photo class is in com directory which is in same directory with your flash file ;

import com.* ;

would be enough but if your class is in photo folder which is in com folder which is in same level with your as file ;

import com.photo.* ;
0
 
Ali KayahanFull Stack DeveloperCommented:
import path.to.class
0
 
beginnersdevelopmentAuthor Commented:
I get an error that says "Expecting identifier before class." Also, don't I have to include the class name somewhere?
0
 
beginnersdevelopmentAuthor Commented:
A little hard to understand to be honest.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.