Article Preview
Buy Now
COLUMN
File Things, Part Two
Working with "folderitems"
Issue: 4.1 (September/October 2005)
Author: Marc Zeedar
Author Bio: Marc taught himself programming in high school when he bought his first computer but had no money for software. He's had fun learning ever since.
Article Description: No description available.
Article Length (in bytes): 18,529
Starting Page Number: 30
Article Number: 4113
Related Link(s): None
Excerpt of article text...
In the last issue I explained, in general terms, how folderitems work, and how to use them to read and write text and binary files. But folderitems can do a lot more. There are built-in methods for reading pictures, styled text, movies, sounds, and more. Today we're going to explore those features.
Built-in Folderitem Methods
Working with a folderitem's built-in methods for reading in pictures, styled text, movies, and sounds is easy: in most cases you simply read the item into a variable you've created for the purpose. For example, if
f
is a folderitem that points to a movie file andqt
is designated a movie object, the following would read in the movie and place it inside theqt
property:
qt = f.readAsMovie
Of course you also need some simple supporting code. Here's an example from today's demo project:
dim f as folderItem
...End of Excerpt. Please purchase the magazine to read the full article.