Hi SMEs (been contracting in Corporate Land, Subject Matter Experts),
Yes, I do want my music clip to loop, but Flash keeps loading a new clip OVER the already-looping clip each time the animation re-starts:
http://fantastic-machine.com/salenger/fades2.htm
The original music clip keeps playing, and more and more clips overlap, sounding horrible and probably sucking up memory, too.
Here is my code:
if(_global.Behaviors == null)_global.Behaviors = {};
if(_global.Behaviors.Sound == null)_global.Behaviors.Sound = {};
if(typeof this.createEmptyMovieClip == 'undefined'){
this._parent.createEmptyMovieClip('BS_Ancient',new Date().getTime()-(Math.floor((new Date().getTime()) /10000)*10000) );
_global.Behaviors.Sound.Ancient = new Sound(this._parent.BS_Ancient);
} else {
this.createEmptyMovieClip('_Ancient_',new Date().getTime()-(Math.floor((new Date().getTime()) /10000)*10000) );
_global.Behaviors.Sound.Ancient = new Sound(this.BS_Ancient);
}
_global.Behaviors.Sound.Ancient.attachSound("Ancient_-adam-6.wav");
if (true) {
_global.Behaviors.Sound.Ancient.start(0,99);
}
OK. Yes. I just used the pre-written behaviors, and have lots of extraneous stuff I don’t need!
I would be very grateful if someone would at least help me solve the overlapping music problem. If you want to throw in advice on what else I can safely cut, I will be very, VERY grateful… and your Flash Karma will be expanded geometrically.
Thank you, thank you,
SylvanLady