thanks all guys. what my situation is , i use FlashDevelop coding a webcam motion trace project, i want the user can flip the book by motion trace, so i write a WebCamMotion.as and inside it i would like to call Megazine, the code like this.
package{
import de.mightypirates.megazine.IMegaZine;
import de.mightypirates.megazine.IPage;
import de.mightypirates.megazine.elements.AbstractElement;
import de.mightypirates.megazine.gui.ILibrary;
import de.mightypirates.utils.Helper;
public class WebCamMotion extends Sprite{
public function WebCamMotion()void{
var megazine:MegaZine = new MegaZine();
addChild(megazine);
}
}
}
i put the all Megazine files(*.xml, interface.xml ect). in the same directory with WebCamMotion.as
the program run fine if i remarked the var megazine:MegaZine = new MegaZine();
addChild(megazine);
any idea are welcome.