Zurück   Flashforum > Flash > ActionScript > ActionScript 2

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 16-01-2010, 16:08   #1 (permalink)
Neuer User
 
Registriert seit: Jan 2010
Beiträge: 1
Link in einem Laufband

Hallo! Ich bin noch nicht so wirklich Fit in Action Script und muss ein laufband bauen wo automatisch die Bilder von links nach rechts über den Bildschrim fahren! Das klappt auch. Aber ich bekomme es nicht hin das ich die einzelnen Bilder verlinke. Alle auf einmal klappt. Aber ich will das jedes Bild einen eigenen Link bekommt!

Kann mir einer helfen?

Im moment mache ich es so:

Code:
onLoad = function() {

	speed=2;
	px=0;	
	for(c=1;c<=7;c++) 
	{
		createEmptyMovieClip('bild'+c+'container',c);
		_root['bild'+c+'container'].loadMovie(c+".jpg");
		_root['bild'+c+'container']._y=0;
		_root['bild'+c+'container']._x=px;
		px+=110;

		thumb.img.onRelease = function(){
			
		}
	}
}

onEnterFrame = function() {
	
	for(c2=1;c2<=7;c2++) {

		_root['bild'+c2+'container']._x-=speed;
		if(_root['bild'+c2+'container']._x <= -110 && speed >0)
		{
			_root['bild'+c2+'container']._x += 770;
		}
		if(_root['bild'+c2+'container']._x >= 660 && speed <0)
		{
			_root['bild'+c2+'container']._x -= 770;
		}
		if(_root['bild'+c2+'container'].hitTest(_xmouse,_ymouse))
		{
			_root['bild'+c2+'container']._alpha = 100;
			_root['bild'+c2+'container'].onPress = function() {
					getURL("http://www.denic.de","_blank");
			}
		}
		if(!_root['bild'+c2+'container'].hitTest(_xmouse,_ymouse))
		{
			_root['bild'+c2+'container']._alpha = 50;
		}
	}
}
Danke schon einmal für die Hilfe! :-)

Gruß,
Mark
couganet ist offline   Mit Zitat antworten
Alt 17-01-2010, 09:41   #2 (permalink)
agedoubleju
Gast
 
Beiträge: n/a
PHP-Code:
for(var i:Number =1;i<=7;i++) 
    {
        var 
mc:MovieClip createEmptyMovieClip('bild'+i+'container',i);
        
mc.loadMovie(i+".jpg");
        
mc._y=0;
        
mc._x=px;
                
mc.ID i;//Schleifenzähler merken
        
px+=110;

        
mc.onRelease = function(){
            
trace("this="+this);
        }
    } 
  Mit Zitat antworten
Antwort

Lesezeichen

Stichworte
flash bild slider, laufband, slider

Themen-Optionen
Ansicht

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks sind an
Pingbacks sind an
Refbacks sind an


Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
Link erst nach einem Klick als Link durch Mauszeiger erkennbar? locoloco Flash Einsteiger 3 21-10-2007 15:06
mit einem link in einem Textfeld eine function() aufrufen pauledde Flash MX 2004 12 15-03-2006 15:51
Link in einem Textfeld zu einem Frame in dem Flashfilm ZerEx ActionScript 1 6 05-02-2005 21:50
Link in einem Textfeld zu einem anderen Frame syphax Flash 4 und Flash 5 9 10-12-2002 06:33
Frage zu einem Laufband shug ActionScript 1 3 19-10-2002 09:33


Alle Zeitangaben in WEZ +1. Es ist jetzt 16:00 Uhr.

Domains, Webhosting & Vserver von Host Europe
Unterstützt das Flashforum!
Adobe User Group


Copyright ©1999 – 2012 Marc Thiele