Taerzik -> RE: Flash Q&A Thread 4 (2/13/2008 3:04:47)
|
I'm having a problem with re-using a function. I defined most of the actions in my script as functions because they need to be re-used frequently. Two of the functions make a bunch of MCs and the other functions remove them. Here's the thing: the movie calls one of the functions that makes MCs when it starts up. At the press of a button the MCs are removed and different ones are put in place including a button which removes the new MCs and puts the first ones back by calling the appropriate function. The problem is that when I call the function to put back the old MCs it doesn't work right. It just puts down a single MC, without putting it where it belongs or anything like that. The problem might be the the function is being called (the scond time) from a script in an instance of a button (the button is nested in a MC) but I don't know. Solved that one, just reconfigured the script to shrink and expand clips, moving them when necessary since the remove and unload process can't seem to eliminate the clips properly. New problem, and it's all Greek AS2 to me (meaning I'm mostly lost): I'm trying to load paragraphs (one at a time) from text files and break them up and label them for the reader. The labeling system is pretty basic and I can alter it to whatever will work, but each sentence needs to be identified by a separate number. I think I understand how to break up the text but I'm having trouble loading it to begin with. Can someone give me pointers on how to go about doing this? In the end I'd like to be able to pull individually numbered paragraphs from the text file and load up the selected text, then have it appear broken up sentence by sentence in the text field on screen. Thanks yall.
|
|
|
|