Sorry if this has been asked before but I could not find it in other posts. Sorry also if this is a stupid question but I’m somewhat of a newbie. Okay, here goes:
Part 1: I have a bunch of buttons on my main file that when pressed will lead to “more information” about something. I have built a 2nd swf file that contains a dynamic text box. Ideally, I would like to be able to press the button on the main file, have it call the 2nd swf file and, depending on what button is pressed, have text displayed dynamically. In other words: one box, lots of text files, different text will load into box depending on what button is pressed.
Part 2: hopefully simpler - When I press the button and the external swf appears (which is smaller than the main stage) I would like to be able to position it. I did NOT create a blank movie clip to load the external swf. I just used the following code on the button (where “text_box.swf” is the external swf):
Part One - well i think your first question is similar to something i was trying eariler. I got the text to all load and into a specific area on the screen but for some reason (not yet found) the scrollers dont function. I’ll look for the fla in a minute and link it here so you can get the main idea and maybe i’ll have the scrollers fixed too. (Although they are personallized scrollbars and not the ones in the components window. Normal ones work fine.)
Part 2 - You can create a movieclip on the spot and tell it where to go.
on (rollOver) {
this.createEmptyMovieClip("menuitem",2);
menuitem.loadMovie("yourname.swf");
menuitem._x=-3.5;
menuitem._y=-2.5;
}
:hair:
Thanks for your help! Unfortunately, I’ve tried that before and couldn’t get it to work. I have code on the 2nd swf that goes along with one of those little “x” buttons (to unload the movie) for a hovering caption (based on Kirupa’s tutorial http://www.kirupa.com/developer/mx/captions.htm). So when I tried your code the entire 2nd swf follows the mouse around. So maybe you could tell me what I need to add to separate the two?
And can you tell me how/where to load text into the dynamic text box on the 2nd swf?
Instead of having your caption cover the entire swf could it have an actual ‘closing box’ inside the movie with an unloadmovie function or is it important that they can close it from anywhere on the clip?
I do have a little closing box that has an unload movie clip command attached to it. Maybe I just need to remove the hovering caption on the little box - it seems to be conflicting with the code you suggested.
I also know how to load text dynamically, I just want to be able to know how to load text particular to a button. In other words, click on a button on the main page and get one set of text. Click another button and get different text. However, I want this different text to appear in this 2nd swf that I have created - so the same 2nd swf is loading every time but contains different text. Where do I put in the script to load the text? Do I put it in the Actions for the button?
Thanks again! Sorry if these are dumb questions and I just don’t get it!