also by the way can some buddy please help me out on the the main preloader code --ive been trying to figure this out for about a month or so
this is what i have to load the external swfs on the first blank frame of the movie i have –
// set up variables for movie start
_root.swfAlert = “fadeout”;
_root.swfNum = 1;
_root.containerPositionX = 162;
_root.containerPositionY = 79;
_root.fadeSpeed =18;
// here is the function that loads the movie
function loadSwf() {
// sets the current movie name to load
_root.activeSwf = "swf"+_root.swfNum+".swf";
// load the swf
loadMovie(_root.activeSwf, _root.container);
// set the x, y position
_root.container._x = _root.containerPositionX;
_root.container._y = _root.containerPositionY;
}
// load the first swf when the movie starts
loadSwf();
then on the container clip i have this code–
//this enterframe script checks the value of “swfAlert” and does something depending on the returned result
onClipEvent (enterFrame) {
if (_root.swfAlert == “fadeOut”) {
_root.container._alpha -= _root.fadeSpeed;
if (_root.container._alpha<=0) {
unloadMovie(_root.container);
–this works fine
–what i want is to add is a simple preloader
all i want to have is a preloader checking if the external swfs are loaded and if they are i want the preloader to fade out
can somebody please help or guide me in the right direction
2nd, label your second key frame IfEndFrameLoaded with the following action scripts (make sure the frame type is listed as frame label):
ifFrameLoaded (“page 1”, “EndFrame”)
gotoAndStop(“StartMovie”)
3rd, label 3rd key frame GoToStartFrame with the following action scripts (make sure the frame type is listed as frame label):
gotoAndPlay(“StartFrame”, “1”);
4th, for your blank key frame label it StartMovie with the following script (make sure the frame type is listed as frame number):
gotoAndPlay(“page 1”, 1)
That should work… if you ever get stuck, there are plenty of good script sites on the web, one of them being macromedia. You can put your preloader anywhere between the 1st and 2nd frame… I would not use multiple layers… if you do, turn your preloader into a movie clip and add layers within that.