Hi,
I am having this action-script problem and i dont know how to fix it, so i am asking for your help.
I have a website (index.swf) that at one point loads a external .swf (music.swf) into a target with the instance name of “music”. Index.swf loads music.swf from right at the begining of the movie, while the intro plays and after the intro is done playing, at frame 231 i added this script music=1. Inside music.swf i added the fallowing script:
www.3d-sign.com/help (The files that i am working with)
if (_root.music==1) {
gotoandplay(3);
} else {
gotoandplay(3);
}
So basicaly what it does is during the intro for the website, music.swf is being loaded and once it gets to frame 231, it starts playing. Now the problem that i am having with my music, is that its not wokring when i load it into the target, the music panel shows up but no sound. If i try and open music.swf individualy it works, but when its loaded into index.swf it doesnt work.
This is how music.swf looks like.
Layer1 Frame 1:
Its blank, no mc’s jsut the fallowing script:
if (_root.music==1) {
gotoandplay(3);
} else {
gotoandplay(3);
}
Layer1 Frame 2:
gotoandplay(1);
Layer1 Frame 3:
stop();
Layer2 Frame 3:
I have a mc called “musicpanel” with the instance name of “musicpanel”
===========================================================================
Inside musicpanel this is how it looks like:
Layer1 Frame1 :
this.onEnterFrame = function () {
if (fadeIn01==1) {
this.myLoop.setVolume(myLoopVolume);
myLoopVolume=myLoopVolume+10;
if (myLoopVolume>99) {
fadeIn01=0;
}
}
if (fadeOut01==1) {
this.myLoop.setVolume(myLoopVolume);
myLoopVolume=myLoopVolume-10;
if (myLoopVolume<5) {
this.myLoop.stop(“myLoop01”);
fadeOut01=0;
}
}
}
Layer2 Frame 1:
this.myLoop = new Sound(myLoopMC);
this.myLoop.attachSound(“myLoop01”);
myLoopVolume=60
this.myLoop.setVolume(myLoopVolume);
this.myLoop.start(0,9999);
fadeIn01=1
//
stop();
Layer3 Frame1:
A button with the fallowing script:
on (press) {
fadeOut01=1
gotoandplay(15);
}
Layer3 Frame2:
Same button with this script:
on (press) {
fadeIn01=1
myLoop.start(0,999);
myLoopVolume=100
}
//
on (release) {
gotoandplay(5);
}
So like i stated before, music.swf when its opened individualy it works with no problems, but once i load it into index.swf the music doesnt play anymore. Please help me.
To make this easyer i also uploaded 2 .fla’s that would help the understanding of my problem:
www.3d-sign.com/help (both of them can be found at that link)