Zurück   Flashforum > Flash > ActionScript > ActionScript 1

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 16-06-2005, 16:01   #1 (permalink)
Neuer User
 
Registriert seit: Jun 2004
Beiträge: 12
lmc_tween_as1 & txt ani

Hallo zusammen,

Ich werd hier noch irre. Ich bekomme die txt Ani nicht so hin das es bei jedem act. tween end die funktion trackTextWriteOn aufruft und die aktuelle var (node) einfügt und mit dem nächsten tween vortfährt.

#include "lmc_tween_as1.as"

function makeTable(xmlNode, targetMc, mcName, depth) {
var myTable = targetMc.createEmptyMovieClip(mcName, depth);
var tableLength = xmlNode.length;
for (var i = 0; i<tableLength; i++) {
var myRow = myTable.createEmptyMovieClip("row"+i+"_mc", i);
myRow._y = (i*22)+30;
myRow._alpha = 0;
var myBackground = myRow.createEmptyMovieClip("background_mc", 0);
myBackground.useHandCursor = false;
myBackground.onRollOver = rowRollOver;
myBackground.onRollOut = rowRollOut;
myBackground.beginFill(0xD9C9B6, 10);
myBackground.drawRect(0, 0, 350, 22);
////////////////////////////////////////////////////////////////////
node = xmlNode[i].firstChild.nodeValue;
/*
myRow.createTextField("qty_tf", 2, 230, 0, 60, 20);
myRow.createTextField("price_tf", 3, 300, 0, 30, 20);
myRow.attachMovie("disk", "disk", 5, {_x:340, _y:1});
myRow.name_tf.selectable = myRow.qty_tf.selectable=myRow.down_tf.selectable=m yRow.price_tf.selectable=false;
myRow.qty_tf.text = xmlNode[i].attributes.qty;
myRow.price_tf.text = xmlNode[i].attributes.price;
myRow.qty_tf.embedFonts = true;
myRow.price_tf.embedFonts = true;
myRow.qty_tf.setTextFormat(myTableFormat);
myRow.price_tf.setTextFormat(myTableFormat);
////////////////////////////////////////////////////////////////////
*/
myRow.urlLink = xmlNode[i].attributes.url;
myRow.disk.onPress = diskPress;
myRow.disk.onRollOver = diskRollOver;
myRow.disk.onRollOut = diskRollOut;
myRow.tween(["_alpha", "_y"], [100, i*22], .5, "EaseOutExpo", i*.5);
myRow.trackTextWriteOn("textel", "<font face='Verdana' size='12' color='#000000'>"+node+"</font>", 0, 0);
}
}

gruss

brian
Brian2k ist offline   Mit Zitat antworten
Alt 16-06-2005, 16:30   #2 (permalink)
Farbe ist Luxus
 
Benutzerbild von ludabruda
 
Registriert seit: May 2003
Ort: Köln
Beiträge: 2.405
Hi,

das ist auch wenig verwunderlich, da der MC myRow die Funktion trackTextWriteOn nicht kennt. Oder müssen wir davon ausgehen, dass du einen entsprechenden prototype in deinem Include lmc_tween_as1.as hast?

Oder wird der Code bis dorthin gar nicht ausgeführt?

Grüße
Sascha

PS: und bitte den Code in die entsprechenden Tags setzen, sonst isses so unübersichtlich
__________________
12:15, press return
ludabruda ist offline   Mit Zitat antworten
Alt 16-06-2005, 16:31   #3 (permalink)
Neuer User
 
Registriert seit: Jun 2004
Beiträge: 12
Habs

myRow.onEnterFrame = function() {
if (this._alpha == 100) {
this.trackTextWriteOn("textel", "<font face='Verdana' size='12' color='#000000'>"+this.node+"</font>", 0, 0);
delete this.onEnterFrame();
}
};




danke
Brian2k 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 21:04 Uhr.

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


Copyright ©1999 – 2012 Marc Thiele