Zurück   Flashforum > Flash > Flash Einsteiger

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 22-08-2008, 20:27   #1 (permalink)
probierer&sucher
 
Registriert seit: Feb 2008
Ort: Berlin
Beiträge: 567
Variablen "umschalten"

Hallo alle zusammen,
ich sitze immernoch an meiner Drag&Drop Geschichte, dank ksw24 bin ich auch schon gut weitergekommen. Es hackt jetzt aber beim löschen des drag&drop, wenn die Pipetten das zweite Ziel erreicht haben.

Wäre nett wenn ihr wieder einen prüfenden Blick raufwerfen könntet und mir unter die Arme greifen könntet mit Tips und Hinweisen.

Hier das gesamte AS
ActionScript:
  1. /*Was hier passieren soll:
  2. Die Pipetten sollen nacheinander benutzt werden können. Zuerst soll die Pipette amilorid in das rote Feld geschoben werden
  3. und dieses soll als Rahmen stehen bleiben (funktioniert)
  4. Dannn soll der Kopf der Pipette betätigt werden (funktioniert schön wäre dann natürlich auch ein glüh effekt für den kopf).
  5. Danach  soll die Pipette zu ziel21a verschoben werden und Pipette theophyllin soll freigeben werden. Pipette amilorid soll dann ohne drag sein
  6. Mit dem gleichen Ablauf wie amilorid und der Freigabe von bumethanid nach ablegen auf ziel22.
  7. */
  8. stop();
  9. //init
  10. _root.ziel1_mc._alpha = 30;
  11. _root.ziel21_mc._alpha = 0;
  12. _root.ziel22_mc._alpha = 0;
  13. _root.ziel23_mc._alpha = 0;
  14. pipette1 = 1;
  15. pipette2 = 0;
  16. pipette3 = 0;
  17.  
  18. _root.pipette1_txt.text = pipette1;
  19. _root.pipette2_txt.text = pipette2;
  20. _root.pipette3_txt.text = pipette3;
  21. //dank an ksw24
  22. // Pipette amilorid glühen lassen, wenn sie am ziel ist
  23. if (pipette1 == 1) {
  24.     amilorid.onPress = function():Void  {
  25.         if (this.onEnterFrame) {
  26.             delete this.onEnterFrame;
  27.         }
  28.         this.startDrag();
  29.         this.onEnterFrame = function():Void  {
  30.             _root.amilorid_head._x = this._x;
  31.             _root.amilorid_head._y = this._y-amilorid._height+amilorid_head._height+amilorid_head._height;
  32.             if (eval(this._droptarget) == ziel1_mc) {
  33.                 _root.ziel1_mc._alpha = 100;
  34.  
  35.                 _root.amilorid_head.onRelease = _root.amilorid_head.onReleaseOutside=function ():Void {;
  36.                 _root.amilorid_head.gotoAndPlay(2);
  37.                 pipette1 = 2;
  38.                 _root.pipette1_txt.text = pipette1;
  39.                 _root.pipette2_txt.text = pipette2;
  40.                 _root.pipette3_txt.text = pipette3;
  41.                 _root.ziel1_mc._alpha = 0;
  42.                 _root.ziel21_mc._alpha = 30;
  43.                 delete this.onRelease;
  44.                 delete this.onPress;
  45.                 delete amilorid.onRelease;
  46.                 delete amilorid.onPress;
  47.                 _global.pipette1_02();
  48.             };
  49.         } else {
  50.             _root.ziel1_mc._alpha = 30;
  51.             _root.amilorid_head.onRelease = _root.amilorid_head.onReleaseOutside=function ():Void {
  52.                 //nichts tun !;
  53.             };
  54.         }
  55.     };
  56. };
  57. amilorid.onRelease = amilorid.onReleaseOutside=function ():Void {
  58.     delete this.onEnterFrame;
  59.     this.stopDrag();
  60. };
  61. }
  62. _global.pipette1_02 = function() {
  63. if (pipette1 == 2) {
  64.     amilorid.onPress = function():Void  {
  65.         if (this.onEnterFrame) {
  66.             delete this.onEnterFrame;
  67.         }
  68.         this.startDrag();
  69.         this.onEnterFrame = function():Void  {
  70.             _root.amilorid_head._x = this._x;
  71.             _root.amilorid_head._y = this._y-amilorid._height+amilorid_head._height+amilorid_head._height;
  72.             if (eval(this._droptarget) == ziel21a_mc) {
  73.                 _root.ziel21_mc._alpha = 100;
  74.                 pipette1 = 0;
  75.                 pipette2 = 1;
  76.                 _root.pipette1_txt.text = pipette1;
  77.                 _root.pipette2_txt.text = pipette2;
  78.                 _root.pipette3_txt.text = pipette3;
  79.                 _global.pipette2_01();
  80.                 amilorid.stopDrag();
  81.             } else {
  82.                 _root.ziel21_mc._alpha = 30;
  83.             }
  84.         };
  85.     };
  86.     amilorid.onRelease = amilorid.onReleaseOutside=function ():Void {
  87.         delete this.onEnterFrame;
  88.         this.stopDrag();
  89.     };
  90. }
  91. };
  92. // Pipette theophyllin glühen lassen, wenn sie am ziel ist   
  93. _global.pipette2_01 = function() {
  94. _root.ziel1_mc._alpha = 30;
  95. _root.ziel21_mc._alpha = 0;
  96. if (pipette2 == 1) {
  97.     //amilorid.stopDrag();
  98.     theophyllin.onPress = function():Void  {
  99.         if (this.onEnterFrame) {
  100.             delete this.onEnterFrame;
  101.         }
  102.         this.startDrag();
  103.         this.onEnterFrame = function():Void  {
  104.             _root.theophyllin_head._x = this._x;
  105.             _root.theophyllin_head._y = this._y-theophyllin._height+theophyllin_head._height+theophyllin_head._height;
  106.             if (eval(this._droptarget) == ziel1_mc) {
  107.                 _root.ziel1_mc._alpha = 100;
  108.                 _root.theophyllin_head.onRelease = _root.theophyllin_head.onReleaseOutside=function ():Void {;
  109.                 _root.theophyllin_head.gotoAndPlay(2);
  110.                 pipette2 = 2;
  111.                 _root.pipette1_txt.text = pipette1;
  112.                 _root.pipette2_txt.text = pipette2;
  113.                 _root.pipette3_txt.text = pipette3;
  114.                 _root.ziel1_mc._alpha = 0;
  115.                 _root.ziel22_mc._alpha = 30;
  116.                 delete this.onRelease;
  117.                 delete this.onPress;
  118.                 _global.pipette2_02();
  119.             };
  120.         } else {
  121.             _root.ziel1_mc._alpha = 30;
  122.             _root.theophyllin_head.onRelease = _root.theophyllin_head.onReleaseOutside=function ():Void {
  123.                 //nichts tun !;
  124.             };
  125.         }
  126.     };
  127. };
  128. theophyllin.onRelease = theophyllin.onReleaseOutside=function ():Void {
  129.     delete this.onEnterFrame;
  130.     this.stopDrag();
  131. };
  132. }
  133. };
  134. _global.pipette2_02 = function() {
  135. if (pipette2 == 2) {
  136. theophyllin.onPress = function():Void  {
  137.     if (this.onEnterFrame) {
  138.         delete this.onEnterFrame;
  139.     }
  140.     this.startDrag();
  141.     this.onEnterFrame = function():Void  {
  142.         _root.theophyllin_head._x = this._x;
  143.         _root.theophyllin_head._y = this._y-theophyllin._height+theophyllin_head._height+theophyllin_head._height;
  144.         if (eval(this._droptarget) == ziel22a_mc) {
  145.             _root.ziel22_mc._alpha = 100;
  146.             pipette2 = 0;
  147.             pipette3 = 1;
  148.             _root.pipette1_txt.text = pipette1;
  149.             _root.pipette2_txt.text = pipette2;
  150.             _root.pipette3_txt.text = pipette3;
  151.             _global.pipette3_01();
  152.             theophyllin.stopDrag();
  153.         } else {
  154.             _root.ziel22_mc._alpha = 30;
  155.         }
  156.     };
  157. };
  158. theophyllin.onRelease = theophyllin.onReleaseOutside=function ():Void {
  159.     delete this.onEnterFrame;
  160.     this.stopDrag();
  161. };
  162. }
  163. };
  164. // Pipette bumethanid glühen lassen, wenn sie am ziel ist
  165. _global.pipette3_01 = function() {
  166. _root.ziel1_mc._alpha = 30;
  167. _root.ziel22_mc._alpha = 0;
  168. if (pipette3 == 1) {
  169. bumethanid.onPress = function():Void  {
  170.     if (this.onEnterFrame) {
  171.         delete this.onEnterFrame;
  172.     }
  173.     this.startDrag();
  174.     this.onEnterFrame = function():Void  {
  175.         _root.bumethanid_head._x = this._x;
  176.         _root.bumethanid_head._y = this._y-bumethanid._height+bumethanid_head._height+bumethanid_head._height;
  177.         if (eval(this._droptarget) == ziel1_mc) {
  178.             _root.ziel1_mc._alpha = 100;
  179.             pipette3 = 2;
  180.             _root.bumethanid_head.onRelease = _root.bumethanid_head.onReleaseOutside=function ():Void {
  181.                 _root.bumethanid_head.gotoAndPlay(2);
  182.                 _root.pipette1_txt.text = pipette1;
  183.                 _root.pipette2_txt.text = pipette2;
  184.                 _root.pipette3_txt.text = pipette3;
  185.                 _root.ziel1_mc._alpha = 0;
  186.                 _root.ziel23_mc._alpha = 30;
  187.                 delete this.onRelease;
  188.                 delete this.onPress;
  189.                 _global.pipette3_02();
  190.             };
  191.         } else {
  192.             _root.ziel1_mc._alpha = 30;
  193.             _root.bumethanid_head.onRelease = _root.bumethanid_head.onReleaseOutside=function ():Void {
  194.                 //nichts tun !;
  195.             };
  196.         }
  197.     };
  198. };
  199. bumethanid.onRelease = bumethanid.onReleaseOutside=function ():Void {
  200.     delete this.onEnterFrame;
  201.     this.stopDrag();
  202. };
  203. }
  204. };
  205. _global.pipette3_02 = function() {
  206. if (pipette3 == 2) {
  207. bumethanid.onPress = function():Void  {
  208.     if (this.onEnterFrame) {
  209.         delete this.onEnterFrame;
  210.     }
  211.     this.startDrag();
  212.     this.onEnterFrame = function():Void  {
  213.         _root.bumethanid_head._x = this._x;
  214.         _root.bumethanid_head._y = this._y-bumethanid._height+bumethanid_head._height+bumethanid_head._height;
  215.         if (eval(this._droptarget) == ziel23a_mc) {
  216.             _root.ziel23_mc._alpha = 100;
  217.             pipette3 = 0;
  218.             _root.pipette1_txt.text = pipette1;
  219.             _root.pipette2_txt.text = pipette2;
  220.             _root.pipette3_txt.text = pipette3;
  221.             bumethanid.stopDrag();
  222.             _global.ziel_loeschen();
  223.         } else {
  224.             _root.ziel23_mc._alpha = 30;
  225.         }
  226.     };
  227. };
  228. bumethanid.onRelease = bumethanid.onReleaseOutside=function ():Void {
  229.     delete this.onEnterFrame;
  230.     this.stopDrag();
  231. };
  232. }
  233. };
  234. _global.ziel_loeschen = function() {
  235. _root.ziel21_mc._alpha = 0;
  236. _root.ziel22_mc._alpha = 0;
  237. _root.ziel23_mc._alpha = 0;
  238. pipette1 = 0;
  239. pipette2 = 0;
  240. pipette3 = 0;
  241. };

