colorObject
Oh, and something else, I searched the subject in the Direct-L archives and I'd dearly like to know where to find the Lingo-L archives. I checked out www.penworks.com but maybe I'm just missing the address somewhere. Thanks to all Blessings, Darryl [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!]
colorObject
Morning All, I've been struggling a bit to create a colorObject (parent script) to make some simple color operations - like 20% darker or add two colors. Maybe someone has already done some work along those lines that they could share. I've been trying to cutover a javascript colorObject but as yet it's not moving along much and the Boss wants me doing other things. :o) TIA -- Blessings, Darryl mailto:[EMAIL PROTECTED] [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. [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: calling xtra / having script object
Are you sure that -21474836547 is the error code that's returned? Coz it's beyond the maxInteger value. BTW, you can use the MOAErrorToString() function to find out the meaning of error codes. Cordially, Pranav Negandhi New Media Applications. Learnet India Limited, Mumbai. Phone: 91-22-859 8042 Ext: 410 Ok, so I'm trying to create an instance of the audio xtra with ye old temp = new(xtra "audio") I get back 'put bob': -21474836547 [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: calling xtra / having script object
Sorry, I really DID use bob = new(xtra "audio") put bob gives me back the negative int On Tue, 21 Aug 2001 [EMAIL PROTECTED] wrote: > Ok, so I'm trying to create an instance of the audio xtra with ye old temp > = new(xtra "audio") > > I get back 'put bob': > -21474836547 > > I'm assuming that my parent script is interferring - is there any way > 'round this? What's the old syntax? > > > [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!] > [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!]
xtra problem
wtf? -- Welcome to Director -- temp = new(xtra "audio") put temp -- -2147483647 temp = new(xtra "budapi") put temp -- I realized that the parent script never interferred with other xtras, so...? [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!]
calling xtra / having script object
Ok, so I'm trying to create an instance of the audio xtra with ye old temp = new(xtra "audio") I get back 'put bob': -21474836547 I'm assuming that my parent script is interferring - is there any way 'round this? What's the old syntax? [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: QT/Flash flicker (was: tight situation)
RE: -- >From: "Nick Youmans" <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]> >Subject: Re: QT/Flash flicker (was: tight situation) >Date: Mon, Aug 20, 2001, 11:03 AM >I do not think that will work. Director does not like ANY over-lapping between >non-static flash sprites and quickTime sprites.,,, -- I have a brief test up at: http://www.boston.quik.com/ifmp/tester/qttest1.html which has a QuickTime movie running over a Flash animation (I just grabbed stuff that was around - no particular content). Neither are DTS, and the Flash is obviously not static. The test is small - should stream over a 56k connection even with the video and sound, and just loops (click on the girl if her video doesn't start up right away). I think you'll find that the data rate and frame rate of the QT movie have a lot to do with flickering. If you bring both way down, the flickering stops. It's also somewhat more pronounced in projectors than in Shockwave movies. Steve Bennett www.ifmp.net [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: OOP and ancestor access
I think Mark did a great job of explaining it here. The key is that QT behavior just broadcasts a message about the percentage completion of the QT movie, and the receiver (the slider behavior) does whatever it needs to do to represent that amount of completion. The slider behavior could be a slider that updates based on 100 step increments, it could be a series of 10 buttons where each one lights up at every 10 percent, it could be a vertical bar or horizontal bar, it could be a circle that fills like a radar screen. The point is that the interface between the sender and the receiver is agreed upon in the syntax of the message, for example, a method called:mHandlePercentPlayed(somePercentage). The sender doesn't care what the receiver does when it receives the message, and the receiver doesn't care what the sender had to do to generate the message. As Mark said, this makes debugging much easier because you can develop these two pieces independently from each other. You can make changes to either one, and as long as they continue to use the same message, the system will continue to work. And yes, I think you've got it about the accessor methods, the author's basic claim is that methods that get or set properties directly are a bad thing. Again, I think this is an excellent design goal. Irv At 8:51 PM -0600 8/20/01, Mark R. Jonkman wrote: > > >I haven't followed this thread in its entirety... too busy. >However, I think you can look at a little differently Al. >You could have seperate objects that take care of the qt, >the slider thumb and each other control. The messages don't >necessarily need to be get and set directly. Your QT object >could tell the slider what percent is currently played. It >would be up to the slider object to call the necessary code >to update its position with the positional information >supplied by the call from the QT object and vice versa. Your >not directly setting anything but rather responding to an >outside "stimulus". The stimulus being the message from the >QT object that it is has played 60%, the slider or other >controls can respond to the message appropriately. In the >same way, the slider could tell the qt object that someone >has reset its position to say 30% played, its entirely up to >the QT object to interpret that message and respond >accordingly. > -- Lingo / Director / Shockwave development for all occasions. (Home-made Lingo cooked up fresh every day just for you.) [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: Cue Points and Shockwave
One could also put a list of cuepoints into the comment tag of an ID3 tag within a mp3, then use Director 8.5 to extract that and use Timeout objects to trigger events whenever the 'cue points' occur. But using cue points in SWA is a LOT easier ... btw - What kind of audio files (aif, wav, swa) are you having trouble with? -Buzz At 9:27 PM +0100 8/17/01, jayp wrote: >Sorry I mmay not be able to help much. >But Im pretty sure that swa is the only compresed audio format that uses >tru cue points... >Yhowever u can simulate cuepoints for mp3s >You will have to convert the times length into seconds and assign >variables at each particaulr cue oint... >Long winded but I think the only way... >Jon > > > >-Original Message- >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On >Behalf Of [EMAIL PROTECTED] >Sent: 17 August 2001 18:36 >To: [EMAIL PROTECTED] >Subject: Cue Points and Shockwave > > >I am converting a CD-ROM to the Internet. The CD is driven by audio >files >that have cue points. I need to squeeze these files down but no matter >how I >try (SWA, mp3, etc.) I lose my cue points. What am I doing wrong? I am >in >Director 8.5. > > > >_ _ _ _ _ _ _ > >Greg Lippert >Studio North Creative >44 Evelyn Street >Trumbull, CT 06611 >203-459-9722 >[EMAIL PROTECTED] >http://home.earthlink.net/~studionorth/ > >[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!] > > >[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!] [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: OOP and ancestor access
hi Mark, > There is no need for a get/set situation, your passing a > useable parameter and allow the other object class to deal > with it as it sees fit. What happens within the other object > is non of the message senders business. In this manner, you > still communicate but you pass simple values that the other > object acts upon in greater detail.. you don't directly > manipulate what the other object is in charge of etc.. > therefore you also have a degree of ease in debugging > because you have a small predefined message paths and you > can see who is calling in where etc.. if this is correct, then this is exactly what I do in most if not all of my objects & behaviors. what has been confusing here, I think, are the symantecs. all this talk of accessors not being allowed and no Get/Set functions has been what has had me turned around. if you are saying that you can get information from an object as long as you do not modify it or get it directly and you can pass information to an object, as long as what you are passing does not correspond to an actual property of an object, then I definitely understand. > Does this make any sense or am I totally missing the boat on > what is being talked about. nope, I don't think that you miss the boat at all. now if we ge an agreement from Jakob that this is correct, then I personally am home free . the problem has been the statements in the Java article about absolutely no accessor functions and if you need any you should be including the accessing method in the object. or at least that is the way I read the article. thanks, Al Hospers CamberSoft, Inc. alcambersoftcom http://www.cambersoft.com Shockwave and Director development, Lingo programming, CGI scripting. A famous linguist once said: "There is no language wherein a double positive can form a negative." YEAH, RIGHT [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: OOP and ancestor access
Hi Al > > His > > point is instead of allowing some other object > to get or set a > value, > > you should always any code that manipulates a > property in the object > > that defines that property. > > this would seem to imply that if you have a > slider behavior that > controls a QT behavior the slider code should > actually be contained in > the QT behavior. is this not correct? I haven't followed this thread in its entirety... too busy. However, I think you can look at a little differently Al. You could have seperate objects that take care of the qt, the slider thumb and each other control. The messages don't necessarily need to be get and set directly. Your QT object could tell the slider what percent is currently played. It would be up to the slider object to call the necessary code to update its position with the positional information supplied by the call from the QT object and vice versa. Your not directly setting anything but rather responding to an outside "stimulus". The stimulus being the message from the QT object that it is has played 60%, the slider or other controls can respond to the message appropriately. In the same way, the slider could tell the qt object that someone has reset its position to say 30% played, its entirely up to the QT object to interpret that message and respond accordingly. So going back to the qt example, lets say you have a rewind, stop, pause, fastforward and play buttons, a slider thumb and bar and a set of volume controls which include a slider thumb, bar and a mute button. What messages would need to be sent and how would they respond. Your QT object strictly handles the QT movie properties: a). movieTime b). volume c). play d). pause Your QT playback slider handles a). indicator of percent played b). someone dragging to change position Your QT playback slider bar really only cares that a). someone clicked at a certain location relative to its length Volume slider only cares about what its current percentage of volume to max is volume slider bar only cares about where someone might have clicked on it relative to its length Mute only cars whether someone has clicked on it (on or off). The rest of the buttons can be stupid (ie someone has clicked on me type messages or they can be smart and disable if 100% played (play, pause and fast forward ) or 0% played (rewind button) or currently playing (stop button and pause buttons). Most of these messages can be handled with a True/False and a float value (percent played and percent volume) and a integer representing the amount to step forward or back (fast forward, rewind ). The messages sent to the QT object therefore would only need to be along the lines of: mHandlePercentPlayed( me, floatPercentPlayed ) mHandlePlay( me, boolPlay ) mHandleStepPlay( me, intStep ) - forward = positive, negative = back mHandlePause( me, boolPause ) mHandleStop( me, boolStop ) mHandlePercentVolume( me, floatPercentVolume mHandleVolumeMute( me, boolMute ) The Quicktime object would then figure out what its movieTime setting would be if .30 of the movie has played out and adjust the movieTime of its Movie accordingly. The difference being that the percent played slider would only calculate its position along the bar and calculate what percent that was and adjust its position accordingly then send a message to the QT object that the percent played is now 30%, the QT object figures out what to do with that and makes its adjustments and sends a message back to any related objects about whether playback is allowed and leaves them to do whatever they desire with that information. The path that would be wrong would be for the slider to access the properties of the qt movie, calculate what its duration should be and then tell the QT object to set that movieduration or for that matter leave the QT object to figure out that the movie has changed (since the QT object would be monitoring the situation anyhow). The same goes for the volume control.. a QT movie might have a zero to 255 volume level, something else might have a 0 - 100 volume level.. it should only care that its current position is x percentage of the allowable drag distance. It should only send a message out if someone moves it and then only what its new position is.. let the QT object do the math and manipulate the volume level of the QT movie. This way, your slider controls, play controls etc.. are completely independent of what they are controlling they send messages to a specified object about changes that have occured and respond to specific stimuli ( end user mouse events ) and perhaps some feedback event. They don't attempt to directly modify the properties of the item (in this case the qt movie) that they are controlling. Therefore these sliders are completely reuseable for any other event.. controlling a QT movie, AVI movie, Flash piece, animation playback anything. In the same way, the qt object might send a message out to the slider saying I'm 45%
RE: OOP and ancestor access
> The basic idea of an accessor is that it is a specialized method > which just gets or sets a property variable within an object, like > this: yes, I write things like this all the time. > The author of the article was basically saying that methods like > these above should never be written (he would have a coronary at the > sight of a Lingo statement that went directly into an object and got > a value: SomeObject.pSomeProperty = 5(don't do that!!!)) I don't > His > point is instead of allowing some other object to get or set a value, > you should always any code that manipulates a property in the object > that defines that property. this would seem to imply that if you have a slider behavior that controls a QT behavior the slider code should actually be contained in the QT behavior. is this not correct? > In my online book at http://www.furrypants.com/loope I write about > two views of an object - "inside" the object and "outside" the > object. The author of this article was talking about what I refer to > as "outside" the object. That is, how do you view and communicate > with the object from outside of the object - what are the methods you > can call in the object. This is what he was referring to as > "capabilities". Certainly, objects can be written to do useful work > without any accessor methods. From the outside, it doesn't matter how > the object does what it does. That's the essence of "encapsulation". but he is saying that you should not get data from an object. if you do that is accessing the data and is verboten. correct? I don't have any problem understanding object properties, accessors, encapsulation or any of that stuff. I use it all the time. I was trying to figure out how to apply what he was discussing to a basic example like this. if you end up putting the slider code inside the QTBehavior it starts to become almost like procedural code. you have this large bunch of code that becomes difficult to maintain & that has everything in it including the kitchen sink. what is the point? Al Hospers CamberSoft, Inc. alcambersoftcom http://www.cambersoft.com Shockwave and Director development, Lingo programming, CGI scripting. A famous linguist once said: "There is no language wherein a double positive can form a negative." YEAH, RIGHT [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: shortcut on desktop
> I can't speak for the Mac, but web page shortcuts on Windows > ARE just plain > text files with the .url extension. For instance, use Notepad or an > equivalent text editor and save the following as "test.url" oops, right. sorry. I was looking at regular shortcuts, which are binary. Al Hospers CamberSoft, Inc. alcambersoftcom http://www.cambersoft.com Shockwave and Director development, Lingo programming, CGI scripting. A famous linguist once said: "There is no language wherein a double positive can form a negative." YEAH, RIGHT [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: OOP and ancestor access
At 4:03 PM -0400 8/20/01, Al Hospers wrote: >Irv, > > > >yes. in my last post I said that both should be behaviors in this >example. at first I was trying to talk about this as an object just >for the sake of argument. then I realized that this was getting >confusing & so I just stripped it down to the final question which I >still haven't heard answered: > >"if you can't use accessors as the article implies, how do objects or >behaviors communicate?" The basic idea of an accessor is that it is a specialized method which just gets or sets a property variable within an object, like this: property pSomeProperty ... on mGetpSomeProperty return mSomeProperty end on mSetpSomeProperty me, someValue pSomeProperty = someValue end The author of the article was basically saying that methods like these above should never be written (he would have a coronary at the sight of a Lingo statement that went directly into an object and got a value: SomeObject.pSomeProperty = 5(don't do that!!!)) His point is instead of allowing some other object to get or set a value, you should always any code that manipulates a property in the object that defines that property. In my online book at http://www.furrypants.com/loope I write about two views of an object - "inside" the object and "outside" the object. The author of this article was talking about what I refer to as "outside" the object. That is, how do you view and communicate with the object from outside of the object - what are the methods you can call in the object. This is what he was referring to as "capabilities". Certainly, objects can be written to do useful work without any accessor methods. From the outside, it doesn't matter how the object does what it does. That's the essence of "encapsulation". But then, we are programmers. When we build an object, we must also think "inside" the object. What are the property variables that the object maintains? How do the different methods inside the object work together to share, use, and affect the property variables? In my book (so far) I discuss a Sound Manager. The Sound Manager has a set of capabilities. You can call its methods to start an external sound, start an internal sound, etc. Each action is a method call. You pass in any required parameters. The Sound Manager does what it needs to do, and from the outside, you don't care how it does what it does. There are no accessor methods, yet the Sound Manager performs some very useful functions. Does that help? Irv -- Lingo / Director / Shockwave development for all occasions. (Home-made Lingo cooked up fresh every day just for you.) [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: SingleInstance woes in D8.5
At 20:44 19/08/2001, john wrote: >I've made a projector and an .ini file. >Under [Settings] I have the line >SingleInstance=1 > >But how come its not working? I mean I was still able to run >my projector a second time. > >Using DSS8.5, Windows98SE The most reliable Windows-only solution I know of is using the free FastSplash program to start your projector. It's available at: http://bwsmith.com/index.php?t=2&s=3 -- Mark A. Boyd Keep-On-Learnin' :) [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: shortcut on desktop
At 12:24 17/08/2001, Mark wrote: >Hello All, > Without having to write a text file to the target machine is there a way >from a button in director to put a web page shortcut on a persons desktop(pc >and mac)? I can't speak for the Mac, but web page shortcuts on Windows ARE just plain text files with the .url extension. For instance, use Notepad or an equivalent text editor and save the following as "test.url" [InternetShortcut] URL=http://www.macromedia.com And as others have already mentioned, you'll need an Xtra to save anything to the user's desktop. If for no other reason than to discover where the deskTop folder is on any given system. You'll need an Xtra to write the file, too, whether it's an alias, text file, or any other type of information. -- Mark A. Boyd Keep-On-Learnin' :) [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 to QTVR for PC from México
Mudo, Lo siento, no sabia que quieres una programma para Windows. No tengo experiencia con creando los ficheros de QTVR y no se cual es lo mejor, espero que alguien en este groupo puede ayudar con esta pregunta. No le importa a Director cual programma usas para crear los QTVRs, si los ficheros tienen "hot spots" puedes lograr "rollovers" y responde como necesitas (quieres ir a un "marker" en la pelicula o puedes ensenar otro "cast member"). No se que significa "existe alguna forma de ligar los nodos de la Mov con cast member internos en una movie de Director.?". Puedo traducirlo, pero no es cierto que quieres (para mi no es cierto). Si necesitas ligar los nodos con un "cast member" debes escribir el Lingo para responder a los "hot spots" como quieres. Es bastante informacion? Si tienes mas preguntas estoy aqui para ayudar! For you English speakers out there: what tools are there for Windows users to create QTVR files, and which of those tools do you recommend? Your help is always appreciated. Hasta luego, Tomas Higgins Especialista del Producto - Equipo del Director P.S. If anyone wants this discussion translated I'd be happy to do so, just let me know. > -Original Message- > From: mudo [mailto:[EMAIL PROTECTED]] > Sent: Friday, August 17, 2001 9:23 AM > To: [EMAIL PROTECTED] > Subject: Re: Help to QTVR for PC from México > > > Gracias Nombre tu español es bastante nueno. > > Ya conocia el "QTVR Authoring Studio" pero es solo para MAC > y yo solo tengo > PC > > > Encontre para PC el VR Worx en > http://vrtoolbox.com/downloads.html (por si > es de utilidad) este programa segun puedo entender me genera > los giros de > 360 y tambien puede crear nodos. > > y el Xtra QTVR 2.0 http://www.glink.net.hk/~gemmay/ este > xtra permite > interactuar con los giros desde la pelicula de Director > > Mis preguntas son: > > Son las mejores opciones? > > Con estos programas puedo lograr Rollover e ir a una Mark de > la pelicula? > > existe alguna forma de ligar los nodos de la Mov con cast > member internos en > una movie de Director.? > > Muchas Gracias de Antemano > > Gabriel > > [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!] > [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!]
list populating in authoring but not run-time mode
I have a piece of software that scores (using a parent script) a series of question screens, and keeps the scores in a property list. the very last screen (the last property in the list) is not being scored at runtime (the list is not being populated). However, during runtime(stepping through in the debugger), it's totally fine. Does this make any sense to anyone? FYI...I have restarted Director...so the script has been reinitialized. Kelly [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: OOP and ancestor access
Irv, glad to hear ya... > There are a lot of messages on this thread and I've just skimmed most > of them. I've been trying to understand where Al is going when he is > talking about a global QuickTIme object and a global Slider object. > Maybe I'm missing something, but wouldn't this make more sense as a > QuickTIme behavior and a Slider behavior. I guess I don't see the > need for a single global QuickTime object. yes. in my last post I said that both should be behaviors in this example. at first I was trying to talk about this as an object just for the sake of argument. then I realized that this was getting confusing & so I just stripped it down to the final question which I still haven't heard answered: "if you can't use accessors as the article implies, how do objects or behaviors communicate?" FWIW - I do like the idea of a generaized slider behavior that doesn't care what it is communicating with. no need for it to know about QT, animations, anything... just pass the floating point number that is its current position. Al Hospers CamberSoft, Inc. alcambersoftcom http://www.cambersoft.com Shockwave and Director development, Lingo programming, CGI scripting. A famous linguist once said: "There is no language wherein a double positive can form a negative." YEAH, RIGHT [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: OOP and ancestor access
Al Hospers (and others) wrote: >OK, > Sorry, I've been working on other stuff, and finally have a chance to jump in here. A couple of things ... I think the article that was originally cited here is very good. However, it is slanted toward the Java programming point of view. I don't know Java - I've never written a line of code in it, but I can see from what the author is saying that apparently, Java has a very different way of putting things on the screen than Lingo does. His suggestion of passing a window thingy to an object and asking it to draw it's information on the screen doesn't translate well into the Director world. Here, we typically use behaviors for drawing, or set the member of a sprite, or just stick some text into a field member. But, overall, I like his idea of not using Getter methods. I don't know how practical it is in real-world applications, but I think that it is an _excellent_ design goal. I'll have to keep that in mind in my programming. I have said in the past that if you find yourself using too many Getter or Setter methods in an object, then you should re-examine your object structure as you probably should have a property defined in a different object (the one that calls the Getter or Setter method(s) the most). I just took a quick look at my Getter methods in my current project, and only a few of them really just return a property variable. Typically, they do some operation on one or more property variables before returning a value. So, I guess you could call them service routines. There are a lot of messages on this thread and I've just skimmed most of them. I've been trying to understand where Al is going when he is talking about a global QuickTIme object and a global Slider object. Maybe I'm missing something, but wouldn't this make more sense as a QuickTIme behavior and a Slider behavior. I guess I don't see the need for a single global QuickTime object. Imagine if you had a situation where you had two (or more) QuickTIme movies on the stage at the same time. Rather than having special code to deal with the two (or more) QuickTImes, just drag out a copy of your QuickTIme behavior and drop it on each QuickTIme sprite. Same with the slider sprite. Then, the question about communication comes down to intersprite communication. Without getting into a big discussion about how to get sprite numbers, an an example, you could just make an assumption that the QUickTIme sprite assumes that the slider is in spriteNum + 1, and the slider makes an assumption that the QuickTIme is in spriteNum - 1, then they just use these spriteNumbers to communicate. As the QuickTime plays, the QT behavior, in it's exitframe handler, could do a "sendSprite" to the slider telling it the percentage of completion. And, as the Slider is dragged by the user, the slider behavior in its exitFrame handler, could do a "sendSprite" to the QT behavior, telling it the percentage to go to. Is this too simple? Am I missing something? While it may not be "pure" OOP, I use global objects all the time, for things that are not screen related (e.g., Sound Manager, Net Manager, Navigation, etc.). Is there really a need for a global QT Manager here? As for the original question of ancestor access, I rarely use ancestors. I really dislike the fact that you are forced to use the syntax of me.somePropertyName. It makes coding with ancestors seem very wierd and unusually difficult.As long as I've been into OOP, I've been looking for some editor/displayer which would show me a full object's structure and properties. For example, if I create an object from the A parent script, and it instantiates B as it's ancestor, I would like to be able to see my A object in a way that has all the methods from A and B grouped together, and all the properties from A and B grouped together. That would make things much clearer. Irv -- Lingo / Director / Shockwave development for all occasions. (Home-made Lingo cooked up fresh every day just for you.) [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: dragging a non-moveable sprite
> The sprite moves way behind the mouse pointer > (comical, > almost). This is under Windows 2000, 450 MHz, D8. And the > sprite's member > is a small text member with Background Transparent ink. Any > other ways to > achieve that? 80% (my gestimate) of your problem here is perception. if you turn off the mouse pointer the user won't notice the lag nearly as much! Al Hospers CamberSoft, Inc. alcambersoftcom http://www.cambersoft.com Shockwave and Director development, Lingo programming, CGI scripting. A famous linguist once said: "There is no language wherein a double positive can form a negative." YEAH, RIGHT [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: dragging a non-moveable sprite
Well, the other suggestion with the timeOut object would be the other part which is related to the frameRate. What rate are you setting it to? What rate are you actually getting out of the performance? If it's just a small member following the mouse, you must be doing something that causes a huge performance hit? roymeo At 12:27 PM 8/20/01 -0400, you wrote: >Thanks, Roy--but no, not really. The movement is still laggy, just as it >was when I had the stillDown in my exitFrame handler. You're right--when I >adjust location in the sprite's handlers, I lose the stillDown, but not >when I do that in exitFrame: the result is the same whether I use a flag >or the stillDown. The sprite moves way behind the mouse pointer (comical, >almost). This is under Windows 2000, 450 MHz, D8. And the sprite's member >is a small text member with Background Transparent ink. Any other ways to >achieve that? > >At 10:43 AM 8/20/2001 -0400, you wrote: >>Generally the non-repeat loop way to do that is to have the mouseDown set >>a boolean value and you check that boolean value on the exitFrame (or >>more elegantly, do it in the stepFrame and add "me" to the >>actorList). You're losing the stillDown because you end up moving the >>mouse off the image...the smaller the image, the easier this is to do. >> >>So, on a valid mouseDown, set yourself up to continue following the mouse >>until you actually get a mouseUp (and mouseUpOutside) which will set the >>'follow' condition to false. >> >>that help? >> >>roymeo >> >>At 10:13 AM 8/20/01 -0400, you wrote: >>>I also tried putting the sequence in the exitFrame script. In that case, >>>the handler always works, but is very "laggy," even at 25 frames/sec. >>>... >> >if the stillDown then >>> > locLeft = the mouseH - pLeftMouseOffset >>> > locTop = the mouseV - pTopMouseOffset >>> > sprite(me.spriteNum).loc = point(locLeft, locTop) >>> >end if > > >[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!] > - Roy Crisman Senior Macromedia Programmer (716)724-4054 [EMAIL PROTECTED] [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: mouseLoc or?
> You can use BuddyAPI to restrict the movement of the cursor... > > RestrictCursor > > Description:baRestrictCursor restricts the cursor to a specified part of > the screen. > > Usage:baRestrictCursor( Left, Top, Right, Bottom ) That raises an interesting question, though - how do you exclude the cursor from a rect, not contain it within a rect, as in this case, where the cursor needs to stay outside of a QT? It seems to me that baPlaceCursor() might be a better fit (FWIW, restrictCursor() is not available on the Mac side, anyway) in this case. Either way, though, you're going to need to do some polling of the mouseLoc. Try this (attach to the Quicktime sprite): - - property pMySprite property pMyRect property pLastLoc - on beginSprite me pMySprite = sprite(me.spritenum) pMyRect = pMySprite.rect end - on exitFrame me currentCursorLoc = the mouseLoc if inside(currentCursorLoc, pMyRect) then baPlaceCursor(pLastLoc.locH, pLastLoc.locV) else pLastLoc = currentCursorLoc + point(the stageLeft, the stageTop) end if 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!]
dragging a non-moveable sprite
Thanks, Roy--but no, not really. The movement is still laggy, just as it was when I had the stillDown in my exitFrame handler. You're right--when I adjust location in the sprite's handlers, I lose the stillDown, but not when I do that in exitFrame: the result is the same whether I use a flag or the stillDown. The sprite moves way behind the mouse pointer (comical, almost). This is under Windows 2000, 450 MHz, D8. And the sprite's member is a small text member with Background Transparent ink. Any other ways to achieve that? At 10:43 AM 8/20/2001 -0400, you wrote: >Generally the non-repeat loop way to do that is to have the mouseDown set >a boolean value and you check that boolean value on the exitFrame (or more >elegantly, do it in the stepFrame and add "me" to the actorList). You're >losing the stillDown because you end up moving the mouse off the >image...the smaller the image, the easier this is to do. > >So, on a valid mouseDown, set yourself up to continue following the mouse >until you actually get a mouseUp (and mouseUpOutside) which will set the >'follow' condition to false. > >that help? > >roymeo > >At 10:13 AM 8/20/01 -0400, you wrote: >>I also tried putting the sequence in the exitFrame script. In that case, >>the handler always works, but is very "laggy," even at 25 frames/sec. >>... > >if the stillDown then >> > locLeft = the mouseH - pLeftMouseOffset >> > locTop = the mouseV - pTopMouseOffset >> > sprite(me.spriteNum).loc = point(locLeft, locTop) >> >end if [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: Lingo-L Digest V1 #2118
Alex, I recently did a project with lots of Flash graphics and QT movies. I experienced a similar problem. What you have to do is keep the two away from each other. I found that when they touched or overlapped everything went to crap. Maybe its because they are both moving and probably at different frame rates. So to play the movies you should have your Flash pieces separate and put the QT movie in without them touching. That may mean that you have to break up your Flash interface to separate components. Good Luck. Greg [EMAIL PROTECTED] In a message dated 8/20/01 11:52:08 AM, [EMAIL PROTECTED] writes: << Firstly, Hi, this is my first posting and hope that you are fine and the weekend hangovers are'nt too bad. I have a BIG problem, I have a flash interface and have been building it for a couple of weeks now and have putting a lot of time and effort into making it. I have used director a few times before but I am by no means an expert. I wanted to include some quicktime videos in the piece to play over the flash stuff.. but its all gone pear shaped. The QT movies are flickering really badly and this is BAD. I really need a fix to stop them doing this but I have been exhausting myself to find one to no avail. If anyone can point me the right way I would be VERY apprieciative . Sorry for the desperate post, but I am scared of losing weeks of work to a technical hitch.. Thank you Regards Alex MacLeod >> [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: QT/Flash flicker (was: tight situation)
> Or how about using a background transparent Flash movie? If the QT sits in > the middle of some kind of Flash border, try making the middle part of the > movie transparent and sitting the QT in that I do not think that will work. Director does not like ANY over-lapping between non-static flash sprites and quickTime sprites. Also, if you have multiple non-static flash sprites on stage director seems to use a mysterious "bounding box" which includes all flash elements -- which will cause the QT to flicker even though the QT sprite is not overlapping any flash sprite (the QT sprite IS overlapping director's mysterious bounding box) the flicking stops when the flash elements are set to static, but that isn't always pratical. I have been working on the problem for a while now, with no real solutions...any ideas would be appreciated Nick Youmans FutureMedia [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: tight situation>>PLEASE HELP
Or how about using a background transparent Flash movie? If the QT sits in the middle of some kind of Flash border, try making the middle part of the movie transparent and sitting the QT in that > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On > Behalf Of Chris Aernoudt > Sent: 20 August 2001 16:02 > To: [EMAIL PROTECTED] > Subject: Re: tight situation>>PLEASE HELP > > > Static flash navigation would suck, no?? > Try not to put the QT over the flash thingie... > Maybe you can solve it in another manner - is the QT really necessary??? > If it is a small number of frames, you should consider breaking up the > movie. > - Original Message - > From: "Jorge Pena" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, August 21, 2001 4:15 PM > Subject: RE: tight situation>>PLEASE HELP > > > > Try setting the "Static" property of the flash member to "true" > > > > -Original Message- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On > > Behalf Of Alex Macleod > > Sent: Monday, August 20, 2001 9:35 AM > > To: [EMAIL PROTECTED] > > Subject: Re: tight situation>>PLEASE HELP > > > > > > thanks chris, > > I have tried this to no avail :( > > I'm desperately trying to salvage my work is there anything else i could > > try?? > > Thanks > > Alex MacLeod > > > > -- > > >From: "Chris Aernoudt" <[EMAIL PROTECTED]> > > >To: <[EMAIL PROTECTED]> > > >Subject: Re: tight situation>>PLEASE HELP > > >Date: Mon, Aug 20, 2001, 11:58 am > > > > > > > > try turning off "direct to stage" in the prop. inspector for yer QT & > > > flashies > > > - Original Message - > > > From: "Alex Macleod" <[EMAIL PROTECTED]> > > > To: <[EMAIL PROTECTED]> > > > Sent: Monday, August 20, 2001 2:34 PM > > > Subject: tight situation>>PLEASE HELP > > > > > > > > >> Firstly, > > >> Hi, this is my first posting and hope that you are fine and > the weekend > > >> hangovers are'nt too bad. > > >> > > >> I have a BIG problem, I have a flash interface and have been building > it > > > for > > >> a couple of weeks now and have putting a lot of time and effort into > > > making > > >> it. I have used director a few times before but I am by no means an > > > expert. > > >> I wanted to include some quicktime videos in the piece to > play over the > > >> flash stuff.. but its all gone pear shaped. The QT movies are > > > flickering > > >> really badly and this is BAD. I really need a fix to stop them doing > this > > >> but I have been exhausting myself to find one to no avail. > > >> If anyone can point me the right way I would be VERY apprieciative . > > >> > > >> Sorry for the desperate post, but I am scared of losing weeks of work > to > > a > > >> technical hitch.. > > >> > > >> Thank you > > >> Regards > > >> Alex MacLeod > > > > > > [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!] > > > > > > > [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!] [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 parser links/questions
So, it looks like you're able to produce what you need, for now. Correct? DOM-Lingo will be going public soon, and I will have a URL to share with the list as soon as I can get the host admin off his butt and link the directory up. Christopher Watson Sr. Software Engineer Lightspan, Inc. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, August 17, 2001 7:10 PM To: '[EMAIL PROTECTED]' Subject: RE: xml parser links/questions I'm building my own proplist (with symbols, not strings as a property, not a huge difference, but realible dot syntax) because I don't like all the extra '!ATTRIBUTES' stuff, as it really feels like it throws off the intended nesting of the actual xml doc. Where's the DOM-Lingo stuff? [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: tight situation>>PLEASE HELP
thanks very much guys, I'm going to try two things, 1) breaking up the flash to fit around the mpgs 2)convert the mpgs to swf and just use flash this time? Thanks for your help I hope i can help you out soon. Later, Alex MacLeod _ Qd (London) Ltd TV/Radio, Music Video, New Media, Design http://www.qotd.co.uk [EMAIL PROTECTED] +44 (0)20 7462 1700 _ The contents of this message may be confidential and should be treated as such unless otherwise stated. _ _ -- >From: Christian Wach <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]> >Subject: Re: tight situation>>PLEASE HELP >Date: Mon, Aug 20, 2001, 3:48 pm > > Jorge Pena wrote: > >> I'm desperately trying to salvage my work is there anything else i could >> try?? > > it may be a bit late for this, but you could split up your Flash stuff > into several movies which sit *around* the QT. I had to do this with an > interface built in Flash for a SW3D project... it's a longwinded process, > but does avoid the flickering. > > Christian > > > Christian Wach > [EMAIL PROTECTED] > > > > [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!] > > [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: QTs not playing on net
> But my new and far more serious problem is now getting the sounds to play > over the internet. When I publish my project, everything works great locally > on my computer and in my browser. However, when I copy the files to the > internet and try from http://... everything works except for the sound. And > the QuickTime slider comes on and is just stuck there. The audio file was > only 60K. These are QTs that play within director, yes? Have you included the QT3Asset xtra and marked it for download in your shockwave? -Kurt [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: tight situation>>PLEASE HELP
Static flash navigation would suck, no?? Try not to put the QT over the flash thingie... Maybe you can solve it in another manner - is the QT really necessary??? If it is a small number of frames, you should consider breaking up the movie. - Original Message - From: "Jorge Pena" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, August 21, 2001 4:15 PM Subject: RE: tight situation>>PLEASE HELP > Try setting the "Static" property of the flash member to "true" > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On > Behalf Of Alex Macleod > Sent: Monday, August 20, 2001 9:35 AM > To: [EMAIL PROTECTED] > Subject: Re: tight situation>>PLEASE HELP > > > thanks chris, > I have tried this to no avail :( > I'm desperately trying to salvage my work is there anything else i could > try?? > Thanks > Alex MacLeod > > -- > >From: "Chris Aernoudt" <[EMAIL PROTECTED]> > >To: <[EMAIL PROTECTED]> > >Subject: Re: tight situation>>PLEASE HELP > >Date: Mon, Aug 20, 2001, 11:58 am > > > > > try turning off "direct to stage" in the prop. inspector for yer QT & > > flashies > > - Original Message - > > From: "Alex Macleod" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Monday, August 20, 2001 2:34 PM > > Subject: tight situation>>PLEASE HELP > > > > > >> Firstly, > >> Hi, this is my first posting and hope that you are fine and the weekend > >> hangovers are'nt too bad. > >> > >> I have a BIG problem, I have a flash interface and have been building it > > for > >> a couple of weeks now and have putting a lot of time and effort into > > making > >> it. I have used director a few times before but I am by no means an > > expert. > >> I wanted to include some quicktime videos in the piece to play over the > >> flash stuff.. but its all gone pear shaped. The QT movies are > > flickering > >> really badly and this is BAD. I really need a fix to stop them doing this > >> but I have been exhausting myself to find one to no avail. > >> If anyone can point me the right way I would be VERY apprieciative . > >> > >> Sorry for the desperate post, but I am scared of losing weeks of work to > a > >> technical hitch.. > >> > >> Thank you > >> Regards > >> Alex MacLeod > > > [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!] > > [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: tight situation>>PLEASE HELP
Jorge Pena wrote: > I'm desperately trying to salvage my work is there anything else i could > try?? it may be a bit late for this, but you could split up your Flash stuff into several movies which sit *around* the QT. I had to do this with an interface built in Flash for a SW3D project... it's a longwinded process, but does avoid the flickering. Christian Christian Wach [EMAIL PROTECTED] [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: dragging a non-moveable sprite
Generally the non-repeat loop way to do that is to have the mouseDown set a boolean value and you check that boolean value on the exitFrame (or more elegantly, do it in the stepFrame and add "me" to the actorList). You're losing the stillDown because you end up moving the mouse off the image...the smaller the image, the easier this is to do. So, on a valid mouseDown, set yourself up to continue following the mouse until you actually get a mouseUp (and mouseUpOutside) which will set the 'follow' condition to false. that help? roymeo At 10:13 AM 8/20/01 -0400, you wrote: >Yes, sure. Adding an updateStage after every location update makes no >difference--it is still possible to break the mouse pointer away from the >sprite with a quick motion, and then the hander stops working. > >I also tried putting the sequence in the exitFrame script. In that case, >the handler always works, but is very "laggy," even at 25 frames/sec. > >Putting the same sequence in a repeat loop, as I've seen in one DOUG >article, makes the movement jerky for some reason. Also, a repeat loop >suspends background actions, at least on the Mac. > >I don't know what else to try. > >S. > >At 08:59 AM 8/20/2001 +0100, you wrote: >>have you tried updateStage during the stilldown section. >> >>- Original Message - >>From: "Slava Paperno" <[EMAIL PROTECTED]> >>To: <[EMAIL PROTECTED]> >>Sent: Monday, August 20, 2001 1:18 AM >>Subject: dragging a non-moveable sprite >> >> >> For a couple of reasons, I don't want to make my sprite moveable, yet I >> do want the user to be able to move it with the mouse. So I use this script: >> > >> > on mouseDown me >> >pLeftMouseOffset = the mouseH - sprite(me.spriteNum).loc[1] >> >pTopMouseOffset = the mouseV - sprite(me.spriteNum).loc[2] >> >if the stillDown then >> > locLeft = the mouseH - pLeftMouseOffset >> > locTop = the mouseV - pTopMouseOffset >> > sprite(me.spriteNum).loc = point(locLeft, locTop) >> >end if >> > end mouseDown >> > >> > It generally works, but when you move the mouse quickly, the handler >> stops working. I get the same results placing this script in a mouseWithin >>handler. >> >> > I remember a discussion a while ago about how often mouse events are >>polled at various frame rates. The problem I'm describing is much worse >>at 3 f/sec, and better--but still a problem--at 20 f/sec. > > >[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!] > - Roy Crisman Senior Macromedia Programmer (716)724-4054 [EMAIL PROTECTED] [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: dragging a non-moveable sprite
You're right Slava. Repeat loops suspend _all_ other animation in Director. Frame scripts won't work well either when the frame rate drops down too much. However, courtesy of timeOut objects, you can have smooth motion without the lockout of repeat loops. Here's some code over the top of my head. Untested. property pUpdateTimer property fActive on beginSprite me -- Initiate the timeOut object pUpdateTimer = timeOut("update_screen").new(100, #mUpdateScreen, me) fActive = FALSE end beginSprite me on mouseDown me -- When the user clicks, set the flag to TRUE fActive = TRUE end mouseDown me on mouseUp me -- When the user releases the cursor, set the flag to FALSE fActive = FALSE end mouseUp me on mouseUpOutside me -- When the user releases the cursor, set the flag to FALSE fActive = FALSE end mouseUpOutside me on mUpdateScreen me -- If the flag is TRUE, then update the location of the sprite if fActive then sprite(me.spriteNum).loc = the mouseLoc end if end mUpdateScreen me The idea behind using timeOut objects is that they always fire off at a fixed interval. There's no dependency on frame rate or screen refreshes. So even if you set your handler to be triggered every millisecond, it'll always work. The flag simply checks that the user has actually pressed the mouse button over the current sprite. If the flag is TRUE, then the mUpdateScreen handler updates the location of the sprite to the mouseLoc. As I said earlier, this is pretty basic code. You'll need to add the frills in it for the kind of movement you're looking for the sprite. HTH. Cordially, Pranav Negandhi New Media Applications. Learnet India Limited, Mumbai. Phone: 91-22-859 8042 Ext: 410 Yes, sure. Adding an updateStage after every location update makes no difference--it is still possible to break the mouse pointer away from the sprite with a quick motion, and then the hander stops working. I also tried putting the sequence in the exitFrame script. In that case, the handler always works, but is very "laggy," even at 25 frames/sec. Putting the same sequence in a repeat loop, as I've seen in one DOUG article, makes the movement jerky for some reason. Also, a repeat loop suspends background actions, at least on the Mac. I don't know what else to try. [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: tight situation>>PLEASE HELP
Try setting the "Static" property of the flash member to "true" -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Alex Macleod Sent: Monday, August 20, 2001 9:35 AM To: [EMAIL PROTECTED] Subject: Re: tight situation>>PLEASE HELP thanks chris, I have tried this to no avail :( I'm desperately trying to salvage my work is there anything else i could try?? Thanks Alex MacLeod -- >From: "Chris Aernoudt" <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]> >Subject: Re: tight situation>>PLEASE HELP >Date: Mon, Aug 20, 2001, 11:58 am > > try turning off "direct to stage" in the prop. inspector for yer QT & > flashies > - Original Message - > From: "Alex Macleod" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, August 20, 2001 2:34 PM > Subject: tight situation>>PLEASE HELP > > >> Firstly, >> Hi, this is my first posting and hope that you are fine and the weekend >> hangovers are'nt too bad. >> >> I have a BIG problem, I have a flash interface and have been building it > for >> a couple of weeks now and have putting a lot of time and effort into > making >> it. I have used director a few times before but I am by no means an > expert. >> I wanted to include some quicktime videos in the piece to play over the >> flash stuff.. but its all gone pear shaped. The QT movies are > flickering >> really badly and this is BAD. I really need a fix to stop them doing this >> but I have been exhausting myself to find one to no avail. >> If anyone can point me the right way I would be VERY apprieciative . >> >> Sorry for the desperate post, but I am scared of losing weeks of work to a >> technical hitch.. >> >> Thank you >> Regards >> Alex MacLeod [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!]
dragging a non-moveable sprite
Yes, sure. Adding an updateStage after every location update makes no difference--it is still possible to break the mouse pointer away from the sprite with a quick motion, and then the hander stops working. I also tried putting the sequence in the exitFrame script. In that case, the handler always works, but is very "laggy," even at 25 frames/sec. Putting the same sequence in a repeat loop, as I've seen in one DOUG article, makes the movement jerky for some reason. Also, a repeat loop suspends background actions, at least on the Mac. I don't know what else to try. S. At 08:59 AM 8/20/2001 +0100, you wrote: >have you tried updateStage during the stilldown section. > >- Original Message - >From: "Slava Paperno" <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]> >Sent: Monday, August 20, 2001 1:18 AM >Subject: dragging a non-moveable sprite > > > For a couple of reasons, I don't want to make my sprite moveable, yet I > do want the user to be able to move it with the mouse. So I use this script: > > > > on mouseDown me > >pLeftMouseOffset = the mouseH - sprite(me.spriteNum).loc[1] > >pTopMouseOffset = the mouseV - sprite(me.spriteNum).loc[2] > >if the stillDown then > > locLeft = the mouseH - pLeftMouseOffset > > locTop = the mouseV - pTopMouseOffset > > sprite(me.spriteNum).loc = point(locLeft, locTop) > >end if > > end mouseDown > > > > It generally works, but when you move the mouse quickly, the handler > stops working. I get the same results placing this script in a mouseWithin >handler. > > > I remember a discussion a while ago about how often mouse events are >polled at various frame rates. The problem I'm describing is much worse at >3 f/sec, and better--but still a problem--at 20 f/sec. [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: Ipix problem.....
FYI, from the documentation: the files you would need would be: Authoring License (Not to be distributed) Ipixtra.lic -- the IPIX Xtra Authoring license The IPIX Xtra (Distributable) Ipixtra.x32 -- the actual distributable IPIX Xtra file Ipx32_56.dll -- shared library file If they were available any longer. - Roy Crisman Senior Macromedia Programmer (716)724-4054 [EMAIL PROTECTED] [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: Ipix problem.....
At 9:45 AM +0200 8/20/01, faisal moro wrote: >That Xtra has been discontinued. > >Anyway, there' the possibility to use the QT one, after a lil' chain >of export ipix/import QT/saveAsCubic etc. I worked to a project >containing ipix source (don't remember if it was modified in some >way, i hve to ask for details), and we solved it in this way, as the >Xtra is not avaliable anymore. >If this could help you in any way, i can ask to the graphic designer >who made the job the exact procedure to achieve this. I'd be interested in this - most definitely! -- Terry R. Schussler, CTO, Trevi Media Less Signature -- More Filling! [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: tight situation>>PLEASE HELP
thanks chris, I have tried this to no avail :( I'm desperately trying to salvage my work is there anything else i could try?? Thanks Alex MacLeod _ Qd (London) Ltd TV/Radio, Music Video, New Media, Design http://www.qotd.co.uk [EMAIL PROTECTED] +44 (0)20 7462 1700 _ The contents of this message may be confidential and should be treated as such unless otherwise stated. _ _ -- >From: "Chris Aernoudt" <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]> >Subject: Re: tight situation>>PLEASE HELP >Date: Mon, Aug 20, 2001, 11:58 am > > try turning off "direct to stage" in the prop. inspector for yer QT & > flashies > - Original Message - > From: "Alex Macleod" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, August 20, 2001 2:34 PM > Subject: tight situation>>PLEASE HELP > > >> Firstly, >> Hi, this is my first posting and hope that you are fine and the weekend >> hangovers are'nt too bad. >> >> I have a BIG problem, I have a flash interface and have been building it > for >> a couple of weeks now and have putting a lot of time and effort into > making >> it. I have used director a few times before but I am by no means an > expert. >> I wanted to include some quicktime videos in the piece to play over the >> flash stuff.. but its all gone pear shaped. The QT movies are > flickering >> really badly and this is BAD. I really need a fix to stop them doing this >> but I have been exhausting myself to find one to no avail. >> If anyone can point me the right way I would be VERY apprieciative . >> >> Sorry for the desperate post, but I am scared of losing weeks of work to a >> technical hitch.. >> >> Thank you >> Regards >> Alex MacLeod >> _ >> >> Qd (London) Ltd >> TV/Radio, Music Video, New Media, Design >> http://www.qotd.co.uk >> [EMAIL PROTECTED] >> +44 (0)20 7462 1700 >> _ >> >> The contents of this message may be confidential and >> should be treated as such unless otherwise stated. >> _ >> _ >> >> >> [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!] >> >> > > > [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!] > > [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!]
Convert cbt to html for web
Hi Friends, I had created one cbt in director 7.0.2 now i want to create that on web so how can i create that. In cbt some database is also there. I have created one shockwave file & create html file also but it gave script error. I think some function is not working. so which is best & easy way to create that. Mitesh [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: mouseLoc or?
You can use BuddyAPI to restrict the movement of the cursor... RestrictCursor Description:baRestrictCursor restricts the cursor to a specified part of the screen. Usage: baRestrictCursor( Left, Top, Right, Bottom ) Pekka > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On > Behalf Of mark verhoef > Sent: 20. elokuuta 2001 12:33 > To: [EMAIL PROTECTED] > Subject: mouseLoc or? > > > Hello,I got the following question. > I've got A Qt movie on stage.But I don't want the mouse to enter it > I want the mouse to stay just outside of the movie. > How do I do this. > > thanks... > > [EMAIL PROTECTED] > kloosterleuter str.31-19 > 3961 AX Wijk bij Duurstede > tel:06-51922532 > > > _ > Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp > > > [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!] > [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: mouseLoc or?
I don't think you can do that, unless if you use a fake cursor that you move around. - Original Message - From: "mark verhoef" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, August 20, 2001 11:32 AM Subject: mouseLoc or? > Hello,I got the following question. > I've got A Qt movie on stage.But I don't want the mouse to enter it > I want the mouse to stay just outside of the movie. > How do I do this. > > thanks... > > [EMAIL PROTECTED] > kloosterleuter str.31-19 > 3961 AX Wijk bij Duurstede > tel:06-51922532 > > > _ > Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp > > > [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!] > > [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: tight situation>>PLEASE HELP
try turning off "direct to stage" in the prop. inspector for yer QT & flashies - Original Message - From: "Alex Macleod" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, August 20, 2001 2:34 PM Subject: tight situation>>PLEASE HELP > Firstly, > Hi, this is my first posting and hope that you are fine and the weekend > hangovers are'nt too bad. > > I have a BIG problem, I have a flash interface and have been building it for > a couple of weeks now and have putting a lot of time and effort into making > it. I have used director a few times before but I am by no means an expert. > I wanted to include some quicktime videos in the piece to play over the > flash stuff.. but its all gone pear shaped. The QT movies are flickering > really badly and this is BAD. I really need a fix to stop them doing this > but I have been exhausting myself to find one to no avail. > If anyone can point me the right way I would be VERY apprieciative . > > Sorry for the desperate post, but I am scared of losing weeks of work to a > technical hitch.. > > Thank you > Regards > Alex MacLeod > _ > > Qd (London) Ltd > TV/Radio, Music Video, New Media, Design > http://www.qotd.co.uk > [EMAIL PROTECTED] > +44 (0)20 7462 1700 > _ > > The contents of this message may be confidential and > should be treated as such unless otherwise stated. > _ > _ > > > [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!] > > [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!]
tight situation>>PLEASE HELP
Firstly, Hi, this is my first posting and hope that you are fine and the weekend hangovers are'nt too bad. I have a BIG problem, I have a flash interface and have been building it for a couple of weeks now and have putting a lot of time and effort into making it. I have used director a few times before but I am by no means an expert. I wanted to include some quicktime videos in the piece to play over the flash stuff.. but its all gone pear shaped. The QT movies are flickering really badly and this is BAD. I really need a fix to stop them doing this but I have been exhausting myself to find one to no avail. If anyone can point me the right way I would be VERY apprieciative . Sorry for the desperate post, but I am scared of losing weeks of work to a technical hitch.. Thank you Regards Alex MacLeod _ Qd (London) Ltd TV/Radio, Music Video, New Media, Design http://www.qotd.co.uk [EMAIL PROTECTED] +44 (0)20 7462 1700 _ The contents of this message may be confidential and should be treated as such unless otherwise stated. _ _ [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!]
mouseLoc or?
Hello,I got the following question. I've got A Qt movie on stage.But I don't want the mouse to enter it I want the mouse to stay just outside of the movie. How do I do this. thanks... [EMAIL PROTECTED] kloosterleuter str.31-19 3961 AX Wijk bij Duurstede tel:06-51922532 _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp [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!]
Automatically updating the drop down menu
Hi guys, I'm developing cd-player with the help of "cdpro" extra, I need some help. Thru cdpro xtra i can get the value of number of tracks in the audio cd if the number of songs are ten, it give me the value 10. What i would like to do is this number 10 should automatically come into the drop down list. i.e it should appear track1, track2, track3 etc. How can i dynamically list the number of tracks in the drop down menu and how can i write programme that when track3 in the drop down menu then do what ever i want to do (means to play track3). thanks in advance. pandey [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: dragging a non-moveable sprite
have you tried updateStage during the stilldown section. - Original Message - From: "Slava Paperno" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, August 20, 2001 1:18 AM Subject: dragging a non-moveable sprite > For a couple of reasons, I don't want to make my sprite moveable, yet I do > want the user to be able to move it with the mouse. So I use this script: > > on mouseDown me >pLeftMouseOffset = the mouseH - sprite(me.spriteNum).loc[1] >pTopMouseOffset = the mouseV - sprite(me.spriteNum).loc[2] >if the stillDown then > locLeft = the mouseH - pLeftMouseOffset > locTop = the mouseV - pTopMouseOffset > sprite(me.spriteNum).loc = point(locLeft, locTop) >end if > end mouseDown > > It generally works, but when you move the mouse quickly, the handler stops > working. I get the same results placing this script in a mouseWithin handler. > > I remember a discussion a while ago about how often mouse events are polled > at various frame rates. The problem I'm describing is much worse at 3 > f/sec, and better--but still a problem--at 20 f/sec. > > What's the solution? Thanks! > > Slava > > > [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!] > [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: Ipix problem.....
That Xtra has been discontinued. Anyway, there' the possibility to use the QT one, after a lil' chain of export ipix/import QT/saveAsCubic etc. I worked to a project containing ipix source (don't remember if it was modified in some way, i hve to ask for details), and we solved it in this way, as the Xtra is not avaliable anymore. If this could help you in any way, i can ask to the graphic designer who made the job the exact procedure to achieve this. HTH Doei Faisal >Guys, > >Does anyone have an 'import ipix' xtra ? >How many xtras are there to view ipix panoramas in Director ? > >Problem: > >After importing my ipix files onto my stage, which work perfectly well, my >problem occurs when i try >& create my projector, i get a dialog box warning me it's failed to >initialise or failed to find the xtra >I've made doubly sure i've placed the xtra folder in the right directory - >i've tried everything - it just won't >happen for me.. > >Has anybody come across this problem before, if so can you help with this >frustrating problem. > >Kind Regards, > >Mango. > >Ps. Is there any alternative in viewing panoramas in director.? -- [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!]