|
This is an easy, yet powerful
one:
Have you ever wondered
how the JavaConvert Xtra could be used in your own Director movies?
How about exporting JPEGs for free no need for an
Xtra besides the Macromedian ones...
Be sure you have these
Xtras installed / in the Xtras folder near your projector:
JavaConvert, Mix Services,
BMP Import Export, JPEG Export
I tested one-by-one, so
even if it's not obvious what BMP Import Export is doing, it's necessary
(all tests on MacOS, BTW). Also, don't include your movie in a projector,
leave it external, and name it "as usual" aName.dir
or aName.dcr also on the Mac.
And put this script into
your movie:
on convertToJPEG
mymember,myfilepath, myquality
myinst = new(xtra "JavaConvert")
set the itemdelimiter = "."
myinst.ExportMedia(item 1 of the movie, mymember, ¬
myfilepath, 1, myquality, mymember.castlibnum)
-- put the result -- will be <VOID>
myinst = 0
end
and call it like this:
converttojpeg(member "hans", "aDisk:aFolder:aFile.jpg",
75)
That's it! JPEG Export
on your own... Large castmembers may take a moment or two to export.
BTW: most likely these
Xtras are not Shockwave-safe.
Find here new facts and figures...
Download a button behavior
that does all (?!?) necessary checks. (Updated 99/08/01)
Winner of the
"Behavior Submission Contest" at mediamacros.com
(8.99)
Still using Director 6? Try this nearly untested
code (but read all the d7 stuff, too!)
Joachim
Gola
|