hi, the button on the window component doesnt seem to do anything, how do i get the window to unload when it clicked…anyone know please?
hi, i cant attach my file it is too big, i have attached a screen shot of what my file looks like, it is simply a window component, with a swf file as ts content. this is the exact code i have on the component
\code
on (release) {
var window = PopUpManager.createPopUp(_root, Window, false);
windowClickListener = new Object();
windowClickListener.click = function(evt){
Window.deletePopUp();
}
Window.addEventListener("click ",windowClickListener);
}
\
if i dont put
on(release) or on(click) i get errors saying must appear within a statemnet…
here are the errors i keep getting with your code, sorry to be a pain!
Error Scene=Scene 1, layer=Layer 1, frame=1:Line 1: Statement must appear within on/onClipEvent handler
var my_window = PopUpManager.createPopUp(_root, Window, false);
Error Scene=Scene 1, layer=Layer 1, frame=1:Line 2: Statement must appear within on/onClipEvent handler
my_Listener = new Object();
Error Scene=Scene 1, layer=Layer 1, frame=1:Line 3: Statement must appear within on/onClipEvent handler
my_Listener.click = function() {
Error Scene=Scene 1, layer=Layer 1, frame=1:Line 6: Statement must appear within on/onClipEvent handler
my_window.addEventListener(“click”, my_Listener);
Total ActionScript Errors: 4 Reported Errors: 4
dude , this code doesn;t go dorectly on the component . it goes on a layer ,call the new layer actions or script or code …
as you can see we are working here with a var : and instancename , i even wrote in my last post
//instancename = “my_window”
pu att this code on another layer …
not on the component .
im sorry, im rubbish a programming\scripting etc, useless, i have done that now, thanks very much for your patience and help.