Contents
Articles
Behaviors
Books
Director News
Director Web Sites
FAQ
Games
Mailing Lists
News Groups
Project Examples
Reviews
Software
Tools
Useful Web Sites
Utilities
Xtras

Don't miss these
MediaMacros Devcon Presentation 2002 - Imaging Lingo
Bevel Drag Light-Alphamania
Make Director window odd sized.
SpellCatcher
myBackGround
Starfield Behavior
Early Bird
Wait for explode to finish
Send OSA Script
RGB to CMYK
 

 

 

Behavior Get Font List without using xtras!

Added on 3/14/2003

 

Compatibilities:
D8 D8_5 D9 Shockwave

This item has not yet been rated

Author: iloug

we can get font list without using an xtras,because macromedia give us a function-getfontlist() which undocument.

Download PC Source
property pFontListSprite

on beginSprite me
  pFontListSprite = 5
  (sprite pFontListSprite).member.text = empty
end
on mouseUp me
  tFont = new(#font)
  tList = tFont.Fontlist()
  FontCnt = tList.Count
  repeat with i = 1 to FontCnt
    (sprite pFontListSprite).member.line[i] = tList[i]
  end repeat
  (sprite pFontListSprite).member.scrolltop = 0
  tFont.member.erase()
  updatestage
end

 


Contact

MMI
36 South Court Sq
Suite 300
Newnan, GA 30263
USA

Send e-mail