?
Solved

Import Class in to Flash using AS3

Posted on 2010-11-16
4
Medium Priority
?
419 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 750 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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
Suggested Courses

777 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