PDA

View Full Version : Problem with setScrollContent


dlaks
04-16-2005, 10:23 PM
Hello,

I'm creating a form inside a movieclip. So far, the movieclip (form_MC) only contains a few dynamic text fields and a submit button, which is a MC (submit_MC) within form_MC.

In the main timeline I have a button (a MC called "btn") which is supposed to load form_MC inside an instance of the draggablepane component of Flash UI Components Set 2.

The script looks like this:

btn.onRelease = function() {
_root.attachMovie("FDraggablePaneSymbol", "myForm", 0);
myForm._x=20;
myForm._y=20;
myForm.setPaneTitle("Feedback");
myForm.setScrollContent("feedback");
// etc.
}

When I press the button, the draggable pane loads form_MC, but not the submit button which is nested within form_MC. Nevertheless, if I mouseover the missing button, the pointer turns into a hand.

I also tried using:

myForm.loadScrollContent("feedback.swf");

with the same results: the button doesn't appear.

I would very much appreciate any suggestions.

Thanks!

Daniel
Barcelona, Spain