Search content:

 

Personal Menu
Username:
Password:
Save password

Become a member

Forgot Password?

 

Don't miss these
Developing Projects Using Director and ASP
Rotate-a-Sprite
Vector Shapes - Create Spiral & Create Spiral Twist
Encrypt/Decrypt a file
MelixDB Xtra version 1.0 released.
Pad Number with Zeros
Exit Windows
Set Cast member Properties of a QuickVrMovie
3D games online. New cosmic world of Tensoric.
Imaging Lingo Basics
MediaMacros Xtras Mall
 

 

 

Behavior Remove Line Feeds on Windows

Added on 2/15/2000

 

Compatibilities:
D6_5 D7 D8 Mac PC Script

This item has not yet been rated

Author: Macromedia (website)

From Technote #3133 at Macromedia.com

on stripTheFile
global myFileObj
set theFileName = "TEST.TXT"
set theCastMember = "My Field"

if objectP(myFileObj) then myFileObj(mDispose)
set myFileObj = fileIO(mNew, "read", the pathName & theFileName)
if objectP(myFileObj) then
put myFileObj(mReadFile) into temp
repeat while TRUE
put offset(numToChar(10), temp) into y
if y > 0 then
delete char y of temp
else
exit repeat
end if
end repeat
put temp into field theCastMember
myFileObj(mDispose)
else
alert "Error opening file " & theFileName & "."
end if
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