Hier die fla.

Gruß
Micha

Änderung: Habe jetzt noch eine kleine Anzeige eingefügt, ich sehe jetzt, das die Variable umspringt.

Scheine mich gerade selber zu befreien :-) Hurra Wäre nur schön wenn jemand drüberschaut und mir sagt ob ich auf dem richtigen Weg bin oder ob das völliger murks ist. Es bleibt halt das Problem, das die Pipette sich nach erreichen des zweiten Ziels noch weiter bewegen läßt, obwohl ich denke ihr das untersagt zu haben, aber sie hört irgendwie nicht auf mich.
Angehängte Dateien
Dateityp: txt pipette_as_neu.txt (7,3 KB, 0x aufgerufen)
__________________
Ich verwende Adobe Flash CS3 Professional mit Einstellung Flashplayer 9 und AS2
__________________________________________________ ____________________
jeder war bestimmt irgendwann mal ein Newbie ;-)

Geändert von mfeske (23-08-2008 um 10:36 Uhr)
mfeske ist offline   Mit Zitat antworten
Alt 23-08-2008, 14:44   #2 (permalink)
asFlasher
 
Benutzerbild von ksw24
 
Registriert seit: Jul 2006
Beiträge: 1.136
Hallo,

du definierst ja onPress & onRelease 2x. Beim ersten mal "if(pipette1==1)"

