I'd like to have three arrays all share the same syncroot, so that in my multi-threaded application, if any thread gets a lock on any one of the 3 arrays, no other thread can modify any of the 3 arrays until the lock is released. Is this possible? is it a really bad idea?
I have tried setting...
It will, but he wants to erase the image in the 'stopmovie' handler, so you probably aren't going to see this.
Incidentally I often do this myself in 'stopmovie' if my movie dynamically creates images using copypixels, but I don't want them saved when saving my movie.
Eg, I have a placeholder...
Or you can erase the image of a bitmap cast member by setting it to a blank image:
member(67).image = image(1,1,1)
The above line will set it to a white 1x1 pixel 1-bit image.
- Ben
If you want your director movie to respond to the current volume level (either of a mic input, or of the sound output), you can use the asFFT xtra to read samples of the current input.
See http://www.as-ci.net/asFFTXtra/faq.html for more info.
To achieve what you want, you'll need to create...
You need to embed your dcr using an external javascript file. Here's how to do it.
Save this file as "insertdcr.js":
http://www.robotduck.com/content/articles/director/net/activexWarning/insertdcr.txt
Adjust your html source code so it looks like this (which includes the .js file, then calls...
You can use lingo to resize the stage, and the drawrect of the stage, which are both subtley different things.
Here's a handler which I often use to maximise a projector, while preserving the ratio of the movie (if it's different to the screen res ratio):
Choose whether you want...
You can specify whether a cast member is internal or externally linked when you import it.
Or, you can import files at runtime using lingo. look up the commands "importFileInto", and the 'filename' property of cast members. Both work in slightly different ways.
hope this helps.
- Ben
While moving the background image instead of the player is a good idea, you may need to find a better method (for example, what happens when you have enemies moving round the level too?)
The method I would use would be to store the player's 'h' and 'v' position in variables (properties), and...
There's two separate things you need to change:
The references to '300' means 300 seconds (five minutes), so just change it to 15, where you see 300.
The second change is to change the text inserted into the member in the 'beginsprite' handler, where it says "5:00" you should change it to...
Director's built in property "the moviepath" will give you the path of the currently running movie, including the drive letter at the beginning, so when running off the DVD initially, you could save some data (eg a pref, or registry entry) indicating the dvd drive letter.
- Ben
You can set the mouse position if you use an xtra. Check out the free one here called 'SetMouseLoc'.
http://pros.orange.fr/freextras/index_en.html
This will work in a projector, but not in shockwave.
If you need it to work in shockwave, there are non-free xtras which can do the job, such as...
A bit more info might help find the problem:
Which font did you embed?
Do space characters appear normal if you use the font in some other program, such as a word processing application?
If you write some fresh text in director using your embedded font (after you've embedded it), do the space...
Buddy API is a good tool to use whenever file copying is involved. You can use Buddy API to identify a safe place on the user's HD to copy a file to, to check for free space, and to perform the copy function itself.
Check out the following commands:
baSysFolder (to identify the user's temp...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.