RE: baCopyFile parameter
> What do I put for the third parameter in calling baCopyFile()? I > have tried "yes", "true", "overwrite", etc. >From the "Help" file for version 3.5 on Windows: Overwrite determines how the copy is done. Can be: "Always" always copies the file "IfNewer"copies the file if SourceFile is newer than DestFile "IfNotExist" copies only if DestFile does not already exist HTH, -Sean. [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!]
RE: xtra problem
> Huh - well strangely enough it seems that the audio xtra never shows an > instance of itself - even with that weird return, it's there with its' > builtin queries. I'm not sure, but I think that you don't have to instantiate the audio xtra to use it - kind of like BudAPI. The commands are immediately available as an add-on to the regular features that Lingo provides, without having to invoke its 'new()' method. HTH, -Sean. [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!]
RE: Re:timeout (again) thanks
> Thanks you for your help and yes I shoudl have double checked the > dictionary Sorry for my post about this - I was more curt than necessary. I was trying to suggest (unfortunately, without being more explicit) that the Lingo Dictionary is a good first port-of-call for help (the exception being D8.5, but I don't need to re-open this wound). Teach a man to fish etc. -Sean. [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!]
RE: FileIO and writing file extensions
> But the only problem I have is I'd like to write the files with a .TPL > extension instead of a .TXT extension. Try creating the files with the .tpl extension. FileIO is restricted to writing ASCII, but it doesn't have to use the .txt extension - you can provide whatever extension you like to the createFile() method. HTH, -Sean [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!]
RE: FileIO and ReadLine
> how to read the secon line. Either use FileIO's "setPosition()" method so that it will read the correct line, or (easier) read the entire file, figure out which line in the first field the user clicked, and grab that line from the string you read in with FileIO. on mouseUp set lineNum = the mouseLine set texte = new(xtra "FileIo") set chemin = "@//helpdesk/textes/description.txt" openFile (texte,chemin,1) tString = readFile(texte) put line lineNum of tString into field "contenu" set texte = 0 end You might do some error checking to make sure that lineNum is a valid line, and that tString has a line at lineNum, but otherwise this should work. HTH, -Sean. [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!]
RE: Re:timeout (again)
> but is there a way to > diable/forget (Idon't know the correct terminology) the timeOut > script. Straight from the dictionary: "When the assigned event script is no longer appropriate, turn it off with the statement 'set the timeoutScript to EMPTY'." HTH, -Sean. [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!]
RE: FileIO paths
> unfortunately the text file > is stored in the same directory as the movie which is no good as > the movies are running from CD. The line causing me grief is > > filePath = the moviePath & "My Notes" > > is there anyway that I can save the file to a folder outside of > the movie on the users hard drive. FileIO, as well as containing methods for reading/writing files, also has a useful method called "getOSDirectory()". You don't need to instantiate the xtra to use this method - unlike FileIO's other methods. So you could create a path like: fullPath = getOSDirectory() & \ (the moviePath).char[(the moviePath).length] & \ "My Notes.txt" This will point the path at the users' system directory, on Windows usually 'C:\Windows' or 'C:\Winnt'. Once you've written your information to this file you can use the same syntax to read it from there. Just be sure to pass the correct flag to FileIO for read/write modes. Also be sure to include the xtra when you distribute your CD - either packed into the projector or externally. It's also good form to include the version of Director you're developing with and to include a subject line with your posts. Hope that helps, -Sean. [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!]
RE: blinking I-beam => blinking block
> In one of my editable fields, I simulate the "overwrite" typing mode by > intercepting keystrokes and replacing the characters that are already in > the field. (The user is not allowed to insert or delete characters.) > > To make this visually clear, I would like to change the default blinking > I-beam to a blinking rectangle, as most apps do when you use the > overwrite > mode. > > Can this be done through Lingo? You'll have to fake it. Here's an approach you might try: Make your on-stage field un-editable and place an editable field off-stage. Use this off-stage field to trap keystrokes and replace existing characters in your on-stage field. Use a bitmap/shape/imaging to place your "overwrite" block at the correct place over the on-stage field and 'blink' it appropriately (timeout object?) Trap arrow keys to move the position of the blinking block. HTH, Sean. [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!]
RE: File IO - how do I erase text in a file?
> FileIO obviously doesn't overwrite an entire text file > when it writes to a file, it just writes from char a to char b. > If there are more characters already in the text file beyond > char b, they remain untouched. I've had the same problem. The only workaround I could come up with was to delete the contents and write it out again amended. Some delete functions would be really useful - other than just the entire contents; which is all it seems to provide. Could you use BudAPI's ini functions instead? [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!]
RE: volume up and down buttons
> But I get error- > variable used before assigned a value You need to declare "global vol" at the top of each of your mouseUp handlers. Try: on startMovie global vol set vol to 4 set the soundLevel to vol end -- for volume [ + ] on mouseUp global vol if vol < 7 then set vol to vol + 1 set the soundLevel to vol end if end -- for volume [ - ] on mouseUp global vol if vol > 0 then set vol to vol - 1 set the soundLevel to vol end if end However, this doesn't update your volume icon. Which version of Director are you using? [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!]
RE: best mpg player: directMedia or mpegXtra?
>From my understanding, the MpegXtra uses MCI - which has been deprecated by MS. We use - and have had absolutely no trouble with - the DirectMediaXtra. The MpegXtra is getting a bit long in the tooth now, in that the last time I used it commercially was in the days of D5. [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!]
RE: Sound control slider in different movies
> one of the main navigation buttons in this movie calls another > dirwhen the new dir loads how can I get the slider in the new > dir to represent the last setting from the main dir? Storing your setting in a global variable and examining it when you get to the next movie is perhaps the easiest way. [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!]
RE: Entry point not found in projector file run by cd
> I had put all the dll files on exe file path & also in xtras > folder but still > error is not gone. This error is come only in window Nt & window > 2000 system > not in window 95,98 system. I had also put karnel32.dll but still > error is not > gone. I made projector file in window nt system but error is not > gone. But if i > run exe file form Hardisk(copy in my system & then run) then it > runs fine. If i > create cd or run that exe file by network then it doesn't work & > gives error. Ignore the kernel32.dll - it is a system file that is already present in your Winnt folder. What xtras are you using in your project. Are there any DirectMedia or StreamingMedia assets? Is there any chance you accidentally bundled xtras into the projector as well as providing an external xtras folder with dlls etc.? [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!]
RE: reading binary registry keys
Version 3.5 is currently available and it appears it reads/writes binary keys. As well as a bunch of other useful new functions. http://www.mods.com.au/budapi/download.htm > cannot read binary keys [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!]
RE: playing multiple movies in a predefined order.
> I have about 20 separate movies. Each movie > represents a > slide in a presentation. > Each slide has animation, interactivity and buttons to move to > the previous > and next slides. > > I want to store the order that the movies are played (ie: the order of the > slides in the presentation) in a text file, and have a projector > that reads > the text file and plays the slides in the correct order. Did I miss something? You pretty well answered your own question. Build a shell/stub projector that uses FileIO/budAPI (insert appropriate xtra)to read your text file, build a (global) list of the movie names, navigate to the first movie, reference the list to deal with next/previous buttons. [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!]
RE: changing hyperlink colour
James Newton has published a movie/behavior that allows this very easily. http://perso.planetb.fr/newton/#text Look for his "Custom hyperlink style" example movie. [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!]
RE: mpg files on cdrom
> Actually there IS a WM for the mac, but that's not what I asked, or meant > to... Sorry for my ignorance, I didn't realise Macs could handle .wmf As to the original question > If I force them to play as WM on the mac, is there any issues anyone knows > of? why force them to play as WM instead of using QT? [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!]
RE: mpg files on cdrom
How does a Mac play Windows Media files? AFAIK there isn't a WMP for Mac. Use QT5 - it supports MPEG1 on both platforms ;) > I know, it's been asked here so many times, and usually pointed to an > xtra, but I've got a few mpg1 files that SEEM to play fine through Windows > media (win2k) and I'm sure they're fine on the mac. [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!]
RE: is this possible?????
Watch for breaks. http://www.macromedia.com/support/director/ts/documents/secure_sockets_unava ilable.htm While you can use https:// with shockwave, you *still* can't from a projector. Agreed, you could implement your own encryption from the projector and de-crypt server-side, but you can't pass the info over a secure connection. > Sure, why not? That is it's possible if there's an internet > connectionand if you encode it/decode it on the server, it's not that > much different than a browser doing the communication. [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!]
RE: is this possible?????
Director doesn't do https:// from a projector. mailto:[EMAIL PROTECTED] > is it possible from a projector?? [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!]
RE: timer problem
I'm not sure if it's your problem or not, but you are trying to spawn a navigation from a beginSprite handler - in your case from a handler called by beginSprite. This is a no-no, you can't navigate from beginSprite. > on beginSprite me > pickColor > end > on pickColor > if the timer < 60 then > go to the frame > else > go to frame 1 > end if > end Move the navigation stuff ("go to ...") into an exitFrame handler: on exitFrame me if the timer < 60 then go to the frame else go to frame 1 end if end HTH, -Sean. [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!]
RE: PS to "does this crash make sense?"
> Good to hear that! Would you mind sharing your solution, or at least its > direction? There are so many things that "with imaging Lingo" > might mean :-) OK. Here's the process I used: In a behavior attached to the block of text I create an image in the beginSprite handler and store it as a property -- create image object: pImage = image(1, 1, 16) -- fill it with the appropriate color: pImage.fill(0, 0, 1, 1, [#shapeType: #rect, #lineSize: 0, #color: rgb(255, 0, 0)]) In the mouseDown handler, find which word was clicked: -- which word (number) was clicked? tWord = pSprite.pointToWord(cLoc) -- move the hilite image so it sits over the word clicked: charCount = pMember.text.word[1..tWord].char.count + 1 thisWord = pMember.word[tWord] len = thisWord.length firstCharPos = pMember.charPosToLoc(charCount - len) lastCharPos = pMember.charPosToLoc(charCount) -- create rect dimensions and pad it -- for character ascenders/descenders -- (this relies on storing the sprite's left -- and it's lineHeight as properties) l = firstCharPos[1] + pLeft r = lastCharPos[1] + pLeft t = firstCharPos[2] + 7 b = t + pLineHeight - 5 -- copyPixels to the stage (the stage).image.copyPixels(pImage, rect(l, t, r, b),\ pImage.rect, [#ink:37]) Hope that helps, -Sean. [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!]
RE: PS to "does this crash make sense?"
> I guess it may also be relevant that the text is displayed in an embedded > font and is antialiased (it has to be). Kerning is off. Ink is Copy. I tried mine with all kinds of combinations - saveBitmap, antiAliasing FALSE, DTS etc., etc. > Have > you tried other ways of highlighting (e.g., bolding, or a bitmap, or > changing the fontszie)? The work-around I used is via imaging lingo. Gave exactly the same look as changing the colour of the word clicked. It works very well. [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!]
RE: does this crash make sense?
Hi Slava, > The text member has only about 500 characters, but there's a noticeable > delay before the color changes after the mouseclick. This happens > with many > text members in the same movie. > > Has this been noted before? Do these crashes make sense? > > If so, is there a workaround? I posted something similar earlier this month, but got no replies. FYI, here it goes again (and sorry again for the length): SUMMARY: setting member.word[n].color OR word[n].foreColor is MUCH slower on Win 9x variants than Win 2K. BACKGROUND: I've been working on a (windows-only) application. In one section of this, the user is required to click on words in a text member. This text member contains around 125 words. I have been changing the color of the word clicked to provide instant visual feedback that they did indeed click that particular word. PROBLEM: dynamically changing the color to an rgb color, or the foreColor using a paletteIndex color, is fine on my development machine - Windows 2000 Professional SP2. When I run the same movie on Win 98 SE2 or Win ME, changing the word color takes a massive time hit after a few words are quickly clicked. Running the text with "copy" ink or directToStage or "saveBitmap" or whatever variation I've tried makes no difference. RESEARCH: I've trolled the direct-l archives, updateStage's quirk-list and MM's technote section and found nothing relating to this. There are a couple of threads from direct-l relating to an apparent limit on setting the color of words past ~word[240]. DUPLICATION: create an empty movie, loop it on a frame, create a text member and put a bunch of words into it - 20 or so should demonstrate the problem. Drop the following behavior onto the text sprite: -- property pSprite property pMember on beginSprite me pSprite = sprite(me.spriteNum) pMember = pSprite.member end on mouseDown me sMillis = the milliseconds cLoc = the clickLoc tWord = pSprite.pointToWord( cLoc ) -- the offending line of code: pMember.word[tWord].color = rgb(255, 0, 0) elapsed = the milliseconds - sMillis put "#mouseDown: elapsed =" && elapsed end on endSprite me pMember.color = rgb(0,0,0) end -- Run the movie, click on each word *as quickly as possible* and check your message window for timing results. Comment out 'the offending line of code' and click again. RESULTS: on my machine (Win 2k Pro sp2) I get: -- "#mouseDown: elapsed = 19" -- "#mouseDown: elapsed = 10" -- "#mouseDown: elapsed = 12" -- "#mouseDown: elapsed = 15" -- "#mouseDown: elapsed = 18" -- "#mouseDown: elapsed = 21" -- "#mouseDown: elapsed = 24" -- "#mouseDown: elapsed = 27" -- "#mouseDown: elapsed = 30" -- "#mouseDown: elapsed = 34" -- "#mouseDown: elapsed = 37" -- "#mouseDown: elapsed = 40" -- "#mouseDown: elapsed = 42" -- "#mouseDown: elapsed = 46" -- "#mouseDown: elapsed = 49" -- "#mouseDown: elapsed = 53" -- "#mouseDown: elapsed = 55" -- "#mouseDown: elapsed = 59" -- "#mouseDown: elapsed = 62" -- "#mouseDown: elapsed = 64" on a machine with Win 98 SE I get: -- "#mouseDown: elapsed = 29" -- "#mouseDown: elapsed = 59" -- "#mouseDown: elapsed = 67" -- "#mouseDown: elapsed = 106" -- "#mouseDown: elapsed = 108" -- "#mouseDown: elapsed = 157" -- "#mouseDown: elapsed = 180" -- "#mouseDown: elapsed = 173" -- "#mouseDown: elapsed = 196" -- "#mouseDown: elapsed = 216" -- "#mouseDown: elapsed = 215" -- "#mouseDown: elapsed = 243" -- "#mouseDown: elapsed = 267" -- "#mouseDown: elapsed = 283" -- "#mouseDown: elapsed = 325" -- "#mouseDown: elapsed = 364" -- "#mouseDown: elapsed = 409" -- "#mouseDown: elapsed = 400" -- "#mouseDown: elapsed = 390" -- "#mouseDown: elapsed = 430" They both appear to slow as a general trend, but for Win 98 alarmingly so! This holds for Win ME also. I realize that cpu speed and RAM probably have an impact also, but having tried 2x Win 2K and 3x Win 98/1x Win ME systems it holds true that the Win 9x variants slow to a crawl while the Win 2K systems are (acceptably) fast enough not to notice a lag while clicking/changing color. I have tried this with D8 and D8.5 and there is no perceivable difference - ie. the trend holds. I have tested on a machine that dual-boots to Win ME and Win 2K and it behaves as described; so it's not (only) RAM, CPU and video card differences. Totally untested on any Mac systems, or Win 95. REQUEST: Would anyone care to confirm this? Feel free to mail me directly, or return results to the list. It would be especially useful if someone could try Win NT as I no longer have access to a machine running Winnt. I'm wondering if this speed difference behaves on Winnt as a Win 9x variant, or as on Win 2K. Most interesting would be if it behaved like Win 2K, as this would suggest it was related to how the OS handles text rendering. WORKAROUND: for D8 and above: use imaging lingo and copyPixels() (to the stage) a highlight over the word clicked. D7.02: use a series of off-stage shape sprites with add/lighten/(insert approprite inkType) and move
RE: Limited fields
Take a look at the pre-cooked Library palette of behaviors. Methinks there's an entry in the Text section that may help you, at least part of the way. > In a text field i want to limit the users input to to certain > Characters(only numbers), and Limit a field to a certain NUMBER of > characters (maximum 6). I still want the user to be able to use enter, > delete and backspace in the field. If the user hit anything else than the > allowed characters i want a beep... [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!]
RE: Reading from an ini file
> any links to sites or ini file reading functions > that could help with storing settings externally. Do i need an > xtra to read > text/ini files of the same cd? i'd prefer not to. Buddy API has some built-in ini file functions: baReadIni(), baWriteIni() and baFlushIni() You say you'd rather not use an Xtra. If this is because you don't want to pay, then Buddy comes with 2 functions for free. Try it - you won't be able to survive without once you look at what it can do. http://www.mods.com.au For the general projector.ini file, look at: http://www.zeusprod.com/nutshell/otto.html Face it - if you want to read an external text/ini file, other than the projector's own ini file, you'll have to use one Xtra or another. FileIO is another possibility, it's free, but you'll have to do some more work with it to have it read specific [sections] of an ini file. HTH, -Sean. [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!]
RE: Message window
> use an .ini file > > named the same as your projector. plus the dot inny of course. > > comment out the following line; > > MessageWindow=1 > > that should do it. > you can set the rect if you want, but you don't have to. For D8.5, you also have to set the debugPlaybackEnabled system property to TRUE (prepareMovie). HTH, -Sean. [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!]
RE: HELP! - Network: find server by name and map to local drive
> I've been asked to find a server across a network > by the name of the server (not drive number) and > then map it to a local drive (not even sure what > all that means). This is to save a simple comma > delineated list in a text file that needs to be > saved into a specific folder on a named server > and this needs to work in many different networks > where the server might be a different drive letter. The only experience I've had of mapping a server/shared folder to a local drive is as a function of Windows Explorer. I don't know the command-line parameters you'd pass to explorer to have it map a shared folder on the network to a locl hard-drive, but I'm (reasonably) sure there would be a series of command-line switches. You could use Buddy to run explorer and pass it the command-line stuff you need (when you figure out what those are!). The path would contain something like \\yourServerName\yourSharedFolderName\, but again, I'm unsure of how to pass this to Explorer at the command-line to have it map this path to a local HD Try as a test: aResult = baRunProgram( "Explorer.exe /n,/e,.", "maximised", false ) You could run this hidden and you'd know which HD letter you'd mapped the folder to, so putting a text file there would then be (fairly) trivial, as long as necessary permissions are set on the share. HTH, -Sean. [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!]
RE: searching for a folder on the hard drive
> I'm hoping this is an easy question: > > From a projector on a cd, is there a way to search for the pathname of a > folder on the hard drive. Say the folder is called "einstein_data", but I > don't know where on the hard drive it is located. I need a cross platform > solution! There are a couple of xtras that provide this sort of functionality. FileXtra3 and Buddy API, for example. However, why would you need to scan someone's HD? If you are looking for files you put there, then you must know where you put them. If you're not looking for files you put there, why do you need to search for a named folder? There may be an easier way to acheive what you need if you provide more details. HTH, -Sean. [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!]
RE: Shutdown
Buddy API has a variety of shutdown/restart/log-off commands that work with (most) versions of Windows. http://www.mods.com.au/ HTH, -Sean. [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!]
RE: System speed?
> I have two quicktime movies and need to find some code that will send > the user to the correct marker according to how fast their > system...if they have a pentium 700 or highre they would go to the > high quality movie and it they had a smaller processor they would go > to the low end movie..any Ideas? Buddy API. http://www.mods.com.au Look for baCpuInfo( "speed" ) HTH, -Sean. [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!]
RE: Timeout object
> At Thu 5/07/2001 11:02, Jakob Hede Madsen wrote: Beautiful. [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!]
RE: Timeout object
> I have a question regarding timeout objects. > > Let's assume we have a behavior that creates a timeout object. Let's > further assume that the behavior will be attached to two > different sprites. > When the timeout handler is executed how do I know to which sprite it > corresponds? If you take a look at the documentation for creating a timeout object, the syntax goes like: tTimer = timeout("timeoutName").new( period, #callbackHandler{, scriptObject} ) The scriptObject parameter is optional, if you don't supply one, the callback is routed to movie scripts. If you do use this parameter, more often than not the syntax would be: on mMethod me -- some stuff here timeout("timeoutName").new( period, #callbackHandler, me ) end The "me" parameter in this timeout's "new" method means that the behavior that created the timeout will be the target for its callback. If you need unique names for the different timeout objects, you can tie them to the object that created them, or to the sprite channel to which the behavior is attached, by using string(me) or string(me.spriteNum) when the new timeout object is named. HTH, -Sean. [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!]
RE: waiting for sprites to initialize
> Now that my movie has grown and slowed down, some of my sprites send > messages to other sprites in the frame before the receiving > sprite is fully > initialized. So I see an error message saying that handler so and > so is not > found, or property such and such does not exist. If I send the > same message > a split second later, all is well. If you are getting error messages it suggests you're using syntax like sprite(x).myMethod() OR sprite(x).myProp = someValue OR call(#handlerName, scriptObject, args) If you use sendSprite or sendAllSprites you probably won't get error messages, but nothing will happen, either. The problem is (probably) that one sprite's beginSprite handler is trying to do something to a sprite whose own beginSprite handler hasn't run yet. As you say, the receiving sprite isn't fully initialised (beginSprite is sent to the sprite in channel 1 first, then to channel 2 etc.) Both James Newton and Brennan Young wrote some *excellent* articles along these lines. Check out: http://www.director-online.com/accessArticle.cfm?id=335 http://brennan.young.net/Edu/Lingvad.html They both detail different approaches to setting up communication between sprite's script instances. James' approach - swapping references via sendAllSprites - is perhaps more robust long-term, but Brennan has some really useful techniques too. HTH, -Sean. [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!]
RE: fields
> you're looping through the names, and when you detect one of your files > you exit the loop and display the name. Or not building a RETURN delimited string while repeating through the fileNames and being left with just the last one found. The no-xtras solution (won't work in Shockwave, but then nor will fileXtra): on populateFieldWithFileNames tString = "" repeat with n = 1 to ( the maxinteger ) tFileName = getNthFileInFolder( folderPathToSearch, n ) if tFileName = "" then delete the last char of tString exit repeat end if tString = tString & tFileName & RETURN end repeat member("fileNames filed").text = tString end HTH, -Sean. [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!]
Win OS-version-specific text color problem
Sorry for the length of this post. SUMMARY: setting member.word[n].color OR word[n].foreColor is MUCH slower on Win 9x variants than Win 2K. BACKGROUND: I've been working on a (windows-only) application. In one section of this, the user is required to click on words in a text member. This text member contains around 125 words. I have been changing the color of the word clicked to provide instant visual feedback that they did indeed click that particular word. PROBLEM: dynamically changing the color to an rgb color, or the foreColor using a paletteIndex color, is fine on my development machine - Windows 2000 Professional SP2. When I run the same movie on Win 98 SE2 or Win ME, changing the word color takes a massive time hit after a few words are quickly clicked. Running the text with "copy" ink or directToStage or "saveBitmap" or whatever variation I've tried makes no difference. RESEARCH: I've trolled the direct-l archives, updateStage's quirk-list and MM's technote section and found nothing relating to this. There are a couple of threads from direct-l relating to an apparent limit on setting the color of words past ~word[240]. DUPLICATION: create an empty movie, loop it on a frame, create a text member and put a bunch of words into it - 20 or so should demonstrate the problem. Drop the following behavior onto the text sprite: -- property pSprite property pMember on beginSprite me pSprite = sprite(me.spriteNum) pMember = pSprite.member end on mouseDown me sMillis = the milliseconds cLoc = the clickLoc tWord = pSprite.pointToWord( cLoc ) -- the offending line of code: pMember.word[tWord].color = rgb(255, 0, 0) elapsed = the milliseconds - sMillis put "#mouseDown: elapsed =" && elapsed end on endSprite me pMember.color = rgb(0,0,0) end -- Run the movie, click on each word *as quickly as possible* and check your message window for timing results. Comment out 'the offending line of code' and click again. RESULTS: on my machine (Win 2k Pro sp2) I get: -- "#mouseDown: elapsed = 19" -- "#mouseDown: elapsed = 10" -- "#mouseDown: elapsed = 12" -- "#mouseDown: elapsed = 15" -- "#mouseDown: elapsed = 18" -- "#mouseDown: elapsed = 21" -- "#mouseDown: elapsed = 24" -- "#mouseDown: elapsed = 27" -- "#mouseDown: elapsed = 30" -- "#mouseDown: elapsed = 34" -- "#mouseDown: elapsed = 37" -- "#mouseDown: elapsed = 40" -- "#mouseDown: elapsed = 42" -- "#mouseDown: elapsed = 46" -- "#mouseDown: elapsed = 49" -- "#mouseDown: elapsed = 53" -- "#mouseDown: elapsed = 55" -- "#mouseDown: elapsed = 59" -- "#mouseDown: elapsed = 62" -- "#mouseDown: elapsed = 64" on a machine with Win 98 SE I get: -- "#mouseDown: elapsed = 29" -- "#mouseDown: elapsed = 59" -- "#mouseDown: elapsed = 67" -- "#mouseDown: elapsed = 106" -- "#mouseDown: elapsed = 108" -- "#mouseDown: elapsed = 157" -- "#mouseDown: elapsed = 180" -- "#mouseDown: elapsed = 173" -- "#mouseDown: elapsed = 196" -- "#mouseDown: elapsed = 216" -- "#mouseDown: elapsed = 215" -- "#mouseDown: elapsed = 243" -- "#mouseDown: elapsed = 267" -- "#mouseDown: elapsed = 283" -- "#mouseDown: elapsed = 325" -- "#mouseDown: elapsed = 364" -- "#mouseDown: elapsed = 409" -- "#mouseDown: elapsed = 400" -- "#mouseDown: elapsed = 390" -- "#mouseDown: elapsed = 430" They both appear to slow as a general trend, but for Win 98 alarmingly so! This holds for Win ME also. I realize that cpu speed and RAM probably have an impact also, but having tried 2x Win 2K and 3x Win 98/1x Win ME systems it holds true that the Win 9x variants slow to a crawl while the Win 2K systems are (acceptably) fast enough not to notice a lag while clicking/changing color. I have tried this with D8 and D8.5 and there is no perceivable difference - ie. the trend holds. I have tested on a machine that dual-boots to Win ME and Win 2K and it behaves as described; so it's not (only) RAM, CPU and video card differences. Totally untested on any Mac systems, or Win 95. REQUEST: Would anyone care to confirm this? Feel free to mail me directly, or return results to the list. It would be especially useful if someone could try Win NT as I no longer have access to a machine running Winnt. I'm wondering if this speed difference behaves on Winnt as a Win 9x variant, or as on Win 2K. Most interesting would be if it behaved like Win 2K, as this would suggest it was related to how the OS handles text rendering. WORKAROUND: for D8 and above: use imaging lingo and copyPixels() (to the stage) a highlight over the word clicked. D7.02: use a series of off-stage shape sprites with add/lighten/(insert approprite inkType) and move these into position by calculating the rect using charPosToLoc from the text member. Anyone have any insights/suggestions? Should this be considered a bug (and logged with MM), or is it a FOL? Thanks, -Sean. [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] (Prob
RE: Re: Directmedia Xtra Problem (Help, Kinda Desperate)
> I suggest that you have a placeholder MPEG that is also copied to the > hard drive. The placeholder is unnecessary. Use the message window to set: member(10,1).file = EMPTY <- your DirectMedia cast member here then swap the file link when you need to play an MPEG. Save it EMPTY and publish/protect the file. Swap it back to EMPTY on endSprite. This shouldn't give you any trouble. [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!]
RE: disable 'PrtSc' function/key
> Is there a way to disable the 'PrstSc' key using lingo? I'm not sure about disabling, but you can tell if it's down or has been pressed using Buddy API's baKeyIsDown() or baKeyBeenPressed() and monitoring for the 'virtual key code' of 44. HTH, -Sean. [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!]
RE: the exitlock
Download this xtra (made by Gary Smith of Buddy API fame): http://www.mediamacros.com/files/quitmsg.zip It allows you to detect when someone has pressed the "close" button on your windowed/titled projector, and take appropriate action. HTH, Sean. > the close application > button on the > top right corner of the window could not stop the projector. How could i > enable this but prevent exiting by keypress? [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!]
RE: Re: Help..Kinda urgent
> when i make a projector with the option > In a window > Show title bar (Checked), to get a title bar on the > top of the > stage. The x box to close the applications (projector) does not work. The > minimize button - works, but not close. This happens if somewhere in your movie (on prepareMovie/startMovie) you set the exitLock = 1. Or, if you use a "projectorName.ini" file, in the [settings] section, "EscapeOk=0" is set. HTH, -Sean. [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!]
RE: streaming video
> >1). Potentailly a long time to wait for the DV file to download. > That depends on the data rate. If you are willing to trade image quality > and motion for time, then you can stream directly to 56k users at around > 4Kbytes/sec. That means expert compression and very low frame rates. > Higher than that, and you'll have an increasingly long preload buffer > necessary to allow continuous playback. (I rarely get as good as 4 KB/s on my home 56K modem - more usual is 800 bps) I understand the concept of increasingly long preload times ;) Quality is dictated by the client. Within reason. I'm prepared for the preload time, which is why I'm looking at HTTP streaming - so that the video can at least *start* playing before the whole file is down. I'm looking for tips about how to approach the http streaming within shockwave. Especially about the method I outlined previous. Unfortunately, installation of server software isn't an option. Otherwise RealVideo sounds like it would be a good option. Thanks, -Sean. [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!]
RE: preventing multiple projector instances
> Thanks, but I tried that. Problem is that when I force our window to the > foreground I still get the Windows taskbar on screen. Our program doesn't > display fullscreen. You can also use "baHideTaskBar( TRUE )" to hide the taskbar if it's proving problematic. Just remember to reset it when you quit. -Sean. [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!]
streaming video
Hi All, Sorry to clog your in-boxes with a thread that recurs regularly, but I need some help/suggestions about this. The client needs video in a shockwave piece. Setting up an RTSP server is a non-starter. Alternatives: 1). DL the entire DV file then play it. 2). Use QT's http streaming abilities. 3). Others? <-- insert your suggestions here --> Problems with the above: 1). Potentailly a long time to wait for the DV file to download. 2). How to know when to "start" the file playing/displaying so that while it's playing director doesn't reach the end of the file before it has streamed in. I want the progress to be seamless ie. NOT( play a little, DL some more, play that, etc. ) 3). Obvious need for QT to be pre-installed, or downloaded and installed. Likewise the SW plug-in and the QT3Asset xtra. There was a thread along these lines last year ( posted by Mark Jonkman? ) where code had been written to achieve this, but said code belonged to the developer's client. However, pseudo-code was provided. I'm wondering how far off-base the following approach might be: start a preloadNetThing on the QT file in beginSprite monitor the netID from this behaviour's exitFrame when enough of an initial buffer has downloaded so that I can (if the connection speed is maintained) rely on the file playing smoothly; set the dummy member's fileName to the URL of the preload from above, make it visible and set the movieRate to 1. Is this all I need to do? Do I need to worry about the streaming property of the dummy member? The pausedAtStart and controller properties? (I seem to remember a technote/thread regarding the importance of these properties and streaming) I've trolled the archives of both here and Direct-L, read the technotes at MM AND the manual. Lots of people asking for help, few solutions found/provided for seamless streaming Given the new Real xtra, is this a viable streaming alternative to QT? Reading suggests it doesn't have the ability to stream via http. Also, is http streaming provided by the installation of QT, or by the .mov file format. I'm wondering whether now that QT5 supports MPEG video on Windows - and I'm probably going to have most end-users installing it - whether QT can stream an MPEG file? Anyone tried it? I'm about to trial all of this (as soon as I can get the password for our site!), just looking for pointers/suggestions. TIA, -Sean. [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!]
RE: How do I know when puppetSound failed (v7.0.2)
> It fails when the user's computer has NO sound card... because it keeps > waiting (on the frame 11) for the first cue point that never comes > because > the sound is not being played or being 'timed' by director.. > does anyone knows any workarround this?? Any kind of help would be > appreciated. Buddy API has a baSoundCard() call which returns 1 if a card is installed. Another approach I've read of is to puppet a sound you've recorded with for example 1 second of silence in it and check soundBusy() after issuing the puppetSound command. The logic is that if soundBusy returns false then it's because there's no sound card. I've never tried this myself. You could aslo check soundBusy() on the frames where you're monitoring for cue-points. By the same logic, if the sound isn't busy in that frame/channel then there's no point waiting for a cue. HTH, -Sean. [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!]
RE: Going MAD!......pls help out!!!!
> I am looking for a code that will allow my movie to stretch to fill the > desktop area regardless of the user's screen resolution. Try: on prepareMovie tRect = (the deskTopRectList)[1] (the stage).rect = tRect (the stage).drawRect = tRect end Maximises the stages rect in the first monitor found in your system's Display Properties. I've never used this myself, but I understand that #text sprites don't respond well to drawRect changes. HTH, -Sean. [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!]
RE: super/sub scripts HELP!!!
> Is there a way to have superscripts and subscripts in Text members? member("textMemberName").char[charNumber].fontStyle = [#superscript] HTH, -Sean. [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!]
RE: Changing linked media
> > member("media").filename = the applicationPath & "newMedia" Don't forget to add the necessary file extension ie. member("media").filename = the applicationPath & "newMedia.MPG" (assuming - of course - that the named file exists at the path specified) HTH, -Sean. [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!]
RE: Sound object playlist and notification
> Is there any way for me to know (e.g., get a callback or even > "monitor" the current sound someway) to let me know when "A" has > ended and "B" has started, and then when "B" has ended and "C" has > started? You could - perhaps - monitor sound(chan).member.name in a frame script, or set timeout objects with the same period as the duration of the sound about to play. Might work. HTH, -Sean. [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!]
RE: Flash in Director...
> Does anyone have any advice for increasing the performance of flash > the interactions and animations > seem to run slow. Try: on beginSprite me sprite(flashSpriteNum/me.spriteNum).playBackMode = #lockStep end This should force the flash sprite to run at the same frameRate as the Director movie. HTH, -Sean. [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!]
RE: How to use lingo to IMPORT JPG into Cast Members
> People, is it possible to > in lingo > search a folder using fILE io and using the returned path > import all the JPG files into a new cast Yes and no. For folder operations, FileXtra3 will suit your purposes better. www.kblab.net/xtras/ It has methods, such as fx_FolderToList, which might be useful. Figuring if the returned files are JPEGs is as simple as testing the filename, with something like the "contains" operator, for ".jpg" Having done that, new(#bitmap, castLib "whatEver") and "importFileInto" could help. One thing you *can't* do is create a new castLib with Lingo. HTH, -Sean. [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!]
RE: SMUS Problem...
> No errors are generated in sending the message and the > appropriate callback > is firing. However it ALWAYS tells me that there is no message waiting. > ?!?!?!?!?!?!? The setNetMessageHandler takes an (optional - easily overlooked) parameter to pass the contents of the message to the handler being called. Otherwise, you need to call getNetMessage when the callback runs to retrieve the last message. Also, you should be handling errors at *every* step of the way, especially if you're having trouble. Consult the pdf docs on MM's site for more (confusing?) info. HTH -Sean. [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!]
RE: PDF
> If the user quits out of Acrobat completely, then the Director Projector > starts responding again. When you make your projector, in the "Options" section of the "Create Projector" dialog, make sure you have "Animate in the background" checked. HTH, -Sean. [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!]
RE: OT (not so much) felix the desktop-cat
> do you know how to create an animate screenmate with Flash or > director? maybe is there an authoring tool to realize it? If by "animate screenmate" you mean a screensaver, then you need Buddy Saver: www.mods.com.au HTH, -Sean. [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!]
RE: finicky hypertext chunks again
A 'quirk' similar to what you describe is listed at: http://www.updatestage.com/buglist.html with a suggested workaround. HTH, -Sean. > on beginSprite me >sprite(me.spriteNum).member.html = "Link" > end [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!]
RE: QuickTimePresent and Windows 2000
Hi Teo, You need to read http://www.updatestage.com/previous/990901.html In summary, there are a couple of 'flavours' of QuickTime floating around that install on windows OSes differently. D5 expects to find a version of QT pre version 3, while 7 and up expect to find version 3 and onwards. The lingo/xLib approach to detecting QT has changed to reflect this: D5 used the quickTimePresent while D7 and up use quickTimeVersion() (not sure about 6 & 6.5) HTH, -Sean. > I have done a > program some years ago with Director 5 that was running in all > platforms but now doesn't work in windows 2000. > I used the QuickTimePresent [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!]
RE: IsMappedNetworkDrive()???
Buddy API's baDiskInfo("O:\", "type") will return "network" if the drive is on-line and "invalid" if it's mapped but not connected. HTH, -Sean. > Is there a funcion in a free xtra that would allow me to check > if some volume is a mapped network drive?? [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!]
RE: create a folder
You need an xtra. Either Buddy API (www.mods.com.au) or FileXtra3 (www.kblab.net/xtras) will do this for you. HTH, -Sean. > How can I create a folder in the same folder as my move? [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!]
RE: Help re publishing
Perhaps you should read these 2 articles from DOUG: http://www.director-online.com/accessArticle.cfm?id=827 http://www.director-online.com/accessArticle.cfm?id=831 HTH, -Sean. [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!]
RE: Jump to frames between exe
You might try opening the other exe with a commandLine of the marker you want to navigate to and examining the commandLine in the exe file in it's startMovie handler and navigating to the marker name. eg. (in movie 1): open "aMarkerName" with the moviePath & "Movie2.exe" Once the other exe is open, though, I think this approach won't work (ie. you can't pass a commandLine parameter to an exe that's already running?). You could also use a prefs file that both exe's put marker names into and monitor on idle or via a timeout object. Look up setPref and getPref > Is there any way that you can jump to a specified frame when you jump > between exe files, not movies? Not sure that I understand what you mean by "jump between exe files" HTH, -Sean. [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!]
RE: black screen when MIAW is called
Hi Ellen, > the Glossary window display in black only and nothing else. You have a separate file called 'Glossary', or something similar, which is the fileName property of your MIAW. Is the stageColor of the Glossary movie black? Is this the problem - and if not, what do you mean by "the window displays in black only"? > --a cast script attach to Close button of the movie Glossary > --this is the same script also for my on closewindow handler > > global framenum > global movname > > on mouseUp > unloadmovie "Glossary" > go to frame framenum of movie movname > end Where is this script/cast member located. It's a real no-no to have a MIAW close itself - you're guaranteed a crash almost every time. What's more is that you appear to be unloading the file your MIAW is using before you've closed and forgotten your MIAW. If you need a button in your MIAW that will close it, try just having that script set a global called, say, gReadyToClose. Have a frame script in your *main* movie monitor this global and when it changes to true (as set by the script in your MIAW), close the MIAW. For the sake of speed, it is probably not necessary to forget and unload the glossary every time - unless you are running low on RAM or the glossary file is huge. Not forgetting/unloading it means that the next time it is opened it will open that much faster because Director won't have to reload the Glossary file. > Also when > this window is active the main or the calling movie should be active also. Im not sure what you mean by this. Do you mean that when you open your MIAW the stage freezes? If your windowType is 4 then it shouldn't, unless you're also setting the modal of the window to true. I hope this helps you a bit, -Sean. [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!]
RE: mapping out the "ESCAPE" key
I'm not sure if this is an answer to your question, but for Windows (only?) there is an xtra called "quitMessage" that will detect a click on the close box when the exitLock is true. It sends a system level message which can be trapped via lingo. Find it by searching, under "Xtras", at www.mediamacros.com > There seems to be no way to allow the user to quit by using the system > Close button, and still trap Esc. You can't trap Esc unless > exitLock is set > to true. > > I hope that someone proves me wrong, because I would like to trap Esc w/ > disabling the system Close command. -- the keyDownScript is set to "trapEscape" on trapEscape if the keyCode = 53 then alert "User pressed " stopEvent end if end Hope that helps, -Sean. [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!]
RE: Flash Problem in Director
I have no first-hand experience of this, but having read about similar sounding problems here are a couple of things to bear in mind: 1). If you're using Director 7, make sure you've updated the Flash Asset xtra to (7.02?)r140 as there was a bug in the original release which caused a memory leak -> crash. (I realise that the original poster stated he was using D8, so this isn't the issue) 2). Don't have Flash 'tell' Director to navigate to a fame which doesn't contain the Flash sprite from which the navigate command originated. If Flash needs to spawn a navigation in Director, perhaps the safer way to go is to have Flash set a (global) variable which the frame script can monitor for changes and if the frame script sees a change it can take care of the navigation. HTH, -Sean [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!]
RE: RE: Fullscreen MPEG/Quicktime on a Mac
> I need the > video to stretch beyond the size of the stage Then you'll have to play it in a MIAW. Or live with not seeing the clipped edges ;) -Sean. [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!]
RE: Fullscreen MPEG/Quicktime on a Mac
> Does anyone know of any quick, simple solutions to playing mpeg/quicktime > movies fullscreen Director on a Mac like Directmedia does on a PC? Perhaps > an undocumented quicktime xtra function? (Untested). It may be useful to store a flag to tell your exitFrame handler if the video is FS or not. There are often issues with flickering/ artefacts of video when doing this sort of thing. Solutions can be found by moving the video sprite offStage when re-sizing it and making use of 'the stageColor = the stageColor' to force Director to redraw the *entire* stage. property p_OrigRect, p_FSRect on beginSprite me p_OrigRect = sprite(me.spriteNum).rect p_FSRect = rect(0, 0, \ (the stage).rect.width, (the stage).rect.height) end on exitFrame me if keyPressed("z") then sprite(me.spriteNum).rect = p_FSRect else if keyPressed("x") then sprite(me.spriteNum).rect = p_OrigRect end if end HTH, -Sean. [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!]
RE: RE: Key Pressed??
> on keyPressed me > keyup > end > > > on KeyUp me > if the keyPressed = "c" or the keyPressed = "C" then > sprite(17).blend = 100 > else > sprite(18).blend = 100 > end if > end > > If you press c it still does the else loop > > what ever key you press it is doing the else command and not the if? Your approach to checking for keys is giving you difficulty. Try: on keyDown me (or keyUp me) if the key = "c" then sprite(17).blend = 100 else sprite(18).blend = 100 end if end Be aware that to receive a keyDown/Up handler you will probably need an editable sprite on stage. Better still to perhaps use keyPressed polling in an exitFrame hendler: on exitFrame me if keyPressed("c") then sprite(17).blend = 100 sprite(18).blend = otherBlendValue else sprite(17).blend = otherBlendValue sprite(18).blend = 100 end if end HTH, -Sean. [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!]
RE: the tale of two sounds
This thread ran recently on another list and may be relevent to you. Certainly the reply about how Director parses sound files was illuminating: hello all, was wondering if anyone has ever come across this: NT, D8 will play linked .aif sound files in authoring mode, but the projector won't play *some* .aif files ( will play others ). here's what i've tried: 1. maybe there's something wrong with my code: i made a projector with only the sound cast members imported. all the sounds played in authoring mode. some sound files ( always the same ones ) failed in the projector. 2. maybe copying the file from a mac-based server to the pc caused the problem: copied the same files directly from a cd to the pc harddrive. same problem. 3. maybe those files are corrupt: in sound-edit, pasted the waves into a new file. STILL THE SAME PROBLEM. again, ALL the files will play in authoring mode, and some ( always the same ones ) will fail to play in the projector. furthermore, those that fail seem to take over the system resources when they fail ( the computer is momentarily unresponsive ). only converting those files from .aif to .mp3 format seemed to solve this, but i'm still very interested in getting some feedback, because it seems that this is a very strange problem. 1st reply: > NT, D8 will play linked .aif sound files in authoring mode, but the > projector won't play *some* .aif files ( will play others ). > 1. maybe there's something wrong with my code: No, there probably isn't anything wrong with your code. In D8, we changed strategy when playing sound files. Instead of depending on fileType or extension, we parse the file header to determine what kind of sound file it is. The problem is that MP3 files don't really have a header. The MP3 data can begin anywhere in the file, and players are expected to skip over any leading data that they don't understand. Unfortunately, the order in which various parsers are tried wasn't defined well enough. The problem is that if you have a large enough file, the MP3 parser can be spoofed into thinking it has a valid MP3 (done by examining successive bit patterns and where the indicate the next known bit patterns should be), but with essentially no data worth playing. Because there is a false-positive, no other parsers are tried, so the *real* sound format isn't detected. This bug was found shortly after D8 shipped, so it has been fixed in Shockwave. Here are a couple of things you can try: 1) Create a Shockwave projector. Shockwave shipped with this bug fixed. It will not try to use the MP3 parser unless all other parsers have failed to identify the file. 2) Include the "Sound Import Export" Xtra in your list of Movie Xtras. This will mimic the environment that Authoring uses. Note that we have embedded support for the following file formats built directly into the Player, as of D8. You no longer explicitly need to include Mix Services or other Xtras to play these formats: 'snd' (Macintosh System 7 Sound) AIFF AIFC(ima4) Wave(uncompressed) Wave(ima-adpcm) MP3(*) SWA(*) (*) This applies to Imported sounds of these formats. When using Inserted (streaming) sounds, other Xtras are required. 2nd reply: > it turns out that importing all the sound files fixes the > problem, but ... > and this is the eternal question ... WHY? If the sounds are not compressed, when they are imported (non-linked), we strip away all unnecessary file data and just retain the sound bits (and cue point information, if any). Internal uncompressed sounds do not need to be parsed in order to be identified, so there is no MP3 spoofing (as explained in my previous response). -Sean. [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!]
RE: File Dialog?
> I think everybody has gone a little too nuts over BuddyAPI.. Agreed. No question but it's a *fabulous* xtra, but given the x-plat requirements perhaps not the most appropriate for this situation. > You want cross-platform dialog boxes for Open and Save? Then use > the FileIO > Xtra that ships with Director!! Yes, but even better is FileXtra3 - also *free*. Not only does it provide the system-level open/save dialogs, it will actually do the copying when you've extracted the path! Get it at http://kblab.net/xtras/ -Sean. [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!]
RE: prepareMovie handler in an external cast
An update to my previous post: I got bored waiting for the answers to come flooding in, so I wandered over to Direct-L and spotted a strikingly similar thread there. Trolled the archives from a few months ago and thought I had the solution. I added a global flag to my prepare/startMovie handler so that it wouldn't run twice. Reset it on stopMovie. Worked a charm. It still crashes for me. With amazing regularity in the same movie every time now. I'm navigating from a movie that has a DirectMedia sprite playing. I've tried pausing/stopping this video before issuing the 'go' command, but it still crashes. I'm getting more and more resigned to not being able to do the preloading I was hoping for. Unless anyone has any suggestions ... Thanks for listening. Sean Wilson. > This prepareMovie handler was causing intermittent crashes. Never the same > place twice. If I remove the offending handler the whole thing > becomes rock > solid. Sure, I could put this handler in an internal cast in 100+ > files, but > that ruins my hoped for efficiency. [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!]
prepareMovie handler in an external cast
Hello all, I'm having a problem that I hope someone here will be able to shed some light on. I have a series of movies that will largely be navigated in a linear fashion - with a MIAW allowing for jumping out of the sequence. Nothing particularly spectacular. There is a lot of code that is common to nearly every movie in this sequence - a 'go to the frame' script and various navigation elements, so I stuffed these in an external cast that is linked to every movie in the sequence. I'm also wanting to do some preloading of the next movie in line so as to speed up the navigation process. I also need to dynamically change the fileName of a linked cast for branding purposes. It seemed that an easy way to achieve these ends was to run a prepareMovie handler that checks which is running and preloads the next. The problem: this handler, if resident in an external linked cast, runs *twice* every time I navigate. I built a stripped down version with a couple of bare bones movies and the ability to jump to-and-fro between them - with the linked cast structure I've described - and the problem manifests there, too. I'd post these on a server if I had one. If you're interested you can mail me off-list and I'm more than happy to zip up the test files for scrutiny. I swear there's nothing unusual in them - only what I've described. This prepareMovie handler was causing intermittent crashes. Never the same place twice. If I remove the offending handler the whole thing becomes rock solid. Sure, I could put this handler in an internal cast in 100+ files, but that ruins my hoped for efficiency. I changed this handler to startMovie and it improved for a time, then began crashing again. In short: is it a no-no to put either of these handlers in an external cast and if so where is that information hidden in the docs and why is it bad? A weird thing I noticed that is probably related: when I watch the external cast in *list* view I (*very*, *extremely* occasionally) notice the movie script listed twice with the same memberNumber. I suspect this goes to why it runs twice, but am none the wiser as to why this is happening. Also - I hope I'm not flogging a dead horse here - I tried creating a timeOut object with a target parent script instance that I could use for navigation. This could deal with preloading/swapping cast libraries, but it needs to be persistent and it WILL NOT persist for me. Code follows: --- property myTimer on new(me) myTimer = timeOut("navigator").new(1, #nav, me) myTimer.persistent = TRUE -- this isn't really necessary -- nor is it necessary to store -- the timeOut object in this target object return me end on nav(me, timeOutObj) put "Navigating ..." mName = (the movieName).char[1..(the movieName.length) - 4] if mName = "movie 1" then go to movie (the moviePath) & "movie 2" else go to movie (the moviePath) & "movie 1" end if end --- This timeOut object will trigger a navigation once only, not repeatedly jump between the two named movies every 10 seconds like I was expecting/hoping. Any idea why it doesn't persist? Thanks for any help, Sean Wilson. [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!]
RE: Quick Time Tricks?
Hi Greg, A couple of things - cue points added to a QT video on a windows machine using QTPro *don't* work. Brennan Young has a lot of QT info at http://brennan.young.net/welcome.html or http://www.mcli.dist.maricopa.edu/director/tips/qt/012.html or http://www.director-online.com/accessArticle2.cfm?id=445 Having said that, I'm not sure now why I say that cue points created with QTPro on Windows don't work. I know they didn't the last time I tried, but perhaps that's changed ... It seems that the problems you're experiencing are all on Windows. Did you try re-installing QT? Was your D7 projector for Windows made with D7.02? Do you start your (Windows) movie by setting "the soundDevice = QT3Mix"? Is the QT member's "streaming" property set to TRUE? Crashes at inconsistent times are the worst thing to try and track down. You have my sympathy. Hopefully one of these suggestions, or one of the links, will help. Sean Wilson * Aztech Productions Level 2/172 Great South Road Papatoetoe AUCKLAND ph (09)279 5913 * > I'm authoring in Director 7 on a Mac, for a project to be delivered in > Windows. I'm using QuickTime 4 on both platforms. My QuickTime files are > audio only. Some use cue points and some don't. With the default > installation > of QuickTime the setting is direct out. That causes sounds to get > clipped and > not play real smooth. The sound is narration at 16 bit, 22k. When > I switch to > Wave Out the sound is much better. But either way, in Windows, I get > occasional and unpredictable crashes. I am not preloading the sound but > preloading the text track for the cue points. > > Any ideas? Any body know why it would crash every once in a while > and not in > the same place and not everytime? [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!]
RE: Vanishing graphics in a shockwave movie
Hi George, On the PC I'm using I don't see any graphics either. I might guess that given you probably have lots of graphics to incorporate, and it's reasonably certain no-one will need to see all of them during a session, you're linking them at run-time by setting the fileName property of a linked file - perhaps along with a downLoadNetThing command, or perhaps using importFileInto. It may be that this operation is failing. If my guess is on the right track, try opening a message window with shockwave and verifying the paths you're setting are correct. Though if you're seeing the graphics as expected on your PC it will be tricky to figure that out. Do some error checking on your download/import operation before trying to utilize it's result. If you're unsure of how to get a message window with Shockwave (great for error checking!), a search of the Direct-l archives will probably help. Hope that helps, Sean Wilson * Aztech Productions Level 2/172 Great South Road Papatoetoe AUCKLAND ph (09)279 5913 * > However the client tells me that he only gets a border around the > graphics, > but it works fine on my PC as well as on several others that I > have tried it > on. Can anyone please tell me what is happening and more > importantly what I > can do to correct it? [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!]
RE: Flash sending Lingo to Director
Hi Nik, There is a known problem with flash member sprites (and QTVR) where Director will (often) crash when it is 'asked' by a flash sprite to navigate to a frame which no longer contains the flash sprite. The calling stack gets messed up and down she goes ... Workaround: have the flash sprite set a flag that director monitors ie. flash sets a variable and on the next frame loop director 'sees' this change and navigates based on this variable's new value. As for performance issues with Flash and Director, read up at www.director-online.com about this. > (flash) contains 2 lingo commands calling 2 moviescripts > on ReadyToMoveOn > case the frame of > 30: > if gFlashStopped = 7 then > put "All finished! frame 30 / 7 flash_sprites" > go the frame + 1 |^(culprit) | > end case > end Hope that helps, Sean Wilson. * Aztech Productions Level 2/172 Great South Road Papatoetoe AUCKLAND ph (09)279 5913 * [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!]
RE: Passing Command line attributes to Director Projector ?
I just had a look in the lingo dictionary and was surprised NOT to find 'the commandLine', because it is a valid system property. Try it with a projector. Or double-click a file to open it in director and ask for the commandLine in the message window. Unfortunately, your projector ini file is bypassed if the projector is launched with any commandLine arguments. So if your ini file calls for a message window, it won't appear. budAPI's 'baCommandArgs()' function gives the same results. Hope that helps, Sean Wilson. * Aztech Productions Level 2/172 Great South Road Papatoetoe AUCKLAND ph (09)279 5913 * [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!]
RE: XML Documents in Lingo
Hi Christopher, Odd how these synchronicities occur. I have been in the process of creating XML definitions for behavior properties and looking for a way of exporting existing property lists into an external XML document - when you appear with what looks like a part of the puzzle I'm needing to implement. Thus I'm more than happy to "take a quick look" - and perhaps, with your permission, borrow some ideas. Do you have a link? -Sean. > I've created a rudimentary implementation of XML as a parent > script. [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!]
RE: Q: Screwed up rollovers
> The cast members are not in the internal cast but rather another cast > called "eval" ... they do correspond to the correct cast location > numbers. Obviously a rollover is supposed to occur (this simulates an > email form) but instead what happens is the resulting rollover appears > in the corner of the screen barely visible to the viewer. > > I know this must be easy but I'm wacked ... any thoughts? So you're having the currentSprite swap cast members and the swapping is OK, but the positioning when swapped is way off? Is it perhaps because your registration points are different between normal and rollOver states? Do the cast members flicker between states? HTH, Sean. [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!]
RE: Q: Directemail Xtra
> I installed it like the documentation required and it works > fine in the > demo movie. I moved it over to PC and there even the demo > movie returns > an error. I don't get it. I'm not terribly lingo savvy so I'm sure the > problem is basic. I created a 'DirectXtras' folder inside the 'Xtras' > folder in the director application - again it works with the > demo movie > on the mac but not on the pc. > > >paste it into my movie I get "error handler not defined > #readreg" ... > > >this is very basic I assume but I'm blanking on the solution. Did you include the DirectOS xtra with it? Vital for use on Windows. HTH, Sean. [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!]
RE: projector.ini technique- message window a run-time?
> ... could you please > elaborate on this, or post a URL? I was just considering how > to create a > pseudo-message window with a field this morning in the shower. The > technique you mention sounds like it's worth checking out. Paste the following into a plain ASCII text file and save it calling the file "yourProjectorNameHere.ini". Leave it _beside_ your executable. ;-- ;Uncoment the lines below if you need ;a message window in your projector file ;Can be very useful for testing ;To uncomment, remove the colons in front of each line [Settings] MessageWindow=1 MessageWindowRect=387 600 995 840 ;singleInstance=1 ;EscapeOk=1 ;FullScreen=0 ;--- For further info, check out http://www.zeusprod.com/nutshell/otto.html HTH, Sean. [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!]
RE: FileXtra- fx_FolderCopy
> I have this problem with the FileXtra... (on MAC) > On a CDRom, when a user click on a specific button, I want to > copy a folder > from the cd into the hard disk of the user. > At first, I taught about having a window with the option for > the user to be > able to browse where he wants to install it...but I just > couldn't find the > way to make it work... > Then, I tried with the FileXtra and I found the example to > copy a folder, > but the script doesn't seems to work... there it is: > > on mousedown > fxObj = xtra("FileXtra3").new() > put fxObj.fx_FolderCopy("@: MyFolder", "Macintosh HD: > Applications", True) > end Some potential problems: in your handler you have "put fxObj.fx_FolderCopy(etc...)" which would be writing an integer into your message window. However, you mention a CD-ROM, so I'll assume you've created a projector and so don't have a message window you can examine(unless you've used the projector.ini technique to provide a message window a run-time...) Another potential problem is that the name of the folder to copy into is hard-coded. Can you be sure that _all_ your end users have a HD called "Macintosh HD"?? Try renaming your own (primary) Mac HD this way and run your program from your CD. It may work now. The safest thing to do is present your end-user with a dialog asking where to put the files you need to copy. Use FileXtra3's "fx_FolderSelectDialog" to pop-up a dialog window and use the path returned in your folder copy routine. Best of luck, Sean. [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!]
RE: Re: alpha in quicktime?
> Does D7 recognize alpha channel of a QT Movie > if yes how to use > my QT is made from InfiniD > ( A globe rotating[ i want only the globe visible in D7]) I'm really not sure about an alpha channel _inside_ a QT movie, but perhaps you can acheive the effect you're after by using a mask with the QT member. Check the dictionary entry for "mask". HTH, Sean. [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!]
RE: Help on image scroll
Hi Brian, Try making a start with http://www.director-online.com/accessArticle.cfm?id=880 HTH, Sean. > I have a progect that I need to have the end user scroll > through several thumbnails on the bottom of a 640x480 screen. > Then they can click on the thumb of choice and it will update > in a window. Could someone point me in the right direction to > figure out how to go about this? 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!]
RE: from macromix to qt3mix
> > suppose after completion of a project if i just write in a > > movie script "set my sound device to "qt3mix"", will it be > > able to switch the sound device to qt3. > > Are you just asking whether the soundDevice property is > writable? It is: > > on switchSoundDevice deviceIWant > -- avoid redundancy > if the soundDevice = deviceIWant then return TRUE > -- See if deviceIWant is available > if the soundDeviceList.getOne( deviceIWant ) then > the soundDevice = deviceIWant > else > alert "ERROR #switchSoundDevice:" && deviceIWant && "is > unavailable." > return FALSE > end if > return TRUE > end > > It doesn't need to be done from a movie script; you cand do it from > anywhere, including the Message window. > > put switchSoundDevice( "QT3Mix" ) > -- 1 Be careful with trying to use "DirectSound" on Windows NT. High enough versions of DirectX to utilise "DirectSound" are unsupported; so: -- Welcome to Director -- put the soundDevice -- "MacroMix" put the soundDeviceList -- ["MacroMix", "QT3Mix", "DirectSound"] put switchSoundDevice("DirectSound") -- 1 put the soundDevice -- "MacroMix" -- The handler Rob gave will try to set the soundDevice, but will fail. Having set it, you need to recheck it to ensure it was successful - iff (and only if) you are trying to set it to "DirectSound" AND you are on a Winnt platform. Hope that helps, Sean. [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!]
RE: MIAW closing problem
> I'm pretty sure someone has a more classic > "looping flagWatcher" approach handy. I also found the "looping flag-watcher" approach a bit plain-vanilla and tried a little experiment prompted by (if memory serves) Jakob's telling a list that each window maintains it's own actorList (as well as it's own timeOutList). I include a parent script in the MIAW's cast that will accept a window handle for later closure, and then add this object to the _stage's_ actorList. There are no other pointers to this object retained, so after it's next stepFrame message - where it closes/forgets the window handle it was passed - it deletes itself from the (stage's) actorList. Pretty much the same as Jakob's technique but without the use of timeOut objects. It has worked for me, but I'd like to know what others think - is it OK to have an object remove the last/only pointer to itself? Is an object really gone (ie. is the RAM space it occupied really freed up) if the last pointer to the object is voided? Also, this approach works for D7. Cheers, Sean. -- MIAW closer parent -- property pWindow on new me, aWindow pWindow = aWindow tell the stage to (the actorList).add(me) return me -- optional?? end on stepFrame me -- error checking goes here close pWindow forget pWindow (the actorList).deleteOne(me) end [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!]
RE: memory issue
> I'm working in dir7 on the mac side. My problem is: I have > a projector > that opens up shockwave movies. The shockwave movies are > only 5 or 6 meg a > piece in file size. My Projector is 9 meg. Only one > shockwave movie is > open at a time. When the shockwave movies open up, the user > has a choice > of what QT movies they want to see. While the QT movies are playing, > however, I get a window that opens up and says "system out of > memory, even > while purging all purgeable members". Sometimes this happens without > playing any videos, but just while the shockwave videos are > loading. Any > ideas as to why this is occurring? I've tested this out on > macs with 32 mb > of memory and those with 160 mb of memory...same issue!! Any > help would be > appreciated. Does the fact I'm using Dir 7.0 and not 7.02 > have anything to > do with it? ARGH! First up, why don't/won't/wouldn't you upgrade to 7.02? It's a ("free") download from Macromedia. It has a number of known bug fixes. There is no point even talking possible solutions until you've done this. As I understand it, Shockwave files are compressed. For a Director projector (or the SW plug-in, for that matter) to play them, it must first de-compress said files. So your quoted 5 to 6 MB SW files is a little misleading. They will bloat on decompression to who-knows-what. How big are the QT files? Is there enough system memory left for the QT xtra to play the video for you? How much memory have you allocated to the Mac projector? When you open Director's "Memory Inspector" in the authoring environment, how much RAM does it chew up when opening/navigating to the SW files. Are you using play/play done commands to navigate around these SW files, or are you opening them as MIAWs? Are you using any memory-management commands - preload/unload. Not very helpful I'm afraid. But perhaps some things to consider. Regards, Sean. [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!]
RE: any info 3D-lingo-3D
3D engine entirely done in lingo(downloadable source for engine and demos): http://www.theburrow.co.uk/t3dtesters/index.htm 3DDreams (xtra driven)(recently made available for free): http://www.doitin3d.com/3ddreams/download/down.html Hope that helps, Sean. [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!]
RE: Mac/PC CD
Hi Brad, > What is the best way to launch a movie on a Mac and PC in > such a way that the user isn't waiting > forever for something to happen. Create a 'stub' or 'fast-start' projector. Essentially a projector file - with or without the necessary xtras compressed into it - that immediately navigates to your first dxr file. Search MM's site for 'fast-start' projector, or read the excellent article(s) at director-online http://www.director-online.com/accessArticle.cfm?id=827 > Also, how can I create a clean directory structure on my CD > (ie. no xtras/cast dirs off the root), > yet have the Mac autorun program in the root? The above article puts it much better than I ever could. Probably you're needing to make use of 'the searchPaths' property, or hard-code some folder paths into your navigation structure along with 'the moviePath/applicationPath'. > Last, what font will the Mac use if the movie was created > with the Arial font? Find your way to your Director application and have a look at the fontmap.txt file beside it. Hope that helps, Sean. [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!]
RE: Audio and NT4.0
Hi Sam, > I have experienced a lot > of problems > when using sound under NT. Most recently, under NT 4.0, I > have found that a > game we are developing seems to have sound playback problems (using > MacroMix) both when authoring and from the web. "Sound playback problems" is a tad non-specific, but if it's latency issues you're talking about - an unacceptable delay between when the sound _should_ start playing and when it really does - then use QT3Mix as your soundDevice. The only problem with this in Shockwave is that the QT3Asset Xtra is not part of the standard Shockwave install - you'll need to flag it with the "Download if needed" option. Hope that helps, Sean. [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!]