| |||||||
Du magst keine Werbung? Wir auch nicht!
Einfach registrieren und die Werbung ist weg. Diese Nachricht sehen nur nicht registrierte Nutzer.
![]() |
| | LinkBack | Themen-Optionen | Ansicht |
| | #1 (permalink) |
| 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 |
| | |
![]() |
| Lesezeichen |
| Themen-Optionen | |
| Ansicht | |
| |