Einzelnen Beitrag anzeigen
Alt 19-06-2010, 14:31   #10 (permalink)
Flash?
Neuer User
 
Registriert seit: Sep 2006
Beiträge: 67
Liebe Simse,

ich bin's noch mal... die mit den Bären...
Ich hab's jetzt hinbekommen, dass ich den Anfasser Rechts unten habe und oben nen andren und das ich das Ganze dann nach unten aufziehen kann. Jetzt meine Frage: Wie krieg ich's hin, dass sich das Bild proportional auszieht oder müsste ich da ganz anders ran gehen?

onClipEvent (enterFrame) {
if (dragger2) {
_root.bear._x = _root.ru._x;
_root.bear._y = _root.ru._y;
_root.bear._width = Math.abs(_root.lo._x - _root.ru._x);
_root.bear._height = Math.abs(_root.lo._y - _root.ru._y);

} else {
_root.bear._x = _root.ru._x;
_root.bear._y = _root.ru._y;
_root.bear._width = Math.abs(_root.lo._x - _root.ru._x);
_root.bear._height = Math.abs(_root.lo._y - _root.ru._y);
diff = _root.ru._y - _root.lo._y;
diffx = _root.ru._x - _root.lo._x;
_root.lo._x = _root.lo._x + diffx/10 + 7;
_root.lo._y = _root.lo._y + diff/10 + 5;
}
if(_root.lo._x >= _root.ru._x){
_root.bear._xscale *= 1}
else {_root.bear._xscale *= -1}
if(_root.lo._y >= _root.ru._y){
_root.bear._yscale *= 1}
else {_root.bear._yscale *= -1}
}

Elegant ist' s wohl nich, aber ich bin ja schon so froh, dass ich das hier geschnackelt hab...
Danke und viele Grüße
Flash?
Flash? ist offline   Mit Zitat antworten