Perfect!
Thanks for your help.
-----Messaggio originale-----
Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Per conto
di Terry R. Schussler
Inviato: venerdi 29 giugno 2001 5.17
A: [EMAIL PROTECTED]
Oggetto: Re: <lingo-l> ?Passing command line parameters to projectors?
At 2:46 PM +0200 6/28/01, Andrea Boratto wrote:
>Is there a way to pass parameters to projectors created with Director 8.5
>
>I'd like do something like:
>
>projector.exe -par1 -par2
[Excerpt from http://www.directoru.com/]
The commandLine
Director's the commandLine system property is designed to provide access to
the entire string of text that was used to execute a runtime projector.
put the commandLine
-- "projector.exe /s /t"
This returns the entire command line argument string passed to a runtime
projector when using the Run... menu command in Windows.
USAGE
You can use the commandLine to dynamically specify which frame of a movie
should be displayed at the start of playback.
For example, launch the Projector with the marker name as the first command
line argument. Then use code similar to this in your movie:
on prepareMovie
startUpArguments = the commandLine
if startUpArguments <> EMPTY then
go frame startUpArguments.item[1]
end if
end prepareMovie
DRAG AND DROP
On Windows, you can drag and drop multiple files onto a Projector icon.
Director will list each file's name in the commandLine property at launch
time.
On Macintosh, although you can drag files with identical creator code as
the Projector onto the Projector's icon to launch the projector, the
commandLine will contain an empty string.
--
...---===| Terry R. Schussler |===---...
...---===| Chief Investigator |===---...
on visitWebsite yourSelection
coolSites = [ \
#advancedSeminars : "http://www.macromediaSEMINARS.com/", \
#directorUniversity: "http://www.directorU.com", \
#multiuserUniversity: "http://www.multiuserU.com", \
#flashUniversity: "http://www.flash5U.com", \
#dreamweaverUniversity: "http://www.dreamweaverU.com", \
#freeBehaviors : "http://www.behaviors.com/"]
gotoNetPage coolSites[yourSelection]
end visitWebsite
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/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!]
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/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!]