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




 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 07-26-2006, 09:56 AM
dkmystery dkmystery is offline
Registered User
 
Join Date: Jul 2006
Posts: 4
Rep Power: 0
dkmystery is on a distinguished road
Question Scalable window component going weird

Hi there,
I am having a window component, couple of radio btns in my fla (they r coming thru actionscript). On the click of a radiobtn its corresponding img gets displayed in the window. Now, i have made the window scalable thru this code:
sizerPop = new Object();
sizerPop.handleEvent = function(img){
if(img.type == "complete"){
myTW.setSize(myTW.content._width, myTW.content._height +25);
}
}
myTW.addEventListener("complete", sizerPop);

where, myTW is:
myTW = mx.managers.PopUpManager.createPopUp(_root, mx.containers.Window, false, {closeButton: true, title: _root.reqmessage1, _x: 270, _y: 40, color: 16711680,contentPath:radioButtonArray[_loc2].object.bkimage});
myTW.title = "Radio Button Clicked is:"+radioButtonArray[_loc2].object.label;
All this is working fine locally. But, once i upload it the window scales itself to fit the image but the close btn which is by default on the right hand side goes to the left.
But, i'm more baffled by the fact that this problem occurs randomly. Suppose for the first time on the click of a btn the close btn will shift and maybe for the 2nd,3rd or 4th time it won't or maybe will go wrong always or not at all. Why is this?
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
How do i access mc that is attached to window component?? [PAUL FERRIE] Actionscript 1 Components 5 07-31-2006 07:29 PM
Window Component depth issues? yossarian Actionscript 2.0 1 04-05-2006 03:15 PM
Window component and on (click) christaylor Flash MX 2004 2 07-15-2005 11:55 AM
window component madhava Actionscript 2.0 Components 1 05-27-2005 03:48 PM
refresh content of the Window component? zvone Flash MX 2004 1 09-07-2004 08:28 PM




All times are GMT. The time now is 05:53 PM.