You have to do this "manually," through lingo. E.g., if you put a button on the stage 
that says "Italics," this would be the button's script:

on mouseUp me
  locFocusMember = sprite(the keyboardFocusSprite).member 
  
  if locFocusMember.type <> #text then
    alert "Before using this button, select the text."
    exit
  end if
  
  locSelStart = locFocusMember.selection[1] --boundaries of current selection in the 
text box, if any
  locSelEnd = locFocusMember.selection[2] --boundaries of current selection in the 
text box, if any
  
  if (locSelStart = 0) or (locSelStart = locSelEnd) then
    alert "Before using this button, select the text."
  else    
      locFocusMember.char[locSelStart..locSelEnd].fontStyle = [#italic]
  end if
end mouseUp

Slava

At 12:16 PM 6/28/04 -0500, you wrote:
>In a editable text member, can you edit the format on a word or words
>while the movie is playing? So, in the statement (Hello, World) changing
>the word Hello to a different color and font size. 
>
>
>[To remove yourself from this list, or to change to digest mode, go to 
>http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL 
>PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
>with programming Lingo.  Thanks!]

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL 
PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
with programming Lingo.  Thanks!]

Reply via email to