RE: MIAW's as properties
> I have a nagging doubt that a reference to my parent script is > being stored > somewhere, and since it still contains a handle to the MIAW, the file is > not being forgotten. Could that be possible? Absolutely. AFAIK, 'forget'ting a window removes it's reference from the windowList. It doesn't troll through other places deleting references until the refCount is 0. -Sean. [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!]
calculating the point of intersection of two lines
Hi list! I have a mathematical problem that I am not able to solve on my own: Suppose you have two straight lines, defined by two points: Let's say point(x1, y1) and point(x2, y2) for line 1 and point(x3, y3) and point(x4, y4) for line 2. What's the algorithm for calculating the point where these two lines intersect? Thanks for your help! Michael von Aichberger [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: open lingo keeps launching Internet Explorer
You might want to check out Buddy API (http://www.buddyapi.com). Its open function will open a file with the file's associated app (win) or creator (mac). I've found Buddy's "open" more reliable in general. You get 2 functions for free, so it won't cost ya nothin'. 'Course, it is an xtra, so you have to take the steps necessary when publishing. > It sounds like that filetype is associated with IE somehow. > > At 7:09 PM + 3/15/02, you wrote: >> Sorry I forgot the subject last time. >> >> I'm creating a project that requires the projector to open different types >> of external documents and applications. For some reason when I use >> any of the following 'open' lingo Microsoft Internet Explorer always >> opens instead of or >> as well as the document. This happens on my PC and Mac If anyone can tell me >> why it will be much appreciated. >> >> >> open "document" >> or >> open the movie path & "document" >> or >> open "document" with " application" [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: calculating the point of intersection of two lines
> Suppose you have two straight lines, defined by two points: > > Let's say > > point(x1, y1) and point(x2, y2) for line 1 > > and > > point(x3, y3) and point(x4, y4) for line 2. > > What's the algorithm for calculating the point where these two lines > intersect? Convert them both into the form y = mx + c where m is the slope of the line and c is a constant ie. m1 = ((y2 - y1)/(x2 - x1)) and c1 = y2/(m1 * x2) and m2 = ((y4 - y3)/(x4 - x3)) and c2 = y4/(m2 * x4) then if m1 == m2 and they don't share a common point at eg. x = 0, then they're parallel and don't intersect; otherwise x = (c2 - c1)/(m1 - m2) is the x value at the point of intersection and you can solve either original equation for the y value x = (c2 - c1)/(m1 - m2) re-arranges to: num = y3 - y1 + (x1 * (float((y2 - y1))/(x2 - x1))) - (x3 * (float((y4 - y3))/(x4 - x3))) denom = float(y2 - y1)/(x2 - x1) - float(y4 - y3)/(x4 - x3) x = num/denom -- x-value at the i-sect point HTH, -Sean. [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: Flash advantages (was: My Crystal Ball)
>> You need to >> read, not scan, my opinionated volatile alter-ego. > > No, I'd rather not. That requires far too much effort -- effort I > could spend on pontification. LOL. You do have a knack for it. >> Ok, I'll rise to the bait. >> >> Film clips. >> >> Vector graphics >> >> Vector-based text >> >> I'm gonna get creamed for this, but I think ActionScript is a better >> language than Lingo. > > > Allow me: > > You meant movie clips I guess. Between MIAWs, film loops, LDMs, and > Flash if you must, Director doesn't do too bad. > > Director has shapes, vectors, and Flash. > > What do you suppose is going on behind the scenes when you use > embedded outline fonts? > > Lingo can be used in a way that is easy for humans to understand, or > in ways that are easier for geeks to understand. ActionScript is just > geared towards geeks. This is why I jumped into the thread... To get Colin and Kerry arguing. Actually, I just like the more abstract threads. It would be interesting to come up with some optimization tests that involve pure Dir, pure Flash, and Flash inside Dir for the above stuff. Tough to get accurate benchmarks for #2 vs. #1 and #3, but comparisons for #1 and #3 should be at least somewhat accurate. As I stated before, I've been down on Flash from the get-go. Not because of the language - I also prefer Javascript in some ways - but because of the authoring environment. It always seemed like a weird hash... a more "geeky" language shoe-horned into a very non-geek interface. Perhaps it's just me, but I find it much more difficult to structure my more complex functionality in Flash - not that I spent that much time trying. Time to change, though. I think my point in this thread is that to ignore Flash is to have one's head in the sand, which I think was Kerry's original point. Just my opinion, but whether you call it Actionscript or Javascript, it's worth a look. Shockwave fits nicely into the overall picture, but it's only one piece of the puzzle. Pontificating, kurt [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: My Crystal Ball
> Curt, Kurt. :-) Um... Rollin', Colin... Bowlin', Colin... I got nothing. :) [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!]
Havok and keyframe animation
hello, I have a bug problems with havok Xtra in director. I try to interact a ball with element which have a keyframe animation. But in my movie, objet move, but not his rigidbody :( so, i try for each step to move my rigidBody like this : MyRigidBodyOfMyModel.position = MyModel.worldposition but problems because when My Model interpenetrates ball, collisions between these two rigid bodies are not resolved. So my question, how i can use My keyframe animation for my RigidBody With Reactor in Max, it's ok, but no in Director :( thx you for your help Kermit [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: open lingo keeps launching Internet Explorer
Thanks for that, I actualy resorted to BuddyAPI yesterday but my hold on Lingo is so slight that im having trouble understanding how to get it to work (I guess for some of us there's just no hope). If anyone has BuddyAPI and can help me with the basics that would be so good. thanks Matt >From: Kurt Subject: Re: open lingo keeps launching Internet >Explorer >Date: Sun, 17 Mar 2002 21:01:40 -0500 > >You might want to check out Buddy API (http://www.buddyapi.com). Its open >function will open a file with the file's associated app (win) or creator >(mac). I've found Buddy's "open" more reliable in general. You get 2 >functions for free, so it won't cost ya nothin'. 'Course, it is an xtra, so >you have to take the steps necessary when publishing. > > > It sounds like that filetype is associated with IE somehow. > > > > At 7:09 PM + 3/15/02, you wrote: > >> Sorry I forgot the subject last time. > >> > >> I'm creating a project that requires the projector to open different >types > >> of external documents and applications. For some reason when I use > >> any of the following 'open' lingo Microsoft Internet Explorer always > >> opens instead of or > >> as well as the document. This happens on my PC and Mac If anyone can >tell me > >> why it will be much appreciated. > >> > >> > >> open "document" > >> or > >> open the movie path & "document" > >> or > >> open "document" with " application" > >[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!] _ Chat with friends online, try MSN Messenger: http://messenger.msn.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: protecting bitmaps ???
Oh yes; I will... You just saved me a bunch of work I'm off to get my lazy chair... :) Thanks a lot... Chris. - Original Message - From: "Howdy-Tzi" <[EMAIL PROTECTED]> > Have fun. I am off to home now. [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!]