Pages: [1]
  Print  
Author Topic: Custom class not working  (Read 138 times)
solisarg
Gaia Novice
*
Posts: 2


http://www.flash-db.com

@solisarg
WWW
« on: August 15, 2011, 09:53:42 AM »

I want to mention this just in case it helps someone.
Inside a Page of my Gaia site, I use a MovieClip with a custom class, pages.Cube ... but it seems not to work nor run even the constructor. After some testing, I move my Cube class to the same folder my fla file is and gotcha!, it works.
I guess paths should be set somewhere else since the folder I use is in a path relative to my fla, so there's no need to set a new classpath for this movie ... anyway, quick fix for my case.

Jorge
Logged
Ramiro
Moderator
Gaia Addict
*****
Posts: 861


interactive pragmatism


« Reply #1 on: August 15, 2011, 06:29:35 PM »

you should place your custom classes inside the "src" folder, optimally in a custom package. And obviously set the linkage class with the package + class name, as in: com.mypackage.MyClass
Logged
Pages: [1]
  Print  
 
Jump to:  

TinyPortal v1.0 beta 4 © Bloc