Zurück   Flashforum > Flash > ActionScript > ActionScript 1

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 10-04-2005, 22:40   #1 (permalink)
?-Developer
 
Registriert seit: Jul 2004
Ort: Zuchwil (CH)
Beiträge: 901
Problem OnMouseDown (Movie Clip)

Ich habe ein Problem mit dem auslösen de OnMouseDown... es werden
immer alle ausgelöst??? Kann mir jemand helfen???

ActionScript:
  1. // Funktion welche ein Quadrat erstellt
  2.  function create_quadrat(objekt, x, y)
  3.   {
  4.    with(objekt)
  5.     {
  6.      lineStyle(0, 0x000000, 100);
  7.      beginFill(0x0000ff, 100);
  8.      moveTo(x,y);
  9.      lineTo(x + 20, y);
  10.      lineTo(x + 20, y + 20);
  11.      lineTo(x, y + 20);
  12.      lineTo(x,y);
  13.      endFill();
  14.     }
  15.    objekt.onMouseDown = function()
  16.     {
  17.      trace(objekt);
  18.     }
  19.   }
  20.  
  21. // Funktion welche eine Anzahl Quadrate erstellt
  22.  function create_quadrate(anzahl)
  23.   {
  24.    for(i=0;i<anzahl;i++)
  25.     {
  26.      createEmptyMovieClip("test"+i, 100 + i);
  27.      create_quadrat(eval("test"+i), 40 + (i * 20), 40 + (i * 20));
  28.     }
  29.   }
  30.  
  31. create_quadrate(5);
__________________
Nur tote Fische schwimmen mit dem Strom
silentx ist offline   Mit Zitat antworten
Alt 11-04-2005, 00:23   #2 (permalink)
mod_rewrite
 
Benutzerbild von sonar
 
Registriert seit: Feb 2003
Ort: München
Beiträge: 15.621
ActionScript:
  1. objekt.onRelease = function()
  2.         {
  3.                 trace(objekt);
  4.         }
__________________
RTFM
Wie man Fragen richtig stellt.

Achim Bindannmalweg

Money makes the world go round, fear makes it turn much faster.
(New Model Army)
sonar 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 02:33 Uhr.

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


Copyright ©1999 – 2012 Marc Thiele