[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


Tell if class exists?

Posted on 2009-02-18
Medium Priority
Last Modified: 2012-05-06
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.

Question by:894359
LVL 37

Accepted Solution

CyanBlue earned 2000 total points
ID: 23682074
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...


Author Closing Comment

ID: 31548595
Thanks! :)

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.
Suggested Courses

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question