-
does anyone know if you can change the font of a dynamic txt box with AS, i know this is the wrong forum but im kinda franticaly rushed here.. : (
thx
-
Rushed or not, it really should go into the AS forum or even general help. Allowing rushed projects/questions will only set a precedent and then it'll be harder to clamp down on in the future.
The lounge has been relatively free of help posts in the last few months and I'm sure it's easier for people looking for answers when a thread has been answered and doesn't drop off the first page in a day as it would with the lounge.
-
Senior Member
moved here. In flash 5 the simple answer is no, sorry, change them to objects
-
lmfao, words from the wise huh, well cheers dad, i'll try and tell my clients to behave on the time schedules next time, pfffft...
sorry wanna mod
-
that wasnt to you love
_
[Edited by $h0ckW@vE on 03-19-2002 at 09:38 AM]
-
I think you can change the font if you use html-formatted text. Just make a function to replace the 'Font face'-tag.
If I remember correctly you have to embed the font you're going to change to, or else nothing will show up.
HC
-
thats great, have you got a link or anything? or do you know where i can find out more?
-
Well the basic idea is that something like
myvariable=<FONT FACE='Arial'>the text I want to show</FONT>
can be used.
If you have the text to display and keep the fontinfo in a variable you can do something like this:
font="Arial";
mytext="the text I want to show";
myvariable="<FONT FACE='"+font+"'>"+mytext+"</FONT>";
This makes in necessary to keep an extra variable for each dynamic textbox.
If you don't want to do that you can use 'String.indexOf' to find the font-tag in the variable and then replace with your new font-info there.
Hope this helps
HC
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|