Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Import Class in to Flash using AS3

Posted on 2010-11-16
4
Medium Priority
?
422 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Browsing the questions asked to the Experts of this forum, you will be amazed to see how many times people are headaching about monster regular expressions (regex) to select that specific part of some HTML or XML file they want to extract. The examp…
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.
Suggested Courses

610 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