-
SeniorMember yet almost newbie
preloader problem
why doesnt this work???
I have MC1 in the first frame (which is stopped). Inside MC1 there is MC2
MC2 has the following script:
Code:
onClipEvent (enterFrame) {
loadedbytes = getBytesLoaded();
totalbytes = getBytesTotal();
if (totalbyter == loadedbytes) {
nextScene();
}
}
{
the movie is supposed to change scene when it finishes loading... but it wont work
-
general rule bender
code:
onClipEvent (enterFrame) {
loadedbytes = _root.getBytesLoaded();
totalbytes = _root.getBytesTotal();
if (totalbyter == loadedbytes) {
_root.nextScene();
}
}
-
SeniorMember yet almost newbie
doesnt work
mmmm that wont work
-
Re: doesnt work
Erm... it isn't the simple fact that you've put totalbyter and not totalbytes is it? the simplist things are usually what's wrong
-Luke
www.essentialparadox.com
"I only post a question when i've thoroughly searched beforehand"
-
SeniorMember yet almost newbie
ok u r right
that mistake u pointed is right, but it isnt the main problem
here's the code again:
Code:
onClipEvent (enterFrame) {
loadedbytes = _root.getBytesLoaded();
totalbytes = _root.getBytesTotal();
if (totalbytes == loadedbytes) {
_root.nextScene();
}
}
I've corrected the "byter" thing, but the thing that doesnt work is the "_root.nextScene" WHY!???
I tried seting an alfa property of 50 to a MC if the condition is verified and it works fine, but the going to the next scene doesnt work
-
Did you say the first scene is stopped? Why so?
-Luke
www.essentialparadox.com
"I only post a question when i've thoroughly searched beforehand"
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|