schreibst du
ActionScript:
  1. delete this.onRelease;
  2. delete this.onPress;
  3. delete amilorid.onRelease; // <-löschen !!
  4. delete amilorid.onPress; // <-löschen !!
  5.  
  6. delete this.onEnterFrame; // <-einfügen !!
  7.  
da kannst du die beiden makierten einträge löschen, weil doppelt.
Den anderen hinzufügen, denn sonst rufst du ja permanent (onEnterFrame) die Funktion "_global.pipette1_02" auf !
In der Funktion "_global.pipette1_02" musst du natürlich bei erreichen des Ziels genauso verhahren. "delete" die nicht mehr benötigten Events.

Gruß ksw24

Geändert von ksw24 (23-08-2008 um 14:45 Uhr)
ksw24 ist offline   Mit Zitat antworten
Alt 23-08-2008, 15:36   #3 (permalink)
probierer&sucher
 
Registriert seit: Feb 2008
Ort: Berlin
Beiträge: 567
werde es probieren

Hallo ksw24,
werde es mal probieren.
Ich dache nur ich müßte das onRelease und onPress von beiden MC´s runternehmen, von dem Haupt MC und dem angehangenen.
Werds mal probieren, besten Dank für den schnellen Rat.
Gruß
Micha
__________________
Ich verwende Adobe Flash CS3 Professional mit Einstellung Flashplayer 9 und AS2
__________________________________________________ ____________________
jeder war bestimmt irgendwann mal ein Newbie ;-)
mfeske ist offline   Mit Zitat antworten
Alt 23-08-2008, 15:48   #4 (permalink)
asFlasher
 
