Ok, I have a question rather than a problem here - what I want to do is create a draggable pop-up window showing information such as a graph or diagrams.

What I have done is make the draggable window by creating a MC called 'dialogbox' and inside that there is a 'windowbar' MC (which has the dragging code on it) and another MC called 'content' (which is where the content will load.

Now this all works fine, I can make the dialogbox popup and it is draggable: so that's great!

What I want to do is to be able to choose what to load in the 'content' MC dynamically. So for instance, if I choose 'print' it will load the 'print' MC where 'content' MC should be. I would then resize the 'windowbar' and 'dialogbox' so everything looks right.

The thing is I'm not sure how to pass the relevant info to the MC 'dialogbox'. If there were a function I could do something like:

Code:
showBox(print, dialogbox, x=300, y=300);
But I don't know if that's possible or whether a better function already exists? So in other words I just want to load my own 'content' MC into the 'dialogbox' MC dynamically, and resize it to fit correctly.

Any ideas how to do this???