Antworten auf deine Fragen:
Neues Thema erstellen

Antworten zum Thema „hilfe bei link in flash“

hups

Nicht mehr ganz neu hier

hi hab da ne fla wo ich eine kl navi hab nur leider kenn ich mich mit den code nicht aus

wie und wo mus ich für jedes kleine bildchen sind 3 den Link zur hp machen ??

hatte es bei get url gemacht aber dann kennt er nur 1 link aber nicht 3 ??




Edit hier die scripte die da drin sind:


Script6Bild1
Code:
function subSelect (sn) {
    var i = 0
    _global.onEnterFrame = function  () {
        i++
        if (i >= 15) {
            delete(_global.onEnterFrame)
            if ((Test == chkNum) &&  (Test2 != chkSnum)) {
                trace("aa")
                } else {
                _global["ss" + chkNum]["s" + chkSnum].targetPlay(15)
                }
            for ( k = 1; k <= this.numOf; k++){
                _global["ss" + sn]["s" + k].linkNum = "('" + sn + "','" + k + "')"
                _global["ss" + sn]["s" + k].onRollOver = function  () {
                    this.oldMc = _global
                    trace("ok=" + _global._name)
                    _global.targetPlay(15)
                    Test2 = _global._name.slice(1, 2)
                    _global["ss" + chkNum]["s" + chkSnum].targetPlay(15)
                    }
                _global["ss" + sn]["s" + k].onRollOut = _global["ss" + sn]["s" + k].onDragOut = function  () {
                    this.onOut()
                    this.targetPlay(1)
                    this._parent.sub_outBox.targetPlay(1)
                    }
                _global["ss" + sn]["s" + k].onRelease = function  () {
                    getURL("http://www.gw-world.de/bwd/page.php?32", "_self");
                    trace("javascript:" + nameFunc + this.linkNum)
                    }
                }
            }
        }
    }
this.stop()
nameFunc = "gw"
topNameFunc = "gwt"
mmNameFunc = "gwm"
_global.numOf = 13
_global.depth = 0
this.navi["m" + chkNum].targetPlay(15)
this["ss" + chkNum].targetPlay(15)
for ( i = 1; i <= _global.numOf; i++){
    this.navi["m" + i].subNum = i
    this.navi["m" + i].linkNum = "('" + i + "','" + "1')"
    this.ss["s" + i].subNum = i
    this.navi["m" + i].onRollOver = function  () {
        for ( j = 1; j <= this.numOf; j++){
            _global._parent._parent.navi["m" + j].targetPlay(1)
            _global._parent._parent["ss" + j].targetPlay(1)
            }
        _global.targetPlay(15)
        sub_bg.targetPlay(sub_bg._totalframes)
        _global._parent._parent["ss" + _global.subNum].targetPlay(15)
        _global._parent._parent["ss" + _global.subNum].swapDepths(1000)
        test = _global._name.slice(1, 2)
        this.oldMc = _global
        subSelect (_global.subNum)
        }
    this.navi["m" + i].onRollOut = this.navi["m" + i].onDragOut = function  () {
        this.onOut()
        subSelect (chkNum)
        }
    this.navi["m" + i].onRelease = function  () {
        getURL("javascript:" + nameFunc + this.linkNum, "")
        trace("javascript:" + nameFunc + this.linkNum)
        }
    }
subSelect (chkNum)
for ( var i = 0; i < 4; i++){
    top_navi["t" + i].linkNum = "('" + i + "')"
    top_navi["t" + i].onRollOver = function  () {
        this.targetPlay(this._totalframes)
        }
    top_navi["t" + i].onRollOut = function  () {
        this.targetPlay(1)
        }
    top_navi["t" + i].onRelease = function  () {
        getURL("http://www.gw-world.de/bwd/page.php?37", "_self");
        trace("javascript:" + topNameFunc + this.linkNum)
        }
    }
for ( var i = 0; i < 5; i++){
    mm_navi["c" + i].linkNum = "('" + i + "')"
    mm_navi["c" + i].onRollOver = function  () {
        this.targetPlay(this._totalframes)
        }
    mm_navi["c" + i].onRollOut = function  () {
        this.targetPlay(1)
        }
    mm_navi["c" + i].onRelease = function  () {
        getURL("http://www.gw-world.de/bwd/page.php?", "_self");
        trace("javascript:" + mmNameFunc + this.linkNum)
        }
    }


