Forgive me if this is the wrong place to ask a question. I am new and
could use some help with a problem I’m having with a MC loading after a preloader.
I have a MC that will not load when placed on the server, but it tests fine in flash.
There is an enter button that takes you to the next frame with the
preloader on it. It directs after it loades to a labeled frame called “website”
Then the placed MC should load once it gets there–with the code entered on the frame–as follows:
stop();
loadMovie(“newintro.swf”, “introplace_mc” );
Here is the code for the preloader:
onClipEvent (load) {
totalBytes = _root.getBytesTotal();
}
onClipEvent (enterFrame) {
loadedBytes = _root.getBytesLoaded();
percentLoaded = Math.round (loadedBytes/totalBytes*100);
gotoAndStop(percentLoaded);
percentLoaded_txt.text = percentLoaded;
if (loadedBytes == totalBytes) {
_root.gotoAndPlay(“website”);
}
}
Something wrong with my code?
Thank you greatly in advance.