Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 11-25-2002, 10:17 AM   #1
Billy T
Oops I did it again
 
Billy T's Avatar
 
Join Date: Oct 2001
Location: Melbourne
Posts: 8,579
Default html text with custom font

Does anybody know how I can load in html formatted text and display it with a custom font?

I don't think its possible but would be happy to be proved wrong...

cheers
__________________
Billy
Online Galleries
iPhone Safety App - iStaySafe
Free Flash Video Tutorials
Photo Website Template

Don't email or PM me questions...
Billy T is offline   Reply With Quote
Old 11-25-2002, 11:03 AM   #2
farafiro
Addicted To FLASH
 
farafiro's Avatar
 
Join Date: Dec 2001
Location: Egyptian in UAE
Posts: 12,436
Send a message via MSN to farafiro Send a message via Yahoo to farafiro
Default

what u mean exactly?? u wanna load an HTML pre-formated text in a flash text box or what??
__________________
‚€* GOD Is Near ‚€*
Questions Don't PM for Questions . Thanks
An eye for an eye, make the whole world blind
_____________________________________________GHANDI
farafiro is offline   Reply With Quote
Old 11-25-2002, 11:56 AM   #3
Billy T
Oops I did it again
 
Billy T's Avatar
 
Join Date: Oct 2001
Location: Melbourne
Posts: 8,579
Default

yep that's right - but I don't want to use device fonts...
__________________
Billy
Online Galleries
iPhone Safety App - iStaySafe
Free Flash Video Tutorials
Photo Website Template

Don't email or PM me questions...
Billy T is offline   Reply With Quote
Old 11-25-2002, 02:43 PM   #4
vosgien
member
 
Join Date: Dec 2001
Location: France
Posts: 923
Default

Hi Billy,
You can take a look at this thread, which basically concurs with your opinion that it cannot be done ( you rate a mention or two here man)here
Something I have been playing around with, but not tested properly yet is this code :

loadVarsText = new loadVars();
loadVarsText.load("privacy.txt");
//assign a function which fires when the data is loaded:
loadVarsText.onLoad = function (success){
if (success){
scroller.html = true;
scroller.htmlText = this.var1


}
}

basically, this formats the text in html after the text formatting - make sense ? so you don't lose the font, colour etc - is that what you're looking for ?

Vosgien
vosgien is offline   Reply With Quote
Old 11-25-2002, 03:05 PM   #5
Billy T
Oops I did it again
 
Billy T's Avatar
 
Join Date: Oct 2001
Location: Melbourne
Posts: 8,579
Default

thanks for the reply man

so did you use that method to display html formatted text with a custom font because I couldn't get it to work

I'll try again tomorrow

Thanks again
__________________
Billy
Online Galleries
iPhone Safety App - iStaySafe
Free Flash Video Tutorials
Photo Website Template

Don't email or PM me questions...
Billy T is offline   Reply With Quote
Old 11-25-2002, 03:15 PM   #6
vosgien
member
 
Join Date: Dec 2001
Location: France
Posts: 923
Default

Hi,
No, I was looking for way to include an html link in my txt file without losing custom formatting, if you looked at the thread I couldn't do it, the code above was something I found I think on these forums, but not had time to test - from what you say doesn't look like it works eh ?

Sorry can't be of more help

Vosgien
vosgien is offline   Reply With Quote
Old 11-25-2002, 03:24 PM   #7
Billy T
Oops I did it again
 
Billy T's Avatar
 
Join Date: Oct 2001
Location: Melbourne
Posts: 8,579
Default

right ok

no worries

Thanks anyway

cheers
__________________
Billy
Online Galleries
iPhone Safety App - iStaySafe
Free Flash Video Tutorials
Photo Website Template

Don't email or PM me questions...
Billy T is offline   Reply With Quote
Old 11-25-2002, 04:04 PM   #8
tost
my pleasure
 
tost's Avatar
 
Join Date: Apr 2002
Location: gent.be
Posts: 792
Default

Billy,
is this wht you mean?
i use it with dynamic text from a db

hope I proved you wrong,
tost
tost is offline   Reply With Quote
Old 11-25-2002, 04:06 PM   #9
tost
my pleasure
 
tost's Avatar
 
Join Date: Apr 2002
Location: gent.be
Posts: 792
Default

hehe too fast
Attached Files
File Type: zip htmltext_embedfont.zip (12.8 KB, 205 views)
tost is offline   Reply With Quote
Old 11-25-2002, 04:09 PM   #10
tost
my pleasure
 
tost's Avatar
 
Join Date: Apr 2002
Location: gent.be
Posts: 792
Default

i guess the trick is to have the textfield in the fla with character>embed fonts for all outlines clicked, rather then creating the field in runtime..
tost is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:42 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.