Zebdaag
09-01-2006, 03:50 PM
Hi,
I have thought of something and it drives me crazy!!
I want to have a scrollPane with dynamic text that is dragable.
I aded a simple file to show you that it doesn't work the way I thought...some way or the other the text stays on place!!
scripts used are(for the dynamic text field in the scrollpane):
fakedata = "yadda<br>yadda<br>yadda<br>yadda<br>yadda<br>yadda<br>yadda<br>yadda<br>yadda<br>yadda<br>yadda"
//text format
myTextFormat = new TextFormat();
myTextFormat.font = "Times";
//create MC
_root.createEmptyMovieClip("myscroll",500);
//
_root.myscroll.createTextField("mytextfield",1,30,30,88,10);
//
_root.myscroll.mytextfield.embedFonts = true;
_root.myscroll.mytextfield.multiline = true;
_root.myscroll.mytextfield.html = true;
_root.myscroll.mytextfield.setNewTextFormat(myText Format);
_root.myscroll.mytextfield.setTextFormat(myTextFor mat);
_root.myscroll.mytextfield.htmlText =fakedata;
_root.myscroll.mytextfield.autoSize = true;
//
scrollP.setScrollContent(_root.myscroll);
script used on the scollpane:
on (press) {
startDrag (this, true);
}
on (release) {
stopDrag ();
}
is it possible to fix this, i hope someone can help me with this problem..
greetings Zeb
I have thought of something and it drives me crazy!!
I want to have a scrollPane with dynamic text that is dragable.
I aded a simple file to show you that it doesn't work the way I thought...some way or the other the text stays on place!!
scripts used are(for the dynamic text field in the scrollpane):
fakedata = "yadda<br>yadda<br>yadda<br>yadda<br>yadda<br>yadda<br>yadda<br>yadda<br>yadda<br>yadda<br>yadda"
//text format
myTextFormat = new TextFormat();
myTextFormat.font = "Times";
//create MC
_root.createEmptyMovieClip("myscroll",500);
//
_root.myscroll.createTextField("mytextfield",1,30,30,88,10);
//
_root.myscroll.mytextfield.embedFonts = true;
_root.myscroll.mytextfield.multiline = true;
_root.myscroll.mytextfield.html = true;
_root.myscroll.mytextfield.setNewTextFormat(myText Format);
_root.myscroll.mytextfield.setTextFormat(myTextFor mat);
_root.myscroll.mytextfield.htmlText =fakedata;
_root.myscroll.mytextfield.autoSize = true;
//
scrollP.setScrollContent(_root.myscroll);
script used on the scollpane:
on (press) {
startDrag (this, true);
}
on (release) {
stopDrag ();
}
is it possible to fix this, i hope someone can help me with this problem..
greetings Zeb