Question
Mucho text, one Dynamic Text Field
Okay, it didn't take me long to fudge this and I'm looking
for the insight I know I don't have.
I have 30 instances, each with the attached onRollOver/Out functions. Now I'm being told that in addition to that, text must appear in a field below, and each instance must call a different piece of text into the same text box. I already have AS creating the box with the following attributes:
this.createTextField("txtAbstract", this.getNextHighestDepth(), 14, 352, 680, 85);
txtAbstract.type = "dynamic";
txtAbstract.multiline = true;
txtAbstract.wordWrap = true;
Ideally, to make this easier and scalable I would like to pull from an external text file (i.e., "abstracts.txt"), so that I can just have each abstract in the text file (#abstract1, #abstract2...#abstract30), that way when they want this project re-used, I just copy and paste the content into "abstracts.txt". This also means that I will need to have the text dissapear onRollOut (the text box remains blank until something is rolled over).
So here are my questions:
Can each instance have more than one onRollOver/Out event (one for the scale/slide and one to call from the text file and into a single dynamic text field)? The reason why it can't be an onClick is because that will be used to link people to a Web site in a separate browswer window.
In either case, is it possible to call in different text from a single text file into the same text field? Or will it be easier to have separate text files per abstract? I'm not adverse to the latter...
Any insight or help would be appreciated. Thanks!
I have 30 instances, each with the attached onRollOver/Out functions. Now I'm being told that in addition to that, text must appear in a field below, and each instance must call a different piece of text into the same text box. I already have AS creating the box with the following attributes:
this.createTextField("txtAbstract", this.getNextHighestDepth(), 14, 352, 680, 85);
txtAbstract.type = "dynamic";
txtAbstract.multiline = true;
txtAbstract.wordWrap = true;
Ideally, to make this easier and scalable I would like to pull from an external text file (i.e., "abstracts.txt"), so that I can just have each abstract in the text file (#abstract1, #abstract2...#abstract30), that way when they want this project re-used, I just copy and paste the content into "abstracts.txt". This also means that I will need to have the text dissapear onRollOut (the text box remains blank until something is rolled over).
So here are my questions:
Can each instance have more than one onRollOver/Out event (one for the scale/slide and one to call from the text file and into a single dynamic text field)? The reason why it can't be an onClick is because that will be used to link people to a Web site in a separate browswer window.
In either case, is it possible to call in different text from a single text file into the same text field? Or will it be easier to have separate text files per abstract? I'm not adverse to the latter...
Any insight or help would be appreciated. Thanks!