-
I've read the post below about Scroll Panes, but am still having problems. I would like to be able to read and write properties of the movie clip I've placed in a Scroll Pane, but nothing seems to work, as I cannot target it successfully. Has anyone done this? Getting a height would be a start...
-
here's what i've done sor far (thanks to Nigel)
create an MC and give it a linkage name of something.
open that MC from your library and put all the junk you want to scroll... at the end of your AS code (this is SO important) add: this._parent.refreshPane();
that talks to the scroll pane and tells it that there is stuff to scroll!
then on your timeline click your scrollpane and give it an instance name then in the AS for the scroll pane put:
Code:
onClipEvent (load) {
yourscrollpaneinstance.setScrollContent(yourlinkagename);
}
and that should werk.
I use dynnamic movies in my scroll pane and i've got it building a header and footer, but when it tries to call something from a databse while one level deeper then it should be.... it doesn't werk... so I'm still hacking away.
Good luck with yours :)
-
okay where do you put the ._parent.refreshPane();
I am confused on how this is supposed to work.
-
If you've put something in a scrollPane and need to get a reference to it, try this :
var myContent = scrollPane.getScrollContent();
now myContent is your movie clip! You can do:
myContent.gotoAndStop(3);
myContent._width = 100;
or whatever else you like to do with your movies. If you change the size of the content movie, use
scrollPane.refreshPane()
to adjust the scrollBars to the size of the content.
hopeThisHelps
nig
[email protected]
-
it goes on the last line of code in your MC that you want to be the target of a scroll
a little tree :)
Code:
Main timeline with scroller
|_MC to be scrolled
|_AS under MC to be scrolled
that's where you put:
Code:
this._parent.refreshPane();
Hope that helps
-
Is there something or can someone tell me the VERY basics of the srolling pane "UI" from MX? Or any of the new "UI" stuff in MX?..
The only thing I can do is drag one of the "symbols" from the "UI" widnow and put it on the stage.
How do I get an IMAGE in the pane?..or text in the scroll box?...Also,..is there anything you can do (EASILY) with the video support in MX if you have a WEB CAM?..I just wanna do something with video? Is that all the VIDEO support is? and that you can add Mpeg/Avi/MOV files to a layer now?
-whispers-
-
Re:
Thanks!
I feel like such a dork. I completly missed this in the online docs -- I can't wait for the printed materials to arrive.
Quote:
Originally posted by Component Nigel
If you've put something in a scrollPane and need to get a reference to it, try this :
var myContent = scrollPane.getScrollContent();
now myContent is your movie clip! You can do:
myContent.gotoAndStop(3);
myContent._width = 100;
or whatever else you like to do with your movies. If you change the size of the content movie, use
scrollPane.refreshPane()
to adjust the scrollBars to the size of the content.
hopeThisHelps
nig
[email protected]