Through some previous as help, I am using this code to scale & fade an attached movie:
_root.attachMovie("logo","logo",10001)
_root.logo._xscale = 10;
_root.logo._yscale = 10;
_root.logo._x = 500;
_root.logo._y = 400;
_root.logo._alpha = 100;
MovieClip.prototype.grow = function(a,b) {
this._xscale += b;
this._yscale = this._xscale;
if (this._xscale>a-1 && this._xscale<a+1) {
delete this.onEnterFrame;
}
};
_root.logo.onEnterFrame = function() {
this.grow(250,50);
if (this._alpha <= 100)
{
this._alpha -= 4;
}
else{
delete this.onEnterFrame;
}
}
Now, I would like to do basically the same thing with a movie that I have previously loaded into to an empty movie clip, called holder12, which occurs at a 34 second interval…I want to run the code to scale & fade the clip at about 70 seconds.
Here is one of my non working attempts:
MovieClip.prototype.EBSgrow = function(a,b) {
this._xscale += b;
this._yscale = this._xscale;
if (this._xscale>a-1 && this._xscale<a+1) {
delete this.onEnterFrame;
}
};
_root.holder12.onEnterFrame = function() {
clearInterval(EBSgrow);
this.EBSgrow(250,50);
if (this._alpha <= 100)
{
this._alpha -= 4;
}
else{
delete this.onEnterFrame;
}
}
EBSgrow = setInterval (EBSgrow, 70000);
I am wondering do I even need to code to check if the movie is loaded? (since I know it is)
Because I have gotten this working (below) but it just jumps to x and y scale values provided and the important part is that I scale & fade in a gradual transistion…
//function growEBS(){
//clearInterval(growEBS);
//_root.holder12.onEnterFrame = function() {
//_root.holder12._xscale = 500;
//_root.holder12._yscale = 500;
//delete this.onEnterFrame;
//}
//}
//growEBS = setInterval (growEBS, 70000);
I appreciate any suggestions on how to get this working and feel free to point out any mistakes I am making (because my basic understand of as is lacking, I sometimes put things together than any one with more experience would know cannot go together)
:puzzled: