Solved

Import Class in to Flash using AS3

Posted on 2010-11-16
4
386 Views
Last Modified: 2012-05-10
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!
0
Comment
Question by:beginnersdevelopment
  • 2
  • 2
4 Comments
 
LVL 14

Expert Comment

by:ali_kayahan
ID: 34149357
import path.to.class
0
 

Author Comment

by:beginnersdevelopment
ID: 34149567
I get an error that says "Expecting identifier before class." Also, don't I have to include the class name somewhere?
0
 
LVL 14

Accepted Solution

by:
ali_kayahan earned 250 total points
ID: 34150332
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
 

Author Closing Comment

by:beginnersdevelopment
ID: 34156390
A little hard to understand to be honest.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

I hope you'll find this tutorial useful and interesting. So let's try to extend Tcl with a new package.  For anyone more deeply interested please check out the book "Practical Programming in Tcl and Tk". It's really one of the best written books abo…
The Confluence of Individual Knowledge and the Collective Intelligence At this writing (summer 2013) the term API (http://dictionary.reference.com/browse/API?s=t) has made its way into the popular lexicon of the English language.  A few years ago, …
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.

930 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now