|
|
|
#1 |
|
Messages: n/a
Hébergeur: |
:confused;
Hi all, I'm using the mouse to draw shapes inside a ScrollPane Component, then I want to be able to drag the shapes within the ScrollPane. Unfortunately, these shapes can be dragged outside the ScrollPane. This means, that for some reason I'm not adding them inside the ScrollPane, but outside!!! Here's what I did: 1) I've added a ScrollPane to the main timeline 2) I've added an empty MovieClip in my library called MAIN 3) I've attached MAIN to the ScrollPane content 4) Now everytime I start drawing a new shape, I issue the following command: createEmptyMovieClip("obj"+objIdx, getNextHighestDepth()); The shape gets drawn, but can be dragged outside the ScrollPane. I've tried changing the command in the following ways: _root.sp.createEmptyMovieClip("obj"+objIdx, _root.sp.getNextHighestDepth()); _root.sp.main.createEmptyMovieClip("obj"+objIdx, _root.sp.main.getNextHighestDepth()); main.createEmptyMovieClip("obj"+objIdx, main.getNextHighestDepth()); but no shape appears as I draw it. What am I doing wrong? |
|
![]() |
| Outils de la discussion | |
|
|