home *** CD-ROM | disk | FTP | other *** search
- function calldesc(descr)
- {
- if(descr != _root.desc)
- {
- _root.desc = descr;
- getURL("event: calldescr " + _root.desc,"");
- trace(_root.desc);
- }
- }
- function posiziona(id)
- {
- var i = 1;
- while(i < 5)
- {
- if(i != id)
- {
- this["b" + i].onEnterFrame = function()
- {
- this.ds = (90 - this._xscale) / 3;
- this._xscale = this._yscale += this.ds;
- if(Math.abs(this.ds) < 0.01)
- {
- this._xscale = this._yscale = 90;
- delete this.onEnterFrame;
- }
- };
- }
- else
- {
- this["b" + i].onEnterFrame = function()
- {
- this.ds = (120 - this._xscale) / 3;
- this._xscale = this._yscale += this.ds;
- if(Math.abs(this.ds) < 0.01)
- {
- this._xscale = this._yscale = 120;
- delete this.onEnterFrame;
- }
- };
- }
- i++;
- }
- }
- function riposiziona()
- {
- var i = 1;
- while(i < 5)
- {
- this["b" + i].onEnterFrame = function()
- {
- this.ds = (100 - this._xscale) / 3;
- this._xscale = this._yscale += this.ds;
- if(Math.abs(this.ds) < 0.01)
- {
- this._xscale = this._yscale = 100;
- delete this.onEnterFrame;
- }
- };
- i++;
- }
- }
- stop();
- s1 = new Sound();
- s1.attachSound("snd_1");
- s2 = new Sound();
- s2.attachSound("snd_2");
- desc = 0;
- var i = 1;
- while(i < 5)
- {
- this["b" + i].id = i;
- this["b" + i].onRollOver = function()
- {
- posiziona(this.id);
- this.gotoAndPlay(2);
- s1.start(0,0);
- };
- this["b" + i].onRollOut = this["b" + i].onReleaseOutside = function()
- {
- riposiziona();
- this.gotoAndPlay(22);
- };
- this["b" + i].onRelease = function()
- {
- linka(this.id);
- };
- i++;
- }
-