Lingo Dictionary > S > save castLib |  |

save castLib

Syntax

    castLib(whichCast).save()
    castLib(whichCast).save(pathName&newFileName)
    save castLib whichCast {,pathName&newFileName}

Description

Command; saves changes to the cast in the cast's original file or, if the optional parameter `pathName:newFileName` is included, in a new file. The original cast file must be linked. Further operations or references to the cast use the saved cast member.

This command does not work with compressed cast files or cast files that are not linked to the current movie.

The `save CastLib` command doesn't support URLs as file references and is disabled in Shockwave.

Example

This statement causes Director to save the revised version of the Buttons cast in the new file UpdatedButtons in the same folder:

    castLib("Buttons").save(the moviePath & "UpdatedButtons.cst")

See also

`@ (pathname), safePlayer`