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
Bouncing Ball
xMedia
Enhancer Xtra
Sound not playing in projectors
Hide a range of sprite channels
Macromedia Licensing
ZGTSB-ButtonUp
Bitbull
MIDI Class
Gravitational Force
 

 

 

Behavior Get Line Number of Word

Added on 8/16/2000

 

Compatibilities:
D7 D8 Mac PC Script Shockwave

This item has not yet been rated

Author: MediaMacros (website)

Returns the line number a specific word is on.

--Copyright 2000 Chuck Neal
--chuck@mediamacros.com
--If you find this code helpful, send me an e-mail and let me know.  :-)

on findLine whatText, wordNum
  repeat with x = 1 to whatText.line.count
    if whatText.line[1..x].word.count >= wordNum then
      return x
    end if
  end repeat
  return 0  
end

on getBehaviorDescription me
  return "Returns a line number of a specific word (by number) in a string"
end

 


Contact

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

Send e-mail