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