Script5Bild1


Code:
setProperty ("",_quality,"best")
MovieClip.prototype.targetPlay = function  (targetFrame) {
    this.onEnterFrame = function  () {
        if (this._currentframe > targetFrame) {
            this.prevFrame()
            } 
            else if (this._currentframe < targetFrame) {
                this.nextFrame()
                } else {
                this.gotoAndStop(targetFrame)
                this.onEnterFrame = null
                }
        }
    }
MovieClip.prototype.onOver = function  () {
    this.oldMc = _global
    _global.targetPlay(15)
    }
MovieClip.prototype.onOut = function  () {
    if (this.oldMc == _global) {
        var i = 0
        _global.onEnterFrame = function  () {
            i++
            if (i >= 2) {
                trace(_global._name + " : Out")
                delete(_global.onEnterFrame)
                for ( j = 1; j <= this.numOf; j++){
                    _global._parent._parent.navi["m" + j].targetPlay(1)
                    _global._parent._parent["ss" + j].targetPlay(1)
                    _global._parent._parent.navi["m" + j]._alpha = 100
                    sub_bg.targetPlay(1)
                    }
                _global._parent._parent.navi["m" + chkNum].targetPlay(15)
                _global._parent._parent["ss" + chkNum].targetPlay(15)
                _global._parent._parent["ss" + chkNum]["s" + chkSnum].targetPlay(15)
                _global._parent._parent.outLine.targetPlay(1)
                } 
                else if (this.oldMc != _global) {
                    trace(_global._name + " : Out2")
                    delete(_global.onEnterFrame)
                    }
            }
        }
    }
MovieClip.prototype.smoothMove = function  (sp, tx, ty) {
    this.onEnterFrame = function  () {
        this._x = this._x + (sp * ((tx - this._x)))
        this._y = this._y + (sp * ((ty - this._y)))
        if ((Math.abs(tx - this._x) < 0.5) &&  (Math.abs(ty - this._y) < 0.5)) {
            this._x = tx
            this._y = ty
            delete(this.onEnterFrame)
            }
        trace("thisX : " + this._x)
        trace("thisY : " + this._y)
        }
    }
 
S

_simonzi

Guest

so hab dir hier mal probiert ! ....
hoffe das ist das was du haben wolltest!



LG Simon

[/url]http://www.sahebre.de/navi.zip
 
S

_simonzi

Guest

war also das was du wolltest ja?
du warst ja schon auf dem richtigen weg du hattest den 3 buttons schon
Instanznamen vergeben aber du hast sonst den rest vergessen .....
Es würde natürlich auch mit der onPress function gehen aber ich bevorzuge onRelease !
Hast du denn jetzt auch verstanden was du falsach gemacht hattest?
.....


Liebe Grüße Simon
 
Bilder bitte hier hochladen und danach über das Bild-Icon (Direktlink vorher kopieren) platzieren.
Antworten auf deine Fragen:
Neues Thema erstellen

Willkommen auf PSD-Tutorials.de

In unseren Foren vernetzt du dich mit anderen Personen, um dich rund um die Themen Fotografie, Grafik, Gestaltung, Bildbearbeitung und 3D auszutauschen. Außerdem schalten wir für dich regelmäßig kostenlose Inhalte frei. Liebe Grüße senden dir die PSD-Gründer Stefan und Matthias Petri aus Waren an der Müritz. Hier erfährst du mehr über uns.

Stefan und Matthias Petri von PSD-Tutorials.de

Nächster neuer Gratisinhalt

03
Stunden
:
:
25
Minuten
:
:
19
Sekunden

Neueste Themen & Antworten

Flatrate für Tutorials, Assets, Vorlagen

Zurzeit aktive Besucher

Keine Mitglieder online.

Statistik des Forums

Themen
175.158
Beiträge
2.581.869
Mitglieder
67.223
Neuestes Mitglied
Desiree
Oben