I think the "move" event would be a good fit for your situation. <mx:Panel x="456" y="145" width="250" height="200" layout="absolute" id="panelOne" move="synchWindowPosition()">
--- In [email protected], "Evan Gifford" <[EMAIL PROTECTED]> wrote: > > Hey guys, > > > > I'd like to sync the positions of two . Panels, let's say, while one of the two is being actively dragged. > > > > > > Here is the ghetto way of doing it (or is it?) > > > > Private syncInterval:Object = setInterval(syncWindowPosition,20); > > > > Private function syncWindowPosition():void{ > > > > panelTwo.x=panelOne.x + 250; > > panelTwo.y=panelOne.y + 250; > > } > > > > As you can guess, this simulates a real-time position sync so that, as I drag one window the other one follows suite, offset by 250px. > > > > But that's just wrong (or is it?) > > > > What I'd like to do is something like this. > > > > <mx:Panel x="456" y="145" width="250" height="200" layout="absolute" id=" panelOne" mouseUp=" panelOne.stopDrag()" mouseDown="one.startDrag()"> > > <mx:Panel x="{panelOne.x + 250}" y="{panelOne.y + 250}" width="250" height="200" layout="absolute" id=" panelTwo"> > > > > This works on creationComplete, but there is no redraw done after that or while I drag the 1st window. > > > > > > What am I missing? > > > > Thanks! > > > > > -- > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.1.409 / Virus Database: 268.13.28/518 - Release Date: 11/4/2006 > -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

