PDA

View Full Version : cannot interact with components inside duplicated movieclip!


grizjr
08-01-2004, 12:53 PM
I am unable to press the buttons of the numericstepper, but it is showing up. How can I fix this?

THanks for your time :)



var dp:Array; //array of objects, prefilled...

for(x in dp) {
this.createEmptyMovieClip('movie'+x, 10+x);
this['movie'+x].attachMovie('ListModule', 'module', 10+x);

var cart:Object = this['movie'+x].module;
cart._x = 0;
cart._y = (cart._height * x) + (x * 1);

cart.createObject('NumericStepper', 'qtyStepper', 10+x);
cart.qtyStepper.setSize(45, 22);
cart.qtyStepper._x = 0;
cart.qtyStepper._y = 0;
}

grizjr
08-01-2004, 04:23 PM
I had a similar problem awhile ago, where there was multiple buttons nested together and I could not press the button inside the movieclip inside the movieclip. The same problem is happening here, but I forgot how I fixed it. Any ideas? :confused:

stealthelephant
08-01-2004, 05:12 PM
" " instead of ' '
you are not incrementing the value of x anywhere

grizjr
08-01-2004, 07:09 PM
x is automatically incremented with the for in loop. The dp array was prefilled. I ended getting it to work. It was because I was putting an onRelease function on the entire movie clip, instead I just put it on the background of the module so the created components are on top of the background. It works good, but its kind of a hack.

I cant wait till FMX05/06!

stealthelephant
08-01-2004, 07:53 PM
DOH!!
missed that,