Programming : Director

Director Programming

This is just a fast index of the files I have posted in my tutorials area.

You should look at these files from inside director, by opening director and using

Files->Open->Internet

In the Url box that opens put one of these URLs, then you can look at the code.


Sprites

http://www.eweill.net/resume/tutorials/sprite.dir
This shows making sprites on the fly with Lingo and also with parent scripts.
http://www.eweill.net/resume/tutorials/sprite2.dir
This shows moving sprites with Lingo frame scripts and parent scripts.
http://www.eweill.net/resume/tutorials/replmemb.dir
Shows replacing members by changing the file name reference.  Also shows constraining the imput fields to just numbers!
http://www.eweill.net/resume/tutorials/psgif.dir
This shows how to pause and restart the playing of an animated gif.  It also shows putting the keycode in the message window.
http://www.eweill.net/resume/tutorials/dropsprt.dir
This shows how to make and place a sprite on the fly.
http://www.eweill.net/resume/tutorials/otfscripts.dir
This shows how to make and place scripts on the fly.

Vectors

http://www.eweill.net/resume/tutorials/drawvlns.dir
This shows drawing vector lines from two point input by the user.  It may help you understand Vectors a little bit.
http://www.eweill.net/resume/tutorials/stilvect.dir
One of the problems with vectors is that as you change the vertexes, the centerpoint of the vector moves and things drift.  This movie shows how to correct for this problem.
http://www.eweill.net/resume/tutorials/vectorlines.dir
 shows how to make and rotate vectors around a central point.
http://www.eweill.net/resume/tutorials/vectconnect.dir
shows how to connect two sprites with a  vector line.

Effects

http://www.eweill.net/resume/tutorials/backbtn.dir
Shows how to impliment a simple Back Button.  The demo only goes to an "Index" from one of two pages, and then returns to where it came from.  The technique will work for as many locations as you want, but only stores one place to go Back to.  You would have to use a list to make it more like your browser's back button.  You can probably figure it out from here.
http://www.eweill.net/resume/tutorials/colorbook.dir
This is a simple coloring book application.  It shows how to draw a line using trails and how to make the drawing stay on top.  There is only one color and one size of crayon, but you should be able to add others after seeing how one works.
http://www.eweill.net/resume/tutorials/mask.dir
Here we are showing how to use a mask to look through one image at another.  This can be used for flashlights, spotlights, and with a bit more work moving the bottom sprite a really cool looking "Magnifying glass".
http://www.eweill.net/resume/tutorials/mask_jf.dir
Here we are showing a variation of the mask.dir. It is more like a spotlight.
http://www.eweill.net/resume/tutorials/fakepause.dir
This movie fakes pausing the movie by disabling mouse clicks using a pause button.

Author Time Programming

http://www.eweill.net/resume/tutorials/findhndl.dir
This show fairly advanced lingo programming.  The main thrust of this example is that you can program lingo to do things for you during authoring time.  In this case,  I have a function that will place markers in all of your scripts.  In addition, after you have run the marked movie for a while, you can get a listing of which handlers have not been used.  This could be useful for eliminating unneeded code from your movie.  There are even instructions to automatically remove the markers from your code!