Zurück   Flashforum > Flash > ActionScript > ActionScript 1

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 19-08-2003, 13:57   #1 (permalink)
jjj
Neuer User
 
Registriert seit: Aug 2003
Beiträge: 2
Bilder dynamisch ausrichten

hallo,

1. Ich lade mir ein Bild namens bild.jpg dynamisch mit:

_root.createEmptyMovieClip("bild",1);
_root.bild.loadMovie("bild.jpg");

2. wenn ich das bild nun mit nem Button drehe:

on (press){ _root.bild._rotation += 90; }

gibts ein Problem mir der Achse, die sich links immer oben links in der Ecke des Bildes befindet.

Kann man die Achse dynamisch ausrichten, das der null punkt immer in der mitte des Bildes ist ??????

danke

:-)
jjj ist offline   Mit Zitat antworten
Alt 19-08-2003, 14:15   #2 (permalink)
Hirnverbrannt
 
Benutzerbild von NastyFrog
 
Registriert seit: Aug 2001
Ort: AUSTRIA
Beiträge: 2.020
ActionScript:
  1. _root.createEmptyMovieClip("bild",1);
  2. _root.bild.createEmptyMovieClip("conti",2);
  3. _root.bild.conti.loadMovie("bild.jpg");
  4. _root.bild.conti._x = -xyz;
  5. _root.bild.conti._y = -xyz;

__________________
50 Seiten hardcore ActionScript von den Grundlagen bis zu 3D Darstellungen.... eben eine Abendlektüre.

Dogs fucked the Pope, no fault of mine. Watch out! ... Why money? My name is Brinks; I was born ... born? Get sheep over side ... women and children to armored car ... orders from Captain Zeep.(Hunter S. Thompson)
NastyFrog 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 18:24 Uhr.

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


Copyright ©1999 – 2012 Marc Thiele