Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

loading movie problem 2

Status
Not open for further replies.

bigbird3156

Programmer
Feb 20, 2001
183
AU
Hi there...

I have created a movie that loads other movies and plays them over the top of them on level 1 over the top of the main movie...

I set this up so that it worked when i did it all localy (ie the movies were loaded off my hard drive) however once loading the movies onto my website and changing the loadmovie url to that of a the website they would not work...

to see the site not working (though this wont help much) go to
when you select to watch the intro it then loads the second movie that starts playing when the music starts up... a sword should drop down the screen... but does not...

here is an example of my scripting...

frame 1:
loadMovieNum(" 1);

frame 2:
if (_level01._framesloaded == _level01._totalframes) {
_level01.gotoAndPlay(2); //this jumps to frame 2 of the newly loaded movie
gotoAndPlay("energy 2"); //this is a flag on the main movie
}
frame 3:
prevFrame();

Now as I said this worked when i had the files locally but does not now... there is a stop action in frame 1 of each loaded movie so that it does not play until loaded that is why the second line in frame 2 is there...

any suggestions?
[wiggle]The Bird from Down Under
bigbird_3156@optushome.com.au
 
Hi Big!

First, it should be _level1 and not _level01.
Not too sure about your 2 gotos following that... I'll check it out!
Also you shouldn't use spaces in your frame labels, if that's what you ment by flag!
And third, on your 3rd frame, you should use gotoAndPlay(2); rather than prevFrame();.

prevFrame and nextFrame are not play actions, they make the movie go to the next or previous frame and stop, not play! Regards,

oldman3.gif
 
thx for your help, ill try that and get back to you..
[wiggle]The Bird from Down Under
bigbird_3156@optushome.com.au
 
oldnewbie is right you are trying to load your movie
into level1 then checking to see if your movie is
loaded into level01


getURL("", "_level1");
getURL("introsword.swf", "_level1");


if (_level01._framesloaded == _level01._totalframes) {
_level01.gotoAndPlay(2);
gotoAndPlay(47);

Your introsword.swf is getting downloaded but it never plays
because of your _level01 check.
 
Well thanks guys, I cleaned up my code a bit but it still did not fix the problem... here is how it now looks...

Frame 21
loadMovieNum(" 01); //all levels are now 01

frame 22
if (_level01._framesloaded == _level01._totalframes) {
gotoAndPlay("CCDU"); // removed second goto put it in CCDU also got rid of spaces in label names
}

frame 23
gotoAndPlay(22);

frame CCDU
xsound = new Sound( ); // unrelated sound on off switch
_level01.gotoAndPlay(2);
stop(); // stop for main movie not for movie at 01

so that obviously was not the problem...
any other suggestions?
[wiggle]The Bird from Down Under
bigbird_3156@optushome.com.au
 
Ok then...

I solved my own problem... it had to do with the 2 goto's...

on the main movie if i used the _level01.gotoandplay(2) then in frame 2 of the secondmovie if i had a _level0.gotoandplay("CCDU") this seemes to make it work.. I don't know why id didn't work the other way but its all ok now...

thanks for your help [wiggle]The Bird from Down Under
bigbird_3156@optushome.com.au
 
oldnewbie is right you are trying to load your movie
into level1 then checking to see if your movie is
loaded into level01


getURL("", "_level1");
getURL("introsword.swf", "_level1");

Change Your _level01 To _level1

if (_level01._framesloaded == _level01._totalframes) {
_level01.gotoAndPlay(2);
gotoAndPlay(47);

Your introsword.swf is getting downloaded but it never plays
because of your _level01 check Becaues there is No level01.
If anything it should look like this

if (_level1._framesloaded == _level1._totalframes) {
_level1.gotoAndPlay(2);
gotoAndPlay(47);

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top