Search content:

 

Personal Menu
Username:
Password:
Save password

Become a member

Forgot Password?

 

Don't miss these
Projector debugger
HighLighting text
cXtraCD
Flash Rotator
A shooting game
cXtraSendMail
Interactivity by Design
Brain Killer (Simon)
Regular expressions
Wait for a DirectMedia CuePoint(Name as Reference)
MediaMacros Xtras Mall
 

 

 

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

 


Upload Provided by ABCUpload ASP

Contact

MMI
22 West Court Sq
Suite 2C
Newnan, GA 30263
USA

Fax - (206) 339-5833

Send e-mail