Re: Event processing (was: pass with prepareMovie not possible?)
- Original Message - From: "Buzz Kettles" <[EMAIL PROTECTED]> > > 1.5 - CAST MEMBER scripts (scripts attached TO the cast member > themselves) - > these have officially been deprecated, but they are still in wide > usage - especially in legacy work & newbie projects. Good point, I totally forgot about those. > the pass concept applies primarily for the processing of mouse-related > events > frame events get to all the levels without the need of a pass > movie events only get to their appropriate movie script > (-> the first one encountered within all the casts, while searching > starting with castLib 1) This is a good point too; I've already got the events split into different categories, but I think I better revise the categories since there are basically 3 types of propagation: global events (e.g. enterFrame, exitFrame), interrupts (e.g. mouseUp, prepareMovie) and local messages (e.g. beginSprite, stepFrame). There are some exceptions to the basic rules, but I'd rather stick to simple categories and then point out the exceptions rather than complicate things. > & 3D worlds get certain events that only apply to them Got a list? Still haven't got into the 3D stuff yet. > & timeout objects get a selected set ... Another good point, according to the help the list is: prepareMovie, startMovie, stopMovie, prepareFrame, and exitFrame Odd that they don't get enterFrame events. Another one for the list of peculiar exceptions. > Also the beginSprite/enterFrame stuff is screwy in frame 1, etc. Can you elaborate on this at all? I've heard a lot of people talk about problems with frame 1 in the past, but I've never been able to replicate a problem myself - I think a lot of the time it is fear of a bug that no longer exists, or confusion over the event order. No matter what tests I do, the order is always: [prepareMovie] beginSprite, prepareFrame, [startMovie] enterFrame, exitFrame - although obviously if you don't use frame one then beginSprite/prepareFrame will be called after startMovie rather than before. The fact that it's actually the other way around does seem to confuse a lot of people though. One odd thing I did spot in doing a quick test just now is that if you put a "halt" statement in an exitFrame handler in the last frame of your movie, the playhead actually moves back to frame one and fires the beginSprite handler(s) before quitting. Doesn't do it if you put the halt statement in enterFrame instead though. - Robert [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/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: Event processing (was: pass with prepareMovie not possible?)
At 3:50 PM +0100 6/10/04, you wrote: - Original Message - From: "Jakob Hede Madsen" <[EMAIL PROTECTED]> Hi James, I'm still a little baffled that everyone seems to agree that 'pass' doesn't work for movieEvents. I've actually just been investigating the order of event propagation for a short article I'm writing - I started putting my stuff about dynamic puppets up on the web and ended up writing a whole bunch of related stuff that I haven't finished yet, one of which covers the Director event model. What I came up with is this: Director checks for handlers at different priority levels. If it doesn't find a handler at priority 1, it goes on to priority 2, etc. The priorities are: 1 - Sprites (highest sprite has priority) + an additional important graphic-related element missing 1.5 - CAST MEMBER scripts (scripts attached TO the cast member themselves) - these have officially been deprecated, but they are still in wide usage - especially in legacy work & newbie projects. 2 - Frame script 3 - Movie script IMPORTANT NOTE: the pass concept applies primarily for the processing of mouse-related events frame events get to all the levels without the need of a pass movie events only get to their appropriate movie script (-> the first one encountered within all the casts, while searching starting with castLib 1) & registered actorlist parents can get stepFrame events (which no one else does officially) & 3D worlds get certain events that only apply to them & timeout objects get a selected set ... Also the beginSprite/enterFrame stuff is screwy in frame 1, etc. hth -Buzz One caveat is that each level can only have one handler, so a "pass" passes control on to the next priority level, never to another handler with the same priority. For example, if you have a mouseUp handler on two overlapping sprites, "pass" will pass control from the top sprite to the frame or a movie script, but not to the lower sprite. It looks like the only part of this model that I got wrong is that each castlib has it's own priority level, so the order is actually: 1 - Sprites (highest sprite has priority) 2 - Frame script 3 - Movie script: castLib 1 (n+2) - Movie script: castLib n JFTR, I tested and this does work with sprite-level events such as mouseUp, as well movie-level events like prepareMovie. Does this sound about right, or does anyone have any further insights to offer about the event processing model? In particular, can anyone think of any further peculiarities relating to MIAWs, LDMs or anything else where cast references might be skewed in some way? - Robert [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/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!] [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/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: Event processing (was: pass with prepareMovie not possible?)
- Original Message - From: "Alex da Franca" <[EMAIL PROTECTED]> > > AFAIK the moviescripts in the same castlib as the > object lives in, which the event came from, are > given precedence, and THEN the castlibs are > processed in their order. > but you have to test it, because I am not 100% sure about that That's true if you call a function from another function, in which case it scans from the cast where the calling function is located first. However, as far as events passing by "pass" goes, it always processes from castlib 1 first. I checked this before the last post to make sure I had it right. - Robert [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/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: net params
How to pass some params to the shockwave movie like in HTML pages: I'm not sure exactly what you're wanting to achieve, but here are some options: You can send a property list with getNetText or postNetText commands. See the docs for syntax and examples. To have a SW movie read information from the page it's embedded in you can use sw1 -> sw9 in the page's object/embed tags and your movie can read these when it loads using externalParam. Look up externalParam / externalParamName / externalParamCount in the docs. There is also externalEvent and evalScript but their support across browsers and platforms shouldn't be relied upon. [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/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!]
Fields & Fonts
Hi, Has anybody set the font on onlt characters of a field with lingo? I want to do the following: a field is populated with the resultsof a search. the items are names of video clips which the user can select by clicking on tick boxes next to them. I want these tick boxes to be part of the field as I want to be able to scroll the whole properly ( at the moment I am using 2 fields, and a self-made scrolling feature put together by individual scrollbar bits, etc. - works but not as smooth as I'd like it). One can change the font on character level manually, but what would be thelingop for that? Any sugestions much appreciated, Best Nik ___ Cost effective technology solutions for business. Sign up for a free trial today! http://www.officemaster.net [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/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!]
OT: Technical Director Job in ATL
2 days, 2 random headhunter calls, 2 cities I am not in or going to move to. Java,J2EE,JSP Expert level in Actionscript and Lingo Looking for a Technical Dir to lead a team of 5-10 people. Will be creating online games. Email me, I'll hook you up. roy --- Roy Crisman Macromedia Director Programmer, Lingo Guru, Multimedia Producer Greater Rochester Macromedia User Group (GRMMUG.org) Coordinator 277 N. Goodman St. Rochester, NY 14607-1162 (585)473-3492 home (585)615-2873 cell roymeo(AT)brokenoffcarantenna.com [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/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: Event processing (was: pass with prepareMovie not possible?)
At 15:50 Uhr +0100 10.06.2004, Robert Tweed wrote: 1 - Sprites (highest sprite has priority) 2 - Frame script 3 - Movie script: castLib 1 (n+2) - Movie script: castLib n JFTR, I tested and this does work with sprite-level events such as mouseUp, as well movie-level events like prepareMovie. Does this sound about right, or does anyone have any further insights to offer about the event processing model? AFAIK the moviescripts in the same castlib as the object lives in, which the event came from, are given precedence, and THEN the castlibs are processed in their order. but you have to test it, because I am not 100% sure about that -- ||| a¿ex -- [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/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: Event processing (was: pass with prepareMovie not possible?)
> Does this sound about right, or does anyone have any further > insights to offer about the event processing model? In > particular, can anyone think of any further peculiarities > relating to MIAWs, LDMs or anything else where cast > references might be skewed in some way? It sounds right. It's not complete, but I assume you did that for brevity. Here are some things to look for: - prepareSprite happens before startMovie - the same event can be processed multiple times if multiple behaviors with handlers for that event are attached to a sprite You might want to take a look at Bruce Epstein's "Lingo in a Nutshell." It's out of date in a lot of ways--it hasn't been updated since 6.5--but it covers the event-handling model very thoroughly. Or was it "Director in a Nutshell"? One of the two--maybe both of them. I think Lingo. Cordially, Kerry Thompson [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/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: Event processing (was: pass with prepareMovie not possible?)
- Original Message - From: "Jakob Hede Madsen" <[EMAIL PROTECTED]> > > Hi James, I'm still a little baffled that everyone seems to agree > that 'pass' doesn't work for movieEvents. I've actually just been investigating the order of event propagation for a short article I'm writing - I started putting my stuff about dynamic puppets up on the web and ended up writing a whole bunch of related stuff that I haven't finished yet, one of which covers the Director event model. What I came up with is this: Director checks for handlers at different priority levels. If it doesn't find a handler at priority 1, it goes on to priority 2, etc. The priorities are: 1 - Sprites (highest sprite has priority) 2 - Frame script 3 - Movie script One caveat is that each level can only have one handler, so a "pass" passes control on to the next priority level, never to another handler with the same priority. For example, if you have a mouseUp handler on two overlapping sprites, "pass" will pass control from the top sprite to the frame or a movie script, but not to the lower sprite. It looks like the only part of this model that I got wrong is that each castlib has it's own priority level, so the order is actually: 1 - Sprites (highest sprite has priority) 2 - Frame script 3 - Movie script: castLib 1 (n+2) - Movie script: castLib n JFTR, I tested and this does work with sprite-level events such as mouseUp, as well movie-level events like prepareMovie. Does this sound about right, or does anyone have any further insights to offer about the event processing model? In particular, can anyone think of any further peculiarities relating to MIAWs, LDMs or anything else where cast references might be skewed in some way? - Robert [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/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: Need HideHotSpots and ShowHotSpots capability
Welcome to the list! I remember going through the exact thing about a year ago. I was looking for a programmatic way to do the exact same thing. I also had the requirement that I had to be able to do VR HotSpots cross-platform. Unfortunately I could not find a solution. I also ran across the Developware version, but it was Windows only. My client eventually dropped the requirement to show/hide ths hotspots. I never followed through with trying out the Developware Xtra as I needed a cross-platform solution, so I can't tell you how well it works. But if your kiosks are Windows only, I think that they are the only game in town. Irv At 6:34 AM -0700 6/10/04, Paul Fretheim wrote: Hi, I am new to this list. Hi everybody! My company has kiosks at Park visitor centers, bookstores and museums which run Macromedia Director loops which are subsets of our CDs which feature QTVR scenes. As you know, there is a button at the bottom of the QTVR window which makes the hot spots toggle between visible and not visible. I would like to be able to write some Lingo code to make the QTVRs reset to the "Hotspots not Visible" mode, so when a potential customer has toggled the hotspots to visible, the Director movie will reset the hotspots to "Not Visible" the next time around so the panos do not have mysterious blue rectangles all over them after the person who clicked them visible, either knowingly or otherwise, walks away, leaving them visible. I am using Director 8 and I have the reference books: "Director in a Nutshell," "Lingo in a Nutshell" and "Using Director 8," but I cannot find the correct property name for HotSpots. I have been able to find the VRHotSpotEnter and VRHotSpotExit properties, which will give Boolean values that can be acted upon, but I can't find the property name for setting Visible/Invisible. It occurs to me that this may be a property of the controller, but I have been unable to find settings there either. Any assistance will be most appreciated. I downloaded the demo version of an Xtra from Germany, which purports to offer the Hide/Show capablity I need, but the instructions were like trying to read a translation of Hegel and all the warnings put me off. There seemed to be so many potential instabilities that I would be reluctant to place something which relied on that at retaliers. Does anyone have experience with the "Developware" Xtras? Thanks. Paul Fretheim Owner, Inyo Pro - Publishers of Interpretive Products on the National Parks http://inyopro.com [EMAIL PROTECTED] [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/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!] -- Multimedia Wrangler. [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/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: pass with prepareMovie not possible?
On Jun 10, 2004, at 3:11 AM, Jakob Hede Madsen wrote: Well, like I wrote previously; HE CAN. May I suggest that you test it yourself? Fair enough. I can confirm that it CAN work. I'd still wonder about the case where it actually *needs* to. But, who is to say for someone else's project? Go for it. -- Troy RPSystems, Ltd. http://www.rpsystems.net [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/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: Video in Director - more....
Actually Sorenson doesn't play that bad in my experience on those speed of processors, as long as you don't go to crazy with the datarate. Now the memory requirement is more of a problem. 32-64 megs is just not enough. The operating system alone will use most if not all of it, not leaving much for your application. On Jun 10, 2004, at 9:28 AM, Charlie Fiskeaux II wrote: If you're targeting the machines below then I would avoid Sorenson like the plague - it requires a lot of overhead, so this speed of machine won't be able to play it well. I recommend MPEG for machines this old; it generally plays very smoothly on older machines (keeping in mind the 16px rule). Charlie Fiskeaux II Interactive Media Developer Cre8tive Group cre8tivegroup.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dan Sheridan Sent: Thursday, June 10, 2004 7:19 AM To: [EMAIL PROTECTED] Subject: Video in Director - more Hi, Actually, if I give you my target machine specs then you might be able to lend some advice? PC: 400mhz processor 64mb ram 800x600 display 8x cdrom win 98/me/2000/xp Mac: 350mhz processor 32mb ram 800x600 display 8x cdrom os 9 or higher. Cheers ears, Dan ;) [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/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!] [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/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!] Kevin M. Dean Vice President/Multimedia Producer [EMAIL PROTECTED] http://www.rhubarbproductions.com [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/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: pass with prepareMovie not possible?
Jakob, I think it's more about perspective. I've got a tea-mug that's cracked about half-way up. James Newton suggests I use a different mug. You say "The mug can hold some tea, see.". You're both right. I can still use the mug, as long as I remember (and comment the crap out of) the caveat. But if Irv comes over to visit, I'll probably suggest he not use that mug, at least not til he's comfortable with the whole pouring water into tea mugs only halfway and remembering which mugs are broken thing. Half-full, half-empty. I many ways, what you have discovered 'feels' more like a bug than a feature. Wow...that does hold some water, even though the crack looks like it runs all the way down. But that may just be because I grew up throwing away broken mugs. roymeo At 08:31 AM 6/10/2004, you wrote: At 9:03 +0100 10/06/04, James Newton wrote: On Jun 9, 2004, at 4:07 AM, Roland Schroth wrote: It is important that I can have more than one movie script with preapareMovie and startMovie procedures. Hi Roland, If you *really* want to do this, use the following handlers in the first movie script that is to have an "on prepareMovie()" handler: Hi James, I'm still a little baffled that everyone seems to agree that 'pass' doesn't work for movieEvents. I did a test in D10 Mac, and it showed that 'pass' does indeed pass 'startMovie/prepareMovie' events, with the caveat that the scripts need to be in different castLibs. If your tests indicate otherwise we'd need to investigate that. Apart from that, I looked at your - as always elegant- script, which does overcome the requirement of separate castlibs. I have a small comment to your comments: if not voidP(thisScript) then -- If this handler received a parameter, then it the call can't -- have come from the Director Player itself. Do not cascade -- calls to other scripts in this case. exit end if Well, it depends on your understanding of "a call from the Director Player itself". If you have a persistent timeoutObject with a callbackObject, that does not implement start/prepareMovie, then there will be a call to these handlers, with two parameters: param1: ref to callbackObject. param2: ref to timeoutObject. Anyway, in the case of such a stampeding timeoutObject-originating start/prepareMovie event, you would probably want to exit anyway, so it's just an issue about your explanatory comments. If you wanted to make the test really explicit, you could populate the third parameter like so: call(anEvent, tScript, #dummy, #cascade) And test for #cascade as the third parameter. Then you'd be pretty safe that the call is your own custom cascade-call. Jakob [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/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!] --- Roy Crisman Macromedia Director Programmer, Lingo Guru, Multimedia Producer Greater Rochester Macromedia User Group (GRMMUG.org) Coordinator 277 N. Goodman St. Rochester, NY 14607-1162 (585)473-3492 home (585)615-2873 cell roymeo(AT)brokenoffcarantenna.com [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/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!]
Need HideHotSpots and ShowHotSpots capability
Hi, I am new to this list. Hi everybody! My company has kiosks at Park visitor centers, bookstores and museums which run Macromedia Director loops which are subsets of our CDs which feature QTVR scenes. As you know, there is a button at the bottom of the QTVR window which makes the hot spots toggle between visible and not visible. I would like to be able to write some Lingo code to make the QTVRs reset to the "Hotspots not Visible" mode, so when a potential customer has toggled the hotspots to visible, the Director movie will reset the hotspots to "Not Visible" the next time around so the panos do not have mysterious blue rectangles all over them after the person who clicked them visible, either knowingly or otherwise, walks away, leaving them visible. I am using Director 8 and I have the reference books: "Director in a Nutshell," "Lingo in a Nutshell" and "Using Director 8," but I cannot find the correct property name for HotSpots. I have been able to find the VRHotSpotEnter and VRHotSpotExit properties, which will give Boolean values that can be acted upon, but I can't find the property name for setting Visible/Invisible. It occurs to me that this may be a property of the controller, but I have been unable to find settings there either. Any assistance will be most appreciated. I downloaded the demo version of an Xtra from Germany, which purports to offer the Hide/Show capablity I need, but the instructions were like trying to read a translation of Hegel and all the warnings put me off. There seemed to be so many potential instabilities that I would be reluctant to place something which relied on that at retaliers. Does anyone have experience with the "Developware" Xtras? Thanks. Paul Fretheim Owner, Inyo Pro - Publishers of Interpretive Products on the National Parks http://inyopro.com [EMAIL PROTECTED] [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/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: net params
You know, that site actually exists. It's not very entertaining, though. > How to pass some params to the shockwave movie like in HTML pages: > http://www.mysite.com/mypage?param=1. > [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/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: Video in Director - more....
If you're targeting the machines below then I would avoid Sorenson like the plague - it requires a lot of overhead, so this speed of machine won't be able to play it well. I recommend MPEG for machines this old; it generally plays very smoothly on older machines (keeping in mind the 16px rule). Charlie Fiskeaux II Interactive Media Developer Cre8tive Group cre8tivegroup.com > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Dan Sheridan > Sent: Thursday, June 10, 2004 7:19 AM > To: [EMAIL PROTECTED] > Subject: Video in Director - more > > Hi, > > Actually, if I give you my target machine specs then you > might be able to lend some advice? > > PC: > > 400mhz processor > 64mb ram > 800x600 display > 8x cdrom > > win 98/me/2000/xp > > > Mac: > > 350mhz processor > 32mb ram > 800x600 display > 8x cdrom > > os 9 or higher. > > Cheers ears, > > Dan ;) > > [To remove yourself from this list, or to change to digest > mode, go to http://www.penworks.com/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!] > [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/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: pass with prepareMovie not possible?
On 10/6/04 1:31 pm, "Jakob Hede Madsen" <[EMAIL PROTECTED]> wrote: > Hi James, I'm still a little baffled that everyone seems to agree > that 'pass' doesn't work for movieEvents. I did a test in D10 Mac, > and it showed that 'pass' does indeed pass 'startMovie/prepareMovie' > events, with the caveat that the scripts need to be in different > castLibs. Hi Jakob, You're quite right about this, as always. Indeed, pass works this way on both platforms, and at least as far back as Director 7.0.2. It also works for other Director events, such as enterFrame and idle, but not for custom events. > If you wanted to make the test really explicit, you could ... I appreciate your precision. It's good to see you back on the list. James [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/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: pass with prepareMovie not possible?
- Original Message - From: "Jakob Hede Madsen" <[EMAIL PROTECTED]> > > > >Unfortunately, you can't. > > Well, like I wrote previously; HE CAN. > > May I suggest that you test it yourself? Hmm, interesting, I've just checked it out in D85 and it does work - I'm surprised no-one came up with that when it was discussed before (you should have been on the list!). OpenLingo presently gets around the problem of requiring start-up code by using lazy instatiation instead, as part of the wrapper script: when you call a package for the first time it is initialised. Cleanup code on shutdown might be a good thing, but if the user puts a stopMovie handler in the internal cast and forgets to put a pass statement at the end then the openLingo stopMovie will be ignored anyway. So far there isn't anything that _needs_ shutdown code, and it may be that we can get by without it anyway. - Robert [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/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: pass with prepareMovie not possible?
At 9:03 +0100 10/06/04, James Newton wrote: On Jun 9, 2004, at 4:07 AM, Roland Schroth wrote: It is important that I can have more than one movie script with preapareMovie and startMovie procedures. Hi Roland, If you *really* want to do this, use the following handlers in the first movie script that is to have an "on prepareMovie()" handler: Hi James, I'm still a little baffled that everyone seems to agree that 'pass' doesn't work for movieEvents. I did a test in D10 Mac, and it showed that 'pass' does indeed pass 'startMovie/prepareMovie' events, with the caveat that the scripts need to be in different castLibs. If your tests indicate otherwise we'd need to investigate that. Apart from that, I looked at your - as always elegant- script, which does overcome the requirement of separate castlibs. I have a small comment to your comments: if not voidP(thisScript) then -- If this handler received a parameter, then it the call can't -- have come from the Director Player itself. Do not cascade -- calls to other scripts in this case. exit end if Well, it depends on your understanding of "a call from the Director Player itself". If you have a persistent timeoutObject with a callbackObject, that does not implement start/prepareMovie, then there will be a call to these handlers, with two parameters: param1: ref to callbackObject. param2: ref to timeoutObject. Anyway, in the case of such a stampeding timeoutObject-originating start/prepareMovie event, you would probably want to exit anyway, so it's just an issue about your explanatory comments. If you wanted to make the test really explicit, you could populate the third parameter like so: call(anEvent, tScript, #dummy, #cascade) And test for #cascade as the third parameter. Then you'd be pretty safe that the call is your own custom cascade-call. Jakob [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/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!]
Video in Director - more....
Hi, Actually, if I give you my target machine specs then you might be able to lend some advice? PC: 400mhz processor 64mb ram 800x600 display 8x cdrom win 98/me/2000/xp Mac: 350mhz processor 32mb ram 800x600 display 8x cdrom os 9 or higher. Cheers ears, Dan ;) [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/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!]
net params
How to pass some params to the shockwave movie like in HTML pages: http://www.mysite.com/mypage?param=1. -- Best regards, Igor mailto:[EMAIL PROTECTED] [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/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!]
Video again
Hi, Okie, so we use 320x240 video encoded with sorenson in cleaner, and we export it for use on multimedia cd-roms - cross platform mac and pc... I get the general impression that this might be incorrect - as a lot of you are stating 400x300... does anyone have any settings they can send me for use in cleaner to encode videos. The reason I say this is we have been having a few moans and groans from clients regarding playback issues and quality of our work compared with that of other companies. Cheers, Dan ;) [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/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: pass with prepareMovie not possible?
On Jun 9, 2004, at 4:07 AM, Roland Schroth wrote: > It is important that I can have more than one movie script with > preapareMovie and startMovie procedures. Hi Roland, If you *really* want to do this, use the following handlers in the first movie script that is to have an "on prepareMovie()" handler: on prepareMovie(thisScript) -- -- ACTION: Executes custom code, then calls all on prepareMovie() -- handlers in all movie scripts available to this movie. -- NOTE: This technique of passing a movie event to other scripts -- is highly unorthodox. There are better ways of -- achieving the same effect. -- The on prepareMovie() handlers in subsequent scripts will -- receive a pointer to the movie script object as a -- parameter. The presence of this parameter can be used to -- check that this particular handler is not called twice. -- Do prepareMovie stuff in this first script put #prepareMovie -- Replace with your own instructions if not voidP(thisScript) then -- If this handler received a parameter, then it the call can't -- have come from the Director Player itself. Do not cascade -- calls to other scripts in this case. exit end if -- Pass the event to all other movie scripts CascadeEvent(#prepareMovie, TRUE) -- ignore first script (this one) end prepareMovie on CascadeEvent(anEvent, ignoreFirstScript) -- -- INPUT: should be a symbol handler name -- should be TRUE if the call comes from -- a handler with the same name as . If the call -- comes from a handler with a different name, it can be -- FALSE or VOID. -- ACTION: Passes the event call to all other movie scripts which have a handler for it. -- Check input if not symbolP(anEvent) then exit end if ignoreFirstScript = (ignoreFirstScript <> 0) -- convert to boolean -- End of input check -- Iterate through all casts... tMaxCastLib = the number of castLibs repeat with tCastNum = 1 to tMaxCastLib -- ... and all members in each cast, looking for movie scripts -- with an "on ()" handler tMaxMember = the number of members of castLib(tCastNum) repeat with tMemberNum = 1 to tMaxMember tMember = member(tMemberNum, tCastNum) if tMember.type = #script then if tMember.scriptType = #movie then tScript = script(tMember) if tScript.handler(anEvent) then -- We've found a movie script with the handler if ignoreFirstScript then -- The first script with an "on ()" handler -- will be this one. Don't call it again. ignoreFirstScript = FALSE -- Do call subsequent scripts. else -- We've found a second or subsequent movie script with -- an "on ()" handler. call(anEvent, tScript) end if end if end if end if end repeat end repeat end CascadeEvent You would need an "on startMovie()" handler similar to the "on prepareMovie()" handler above, where you would call... CascadeEvent(#startMovie, TRUE) Why would you want to do this? Cheers, James [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/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: pass with prepareMovie not possible?
At 3:54 +0100 10/06/04, Robert Tweed wrote: - Original Message - From: "Roland Schroth" <[EMAIL PROTECTED]> It is important that I can have more than one movie script with preapareMovie and startMovie procedures. Unfortunately, you can't. Well, like I wrote previously; HE CAN. May I suggest that you test it yourself? Jakob [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/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!]