Contents
Articles
Behaviors
Books
Director News
Director Web Sites
FAQ
Games
Mailing Lists
News Groups
Project Examples
Reviews
Software
Tools
Useful Web Sites
Utilities
Xtras

Don't miss these
Hide a range of sprite channels
Show Recordset's Current Record
Import text as cast members
Play MPEG with MCI commands
Toggle DirectToStage Property of a Flash Sprite
Swipe Cast Members
Blur Range/Pendulum-Alphamania
Flip Image Algorithm - Imaging Lingo
Volume Control-Slider
Indeo Video
 

 

 

Behavior Export JPEGs (Director 8)

Added on 6/2/2000

 

Compatibilities:
D8 Mac PC Script

This item has not yet been rated

Author: JoachimGola

• the exporting movie is not included in the projector file. • the exporting movie is not shocked (.dcr) nor protected (.dxr). At least it must have the extension .dir. • in Director 8, you pass member names or numbers (instead of member references) into the convertToJpeg routine • Additionally, there are sporadic crashes when closing a projector after having exported JPEGs. Have a look at the export behavior in the example movie, where I incorporated an ugly hack that does the job. No more crashes... For both authoring and projector make sure that: • the member to be exported is in Castlib 1. There is no way to export from other castlibs. The script below eliminates the term mymember.castlibnum and just uses 1 instead. • when exporting more than one member, you may choose not to instantiate the Xtra for every export. The script below has the necessary changes.

-- Movie script
-- Call:
-- converttojpeg("hans", "aDisk:aFolder:aFile.jpg", 75)
-- converttojpeg("hans", "c:aFolderaFile.jpg", 75)
on convertToJPEG mymember, myfilepath, myquality
  myinst = new(xtra "JavaConvert")
  the itemdelimiter = "."
  myinst.ExportMedia(item 1 of the movie, mymember,
  myfilepath, 1, myquality, mymember.castlibnum)
  myinst = 0
end

 


Contact

MMI
36 South Court Sq
Suite 300
Newnan, GA 30263
USA

Send e-mail