Skip to main content
Known Participant
April 13, 2011
Question

How can i import out side folder calsses.

  • April 13, 2011
  • 1 reply
  • 405 views

Is it possible call out side folder classes like "../../com".

previously iam using include. this way iam using "../../com/app.as". now iam import  com folder classes how can i import?

This topic has been closed for replies.

1 reply

Kenneth Kawamoto
Community Expert
Community Expert
April 13, 2011

You'd import classes like these:

import packageName.className

import packageName.*

If you mean you want to import classes from somewhere else in the file system, you can set "Source path" under "Advanced ActionScript 3.0 Settings" in "Publish Settings"

kiranemc2Author
Known Participant
April 14, 2011

Iam not asking this package folder is two levels upside for this what i have to give the code?

Kenneth Kawamoto
Community Expert
Community Expert
April 14, 2011

As I said you can set the path to your class files. It doesn't matter where your files are at all.