Solved

Import Class in to Flash using AS3

Posted on 2010-11-16
4
376 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
Comment Utility
import path.to.class
0
 

Author Comment

by:beginnersdevelopment
Comment Utility
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
Comment Utility
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
Comment Utility
A little hard to understand to be honest.
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

771 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

11 Experts available now in Live!

Get 1:1 Help Now