Hi umm..I have another problem...=( I have 2 section for the dynamic text..liek 2 different fields in the same movie that would load different texts itself....
here's my first set of code:
// loading this movie into an empty clip named 'hold'
// set up load function and format objects
mydata = new loadvars();
mydata.onload = function() {
_root.update1.html = true;
_root.update1.htmlText = mydata.theText;
_root.update1.border = false;
_root.update1.borderColor = "0x000000";
_root.update1.background = false;
_root.update1.backgroundColor = "0x345678";
scrollBar.setScrollTarget(_root.update1);
};
// format scrollbar
formStyleFormat = new FStyleFormat();
formStyleFormat.scrollTrack = "0x123456";
formStyleFormat.highlight = "0x000000";
formStyleFormat.highlight3D = "0x000000";
formStyleFormat.arrow = "0xffffff";
formStyleFormat.face = "0x003366";
formStyleFormat.background = "0x123456";
formStyleFormat.shadow = "0x000000";
formStyleFormat.darkshadow = "0x000000";
formStyleFormat.addListener(scrollBar, dropdown);
formStyleFormat.applyChanges();
// change handler for combobox and set up
mydata.load("update.txt"

;
dropdown.setSelectedIndex(0);
dropdown.setChangeHandler("loadthis"

;
function loadthis() {
var loadText = dropDown.getSelectedItem().data;
mydata.load(loadtext);
}
its' called "update1"
and i have another set of code..and it didnt show up so i thought i should change mydata to mydata2 in the second set? so here it is...
// loading this movie into an empty clip named 'hold'
// set up load function and format objects
mydata2 = new loadvars();
mydata2.onload = function() {
_root.update2.html = true;
_root.update2.htmText = mydata2.theText;
_root.update2.border = false;
_root.update2.borderColor = "0x000000";
_root.update2.background = false;
_root.update2.backgroundColor = "0x345678";
scrollBar.setScrollTarget(_root.update2);
};
// format scrollbar
formStyleFormat = new FStyleFormat();
formStyleFormat.scrollTrack = "0x123456";
formStyleFormat.highlight = "0x000000";
formStyleFormat.highlight3D = "0x000000";
formStyleFormat.arrow = "0xffffff";
formStyleFormat.face = "0x003366";
formStyleFormat.background = "0x123456";
formStyleFormat.shadow = "0x000000";
formStyleFormat.darkshadow = "0x000000";
formStyleFormat.addListener(scrollBar, dropdown);
formStyleFormat.applyChanges();
// change handler for combobox and set up
mydata2.load("update2.txt"

;
dropdown.setSelectedIndex(0);
dropdown.setChangeHandler("loadthis"

;
function loadthis() {
var loadText = dropDown.getSelectedItem().data;
mydata2.load(loadtext);
}
but it doesnt work...=( can u tell me what's wrong?
Also another host movie loads this dynamic-text movie. and for some reason when the host movie loads this text movie the texts doesnt show up but if i just open the text movie itself the texts loads properly =(