Hello all. This may be an easy question with a much easier way to preform this task, but ive only been learning flash for less than a week. Anyway I want a fader where, when a user scrolls through the fader, for every, say, 20-30pixles another group of text appears in a text box. I figure i can achive this by putting hidden buttons along the fader at points I want the text to change. The problem i am having is getting the mousedown code to work with loading a .txt file from notepad.
On a blank movie:
onClipEvent(mouseDown){_root.mouseIsDown = true;}
onClipEvent(mouseUp)(_root.mouseIsDown = false;}
On another movie clip:
onClipEvent(enterFrame){
if(_root.mouseIsDown && _parent.hitTest(_root._xmouse, _root._ymouse)){
That all makes for a perfect trace, yet when i try to attach this I get nothing:
loadText = new loadVars();
loadText.load(“TEXT1.txt”);
loadText.onLoad = function(success) {
if (success) {
// trace(success);
newsBox.html = true;
newsBox.htmlText = this.myNews;
}
};
}
I believe i can keep the mousedown fx seperate from my text upload code seeing as there will be many buttons and i want 3 faders performing the same action, all with different text of course. I am sorry i dont have a URL for this yet, as it is still a work in progress, and i can post a sample if anyone needs a visual aid. Any advice is very very welcome.
Thanks,
Eric
P.S. The reason i would like the text to load this way is I will be changing the information weekly and this seems like the easiest most hassle free way of doing that. Thanx…
And yes the last portion is from this wonderful post:
http://www.kirupa.com/developer/mx/multiple_dynamictext.htm