I have tried the above to call up an external swf file with a nested mc. But it says it can’t find window movie clip. The reason being, there is no connection between macom-fw.swf with the tellTarget. Does anyone know how to tellTarget an external nested movie clip? Thanks.
I’m not exactly sure how your setup is like, but I’m assuming that the “load” movieclip is on your maintimeline and “window” movieclip is located in the loaded external file. If that’s the case then you could try something like this:[AS]on (release) {
loadMovie(“macom-f1.swf”, load);
this.load.window.gotoAndPlay(“window1”);
}
[/AS]
Dont think that works eg . :-\ read up in a book that you can use a “with” statement . it does the following
** Nested Actions**
A with statement, for example, allows you to specify an object in order to perform a series of actions affecting that object. a example of this would be …
on (rollOver) {
with (myMovieclip) {
gotoAndPlay (20);
}
Maybe there is something in using “With” statments, Ive checked it out but didnt really get it, maybe a coder can expand on this?
That doesn’t work soultry. There must be a relationship between with (movieclip) and the swf being loaded.
I have tried using the above tellTarget on a movieclip or button within the same swf file. That works. By physically clicking on a button that triggers the window in the swf file isn’t a problem.
hmm i think that with statement can work just I dont know how
:-\
If all else fails you can always set up a variable in the main and have the button set the variable to true, then on the external you can say if something like
onClipEvent (enterFrame) {
if (_root.buttonclick == true && !ok) {
this.gotoAndPlay("ballplay");
ok = true;
}
}
on the movieclip
check the fla out. I know its lengthy but maybe a way to get around it.
Soultry, I try not to make the movie too complicated. I know for a fact that you could call up a nested movie clip from an external swf. If it works within the same file, then it definitely should work outside of it.
*Originally posted by onLOoker *
**Monkey, it doesn’t work.
Soultry, I try not to make the movie too complicated. I know for a fact that you could call up a nested movie clip from an external swf. If it works within the same file, then it definitely should work outside of it. **
Thats cool dude, thats why i said it can be a way around it, thats if you really need it soon. I would like to know how make this work as well.
Brian_M:
dosent work dude, i tried it for my example, the code would be
on (release) {
_root.contents.loadMovie ("movie2.swf");
_root.contents.ball.gotoAndPlay ("ballplay");
}
Soultry, if use your method. That means I have to change a lot of things around.
If my fla file were smaller, I would post it here. So you and Monkey can take a look at it.
I think using the tellTarget would actually work. As it has worked by telltargeting within the same swf file. But I couldn’t figure out how to relate the loadMovie with tellTarget.
I would like to get this problem resolved asap before the end of this month. The window mc holds information of various staffs and employees. Therefore, I only had one completed. Resolving this problem means I could finish other windows/info.
It would be great if everyone help me out with this situation. Everyone gains knowledge and benefit from this. It’s all good.
But will the movie (swf) disappear after the new swf with the nested mc appears?
I made it like a Website. When an user clicks on the page, a new page appears. I don’t the button that loads the external file to stay within that movie.
My movie consists of 2 parts. 1 being the navigation file, which could call various parts of the movie such as interior and exterior sceneries, and directory. When the user clicks on directory. A text scroller appears with all the staffs and employee’s name/description. By clicking on a staff or employee’s name will replaces the text scroller box with the interior scenery movie (external file) in its place.
Just like a Website… But from what you have given me, the button doesn’t disappear.
to make your life a whole lot easier, why dont you make the navigation buttons on your main swf load the external swf, then from that external swf have buttons in which you navigate through that external swf.
:: the file you sent me , had two fla with two different dimensions. if your using load movie they generaly have to be smaller or be able to be allocated in the space of the main swf.
But will the movie (swf) disappear after the new swf with the nested mc appears?
well you need to allocate your mc which loads the external movie in a better position , say maybe over the original content?, maybe even use levels instead of a target Movieclip to load external movies.
My whole movie revolves around level instead of target. The only reason why I brought up target is for loading the swf/nested mc.
I have just completed a sample version of the textbox scroller for my virtual tour.
Goto 66.92.162.121/index.htm
Click on “Enter”
It would popup a window with the virtual tour movie. As you can see, all the movies are done through level.
Click on the “Directory” button, it should bring up the textbox scroller with data in it. Those data are stored in rows. Each name suppose to represent a swf with a mc holding information (picture or description).
Base on those two files I sent you, the main.fla would be the textbox scroller movie file. Therefore, when clicking on the name would replace the textbox scroller swf with an external swf holding nested mc. Do you understand?
There is nearly 50 rooms with 50 pics/panoramic/description. It is very important that the current swf gets replaced when clicked on. Or else, the movie would be overlapping one after the other. It gets pretty complicated when a Flash movie is this huge. All in all, it’s a learning experience. I should be getting paid for this…