Search content:

 

Personal Menu
Username:
Password:
Save password

Become a member

Forgot Password?

 

Don't miss these
Back Button
Change the LineSize of a Shape Sprite
Mastermind
Sound 1 CuePoint
EndFramesScript
Valentina
Director 8.5 Studio
Stream FlashMember (Frame Script,Cast member as Reference)
Exploding Text Prepare Movie
Play Sound of Member
MediaMacros Xtras Mall
 

 

 

Behavior Convert Fonts

Added on 6/27/2000

 

Compatibilities:
D7 D8 Mac PC Script Shockwave

Rating:

Author: MarkBoyd (website)

Converts fonts in text members. convertFonts("Geneva" , "Arial")

on convertFonts oldFont, newFont
  if voidP(oldFont) or voidP(newFont) then
    alert "Usage:  convertFonts(oldFont, newFont)"
    exit
  end if
  numLibs = the number of castLibs
  repeat with n = 1 to numLibs
    libName = castLib(n).name
    textList=""
    myCount=0
    x = the number of members of castLib n
    repeat with i = 1 to x
      myType = member(i,n).type
      if myType=#text then
        myFont = member(i,n).font
        if myFont = oldFont then
          member(i,n).font = newFont
          myCount = myCount + 1
        else
          -- text member not using oldFont
          -- store in a list to report to the user.
          mem = member(i,n).name
          mem = mem &&"(font =" &&myFont &")"
          textList = textList &mem &RETURN
        end if
      end if
    end repeat
    put RETURN &"Converted" &&myCount &&"text members in castLib" &"E &libName "E &"."
    put "Some text members that are NOT" &&oldFont &&"font are using" &RETURN &textList
  end repeat
end

 


Upload Provided by ABCUpload ASP

Contact

MMI
22 West Court Sq
Suite 2C
Newnan, GA 30263
USA

Fax - (206) 339-5833

Send e-mail