Technologia Flash, czyli animacja na potrzeby stron WWW to świat daleko odbiegły od zwykłego programowania i kodu. Zapytaj o pomoc i podziel się z nami Twoimi problemami z zakresu Flasha.
Kiedy tworze pole tekstowe dynamic wew. jakiegos elemetu to nie dziala.
Wysztko jest ok kiedy utworzone jest normalnie (nie wew. elemetu).
Odwoluje sie do pliku za pmoca
Czy jest mozliwe aby zadzialal dynamic text wew. elemetu ??
Jak to zrobic ?
Domyslnie okno z dynamiczynmym tekestem tworzy sie w kolorze bialym.
Jak zminic kolor ?
var danePath= String = "text.txt";
var pole = String;
var zmien:LoadVars = new LoadVars();
zmien.onLoad= function (succses:Boolean)
{
if (succses){
pole=this.dane;
gotoAndStop(2);}
};
zmien.load(danePath);
this.stop();
druga klatka
(Nie wiem czy dobrze rozumiem. W tym miejscu podaje "sciezke" do pola tekstowego gdzie jeste wyswietlana zawartosc pliku text.txt ?)
var danePath = "text.txt";
var pole;
var zmien = new LoadVars();
zmien.onLoad = function(succses) {
if (succses) {
pole = this.dane;
gotoAndStop(2);
}
};
zmien.load(danePath);
this.stop();
var danePath = "text.txt";
var pole;
var zmien = new LoadVars();
zmien.onLoad = function(succses) {
if (succses) {
pole = this.dane;
gotoAndStop(2);
}
};
zmien.load(danePath);
this.stop();
var danePath = "text.txt";
var pole;
var zmien = new LoadVars();
zmien.onLoad = function(succses) {
if (succses) {
pole = this.dane;
trace(this.dane)
gotoAndStop(2);
}
};
zmien.load(danePath);
this.stop();