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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

on loading loops 3

Status
Not open for further replies.

bigbird3156

Programmer
Feb 20, 2001
183
AU
I have created a "loading loop" from frames 1 - 12 of my movie and on frame 12 have added the following action...

If (_framesloaded)
Go to and Play (13)
Else
Go to and Play (1)
End If

For some reason if the movie loads before the end of frame 12 the movie breaks out of the loop and proceeds to frame 13 but if the movie loads after it has looped it hangs.... (dang!!!)

Is this statement wrong or will the problem lie somewhere else (I thought I copied it straight from the manual)...

Please help!!
 
Try this:

If Frame Is Loaded (Scene 2, "myend")
Go to and Play (13)
End Frame Loaded

Replace the bold stuff with your last scene's name and add a label "movie end" or whatever on the last frame(keyframe) of your last scene.

This way if you only have one scene with all the photographs (I don't know how you did this!), they should all load with the preloader, which will take longer on the initial load, but that will eliminate the waiting for the photographs lo load on the first past!

Is this clear?

B-)
"Who's that guy with the shades... What's he trying to prove!”

 
If you were to create a movie using your method in the future your first line should read:

If (_framesloaded = _totalframes)

dave dave@davdesign.co.uk

^^^^^^^^^^^^^^^^
 
I seem to get the idea that the way I have set up this 'slide show' is not the best way to do it... Can you suggest a better way?

Peter
 
Thanks dave and Oldnewbie.. you guys are legends!!

I applied daves answer to the site and I think it works, does this answer only work on a 1 scene movie or on a multi scene one as well???

Is Oldnewbie's answer the better one?

Also, I have a cable connection and so cannot actually confirm that it works as it should, could someone check it for me and get back to me...
(its the sydney 2000 link in the header)

Peter
 
No, no! Not at all! Hey, I haven't even done one myself... So far from me is the idea of criticizing your's!

Just checked on it! Seems to be workin' fine now!
You didn't try my code to center the thing? Or have you changed your mind?

Long live the slide show!

B-) "Who's that guy with the shades... What's he trying to prove!”

 
Peter,
I checked your link, but I only got a "specified server could not be found" .... Sorry.

Patricia
 
I havent got to the centering code thingy yet, plan to though... thanks!!

there is an extra space at the end of the url, thats why it didnt work... should be...
but it seems to be fine now... thanks
 
Bigbird!

If you don't get around using the centering stuff... At least match the window.open sizes to your resize. That way you won't have sort of a double opening at one size and then resizing at the other. The new code solves that problem: you determine the size of the window to open before you open it!


test = window.open("movie1.html","test","directories=0,menubar=no,toolbar=no,location=no,status=0,scrollbars=0,width=780,height=580,resizable=no")
test.resizeTo(550,426)

B-)


"Who's that guy with the shades... What's he trying to prove!”

 
Sorry Oldnewbie.....

I Finally got around to putting in the centering code... works much better... Thanks for that :) got caught up in the whole rays of light thingy, and that took up a bit too much of my time, dangit... but it is getting there I guess!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top