I have searching over and over if it is possible to load a movie into a clip "content" then control that clip.
I don't want to use levels, no matter what I do it doesn't work.
Can someone give me some help here...
__
on (release) {
loadMovie("ueber_uns.swf", _root.content);
tellTarget ("_root.content") {
gotoAndPlay("about2");
}
}
Even if you had written it right, it will load the movie, but not go to the frame label. It will work when testing, but not when on the server, because by the time the movie has loaded, the release event is past. So try it this way:
on (release) {
_root.content.loadMovie("ueber_uns.swf");
}
The way to get it to go to the label is to use a variable in the on release event handler and have it read by the loaded movie, in frame one of that, like this:
on (release) {
loadWhich = "about";
_root.content.loadMovie("ueber_uns.swf");
}
Then in the ueber_uns.swf on frame 1, have this in an actions frame:
thanks for your quick reply,
i did try what you suggested by i still only get the first frames "about1" and not "about2"
I put in the main movie button:
on (release) {
_root.content.loadMovie("ueber_uns.swf");
}
on (release) {
loadWhich = "about2";
_root.content.loadMovie("ueber_uns.swf");
}
------------------
on the ueber_uns.swf I added in the first frame:
if (_root.loadWhich == "about2") {
this.gotoAndPlay("about2");
}
still not good....dammn I hate it when I can't see my mistakes
on (release) {
_root.content.loadMovie("ueber_uns.swf");
}
on (release) {
loadWhich = "about2";
_root.content.loadMovie("ueber_uns.swf");
}
Just use the one.
on (release) {
loadWhich = "about";
_root.content.loadMovie("ueber_uns.swf");
}
When ueber_uns.swf loads, the first thing flash will read is this:
if (_root.loadWhich == "about") {
this.gotoAndPlay("about2");
}
And don't use about2 twice. They are different things, the one in the button is a variable your setting with onRelease of the button. In the loaded movie, it reads the variable, 'about', which will be true, then the next line which sends it to the frame label named about2. Maybe change the variable to something else, so it doesn't get confusing. I usually just use spelled out numbers, like "one", "two", etc.