Zurück   Flashforum > Flash > ActionScript > ActionScript 1

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 10-08-2005, 00:53   #1 (permalink)
05
 
Benutzerbild von gorgeous
 
Registriert seit: Nov 2004
Beiträge: 346
aktion ausführen wenn frame = 1 ist

hallo,

ich möchte das die aktionen erst dann ausgeführt werden wenn der frame(von main.main2) = 1 ist.
currentframe funktioniert da aber irgendwie für mich nicht:

ActionScript:
  1. _root.main.main2.btn1.onRelease = function() {
  2.     _root.main.main2.btn1.vor();
  3. _root.main.main2.btn2.back();
  4.     _root.main.move(bst-this._x, hst-this._y, 8);

jemand eine idee?

viele grüße,
gorgeous
__________________
:)
gorgeous ist offline   Mit Zitat antworten
Alt 10-08-2005, 01:01   #2 (permalink)
Neuer User
 
Benutzerbild von Xeef
 
Registriert seit: Sep 2004
Ort: Spain/Ibiza
Beiträge: 942
ActionScript:
  1. [color=#000084]//wird ausgefurhr wen es [/color][color=#000084]//[/color]
  2. [color=#000084]1. aufgerufen wird [/color][color=#000084]//2. und [/color][color=#000000]main.main2 gleichzeitig auf frame 1 ist[/color]
  3. [color=#000084]_root[/color].main.main2.btn1.[color=#000084]onRelease[/color] = [color=#000084]function[/color]() {
  4. if (main.main2._currentframe==1){
  5. [color=#000084]_root[/color].main.main2.btn1.vor();
  6. [color=#000084]_root[/color].main.main2.btn2.back();
  7. [color=#000084]_root[/color].main.move(bst-[color=#000084]this[/color].[color=#000084]_x[/color], hst-[color=#000084]this[/color].[color=#000084]_y[/color], 8);
  8. }}
oder (bin mir nicht sicher was du wilst)
main.main2.ISFrame1=true
das auf frame 1 von
ActionScript:
  1. [color=#000084]//wird ausgefurhr wen es [/color]
  2. [color=#000084]//1. aufgerufen wird [/color]
  3. [color=#000084]//2. und [/color][color=#000000]main.main2 auf frame 1 WAR oder IST[/color]
  4. [color=#000084]_root[/color].main.main2.btn1.[color=#000084]onRelease[/color] = [color=#000084]function[/color]() {
  5. if (main.main2._currentframe==1){
  6. [color=#000084]_root[/color].main.main2.btn1.vor();
  7. [color=#000084]_root[/color].main.main2.btn2.back();
  8. [color=#000084]_root[/color].main.move(bst-[color=#000084]this[/color].[color=#000084]_x[/color], hst-[color=#000084]this[/color].[color=#000084]_y[/color], 8);
  9. }}
oderauf frame 1
ActionScript:
  1. [color=#000084][color=#000084]//wird ausgefurhr wen es [/color][color=#000000]1. main.main2 auf frame 1 ist [/color][/color]
  2. [color=#000084]_root[/color].main.main2.btn1.vor();
  3. [color=#000084]_root[/color].main.main2.btn2.back();
  4. [color=#000084]_root[/color].main.move(bst-[color=#000084]this[/color].[color=#000084]_x[/color], hst-[color=#000084]this[/color].[color=#000084]_y[/color], 8);



Hmmmm

der editor schein esnich wirklich zu mogen wen ich hier copy&paste
Grrrrrrr
__________________
Languages : (in the order of knowledge/preference)
Read: Flash AS, PHP, JS, Html, DHtml, Basic, C++, DOS, 3DMaxScript, English, Deutsch, Magyar, XML, Pascal, VB, Spanish
Write: Flash AS, Basic, PHP, JS, DHtml, Html, ..., C++, ...., ..., English, ..., ..., ..., ...., Deutsch, ..., Magyar

wen du mein deutsch nicht magst whele eine andere sparache von den obrigen ;)

Geändert von Xeef (10-08-2005 um 01:04 Uhr)
Xeef ist offline   Mit Zitat antworten
Alt 10-08-2005, 01:05   #3 (permalink)
Neuer User
 
Benutzerbild von Xeef
 
Registriert seit: Sep 2004
Ort: Spain/Ibiza
Beiträge: 942
ActionScript:
  1. //wird ausgefurhr wen es
  2. //1. aufgerufen wird
  3. //2. und main.main2 gleichzeitig auf frame 1 ist
  4. _root.main.main2.btn1.onRelease = function() {
  5. if (main.main2._currentframe==1){
  6. _root.main.main2.btn1.vor();
  7. _root.main.main2.btn2.back();
  8. _root.main.move(bst-this._x, hst-this._y, 8);
  9. }}

oder (bin mir nicht sicher was du wilst)
main.main2.ISFrame1=true
das auf frame 1 von

ActionScript:
  1. //wird ausgefurhr wen es
  2. //1. aufgerufen wird
  3. //2. und main.main2 auf frame 1 WAR oder IST
  4. _root.main.main2.btn1.onRelease = function() {
  5. if (main.main2._currentframe==1){
  6. _root.main.main2.btn1.vor();
  7. _root.main.main2.btn2.back();
  8. _root.main.move(bst-this._x, hst-this._y, 8);
  9. }}
oderauf frame 1

ActionScript:
  1. //wird ausgefurhr wen es 1. main.main2 auf frame 1 ist
  2. _root.main.main2.btn1.vor();
  3. _root.main.main2.btn2.back();
  4. _root.main.move(bst-this._x, hst-this._y, 8);
__________________
Languages : (in the order of knowledge/preference)
Read: Flash AS, PHP, JS, Html, DHtml, Basic, C++, DOS, 3DMaxScript, English, Deutsch, Magyar, XML, Pascal, VB, Spanish
Write: Flash AS, Basic, PHP, JS, DHtml, Html, ..., C++, ...., ..., English, ..., ..., ..., ...., Deutsch, ..., Magyar

wen du mein deutsch nicht magst whele eine andere sparache von den obrigen ;)
Xeef ist offline   Mit Zitat antworten
Alt 10-08-2005, 01:44   #4 (permalink)
05
 
Benutzerbild von gorgeous
 
Registriert seit: Nov 2004
Beiträge: 346
schade, funktioniert leider nicht so wie ich mir das gedacht hatte!

ich suche quasi ein methode das erst meine animation zuende gespielt wird und dann erst meine aktionen ausgeführt werden.

grüße,
gorgeous
__________________
:)
gorgeous 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 06:31 Uhr.

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


Copyright ©1999 – 2012 Marc Thiele