Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.

Flash xml banner

[es] :: Flash :: Flash xml banner

[ Pregleda: 1999 | Odgovora: 9 ] > FB > Twit

Postavi temu Odgovori

Autor

Pretraga teme: Traži
Markiranje Štampanje RSS

kiselilimun
Popovic Nenad
Beograd

Član broj: 49361
Poruke: 178
91.143.218.*

Sajt: www.popdizajn.com


Profil

icon Flash xml banner12.10.2008. u 23:43 - pre 189 meseci
Uz moje pitanje postovao sam i fajil kojim me vec dva dana muci, nikako da provalim sta nije u redu sa ovim vertikalnim banerima.
Pokusavam da svaka fotka ima hipervezu sa nekom html stranicom u ovom slucaju je www.google.com .
Parametre za banner tj fotografije menjam u XML fajlu.

 
Odgovor na temu

djan key
Zagreb

Član broj: 156157
Poruke: 22
*.xnet.hr.

Sajt: www.as-flash.com


Profil

icon Re: Flash xml banner13.10.2008. u 18:42 - pre 189 meseci
Ako si kupio tu skriptu zasto se ne javis autoru?
http://www.oxylus-development.com/
http://forum.oxylusflash.com/
Freelance Flash developer >> http://www.as-flash.com
 
Odgovor na temu

kiselilimun
Popovic Nenad
Beograd

Član broj: 49361
Poruke: 178
91.143.218.*

Sajt: www.popdizajn.com


Profil

icon Re: Flash xml banner13.10.2008. u 23:13 - pre 189 meseci
Uparavu si!
Pitacu njih.
Hvala
 
Odgovor na temu

kiselilimun
Popovic Nenad
Beograd

Član broj: 49361
Poruke: 178
91.143.218.*

Sajt: www.popdizajn.com


Profil

icon Re: Flash xml banner13.10.2008. u 23:18 - pre 189 meseci
Evo nemam jedini takav problem http://forum.oxylusflash.com/3...mage-carousel-menu-engine.html
 
Odgovor na temu

djan key
Zagreb

Član broj: 156157
Poruke: 22
*.xnet.hr.

Sajt: www.as-flash.com


Profil

icon Re: Flash xml banner14.10.2008. u 00:38 - pre 189 meseci
Dodaj funkciju onRelease (kod ispod) poslije svake this.img_cont.onRollOut funkcije... (ima ih 3 komada, tj. za svaki primjer po jednom)

this.img_cont.onRelease = function () {
trace(links[this._parent.idx]);
getURL(links[this.idx]);
}

Freelance Flash developer >> http://www.as-flash.com
 
Odgovor na temu

kiselilimun
Popovic Nenad
Beograd

Član broj: 49361
Poruke: 178
91.143.218.*

Sajt: www.popdizajn.com


Profil

