Wow, that's a neat one! I wonder what other nifty things you can do by
hijacking the JavaConvert xtra? Hmmm....

~Mathew

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of elewis
Sent: Wednesday, January 15, 2003 6:11 AM
To: [EMAIL PROTECTED]
Subject: Re: Re: <lingo-l> Save as binary file


There is another way?!
I've dug this up from my box of goodies. Straight cut/paste from
somewhere!
e.

------------------------------------------------------------------------
----
Originally posted by jeepee:
ok this is what I found and indeed it is easy!! 

well here's the trick....for all you who can use this also....

>

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 &#8211; 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.



[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL 
PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
with programming Lingo.  Thanks!]

Reply via email to