PDA

View Full Version : Can i createEmptyMovieClip in a scrollpane


Hambo
03-03-2006, 10:57 AM
Im using createEmptyMovieClip to create a blank canvas which im drawing into, but would like to put it into a scrollpane so i can scroll it round rather than being attached to the main layer.

regards
Hambo

shikozel
03-03-2006, 11:06 AM
did you try that:

this.scrollPane_mc.createEmtyMovieClip("mcName",1)

scrollPane_mc is the instance name of your scroll pane

mayur_vnit
03-03-2006, 11:33 AM
if you are using...flash mx's component you can get the container mc of the scrollpane by
trace (myscoll.getScrollContent) // may retunr tempmc
// myscroll is the instance name of the
//scollpane
and then you can do something like
new_mc = myscoll.getScrollContent()
new_mc .createEmptyMovieClip()
// draw your things
and then

myscoll.setScrollContent(newmc)

myscoll.refreshPane()

if you are using v2 component then
make a swf and then load it in the scrollpane

// I may be wrong..

Hambo
03-06-2006, 08:06 AM
I tried both these but unfortunately, no Joy!
The getScrollContent() method isnt supported on my version (2004).

I have just upgraded to 2004 and have lost functionailty now. There used to be scrollbar controls that you could just attach but now there seems only the scrollpane control but i see no way of putting things into it.

Hambo