Forum FAQForum FAQSearchSearch MemberlistMemberlist Forum ignore listForum ignore list RegisterRegister ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in
Flash: TextFormat() i embedFonts - problem!

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Flash
View previous topic :: View next topic  
Author Message
nemogirl



Joined: 27 Oct 2004
Posts: 386
Location: istra

PostPosted: 01.02.2006 12:52    Post subject: Flash: TextFormat() i embedFonts - problem! Add user to your forum ignore list Reply with quote

uh, problem je relativno kompleksan..

imam jedan mc u kojem je jedan dynamic textField u koji ucitavam tekst preko asp-a i access baze. taj mc u flashu dupliciram x puta kroz for petlju i pozicioniram ih jedan ispod drugog. sve super radi. Smile
e sad, ja hocu promjenit font i velicinu jednom textFieldu unutar jednog mc-a i to radim ovako:

najprije kreiram van petlje:

formaty=new TextFormat();
formaty.size=15;
formaty.font="Arial";

pa unutar petlje dodijelim:

mc1.tekst_i.setNewTextFormat(formaty);
mc1.tekst_v.embedFonts=true;
mc1.tekst_i.text="jupi";


problem je u embedanju fonta! inicijalno taj textField ima embedan jedan font, a sad kad mu promijenim font - kao da ne embeda font - ne prikazuje mi tekst uopce. Confused
gdje bi trebala pozicionirat kod za embedanje :
mc1.tekst_v.embedFonts=true;
Question Question
btw, tekst_i je instance name a tekst_v variable textFielda.

(ako maknem 'formaty.font="Arial";' onda mi promjena velicine radi)

please help anyone! Crying or Very sad
Back to top
View user's profile Send private message
nemogirl



Joined: 27 Oct 2004
Posts: 386
Location: istra

PostPosted: 01.02.2006 16:14    Post subject: Add user to your forum ignore list Reply with quote

evo ako nekoga zanima - rijesila sam problem:

font treba icludat u library i tamo mu definirat linkage kao "export for AS", i postavit identifier (sto je ustvari nesto kao naziv varijable) npr. nekiFont i onda:

formaty=new TextFormat();
formaty.font="nekiFont";

to radi, ja hepi.. Very Happy

ali sad mi se opet ne prikazuju čćžšđ koje izvlacim iz baze pod kodnim imenima (&#263)..
tj. taj textField mi vise ne generira html i kad mu postavim .html=true;...
problema nikad kraja s tim flashom! Brick wall
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Flash All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group