This content has been marked as final. Show 5 replies
You probably will need to load all the swfs to have access to the data inside.
An alternative I might try is to load the data for the external swf text fields from external files or file such as an xml file or files.
Then your main swf can load that for searching and if you tag the data in a way the other swfs can be identified, you can then load them.
Right then I can see what u are trying to say but am a little confused. I was thinking of searching the swf files that I hadn’t loaded by using an external txt file of something but that doesn’t get rid of the problem of the swf I currently have up. When I search the swf file that I have loaded I want to highlight the words that match the search criteria in red. I have the code for this, all I really need to do is call the method in this other swf file.
Place functions in the external swf. Then you can call them through the container clip
Realize however, you cannot call code in an external swf until the frames with the functions are loaded. Timing would be an issue if the user can beat the loading clock or if you have code that is executed automatically after you start the load.
So if timing becomes an issue, use MovieClipLoader and the onLoadInit method.
Ok thanks for your help. In the end I was able to do what you suggested. The only problem with it was that it wouldn’t update the text in the other swf file. So to correct this I had to run the function on the main swf file and reference to the text in the other swf file. But it now works.
Glad you got it.