Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. robotduck

    Having multiple arrays share a syncroot

    Thanks guys, makes perfect sense.
  2. robotduck

    Having multiple arrays share a syncroot

    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...
  3. robotduck

    field

    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...
  4. robotduck

    field

    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
  5. robotduck

    Director Volume Bar Help

    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...
  6. robotduck

    press SPACEBAR or ENTER to activate...

    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...
  7. robotduck

    RESIZING DIRECTOR MOVIE ON OUTPUT - URGENT!!!!!!

    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...
  8. robotduck

    Loading External Text...

    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
  9. robotduck

    Problem with Lingo

    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...
  10. robotduck

    Count Down Timer

    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...
  11. robotduck

    Educational Software Any thoughts?

    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
  12. robotduck

    Keeping the mouse cursor moving

    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...
  13. robotduck

    Problem with embedded fonts

    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...
  14. robotduck

    Educational Software Any thoughts?

    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...

Part and Inventory Search

Back
Top