Search content:

 

Personal Menu
Username:
Password:
Save password

Become a member

Forgot Password?

 

Don't miss these
Set FrameRate of a Flash Sprite
Flash Paper in Director Article
WebViewer Xtra
Sound does not play in Shockwave
Orbital Master
Evil Mouse Puddle
Movie Slider Control
Popup Score
Cutting Puzzle Pieces
Hold Till Flash Directmedia finishes playing
MediaMacros Xtras Mall
 

 

 

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

 


Upload Provided by ABCUpload ASP

Contact

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

Fax - (206) 339-5833

Send e-mail