Zurück   Flashforum > Flash > ActionScript > ActionScript 1

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 02-04-2004, 14:24   #1 (permalink)
ki_
Neuer User
 
Registriert seit: Aug 2003
Beiträge: 51
scroll funktioniert unter win aber nicht unter mac os x

Hallo,

ich habe ein sehr seltsames Problem mit Actionscript.
Und zwar habe ich von einem Programmierer einen Code programmieren lassen, der automatisch eine Bilderleiste horizontal scrollen läßt. Die Richtung und die Geschwindigkeit hängt von der Mauszeigerposition ab.
Der Programmierer hat das ganze auf Flash MX auf Windows gemacht. Hier funktioniert alles wunderbar. Nur wenn ich die selbe Datei in Flash MX auf Mac OS X 10.2.8 öffne, funktioniert das Script nicht mehr. Inzwischen haben wir auf Flash MX 2004 geupdatet, aber hier funktioniert es auch nicht ???

Hier der Code:


onClipEvent (enterFrame){
if((_xmouse > -(this._width / 2)) && (_xmouse < 0)){

_root.content.laufband._x = _root.content.laufband._x + (-(_xmouse / 10) / 2);
_root.content.laufband2._x = _root.content.laufband2._x + (-(_xmouse / 10) / 2);;


if(_root.content.laufband._x > (_root.content.laufband._width)){
_root.content.laufband._x = -(_root.content.laufband._width + 90);
}
if(_root.content.laufband2._x > (_root.content.laufband._width)){
_root.content.laufband2._x = -(_root.content.laufband2._width + 90);
}

_root.content.linkspfeil._alpha = ((_xmouse / 3) +100);
}
if((_xmouse > 0) && (_xmouse < (this._width / 2))){

_root.content.laufband._x = _root.content.laufband._x + (-(_xmouse / 10) / 2);
_root.content.laufband2._x = _root.content.laufband2._x + (-(_xmouse / 10) / 2);;

if(_root.content.laufband._x < -(_root.content.laufband._width)){
_root.content.laufband._x = (_root.content.laufband._width + 90);
}
if(_root.content.laufband2._x < -(_root.content.laufband2._width)){
_root.content.laufband2._x = (_root.content.laufband2._width + 90);
}


_root.content.rechtspfeil._alpha = (100 - (_xmouse / 3));
}
}


die instanzen laufband und laufband2 sind instanzen des identischen movieclips. sie liegen nebeneinander auf der selben ebene.

rechtspfeil und linkspfeil ändern ihren alphawert, je nach mausposition und scroll-richtung.

das script is an einen movieclip angehängt, der über (ebene) den laufbändern liegt.

weiß wer, woran das liegt?

danke schon mal
ki_ ist offline   Mit Zitat antworten
Alt 02-04-2004, 15:03   #2 (permalink)
ki_
Neuer User
 
Registriert seit: Aug 2003
Beiträge: 51
hier liegt das file zum angucken:

http://www.jnb.de/beispielPackMX.fla
ki_ ist offline   Mit Zitat antworten
Antwort

Lesezeichen

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



Alle Zeitangaben in WEZ +1. Es ist jetzt 05:28 Uhr.

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


Copyright ©1999 – 2012 Marc Thiele