f13o
10-18-2005, 03:06 PM
I made a PopUp class and in consturctor thereis reference to a contentPath to item inlibrary, but ActionScript doesn't seem to search there... It worked when code was inside .swf file while I was testing this....
import mx.managers.PopUpManager;
import mx.containers.Window;
import mx.controls.Button;
class PopUp {
public var win:MovieClip;
public var answer:Boolean;
private var initObject;
private var cPath = "popup"; // library item
private var yes_btn:Button;
private var no_btn:Button;
function PopUp(parent:Object) {
initObject = {title:"Завршетак теста?", contentPath: cPath, closeButton:true};
win = PopUpManager.createPopUp(MovieClip(parent), Window, true, initObject)
....
I have tried and other "solutions", like attachMovie() to a movieclip and then referencing to it via contentPath, but - no...
Help?
import mx.managers.PopUpManager;
import mx.containers.Window;
import mx.controls.Button;
class PopUp {
public var win:MovieClip;
public var answer:Boolean;
private var initObject;
private var cPath = "popup"; // library item
private var yes_btn:Button;
private var no_btn:Button;
function PopUp(parent:Object) {
initObject = {title:"Завршетак теста?", contentPath: cPath, closeButton:true};
win = PopUpManager.createPopUp(MovieClip(parent), Window, true, initObject)
....
I have tried and other "solutions", like attachMovie() to a movieclip and then referencing to it via contentPath, but - no...
Help?