flash actionscript:
Hi, as you don't tell us what flash version you're targeting, I wont be able to write the best code for your situation, sorry ;-) Ok maybe I won't do that even after you gave that information. (I'll stop kidding now) Two things I'd like to offer: First an advice: tackle one problem after another. So maybe start building/understanding the preloader concept, and then put it into action in your environment. Second a general layout: within main stack your movieclips, so that under the preloader are empty clips in whick you load your external movies. If you make them with a completly empty first frame and a stop(); on that frame you dont have to worry about showing or playing until after you made sure they are completly loaded, and the you just start the with "someLoadedClip[/].play()", where someLoadedClip[/] would be the name of the empty clip you loaded the the movie into.
Hi again 2m! Thanks once more for helping me. You're right , i should tackle one thing at a time, i'm so stuck in this that i can't think at all anymore. My brain caught fire trying to go around the problem with normal mode. I use Flash MX. I don't know code, but i can work pretty well in Normal mode! I'm having major problems interpreting the code all well-meaning people send to me because of that. This is the code i have on my preloader now. How can i change it to load an external movie instead of the main timeline? bytes_loaded = Math.round(this.getBytesLoaded()); bytes_total = Math.round(this.getBytesTotal()); getPercent = bytes_loaded/bytes_total; this.loadBar._width = getPercent*77.5; this.loadText = Math.round(getPercent*100)+"%"; if (bytes_loaded == bytes_total) { this.gotoAndPlay(3); } /A
Don't see what you're looking for? Try a search.
|