A list of products available on this site
Documentation for XtraMania's xtras
Prices and links to the online store
Xtras, PDFs, samples
Have a question? Ask us!
Contacts
Logo. www.xtramaina.com  
Home Search E-mail
BinaryXtra Reference/ReadFromFile(fileName)

objBinary.ReadFromFile(fileName)

Syntax

objBinary.ReadFromFile(fileName)

Parameters

fileName - string value which indicates which file to read.

Returns

VOID

Description

Use ReadFromFile method to initialize binary wrapper with the contents of the specified file.

Note: disabled when run as Shockwave movie.

Sample

For example, you may store the media of some cast member in external file and later retrieve it and assign to the member:
objBinary=xtra("BinaryXtra").Create()
objBinary.media=member("SomeMember").media
objBinary.WriteToFile("SomeFile")
objBinary.Clear()

objBinary.ReadFromFile("SomeFile")
member("SomeMember").media=objBinary.media

Site homeSearchContact author © Eugene Shoustrov. www.xtramania.com