Tell if class exists?

IS there a way to verify if a class exists? For example in my file I'm calling

import com.omniture.AS2.ActionSource

which works and when I change the code to call a different class

import com.omniture.ActionSource;

I get an error:

The class or interface 'com.omniture.ActionSource' could not be loaded.

Is there a way to verify a class exists? If so how? Also any other suggestions on how to debug this? FYI... using CS3.

Who is Participating?
CyanBlueConnect With a Mentor Commented:
I don't think that's possible...  Flash checks if that class exists when publishing the SWF, and you cannot even add the try/catch block for that...  You just need to make sure that you know the class files exist when you import them...

894359Author Commented:
Thanks! :)
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.