The wierd thing is now when I try to compile other older fla's that used
this same piece of code (and worked fine), they all get a Type Mismatch
error and screw up the compiled swf. So basically every project I had
that used a window component doesnt work anymore when compiling. Heeeeelp ;)
Robert Chyko wrote:
Is this line:
var newWindow = PopUpManager.createPopUp(this, Window, true);
inside some other piece of code and the "this" refernce is incorrect?
Just throwing a guess out there cause this should work fine... Otherwise
its possessed
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mike
Boutin
Sent: Friday, January 27, 2006 1:58 PM
To: Flashcoders mailing list
Subject: [Flashcoders] Window Error wont go away
I am trying to make a window pop up. I take the code from flash docs
(put a window component in the library) and put this code, then I get
this error everytime. Can anyone tell me why i get it?
CODE:
import mx.managers.PopUpManager;
import mx.containers.Window;
var newWindow = PopUpManager.createPopUp(this, Window, true);
ERROR:
**Error** Scene=Scene 1, layer=Layer 2, frame=20:Line 9: Type mismatch.
var newWindow = PopUpManager.createPopUp(this, Window,
true);
Total ActionScript Errors: 1 Reported Errors: 1
Cheers!
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders