Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 424
  • Last Modified:

Import Class in to Flash using AS3

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
beginnersdevelopment
Asked:
beginnersdevelopment
  • 2
  • 2
1 Solution
 
Ali KayahanFull Stack DeveloperCommented:
import path.to.class
0
 
beginnersdevelopmentAuthor Commented:
I get an error that says "Expecting identifier before class." Also, don't I have to include the class name somewhere?
0
 
Ali KayahanFull Stack DeveloperCommented:
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
 
beginnersdevelopmentAuthor Commented:
A little hard to understand to be honest.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now