how can you add font to xml?

This is a discussion on how can you add font to xml? within the Macromedia Flash forums in Adobe Tools category; Hi I am trying find out how to add font style to a simple xml document I have made. <images> <image source = "images/Image1.jpg" thumb = "thumbnail/Image1.jpg"> Picture of car.</image> <image source = "images/Image2.jpg" thumb = "thumbnail/Image2.jpg"> picture of orange.</image> <image source = "images/Image3.jpg" thumb = "thumbnail/Image3.jpg"> book.</image> <image source = "images/Image4.jpg" thumb = "thumbnail/Image4.jpg"> Poster in Holborn.</image> </images> thankyou for helping much appreciated! mt...

Go Back   Application Development Forum > Adobe Tools > Macromedia Flash

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 11-06-2008, 09:34 AM
matt_trinkett
Guest
 
Default how can you add font to xml?

Hi
I am trying find out how to add font style to a simple xml document I have
made.

<images>
<image source = "images/Image1.jpg" thumb = "thumbnail/Image1.jpg"> Picture
of car.</image>
<image source = "images/Image2.jpg" thumb = "thumbnail/Image2.jpg"> picture
of orange.</image>
<image source = "images/Image3.jpg" thumb = "thumbnail/Image3.jpg">
book.</image>
<image source = "images/Image4.jpg" thumb = "thumbnail/Image4.jpg"> Poster in
Holborn.</image>
</images>

thankyou for helping much appreciated!
mt

Reply With Quote
  #2  
Old 11-06-2008, 09:42 AM
Gibbah
Guest
 
Default Re: how can you add font to xml?

Perhaps I have missunderstood you, but you can set the font style on the text-field that displays the text.
Reply With Quote
  #3  
Old 11-06-2008, 09:56 AM
matt_trinkett
Guest
 
Default Re: how can you add font to xml?

text-field that displays the text.- do you mean inside flash ?
I am trying to change the font with this external xml file ?
apparently I can do this with css but I just cant figure out how to
compose it..


Reply With Quote
  #4  
Old 11-06-2008, 09:59 AM
MarissaG
Guest
 
Default Re: how can you add font to xml?

If you select your dynamic text field on the stage, you can select the font
that you want to use in the properties inspector and whatever xml data is
placed into that field will have that font. Don't forget to embed the font if
it's not standard.

Reply With Quote
  #5  
Old 11-06-2008, 10:48 AM
matt_trinkett
Guest
 
Default Re: how can you add font to xml?

I see, no I have added the text with the addChild method,
I am trying to figure how to do it with code
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 12:59 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.