Benutzerbild von ksw24
 
Registriert seit: Jul 2006
Beiträge: 1.136
Hallo,
ja na dann musst du das aber auch machen, doch du hast "this" und "amilorid" löschen wollen, was das selbe ist, da die funktion innerhalb von "amilorid" stattfindet.

Gruß ksw24

edit:
sorry hab mich verlesen...is halt nich so formatiert wie ich es schreibe, daher habe ich es nicht erkannt.

edit:
dann heißt es aber auch nicht "delete this.onEnterFrame", sondern "delete amilorid.onEnterFrame"

Geändert von ksw24 (23-08-2008 um 15:52 Uhr)
ksw24 ist offline   Mit Zitat antworten
Alt 27-08-2008, 10:33   #5 (permalink)
probierer&sucher
 
Registriert seit: Feb 2008
Ort: Berlin
Beiträge: 567
leider immernoch nicht gelöscht

Hallo alle zusammen,
ich habe jetzt wieder eine ganze Weile rumprobiert, bekomme aber ldier das Drag & Drop vom MC nicht mehr gelöscht.
Wenn ide Pipetten im zweiten Ziel sind sollte die Pipette eigentlich nicht mehr beweglich sein. Das bekomme ich aber leider nicht hin. Wer hat noch einen Tip für mich, wo ich ansetzen muß?
ActionScript:
  1. stop();
  2. //init
  3. _root.ziel1_mc._alpha = 30;
  4. _root.ziel21_mc._alpha = 0;
  5. _root.ziel22_mc._alpha = 0;
  6. _root.ziel23_mc._alpha = 0;
  7. pipette1 = 1;
  8. pipette2 = 0;
  9. pipette3 = 0;
  10.  
  11. _root.pipette1_txt.text = pipette1;
  12. _root.pipette2_txt.text = pipette2;
  13. _root.pipette3_txt.text = pipette3;
  14. //dank an ksw24
  15. // Pipette amilorid glühen lassen, wenn sie am ziel ist
  16. if (pipette1 == 1) {
  17.     amilorid.onPress = function():Void  {
  18.         if (this.onEnterFrame) {
  19.             delete this.onEnterFrame;
  20.         }
  21.         this.startDrag();
  22.         this.onEnterFrame = function():Void  {
  23.             _root.amilorid_head._x = this._x;
  24.             _root.amilorid_head._y = this._y-amilorid._height+amilorid_head._height+amilorid_head._height;
  25.             if (eval(this._droptarget) == ziel1_mc) {
  26.                 _root.ziel1_mc._alpha = 100;
  27.  
  28.                 _root.amilorid_head.onRelease = _root.amilorid_head.onReleaseOutside=function ():Void {;
  29.                 _root.amilorid_head.gotoAndPlay(2);
  30.                 pipette1 = 2;
  31.                 _root.pipette1_txt.text = pipette1;
  32.                 _root.pipette2_txt.text = pipette2;
  33.                 _root.pipette3_txt.text = pipette3;
  34.                 _root.ziel1_mc._alpha = 0;
  35.                 _root.ziel21_mc._alpha = 30;
  36.                 delete this.onRelease;
  37.                 delete this.onPress;
  38.                 delete amilorid.onRelease;
  39.                 delete amilorid.onPress;
  40.                 _global.pipette1_02();
  41.             };
  42.         } else {
  43.             _root.ziel1_mc._alpha = 30;
  44.             _root.amilorid_head.onRelease = _root.amilorid_head.onReleaseOutside=function ():Void {
  45.                 //nichts tun !;
  46.             };
  47.         }
  48.     };
  49. };
  50. amilorid.onRelease = amilorid.onReleaseOutside=function ():Void {
  51.     delete this.onEnterFrame;
  52.     this.stopDrag();
  53. };
  54. }
  55. _global.pipette1_02 = function() {
  56. if (pipette1 == 2) {
  57.     amilorid.onPress = function():Void  {
  58.         if (this.onEnterFrame) {
  59.             delete this.onEnterFrame;
  60.         }
  61.         this.startDrag();
  62.         this.onEnterFrame = function():Void  {
  63.             _root.amilorid_head._x = this._x;
  64.             _root.amilorid_head._y = this._y-amilorid._height+amilorid_head._height+amilorid_head._height;
  65.             if (eval(this._droptarget) == ziel21a_mc) {
  66.                 _root.ziel21_mc._alpha = 100;
  67.                 pipette1 = 0;
  68.                 pipette2 = 1;
  69.                 _root.pipette1_txt.text = pipette1;
  70.                 _root.pipette2_txt.text = pipette2;
  71.                 _root.pipette3_txt.text = pipette3;
  72.                 _global.pipette2_01();
  73.                 amilorid.stopDrag();
  74.             } else {
  75.                 _root.ziel21_mc._alpha = 30;
  76.             }
  77.         };
  78.     };
  79.     amilorid.onRelease = amilorid.onReleaseOutside=function ():Void {
  80.         delete this.onEnterFrame;
  81.         this.stopDrag();
  82.     };
  83. }
  84. };
  85. // Pipette theophyllin glühen lassen, wenn sie am ziel ist   
  86. _global.pipette2_01 = function() {
  87. _root.ziel1_mc._alpha = 30;
  88. _root.ziel21_mc._alpha = 0;
  89. if (pipette2 == 1) {
  90.     //amilorid.stopDrag();
  91.     theophyllin.onPress = function():Void  {
  92.         if (this.onEnterFrame) {
  93.             delete this.onEnterFrame;
  94.         }
  95.         this.startDrag();
  96.         this.onEnterFrame = function():Void  {
  97.             _root.theophyllin_head._x = this._x;
  98.             _root.theophyllin_head._y = this._y-theophyllin._height+theophyllin_head._height+theophyllin_head._height;
  99.             if (eval(this._droptarget) == ziel1_mc) {
  100.                 _root.ziel1_mc._alpha = 100;
  101.                 _root.theophyllin_head.onRelease = _root.theophyllin_head.onReleaseOutside=function ():Void {;
  102.                 _root.theophyllin_head.gotoAndPlay(2);
  103.                 pipette2 = 2;
  104.                 _root.pipette1_txt.text = pipette1;
  105.                 _root.pipette2_txt.text = pipette2;
  106.                 _root.pipette3_txt.text = pipette3;
  107.                 _root.ziel1_mc._alpha = 0;
  108.                 _root.ziel22_mc._alpha = 30;
  109.                 delete this.onRelease;
  110.                 delete this.onPress;
  111.                 _global.pipette2_02();
  112.             };
  113.         } else {
  114.             _root.ziel1_mc._alpha = 30;
  115.             _root.theophyllin_head.onRelease = _root.theophyllin_head.onReleaseOutside=function ():Void {
  116.                 //nichts tun !;
  117.             };
  118.         }
  119.     };
  120. };
  121. theophyllin.onRelease = theophyllin.onReleaseOutside=function ():Void {
  122.     delete this.onEnterFrame;
  123.     this.stopDrag();
  124. };
  125. }
  126. };
  127. _global.pipette2_02 = function() {
  128. if (pipette2 == 2) {
  129. theophyllin.onPress = function():Void  {
  130.     if (this.onEnterFrame) {
  131.         delete this.onEnterFrame;
  132.     }
  133.     this.startDrag();
  134.     this.onEnterFrame = function():Void  {
  135.         _root.theophyllin_head._x = this._x;
  136.         _root.theophyllin_head._y = this._y-theophyllin._height+theophyllin_head._height+theophyllin_head._height;
  137.         if (eval(this._droptarget) == ziel22a_mc) {
  138.             _root.ziel22_mc._alpha = 100;
  139.             pipette2 = 0;
  140.             pipette3 = 1;
  141.             _root.pipette1_txt.text = pipette1;
  142.             _root.pipette2_txt.text = pipette2;
  143.             _root.pipette3_txt.text = pipette3;
  144.             _global.pipette3_01();
  145.             theophyllin.stopDrag();
  146.         } else {
  147.             _root.ziel22_mc._alpha = 30;
  148.         }
  149.     };
  150. };
  151. theophyllin.onRelease = theophyllin.onReleaseOutside=function ():Void {
  152.     delete this.onEnterFrame;
  153.     this.stopDrag();
  154. };
  155. }
  156. };
  157. // Pipette bumethanid glühen lassen, wenn sie am ziel ist
  158. _global.pipette3_01 = function() {
  159. _root.ziel1_mc._alpha = 30;
  160. _root.ziel22_mc._alpha = 0;
  161. if (pipette3 == 1) {
  162. bumethanid.onPress = function():Void  {
  163.     if (this.onEnterFrame) {
  164.         delete this.onEnterFrame;
  165.     }
  166.     this.startDrag();
  167.     this.onEnterFrame = function():Void  {
  168.         _root.bumethanid_head._x = this._x;
  169.         _root.bumethanid_head._y = this._y-bumethanid._height+bumethanid_head._height+bumethanid_head._height;
  170.         if (eval(this._droptarget) == ziel1_mc) {
  171.             _root.ziel1_mc._alpha = 100;
  172.             pipette3 = 2;
  173.             _root.bumethanid_head.onRelease = _root.bumethanid_head.onReleaseOutside=function ():Void {
  174.                 _root.bumethanid_head.gotoAndPlay(2);
  175.                 _root.pipette1_txt.text = pipette1;
  176.                 _root.pipette2_txt.text = pipette2;
  177.                 _root.pipette3_txt.text = pipette3;
  178.                 _root.ziel1_mc._alpha = 0;
  179.                 _root.ziel23_mc._alpha = 30;
  180.                 delete this.onRelease;
  181.                 delete this.onPress;
  182.                 _global.pipette3_02();
  183.             };
  184.         } else {
  185.             _root.ziel1_mc._alpha = 30;
  186.             _root.bumethanid_head.onRelease = _root.bumethanid_head.onReleaseOutside=function ():Void {
  187.                 //nichts tun !;
  188.             };
  189.         }
  190.     };
  191. };
  192. bumethanid.onRelease = bumethanid.onReleaseOutside=function ():Void {
  193.     delete this.onEnterFrame;
  194.     this.stopDrag();
  195. };
  196. }
  197. };
  198. _global.pipette3_02 = function() {
  199. if (pipette3 == 2) {
  200. bumethanid.onPress = function():Void  {
  201.     if (this.onEnterFrame) {
  202.         delete this.onEnterFrame;
  203.     }
  204.     this.startDrag();
  205.     this.onEnterFrame = function():Void  {
  206.         _root.bumethanid_head._x = this._x;
  207.         _root.bumethanid_head._y = this._y-bumethanid._height+bumethanid_head._height+bumethanid_head._height;
  208.         if (eval(this._droptarget) == ziel23a_mc) {
  209.             _root.ziel23_mc._alpha = 100;
  210.             pipette3 = 0;
  211.             _root.pipette1_txt.text = pipette1;
  212.             _root.pipette2_txt.text = pipette2;
  213.             _root.pipette3_txt.text = pipette3;
  214.             bumethanid.stopDrag();
  215.             _global.ziel_loeschen();
  216.         } else {
  217.             _root.ziel23_mc._alpha = 30;
  218.         }
  219.     };
  220. };
  221. bumethanid.onRelease = bumethanid.onReleaseOutside=function ():Void {
  222.     delete this.onEnterFrame;
  223.     this.stopDrag();
  224. };
  225. }
  226. };
  227. _global.ziel_loeschen = function() {
  228. _root.ziel21_mc._alpha = 0;
  229. _root.ziel22_mc._alpha = 0;
  230. _root.ziel23_mc._alpha = 0;
  231. pipette1 = 0;
  232. pipette2 = 0;
  233. pipette3 = 0;
  234. };

Gruß
Micha
__________________
Ich verwende Adobe Flash CS3 Professional mit Einstellung Flashplayer 9 und AS2
__________________________________________________ ____________________
jeder war bestimmt irgendwann mal ein Newbie ;-)
mfeske 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 03:31 Uhr.

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


Copyright ©1999 – 2012 Marc Thiele