Hello everyone.
I followed the tutorial found here to create a percentage bar preloader.
That said, I have the following on frame 1
bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
this.loadBar._width = getPercent*100;
this.loadText = Math.round(getPercent*100)+"%";
if (bytes_loaded == bytes_total) {
this.gotoAndPlay(3);
}
and the following on frame 2
this.gotoAndPlay(1);
And, of course, my movie starts on frame 3.
What I am wondering is, rather than have the movie automatically play when loaded to 100%, if there is a way to create a play button that shows up once it is loaded to 100% that the visitor then clicks to begin the movie.
If so, how would the above code be modified? And what would the button’s code be?
Thank you