Zurück   Flashforum > Flash > ActionScript > ActionScript 1

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 10-05-2007, 13:54   #1 (permalink)
Neuer User
 
Registriert seit: Dec 2005
Beiträge: 27
Probleme mit Syntax bei Variablen in Instanzpfaden

Hey Leute,
kann mir jemand sagen, was ich falsch mache?
gerne auch per ICQ: 10 13 97 434

Code:
for (i=1; i<=6; i++) {
	this.createEmptyMovieClip("clip"+i, this.getNextHighestDepth());
	this["clip"+i].createEmptyMovieClip("bg"+i, this.getNextHighestDepth());
	this["clip"+i].createEmptyMovieClip("holder"+i, this.getNextHighestDepth());
	this["clip"+i+".holder"+i].loadMovie(path+i+extension);
	this["clip"+i+".holder"+i]._x = width / -2;
	this["clip"+i+".holder"+i]._y = height / -2;
	this["clip"+i]._x = 0;
	this["clip"+i]._y = i * width;
	with ( ["clip"+i] )
	{
		lineStyle( 1, 0x000000, 100 );
		moveTo( width/-2-.5, width/-2-.5 );
		lineTo( width/-2-.5, width/2+1 ); 
		lineTo( width/2+1, width/2+1 );
		lineTo( width/2+1, width/-2-.5 );
		lineTo( width/-2-.5, width/-2-.5 );
	} //end with
}//end for
ZOOM0815 ist offline   Mit Zitat antworten
Alt 10-05-2007, 14:05   #2 (permalink)
Der Wunderhund
 
Benutzerbild von gaspode
 
Registriert seit: Jun 2002
Ort: Hattingen
Beiträge: 10.515
So gehts:
PHP-Code:
this["clip"+i]["holder"+i
gruß, gaspode
gaspode ist offline   Mit Zitat antworten
Alt 10-05-2007, 14:10   #3 (permalink)
Neuer User
 
Registriert seit: Dec 2005
Beiträge: 27
und wie ist es mit

Code:
createEmptyMovieClip("holder"+i, this.getNextHighestDepth());

und

with ( ["clip"+i] )
ist das so richtig? Es will nämlich nicht
ZOOM0815 ist offline   Mit Zitat antworten
Alt 10-05-2007, 14:27   #4 (permalink)
Der Wunderhund
 
Benutzerbild von gaspode
 
Registriert seit: Jun 2002
Ort: Hattingen
Beiträge: 10.515
Hast Du das schonmal versucht?

PHP-Code:
with (this["clip"+i]) 
gruß, gaspode
gaspode 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:53 Uhr.

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


Copyright ©1999 – 2012 Marc Thiele