PDA

View Full Version : invalidation of nested scrollPane



plumpnation
December 14th, 2006, 02:59 PM
Hello everybody,

I've been recently learning about dynamic scrollPanes with this tutorial (http://www.kirupa.com/developer/flash8/scrollpane_dynamic_mc.htm) here at kirupa. Everything works great and it's a fantastic tutorial. I have however been trying to use it in conjunction with php and mysql, and now I can display my results in the scrollPane, attached dynamically and again, everythings going well.

Then I realised I needed it all to be nested in a movieclip so's I could animate it too. I adjusted all the targets to variables and movieclips, and it's been rigourously checked and rechecked, trace functions have shown me that all is correct with the code and I've been over it time and again. I have even mimicked the whole operation with the tutorial source code (link at beginning of my whinge) and did not get the same outcome, so I'm hoping it's and easy fix.

My problem is that the scrollPane doesn't seem to want to give me any scroll bars now that it is nested. The invalidate code is targeting the correct movieClip and scrollPane, but it is seeming stubborn and i'm wondering...

has anybody else had a problem like this.

Thanks for reading to the bottom, even if you can't help. All help will be seriously appreciated.

Thanks
PN:diss:

Edit:It's all cool again. The reason behind this sorry affair was in fact because I had not thought about the fact that my invalidation was nested inside a function, so of course when I used _parent or this it wasn't working. I had to invalidate from the _root.myMovieClip.myScrollPane. Weird.

Let me just tell everybody that using flash with middleware and a database is simply an amazing experience. Anybody who knows Pandora.com will be able to tell you how smooth and sleek an experience you can achieve.

Thanks and goodbye.