spudd
07-08-2005, 04:57 PM
hi, i have created a scrolling text out of a dynamic text box and i have used two triangles (one pointing up, and one pointing down) as buttons with this script attached to them respectivly on(release){
facil_text.scroll -=1;
} and on(release){
facil_text.scroll +=1;
}. now this works fine the first time i use it. in a separte frame on the timeline i need scrollable text again (different text) so I created the new dynamic text box, gave it an new instance name, draged the same buttons (triangles) from the library to the stage, gave it a different instance name and tried to script them so they would scroll the second dynamic text, but nothing happened. i was able to overlap the first and second text boxes on the same frame and even though the second set of buttons were set to scroll the second dynamic text they were scrolling the text in the first dynamic text box. so i guess my question is, how can i reuse the same buttons to do different functions in different parts of the timeline. i was thinking that by seperating them with a keyframe and then writing the script for a button, would limit that script only to that keyframed section. Any suggestions are greatly appriciated. i'm relativley new to action scripting. I am using Flash MX Pro 2004
thank you for any help in advance.
facil_text.scroll -=1;
} and on(release){
facil_text.scroll +=1;
}. now this works fine the first time i use it. in a separte frame on the timeline i need scrollable text again (different text) so I created the new dynamic text box, gave it an new instance name, draged the same buttons (triangles) from the library to the stage, gave it a different instance name and tried to script them so they would scroll the second dynamic text, but nothing happened. i was able to overlap the first and second text boxes on the same frame and even though the second set of buttons were set to scroll the second dynamic text they were scrolling the text in the first dynamic text box. so i guess my question is, how can i reuse the same buttons to do different functions in different parts of the timeline. i was thinking that by seperating them with a keyframe and then writing the script for a button, would limit that script only to that keyframed section. Any suggestions are greatly appriciated. i'm relativley new to action scripting. I am using Flash MX Pro 2004
thank you for any help in advance.