icon Re: Flash xml banner14.10.2008. u 01:44 - pre 189 meseci
Code:
function loadXMLdata()
{
    xml.onLoad = function (success)
    {
        var _loc6 = this.firstChild.childNodes;
        for (i = 0; i < _loc6.length; i++)
        {
            var _loc4 = _root.attachMovie("item", "obj" + i, i + 1);
            _loc4.angle = i * (360 / _loc6.length);
            _loc4.idx = i;
            _loc4._alpha = 0;
            _loc4.loading._alpha = 100;
            _loc4.refl.setMask(_loc4.masker);
            _loc4.onEnterFrame = mover;
            var _loc3 = _root.attachMovie("item", "obj2" + i, i * 189 - 10);
            _loc3.angle = i * (360 / _loc6.length);
            _loc3.idx = i;
            _loc3._alpha = 0;
            _loc3.loading._alpha = 100;
            _loc3.refl.setMask(_loc3.masker);
            _loc3.onEnterFrame = mover2;
            var _loc5 = _root.attachMovie("item", "obj3" + i, i * 329 - 5);
            _loc5.angle = i * (360 / _loc6.length);
            _loc5.idx = i;
            _loc5._alpha = 0;
            _loc5.refl._alpha = 0;
            _loc5.masker._alpha = 0;
            _loc5.loading._alpha = 100;
            _loc5.onEnterFrame = mover3;
            urls.push(_loc6[i].attributes.url);
            urls2.push(_loc6[i].attributes.url2);
            _loc3.img_cont.loadMovie(urls2[i]);
            _loc3.item_bg._alpha = 0;
            _loc3.alpha_t._alpha = 0;
            _loc3.loading._alpha = 0;
            captions.push(_loc6[i].attributes.caption);
            links.push(_loc6[i].attributes.link);
            loadBitmapSmoothed(urls[i], _loc4.img_cont);
            loadBitmapSmoothed(urls[i], _loc4.refl);
            loadBitmapSmoothed(urls[i], _loc5.img_cont);
        } // end of for
        initHolders(_loc6.length);
    };
    xml.load("logos2.xml");
} // End of the function
function mover()
{
    this._y = centerY + Math.sin(this.angle / 180 * 3.141593E+000) * radiusY + this._height / 6;
    this._x = centerX + Math.round(Math.cos(this.angle / 180 * 3.141593E+000) * radiusX);
    this.angle = this.angle + this._parent.speed;
    if (this.angle > 360)
    {
        this.angle = this.angle - 360;
    } // end if
    if (this.angle < 0)
    {
        this.angle = this.angle + 360;
    } // end if
    var _loc3 = this._y / (centerY + radiusY) - 1.400000E-001;
    this._xscale = this._yscale = _loc3 * 100;
    this._alpha = _loc3 * 100;
    if (but.selected)
    {
        k = 2;
    }
    else
    {
        k = 1;
    } // end else if
    if (this.angle > 0 && this.angle < k * 180)
    {
        this.img_cont.onRollOver = function ()
        {
            isMoving = false;
            if (tool.selected)
            {
                this._parent.toolTipOv = true;
                index = this._parent.idx;
            } // end if
            this._parent.item_bg._alpha = 100;
            this._parent.alpha_t.gotoAndPlay(2);
            if (stroke.selected)
            {
                this._parent.item_bg.gotoAndPlay(2);
            }
            else
            {
                this._parent.item_bg._alpha = 0;
            } // end else if
        };
        this.img_cont.onRelease = function () {
trace(links[this._parent.idx]);
getURL(links[this.idx]);
}
        this.img_cont.onRollOut = function ()
        
        {
            tip.removeMovieClip();
            isMoving = true;
            this._parent.toolTipOv = false;
            this._parent.alpha_t.gotoAndPlay(16);
            if (stroke.selected)
            {
                this._parent.item_bg.gotoAndPlay(8);
            } // end if
        };
        //oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo666666666666666666666666666666666
        this.img_cont.onRelease = function () {
trace(links[this._parent.idx]);
getURL(links[this.idx]);
}
    }
    else
    {
        delete this.img_cont.onRollOver;
        delete this.img_cont.onRollOut;
    } // end else if
    this.swapDepths(Math.round(this._xscale) + 100);
    bl.blurX = bl.blurY = Math.round((100 - this._xscale) * _root.blurScale);
    this.filters = [bl];
    if (ref.selected)
    {
        this.refl._alpha = 100;
    }
    else
    {
        this.refl._alpha = 0;
    } // end else if
    if (this.toolTipOv)
    {
        _root.attachMovie("toolTip", "tip", 1000);
        tip.tipText.text = captions[index];
        tip.tipText.autoSize = true;
        tip.tipBack._width = tip.tipText._width + 10;
        tip._x = this._x - this._width / 2 + 10;
        tip._y = this._y - this._height / 2;
    } // end if
} // End of the function
function mover2()
{
    this._y = centerY2 + Math.sin(this.angle / 180 * 3.141593E+000) * radiusY2 + this._height / 6;
    this._x = centerX2 + Math.round(Math.cos(this.angle / 180 * 3.141593E+000) * radiusX2);
    this.angle = this.angle + this._parent.speed2;
    if (this.angle > 360)
    {
        this.angle = this.angle - 360;
    } // end if
    if (this.angle < 0)
    {
        this.angle = this.angle + 360;
    } // end if
    var _loc3 = this._y / (centerY2 + radiusY2) - 1.400000E-001;
    this._xscale = this._yscale = _loc3 * 100;
    this._alpha = _loc3 * 100;
    if (but.selected)
    {
        k = 2;
    }
    else
    {
        k = 1;
    } // end else if
    if (this.angle > 0 && this.angle < k * 180)
    {
        this.img_cont.onRollOver = function ()
        {
            isMoving = false;
            this._parent.toolTipOv = true;
            this._parent.alpha_t.gotoAndPlay(2);
            index = this._parent.idx;
        };
        this.img_cont.onRollOut = function ()
        {
            tip.removeMovieClip();
            isMoving = true;
            this._parent.toolTipOv = false;
            this._parent.alpha_t.gotoAndPlay(16);
        };
        // 2222222222222222222222222222222222222222222222222222222222222266666666666666666666666666666
        this.img_cont.onRelease = function () {
trace(links[this._parent.idx]);
getURL(links[this.idx]);
}
    }
    else
    {
        delete this.img_cont.onRollOver;
        delete this.img_cont.onRollOut;
    } // end else if
    this.swapDepths(Math.round(this._xscale) + 200);
    bl2.blurX = bl2.blurY = Math.round((100 - this._xscale) * 1.500000E-001);
    this.filters = [bl2];
    if (this.toolTipOv)
    {
        _root.attachMovie("toolTip", "tip", 1000);
        tip.tipText.text = captions[index];
        tip.tipText.autoSize = true;
        tip.tipBack._width = tip.tipText._width + 10;
        tip._x = this._x - this._width / 2 + 10;
        tip._y = this._y - this._height / 2;
    } // end if
} // End of the function
function mover3()
{
    this._y = centerY3 + Math.sin(this.angle / 180 * 3.141593E+000) * radiusY3 + this._height / 6;
    this._x = centerX3 + Math.round(Math.cos(this.angle / 180 * 3.141593E+000) * radiusX3);
    this.angle = this.angle + this._parent.speed3;
    if (this.angle > 360)
    {
        this.angle = this.angle - 360;
    } // end if
    if (this.angle < 0)
    {
        this.angle = this.angle + 360;
    } // end if
    if (this.angle > 270 && this.angle <= 360)
    {
        s = (this.angle - 270) / 100;
        if (s < 2.500000E-001)
        {
            s = 2.500000E-001;
        } // end if
    } // end if
    if (this.angle > 0 && this.angle <= 90)
    {
        s = (90 - this.angle) / 100;
        if (s < 2.500000E-001)
        {
            s = 2.500000E-001;
        } // end if
    } // end if
    if (this.angle > 90 && this.angle <= 180)
    {
        s = 2.500000E-001;
    } // end if
    if (this.angle > 180 && this.angle <= 270)
    {
        s = 2.500000E-001;
    } // end if
    s = s + 1.400000E-001;
    this._xscale = this._yscale = s * 100;
    this._alpha = s * 100;
    if (s <= 3.900000E-001)
    {
        this._alpha = s * 80;
    } // end if
    if (isMoving)
    {
        if (s == 3.900000E-001)
        {
            this.swapDepths(-5000 + this.idx);
        }
        else
        {
            this.swapDepths(Math.round(this._xscale) + 300 - this.idx);
        } // end else if
        bl.blurX = bl.blurY = Math.round((100 - this._xscale) * _root.blurScale2);
        this.filters = [bl];
    } // end if
} // End of the function
function loadBitmapSmoothed(url, target)
{
    var _loc5 = target.createEmptyMovieClip("bmc", target.getNextHighestDepth());
    var _loc2 = new Object();
    _loc2.tmc = target;
    _loc2.onLoadInit = function (mc)
    {
        mc._visible = false;
        target._parent._alpha = 100;
        target._parent.loading._alpha = 0;
        var _loc3 = new flash.display.BitmapData(mc._width, mc._height, true);
        this.tmc.attachBitmap(_loc3, this.tmc.getNextHighestDepth(), "auto", true);
        _loc3.draw(mc);
    };
    var _loc4 = new MovieClipLoader();
    _loc4.addListener(_loc2);
    _loc4.loadClip(url, _loc5);
} // End of the function
var radiusX = 280;
var radiusY = 50;
var centerX = 350;
var centerY = Stage.height / 3;
var speed = 5;
var radiusX2 = 280;
var radiusY2 = 50;
var centerX2 = 345;
var centerY2 = 525;
var speed2 = 1.500000E+000;
var radiusX3 = 0;
var radiusY3 = 250;
var centerX3 = 830;
var centerY3 = Stage.height /2;
var speed3 = 1.500000E+000;
var blurScale = 2.500000E-001;
var blurScale2 = 2.500000E-001;
var isMoving = true;
var isMoving2 = true;
var bl = new flash.filters.BlurFilter();
bl.quality = 1;
var bl2 = new flash.filters.BlurFilter();
bl2.quality = 1;
blurS.dragger._x = 15;
blurV.dragger._x = 30;
radyS.dragger._x = 50;
radxS.dragger._x = 80;
var urls = new Array();
var urls2 = new Array();
var captions = new Array();
var links = new Array();
var xml = new XML();
xml.ignoreWhite = true;
loadXMLdata();
_root.onEnterFrame = function ()
{
    if (radyS.ratio > 10 && radyS.ratio < 80)
    {
        radiusY = Stage.height / 500 * radyS.ratio;
    } // end if
    if (radxS.ratio > 10)
    {
        radiusX = Stage.width / 350 * radxS.ratio;
    } // end if
    blurScale = 1.000000E-002 * blurS.ratio;
    blurScale2 = 1.000000E-002 * blurV.ratio;
    if (_xmouse < 660 && _ymouse > 400)
    {
        if (_xmouse > mode2._width / 2)
        {
            speed2 = (_xmouse - centerX2) / 80;
        }
        else
        {
            speed2 = -(centerX2 - _xmouse) / 80;
        } // end if
    } // end else if
    if (_xmouse > 680)
    {
        if (_ymouse > mode2._height / 2)
        {
            speed3 = -(_ymouse - centerY3) / 80;
        }
        else
        {
            speed3 = (centerY3 - _ymouse) / 80;
        } // end if
    } // end else if
    if (mode1.hitTest(_xmouse, _ymouse, true))
    {
        if (def.selected)
        {
            if (_xmouse > mode1._width / 2)
            {
                speed = 1.500000E+000;
            }
            else
            {
                speed = -1.500000E+000;
            } // end else if
        }
        else if (_xmouse > mode1._width / 2)
        {
            speed = (_xmouse - centerX) / 80;
        }
        else
        {
            speed = -(centerX - _xmouse) / 80;
        } // end else if
    } // end else if
    if (roll.selected)
    {
        if (!isMoving)
        {
            speed = 0;
        } // end if
    } // end if
    if (!isMoving2)
    {
        speed3 = 0;
    } // end if
    if (mode1.hitTest(_xmouse, _ymouse, true))
    {
        speed2 = speed3 = 0;
    } // end if
    if (mode2.hitTest(_xmouse, _ymouse, true))
    {
        speed = speed2 = 0;
    } // end if
    if (mode3.hitTest(_xmouse, _ymouse, true))
    {
        speed = speed3 = 0;
    } // end if
};


