=VALOR=
July 28th, 2002, 08:57 AM
Hi all.
Glad to be part of this forum :evil: .
Now on with this weird issue:
-------------------------------------------------------------------------
I have 5 simple Scenes in my movie:
1. Preloader
2. Site Load 1
3: Site Load 2
4: Site Load 3
5: MAIN
Let me explain: The prelaoder loads all the movie - works fine.
Site Load 1, 2 and 3 are different ways in which the site loads up. ( To make some variety in the way the user sees the site being drawn into the screen) Once any of the "Site Load" has finished, it is sent to MAIN.
The code in PRELOADER to make this work is as follows:
var SiteLoad = Math.ceil(Math.random()*3);
switch (SiteLoad)
{
case 1 :
gotoAndPlay("Site Load 1", 1);
break;
case 2 :
gotoAndPlay("Site Load 2", 1);
break;
case 3 :
gotoAndPlay("Site Load 3", 1);
break;
}
All of this works fine in Flash. However, when you look at the SWF in the browser, it seems to just play through all the scenes in order, ignoring the AS command above. :*(
Any ideas?
=VALOR=
Glad to be part of this forum :evil: .
Now on with this weird issue:
-------------------------------------------------------------------------
I have 5 simple Scenes in my movie:
1. Preloader
2. Site Load 1
3: Site Load 2
4: Site Load 3
5: MAIN
Let me explain: The prelaoder loads all the movie - works fine.
Site Load 1, 2 and 3 are different ways in which the site loads up. ( To make some variety in the way the user sees the site being drawn into the screen) Once any of the "Site Load" has finished, it is sent to MAIN.
The code in PRELOADER to make this work is as follows:
var SiteLoad = Math.ceil(Math.random()*3);
switch (SiteLoad)
{
case 1 :
gotoAndPlay("Site Load 1", 1);
break;
case 2 :
gotoAndPlay("Site Load 2", 1);
break;
case 3 :
gotoAndPlay("Site Load 3", 1);
break;
}
All of this works fine in Flash. However, when you look at the SWF in the browser, it seems to just play through all the scenes in order, ignoring the AS command above. :*(
Any ideas?
=VALOR=