Papervision3D/importing classes
- Started
- Last post
- 2 Responses
- CyBrain
I think this is more of a general question about importing classes. I put my Papervision stuff inside my Flash application folder:
I targeted the class path in the Action Script 3 preferences. I'm pretty sure that's right.
Here is the first four lines of my action script on frame 1:
import org.papervision3d.scenes.*;
import org.papervision3d.cameras.*;
import org.papervision3d.objects.*;
import org.papervision3d.materials.*;I don't get any errors, but nothing happens either.
Any suggestions?
- enjine0
it is a larger question, as you suggested.
the real classpath that you need to target, which is the classpath used in the class files, begins at org.papervision.xxx
so you need to either copy the org folder into your project root folder, or you need to set your classpath in Flash: Preferences > ActionScript > ActionScript 3.0 Settings > (hit the target icon and find the org folder mentioned above)
that might not make complete sense, but it should be enough for ya.
hit me with any questions, i'll be online for a bit longer.
- CyBrain0
Sorry, that was an issue with an addChild script that wasn't creating anything.
I got the classpath preferences and put the class files in my Flash application folder, so I shouldn't have any problems anymore.
