I am wondering how I should load the external swfs into the centre stage w/o loading the whole movies. I understand a bit abt using the container to fetech the external swfs for download. However I am not sure how to make the external swfs download into the sized container.
You can take a look at my illustration diagram so that you can understand what I mean.
I appreciate it if you can give me some advice. Thanks!
Ok, so i guess you want to load external swf’s in your main movie without having to reload the HTML page right ?
On the stage, press CTRL+F8, this will pop up a window, select movie clip and give it any name. The movie clip you just made will now be en “edit-mode”. Return to the main stage by preyssing (probably) “Scene 1” on the bar right above the stage.
Create a new layer and call it “load content” or whatever you would like to name it. Open the library by pressing F11. Click your movie name and drag it onto the stage. You will see a little circle on the stage. Drag it in the left corner right under your navigation bar. This is the movieclip external swf’s will be loaded into.
While the circle is still selected, open the Properties panel. On the left in the Properties panel you will see a dropdown menu with “Movie clip” in it. Right below it is a little text box that says [AS][COLOR=silver]<instance name>[/COLOR][/AS]. This is the name that ActionScript will use to identify the movie clip. In that box, type whatever you want :[COLOR=blue]something[/COLOR].
Now, if you want to load a swf into the movie we just created, right click that button and select [COLOR=blue]Actions[/COLOR].
Now, on the right, right above the text input field for the actions, click that blue icon with an arrow in it, and select [COLOR=blue]Expert Mode[/COLOR]. Now, insert the code[AS]on (release) {_root.something.loadMovie("[COLOR=RED]link_to_external_swf[/COLOR]"}[/AS].
Of course, [COLOR=RED]link_to_external_swf[/COLOR] has to be replaced by the link to the swf you want to load into the movie for example [COLOR=BLUE]http://www.kirupa.com/whatever/dontcare.swf[/COLOR] and if you didn’t use [COLOR=BLUE]something[/COLOR] you have to replace “something” in the code to the name you gave your movie clip.
Now when you click the button, the external swf will load into loadMovie. Hope this helped ya out …
[SIZE=1]Wow i can’t believe i just typed this much … I:-):sigh:[/SIZE]
won’t it download the bottom menu together with the external swfs? As far as I can understand, the top menu will stay there while the external swfs load into the container together with the bottom menu, I think so.
I do not want the external swfs to be downloaded together with the bottom menu. I prefer the top and bottom menu to stay there while the external swfs load into the centre stage.
whatever is on your external swf, will be loaded into that container (something) you create(d)… and the rest of your main page would remain unchanged
…I do believe however that the external swf has to come from the same directory that your main page resides (not a different url) and in that case, the path need only be relative (ie: “movieName.swf” ) … the only /path needed would be if they are in different folders or not (ie:: " folderName/movieName.swf"