Post Reply  Post Thread 
loading text
Author Message
KRALJ
Novi korisnik
*


Posts: 5
Group: Registered
Joined: Jul 2007
Status: Offline
Reputation: 0
Post: #1
loading text

Bok ljudi.

Novi sam forumaš.

Čestitam svim pionorima flasha u Hrvatskoj.
Super je da postoji forum na kojemu možemo dijeliti probleme vezane uz flash.

Imam problem kako da učitam vanjski tekst u svoj movie clip. Probao sam na sto načina sa sto tutorijala i knjigom ali ne ide.

Ako ima itko savjet neka se javi.

Hvala

12-07-2007 07:42 PM
Visit this user's website Find all posts by this user Quote this message in a reply
hamferus
Forumaš
***


Posts: 352
Group: Registered
Joined: Jun 2006
Status: Offline
Reputation: 8
Post: #2
RE: loading text

Dobrodošao!

Dal ti je polje dynamic? Jer ako je moraš embedat font(properties panel/embed i označi velika, mala, brojeve i znakove)

Evo ovo ti je iz flash helpa:

Code:
this.createTextField("my_txt", 10, 10, 10, 320, 100);
my_txt.autoSize = "left";
my_txt.border = true;
my_txt.multiline = true;
my_txt.wordWrap = true;

var lorem_lv:LoadVars = new LoadVars();
lorem_lv.onData = function (src:String):Void {
    if (src != undefined) {
        my_txt.text = src;
    } else {
        my_txt.text = "Unable to load external file.";
    }
}
lorem_lv.load("nekiTekst.txt");


my_txt ti je instance name tekstualnog polja koji je u ovom slučaju napravljen AS-om.

Ako imaš tekstualno polje na stageu obriši ovaj dio

Code:
this.createTextField("my_txt", 10, 10, 10, 320, 100);
my_txt.autoSize = "left";
my_txt.border = true;
my_txt.multiline = true;
my_txt.wordWrap = true;


i daj svom polju instance name my_txt. Ako imaš više redova u tekstu koji loadaš onda u properties panelu promijeni "single line" u "multi line" i nemoj zaboravit embedat font.

Ak dalje nejde uploadaj txt i fla file pa bum pogledo.


PHOTO - http://www.hamferus.com
VIDEO - http://www.metacafe.com/f/channels/hamferus/
RC WORLD - http://rcfanatic.blogspot.com
FLASH TUTORIJALI - http://blog.hamferus.com
12-07-2007 09:20 PM
Visit this user's website Find all posts by this user Quote this message in a reply
KRALJ
Novi korisnik
*


Posts: 5
Group: Registered
Joined: Jul 2007
Status: Offline
Reputation: 0
Post: #3
RE: loading text

Ćini se da ce to biti to.

Kada probam, javim ti.

Hvala

13-07-2007 07:55 AM
Visit this user's website Find all posts by this user Quote this message in a reply
oriobilly
Redoviti posjetitelj
**


Posts: 250
Group: Registered
Joined: Jan 2007
Status: Offline
Reputation: 5
Post: #4
RE: loading text

BILO BI DOBRO DA JAVIŠ,AKO SI USPIO!!!

Oprostite na velikim slovima ,ali ako netko ima problem postovi su u redu dok se ne riješi !!!


Divno je biti nekome nešto !!!
06-08-2007 05:20 AM
Visit this user's website Find all posts by this user Quote this message in a reply
KRALJ
Novi korisnik
*


Posts: 5
Group: Registered
Joined: Jul 2007
Status: Offline
Reputation: 0
Post: #5
RE: loading text

Ma nisam jos uspio. Na moru sam. Za tjedan dana se vraćam poslu.

Javim se kada budem nešto napravio

11-08-2007 11:25 AM
Visit this user's website Find all posts by this user Quote this message in a reply
KRALJ
Novi korisnik
*


Posts: 5
Group: Registered
Joined: Jul 2007
Status: Offline
Reputation: 0
Post: #6
RE: loading text

Ej.
Loading text radi kao beba.

Hvala

25-08-2007 11:20 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump: