If you have your own tutorials or open source and would like to share your Director knowledge please send them to info@shocksites.com. We will review them, post it and give full credit to the developer.
Current Open Source and Tutorials

Barcode
Provided by Adam Montandon

Sometimes you may need to use dynamic graphical elements in your designs. One of the most common is that of the barcode. Instead of creating barcodes manually in Photoshop, its a lot faster to write a lingo script to do it for you. Here you see imaging lingo make a variety of barcodes, all derived from the same shockwave movie. So, if you ever need barcodes, this is a real time saver.

You can write your own barcode handler like this :

on
barcode
tempimage =
image(100,1,32)
repeat with
a = 1 to 100
case
random(2) of
1: (tempimage).
setPixel(a,0,rgb(0,0,0))
2: (tempimage).
setPixel(a,0,rgb(255,255,255))
end case
end repeat
(
the stage).image.copyPixels(tempimage, rect(0,0,100,60), tempimage.rect)
end