-
Hi Ken,
It really is along that line. Do you have any "_root." in your tell targets? I had to change my paths too, when I wanted to use tell targets inside loaded swf's.
I'm having trouble seeing the addy you posted, can you show us the code? I'm sure my expert friends here will be able to help you out, or maybe they taught me well enough so I can help you!
:)
Nicky
-
Hey, just browsing through this message, and I would like to share similar kind of problem that I had with my guest book which loads variables from an .asp file.
It also worked fine by its self, but whenever I tried to load it into my main movie as an external file, the variable would loop until I was blue in the face! :) In the end, what fixed it was loading the external into a level instead of a targeted mc. Nearest I can tell Flash has some problems with variables on an external file when they are loaded into a target. Bottom line is that when a movie is loaded into a level, it's time line becomes the main timeline. I prefer targets (better placement control), but in the end what works is what I will use. I hope this helps someone out there.
-
i don't think that flash has a problem loading into a target, it just gets a bit confusing to work with. you have to keep the path straight and go through the target mc to get at the variable.
-
wondering if you gusy could help me? it's sort of similar.
here's my situation,
i have a main movie on _level0
i have a background movie on _level1
i have a menu movie on _level2
so far so good.
now i am trying to load the 11 menu options one by one into MCs before moving onto the rest of the movie.
in _level 2, i have this on 11 keyframes:
stop()
loadMovie ("name.swf","_level2.nameclip")
etc.
as i load each MC, i have a frame at the beginning of each MC:
if (this.getBytesLoaded() == this.getBytesTotal())
gotoAndStop(6)
_level2.play()
else
gotoAndPlay(1)
when i run off my hard drive it works. but i when i run it from my host it doesn't.
have any ideas?
thanks in advance.
samir
http://www.amiandsamir.com/main.html
-
I not sure, but I notice 2 things that I would change. First you are loading your movies onto levels not targets so I think this statement:
loadMovie ("name.swf","_level2.nameclip")
Should look like this:
loadMovieNum ("name.swf","_level2.nameclip");
Second, If you are using the
if (this.getBytesLoaded() == this.getBytesTotal())
in an external .swf file, you should not put it on Frame 1. It belongs on Frame 3. So frame 3 of your mc would look like this:
if (this.getBytesLoaded() >= this.getBytesTotal()) {
gotoAndStop (6);
_level2.play();
} else {
gotoAndPlay (2);
}
Also, instead of using frame numbers I would use frame labels. If you move things around in your movie, and you point to a frame number, you have to go back and change all your scripts to call that new number. So, I would label frame 6 playMovie and frame 2 preloadLoop and call on them.
I am not sure that this is really working on your local drive. Have you tested the proloader by hitting CTRL | ENTER, waited for the movie to load, and then hit CTRL | ENTER again? This will show your preloader in action on your local machine.
Let me know if this works