nigde ne vidim za trecu komadnu? :(

Inace ova druga dva ok rade!
Hvala na odgovorima! :)
 
Odgovor na temu

djan key
Zagreb

Član broj: 156157
Poruke: 22
*.xnet.hr.

Sajt: www.as-flash.com


Profil

icon Re: Flash xml banner14.10.2008. u 03:59 - pre 189 meseci
Kopiraj kod ispod u funkciju "function mover3()" prije zatvaranja te funkcije }

if (this.angle > 0 && this.angle < k * 180)
{
this.img_cont.onRelease = function ()
{
trace(links[this._parent.idx]);
//getURL(links[this.idx]);
}
}
else
{
delete this.img_cont.onRelease;
} // end else if


Nisam provjeravo totalnu ispravnost ali bi trebalo raditi

Freelance Flash developer >> http://www.as-flash.com
 
Odgovor na temu

kiselilimun
Popovic Nenad
Beograd

Član broj: 49361
Poruke: 178
91.143.218.*

Sajt: www.popdizajn.com


Profil

icon Re: Flash xml banner14.10.2008. u 10:16 - pre 189 meseci
Ovaj kod koji trenutno pustujem prepravljen je samo da vertikalne banere.
Mislim da sam na pravo mesto stavio tvoj kod?
Kad u fleshu starujem fajl (ctrl+enter) baneri su postali linkovani i kad na neko od njih kliknem u prozoru "OUTPUT" (u samom flesh programu) priajvljuje mi adresu koja je upisana u XML tj www.gogle.com. Ali kad probam da postavim fajil na net ili ga na lokalu probam nista se ne desava? :(


Code:
function loadXMLdata() {
    xml.onLoad = function(success) {
        var _loc6 = this.firstChild.childNodes;
        for (i=0; i<_loc6.length; i++) {
            var _loc4 = _root.attachMovie("item", "obj"+i, i+1);
            _loc4.angle = i*(360/_loc6.length);
            _loc4.idx = i;
            _loc4._alpha = 0;
            _loc4.loading._alpha = 100;
            _loc4.refl.setMask(_loc4.masker);
            _loc4.onEnterFrame = mover;
            var _loc3 = _root.attachMovie("item", "obj2"+i, i*189-10);
            _loc3.angle = i*(360/_loc6.length);
            _loc3.idx = i;
            _loc3._alpha = 0;
            _loc3.loading._alpha = 100;
            _loc3.refl.setMask(_loc3.masker);
            _loc3.onEnterFrame = mover2;
            var _loc5 = _root.attachMovie("item", "obj3"+i, i*329-5);
            _loc5.angle = i*(360/_loc6.length);
            _loc5.idx = i;
            _loc5._alpha = 0;
            _loc5.refl._alpha = 0;
            _loc5.masker._alpha = 0;
            _loc5.loading._alpha = 100;
            _loc5.onEnterFrame = mover3;
            urls.push(_loc6[i].attributes.url);
            urls2.push(_loc6[i].attributes.url2);
            _loc3.img_cont.loadMovie(urls2[i]);
            _loc3.item_bg._alpha = 0;
            _loc3.alpha_t._alpha = 0;
            _loc3.loading._alpha = 0;
            captions.push(_loc6[i].attributes.caption);
            links.push(_loc6[i].attributes.link);
            loadBitmapSmoothed(urls[i],_loc4.img_cont);
            loadBitmapSmoothed(urls[i],_loc4.refl);
            loadBitmapSmoothed(urls[i],_loc5.img_cont);
        }// end of for
        initHolders(_loc6.length);
    };
    xml.load("logos2.xml");
}// End of the function
function mover() {
    this._y = centerY+Math.sin(this.angle/180*3.141593E+000)*radiusY+this._height/6;
    this._x = centerX+Math.round(Math.cos(this.angle/180*3.141593E+000)*radiusX);
    this.angle = this.angle+this._parent.speed;
    if (this.angle>360) {
        this.angle = this.angle-360;
    }
    // end if   
    if (this.angle<0) {
        this.angle = this.angle+360;
    }
    // end if   
    var _loc3 = this._y/(centerY+radiusY)-1.400000E-001;
    this._xscale = this._yscale=_loc3*100;
    this._alpha = _loc3*100;
    if (but.selected) {
        k = 2;
    } else {
        k = 1;
    }// end else if
    if (this.angle>0 && this.angle<k*180) {
        this.img_cont.onRollOver = function() {
            isMoving = false;
            if (tool.selected) {
                this._parent.toolTipOv = true;
                index = this._parent.idx;
            }
            // end if   
            this._parent.item_bg._alpha = 100;
            this._parent.alpha_t.gotoAndPlay(2);
            if (stroke.selected) {
                this._parent.item_bg.gotoAndPlay(2);
            } else {
                this._parent.item_bg._alpha = 0;
            }// end else if
        };
        this.img_cont.onRollOut = function() {
            tip.removeMovieClip();
            isMoving = true;
            this._parent.toolTipOv = false;
            this._parent.alpha_t.gotoAndPlay(16);
            if (stroke.selected) {
                this._parent.item_bg.gotoAndPlay(8);
            }
            // end if   
        };
    } else {
        delete this.img_cont.onRollOver;
        delete this.img_cont.onRollOut;
    }// end else if
    this.swapDepths(Math.round(this._xscale)+100);
    bl.blurX = bl.blurY=Math.round((100-this._xscale)*_root.blurScale);
    this.filters = [bl];
    if (ref.selected) {
        this.refl._alpha = 100;
    } else {
        this.refl._alpha = 0;
    }// end else if
    if (this.toolTipOv) {
        _root.attachMovie("toolTip","tip",1000);
        tip.tipText.text = captions[index];
        tip.tipText.autoSize = true;
        tip.tipBack._width = tip.tipText._width+10;
        tip._x = this._x-this._width/2+10;
        tip._y = this._y-this._height/2;
    }
    // end if   
}// End of the function
function mover2() {
    this._y = centerY2+Math.sin(this.angle/180*3.141593E+000)*radiusY2+this._height/6;
    this._x = centerX2+Math.round(Math.cos(this.angle/180*3.141593E+000)*radiusX2);
    this.angle = this.angle+this._parent.speed2;
    if (this.angle>360) {
        this.angle = this.angle-360;
    }
    // end if   
    if (this.angle<0) {
        this.angle = this.angle+360;
    }
    // end if   
    var _loc3 = this._y/(centerY2+radiusY2)-1.400000E-001;
    this._xscale = this._yscale=_loc3*100;
    this._alpha = _loc3*100;
    if (but.selected) {
        k = 2;
    } else {
        k = 1;
    }// end else if
    if (this.angle>0 && this.angle<k*180) {
        this.img_cont.onRollOver = function() {
            isMoving = false;
            this._parent.toolTipOv = true;
            this._parent.alpha_t.gotoAndPlay(2);
            index = this._parent.idx;
        };
        this.img_cont.onRollOut = function() {
            tip.removeMovieClip();
            isMoving = true;
            this._parent.toolTipOv = false;
            this._parent.alpha_t.gotoAndPlay(16);
        };
    } else {
        delete this.img_cont.onRollOver;
        delete this.img_cont.onRollOut;
    }// end else if
    this.swapDepths(Math.round(this._xscale)+200);
    bl2.blurX = bl2.blurY=Math.round((100-this._xscale)*1.500000E-001);
    this.filters = [bl2];
    if (this.toolTipOv) {
        _root.attachMovie("toolTip","tip",1000);
        tip.tipText.text = captions[index];
        tip.tipText.autoSize = true;
        tip.tipBack._width = tip.tipText._width+10;
        tip._x = this._x-this._width/2+10;
        tip._y = this._y-this._height/2;
    }
    // end if   
}// End of the function
function mover3() {
    this._y = centerY3+Math.sin(this.angle/180*3.141593E+000)*radiusY3+this._height/6;
    this._x = centerX3+Math.round(Math.cos(this.angle/180*3.141593E+000)*radiusX3);
    this.angle = this.angle+this._parent.speed3;
    if (this.angle>360) {
        this.angle = this.angle-360;
    }
    // end if   
    if (this.angle<0) {
        this.angle = this.angle+360;
    }
    // end if   
    if (this.angle>270 && this.angle<=360) {
        s = (this.angle-270)/100;
        if (s<2.500000E-001) {
            s = 2.500000E-001;
        }
        // end if   
    }
    // end if   
    if (this.angle>0 && this.angle<=90) {
        s = (90-this.angle)/100;
        if (s<2.500000E-001) {
            s = 2.500000E-001;
        }
        // end if   
    }
    // end if   
    if (this.angle>90 && this.angle<=180) {
        s = 2.500000E-001;
    }
    // end if   
    if (this.angle>180 && this.angle<=270) {
        s = 2.500000E-001;
    }
    // end if   
    s = s+1.400000E-001;
    this._xscale = this._yscale=s*100;
    this._alpha = s*100;
    if (s<=3.900000E-001) {
        this._alpha = s*80;
    }
    // end if   
    if (isMoving) {
        if (s == 3.900000E-001) {
            this.swapDepths(-5000+this.idx);
        } else {
            this.swapDepths(Math.round(this._xscale)+300-this.idx);
        }// end else if
        bl.blurX = bl.blurY=Math.round((100-this._xscale)*_root.blurScale2);
        this.filters = [bl];
    }
    // end if   
    // ovde pocninje tvoj kodddddddddddddddddddddddddddddddddddddddddddd
    if (this.angle>0 && this.angle<k*180) {
        this.img_cont.onRelease = function() {
            trace(links[this._parent.idx]);
            //getURL(links[this.idx]);
        };
    } else {
        delete this.img_cont.onRelease;
    }// end else if ooooooooooooooooooovde se zavrsava!!!!!!!!!!
}// End of the function
function loadBitmapSmoothed(url, target) {
    var _loc5 = target.createEmptyMovieClip("bmc", target.getNextHighestDepth());
    var _loc2 = new Object();
    _loc2.tmc = target;
    _loc2.onLoadInit = function(mc) {
        mc._visible = false;
        target._parent._alpha = 100;
        target._parent.loading._alpha = 0;
        var _loc3 = new flash.display.BitmapData(mc._width, mc._height, true);
        this.tmc.attachBitmap(_loc3,this.tmc.getNextHighestDepth(),"auto",true);
        _loc3.draw(mc);
    };
    var _loc4 = new MovieClipLoader();
    _loc4.addListener(_loc2);
    _loc4.loadClip(url,_loc5);
}// End of the function
var radiusX = 280;
var radiusY = 50;
var centerX = 350;
var centerY = Stage.height/3;
var speed = 5;
var radiusX2 = 280;
var radiusY2 = 50;
var centerX2 = 345;
var centerY2 = 525;
var speed2 = 1.500000E+000;
var radiusX3 = 0;
var radiusY3 = 250;
var centerX3 = 830;
var centerY3 = Stage.height/2;
var speed3 = 1.500000E+000;
var blurScale = 2.500000E-001;
var blurScale2 = 2.500000E-001;
var isMoving = true;
var isMoving2 = true;
var bl = new flash.filters.BlurFilter();
bl.quality = 1;
var bl2 = new flash.filters.BlurFilter();
bl2.quality = 1;
blurS.dragger._x = 15;
blurV.dragger._x = 30;
radyS.dragger._x = 50;
radxS.dragger._x = 80;
var urls = new Array();
var urls2 = new Array();
var captions = new Array();
var links = new Array();
var xml = new XML();
xml.ignoreWhite = true;
loadXMLdata();
_root.onEnterFrame = function() {
    if (radyS.ratio>10 && radyS.ratio<80) {
        radiusY = Stage.height/500*radyS.ratio;
    }
    // end if   
    if (radxS.ratio>10) {
        radiusX = Stage.width/350*radxS.ratio;
    }
    // end if   
    blurScale = 1.000000E-002*blurS.ratio;
    blurScale2 = 1.000000E-002*blurV.ratio;
    if (_xmouse<660 && _ymouse>400) {
        if (_xmouse>mode2._width/2) {
            speed2 = (_xmouse-centerX2)/80;
        } else {
            speed2 = -(centerX2-_xmouse)/80;
        }// end if
    }
    // end else if   
    if (_xmouse>680) {
        if (_ymouse>mode2._height/2) {
            speed3 = -(_ymouse-centerY3)/80;
        } else {
            speed3 = (centerY3-_ymouse)/80;
        }// end if
    }
    // end else if   
    if (mode1.hitTest(_xmouse, _ymouse, true)) {
        if (def.selected) {
            if (_xmouse>mode1._width/2) {
                speed = 1.500000E+000;
            } else {
                speed = -1.500000E+000;
            }// end else if
        } else if (_xmouse>mode1._width/2) {
            speed = (_xmouse-centerX)/80;
        } else {
            speed = -(centerX-_xmouse)/80;
        }// end else if
    }
    // end else if   
    if (roll.selected) {
        if (!isMoving) {
            speed = 0;
        }
        // end if   
    }
    // end if   
    if (!isMoving2) {
        speed3 = 0;
    }
    // end if   
    if (mode1.hitTest(_xmouse, _ymouse, true)) {
        speed2 = speed3=0;
    }
    // end if   
    if (mode2.hitTest(_xmouse, _ymouse, true)) {
        speed = speed2=0;
    }
    // end if   
    if (mode3.hitTest(_xmouse, _ymouse, true)) {
        speed = speed3=0;
    }
    // end if   
};

 
Odgovor na temu

kelja

Član broj: 70429
Poruke: 1416
93.86.86.*



+35 Profil

icon Re: Flash xml banner15.10.2008. u 08:02 - pre 189 meseci
Skini komentar sa:
//getURL(links[this.idx]);
odnosno turi adresu tu, mislim da bi trebalo da pomogne.

http://www.adobe.com/support/f...ctionscript_dictionary808.html

Naravno da se rezultati komande trace nece videti nigde sem u flash-ovom output prozorcetu. :)
 
Odgovor na temu

kiselilimun
Popovic Nenad
Beograd

Član broj: 49361
Poruke: 178
91.143.218.*

Sajt: www.popdizajn.com


Profil

icon Re: Flash xml banner15.10.2008. u 09:40 - pre 189 meseci
Probao i "turio sam " tu adresu desava se sledece da se baneri krecu i postepeno uvecavaju sve dotle dok mi se komp ne resetuje :)
A kad kliknem na neki od njih otvra mi stranicu pod nazivom undefined.

Da li neko ima slican primer sa ovim verktikalnim bannerima koji se krecu?

Hvala svima na odgovorima!
 
Odgovor na temu

[es] :: Flash :: Flash xml banner

[ Pregleda: 1999 | Odgovora: 9 ] > FB > Twit

Postavi temu Odgovori

Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.