Zurück   Flashforum > Flash > ActionScript > ActionScript 1

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 12-01-2006, 13:07   #1 (permalink)
Neuer User
 
Registriert seit: Sep 2001
Beiträge: 18
String / Text auslesen & MC ausfaden

Hallo, vielleicht passt der Thread hier besser als im MX Forum. Ich arbeite mit dem TextSpace Flashfile von levitated.com und möchte, das nach Auswahl eines der generierten Wörter des Strings das auf der _root Ebene positionierte "Logo" Objekt ausfadet. Wie kann ich bestimmen, mit welchem Wert das dynamische Textfeld gerade "aufgeladen" ist? Die schwierige entscheidene Stelle ist für mich wahrscheinlich:

if (this.spaceWord == "eins") {
this.logo._alpha -= 5;
}

Hier der Code, vielleicht kann mir jemand helfen? Danke schon einmal im voraus!



PHP-Code:
// register root as environment 
Object.environment this

// create camera object 
this.cam = {x:0y:0z:-1800dx:0dy:0dz:-700}; 

// set environmental constants 
this.fl 1000

// create 'space' to which all words will be attached 
this.createEmptyMovieClip("space",1); 
// center 'space' on the stage 
space._x=450
space._y=237

// a string of words related to the wind 
this.somewords "eins + zwei + drei + vier"
// convert the string of words into an array of words 
this.wordList = new Array(); 
this.wordList this.somewords.split("+"); 


// create one instance for each word in the list 
for (n=0;n<this.wordList.length;n++) { 
    
// pick a word from the list 
    
var word Object.environment.wordList[n]; 
    var 
random(600)-300
    var 
random(400)-169
    var 
random(Object.environment.fl*2)-Object.environment.fl
     
    
// create an instance of the SpaceWord object 
    
nombre "word"+String(depth++); 
    
initialization = {txtwordwordxxyyzz}; 
    
space.attachMovie("spaceWord"nombredepthinitialization); 


    if (
this.spaceWord == "eins") { 
      
this.logo._alpha -= 5






this.onEnterFrame = function() { 
    
this.cam.dz+=12.0
    
// move the camera to its destination 
    
this.cam.x+=(this.cam.dx-this.cam.x)/20
    
this.cam.y+=(this.cam.dy-this.cam.y)/20
    
this.cam.z+=(this.cam.dz-this.cam.z)/150
     
     






stop(); 
felixatboros 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 08:43 Uhr.

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


Copyright ©1999 – 2012 Marc Thiele