LOADING
Loading
Hi , welcome back.
LogoutLOGOUT
 
  Lost password?  
Hi
 


Prev Previous Post   Next Post Next
  #1  
Old 07-21-2006, 05:16 PM
simong simong is offline
Registered User
 
Join Date: May 2006
Posts: 47
Rep Power: 0
simong is on a distinguished road
Source popUp problems

Hi, I created a popUp window like this:
Actionscript:
var win:MovieClip = mx.managers.PopUpManager.createPopUp(this, Window, true, {contentPath:"popup_mc",closeButton:false});
win.setSize(350, 200);
win._x=300;
win._y=125;
I put my popup in a custom component and it worked fine, I managed to put eventlisteners on the included buttons. However, when I placed my component in a external fla, it acted severely weird and ended up behind all component elements. I solved this with setting the depth above the components depth AND setting the popup on the components _parent, ie the external fla.
Actionscript:
...PopUpManager.createPopUp(this._parent, Window ...
this made the popup act weird when I testran it alone, but worked fine in the external fla.
So far so good...
What then occured was that the closing of the popup stopped working. This used to work:
Actionscript:
win.content.NextButton.onRelease = function() 
{
trace("this gets traced allright");
_parent._parent.deletePopUp();
}
ie, putting deletePopUp() on win. Now it doesn't, even though win can be accessed using both "win" and "_parent._parent" (_level0.depthChild0), it refuses to delete itself.
Somehow the popup is now set on the external fla, so allthough the win variable is inside the component, it won't do this. Weird, or am I missing something here?
Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
link from popup to parent roula Newbies 0 12-25-2006 01:56 PM
Help! passing flash var to html popup using javascript in flash? dazza General Flash 6 12-28-2005 02:42 AM
Problems JS for Popup Windows scornett Newbies 4 02-11-2005 10:04 PM
javascript popup after file download not working dpmiller Client Side 0 06-22-2004 06:03 AM
PopUp window problems Kropsi Client Side 13 09-17-2001 08:17 AM




All times are GMT. The time now is 09:00 AM.