Re: lingo-l Text/Integers?
At 7:09 AM +0100 3/19/03, you wrote: and thus c yields the same result as string(c) true somewhere I read that the first (implicit conversion) is faster than the latter (string() function) ?! that would seem unlikely to me. -Buzz [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!]
lingo-l Linux support
Hello! I want to develope a simple application for Linux platform.I want to know whether director supports developing this.Is there any another version available for Linux based development. thanks in advance. Srinivas balusu ___ Odomos - the only mosquito protection outside 4 walls - Click here to know more! http://r.rediff.com/r?http://clients.rediff.com/odomos/Odomos.htmodomoswn [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!]
lingo-l Don't read just testing
testing a new mail program [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: lingo-l Print PDF file
I have successively used the PDF Xtra from Integration New Media with success for several projects to print pdf files, another solution then the one you try to achieve but if you get stuck on the BuddyAPI way... I apologize if this is not the right forum for this question, but... I am attempting to print a pdf file from a cd without the user seeing the acrobat reader interface. I am using BuddyAPI. I am running the program full screen. When testing from my hard drive, I click the button that is used to print the pdf, my taskbar pops up and I have to click back on the director program again to regain focus. Is there a way to run this script without having my taskbar appear and thus taking focus of the director program? BTW... I am using the following code to print the pdf file... on mouseDown vResult = baPrintFile(acrobat.pdf) End Thanks in advance for any help. [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!]
lingo-l OT very and X post: A plea
This is my plea to all people in the Middle East that are about to be crucified by todays Caesar (George Warmonger Bush). Please use a prayer that he may understand: Father, forgive them, for they know not what they do Tony Bray [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: lingo-l OT very and X post: A plea
This is my plea to all people in the Middle East that are about to be crucified by todays Caesar (George Warmonger Bush). Please use a prayer that he may understand: Father, forgive them, for they know not what they do Well done for having a perfectly descriptive subject name, but I think they do know what they are doing. I also suspect that Saddam won't be the idol in a worldwide religion in 2003 years from 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!]
Re: lingo-l OT very and X post: A plea
Folks, this is a hot issue for nearly everyone in the world right now - there are plenty of places for this discussion, but the Lingo-L list is not one of them. We all ultimately want peace in the world, but we also need to keep Lingo-L a peaceful place and free from political discussion. I appreciate your help in this. Thanks Tab Julius List adminstrator, Lingo-L [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: lingo-l Linux support
On Wednesday, Mar 19, 2003, at 02:39 America/Chicago, srinivas * balusu wrote: I want to develope a simple application for Linux platform.I want to know whether director supports developing this. No. Is there any another version available for Linux based development. There are lots of very high level languages and scripting IDEs for Linux. For a more command-line/code heavy approach, you might consider a combination of Python and tkinter. (www.python.org). There are lots of platforms Python will run on. For a package that is very reminiscent of HyperCard, check out Runtime Revolution (www.runrev.com). Runtime Revolution supports pretty much everything, including every significant flavor of 'nix. Warren Ockrassa | http://www.nightwares.com/ Director help | Free files | Sample chapters | Freelance | Consulting Author | Director 8.5 Shockwave Studio: A Beginner's Guide Published by Osborne/McGraw-Hill http://shop.osborne.com/cgi-bin/osborne/0072195622.html [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: lingo-l OT very and X post: A plea
On Wednesday, Mar 19, 2003, at 07:41 America/Chicago, Colin Holgate wrote: This is my plea to all people in the Middle East that are about to be crucified by todays Caesar (George Warmonger Bush). Please use a prayer that he may understand: Father, forgive them, for they know not what they do Well done for having a perfectly descriptive subject name, but I think they do know what they are doing. I also suspect that Saddam won't be the idol in a worldwide religion in 2003 years from now. With any luck we'll have got past the religion memetic virus permanently by then. It was, after all, religion that caused the September 2001 attacks, and it is largely religion that drives Bush's foreign and domestic policy now. -- WthmO [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!]
lingo-l Scripting Xtra
I am very new to Xtra development, I only started looking into it on Monday! I don't really know what I'm doing, I would be really grateful. I have been given a program that was developed in C++ and was not developed as an Xtra, we have been told by the developer that we can use the program but we will have to convert it to an Xtra ourselves. I have been looking at the XDK but I'm a bit lost, I have used C++ before but not to much and I and quite fluent in Lingo but I just don't know where to start. It is a scripting Xtra and I have being trying to decipher the DrAccess code there is a CallAFunction part that might be useful. Also I have been looking at the skeleton code I have a very high level notion of what I'm supposed to do, do I call the functions in the already developed c++ program from the skeleton script class of should the script class and C++ program be integrated. If you have any information at all that may help me I would greatly appreciated it. [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: lingo-l Carriage return using numeric keypad ENTER key
You're not addressing the member correctly. By using sprite(the currentSpriteNum).member you get this result: member x of castlib y try this: on keyDown me if the key=RETURN then member(sprite(the currentSpriteNum).membernum).text=member(sprite(the currentSpriteNum).membernum).text RETURN else pass end if end Charlie Fiskeaux II Media Designer The Creative Group www.cre8tivegroup.com 859/858-9054x29 - Original Message - From: Alan Neilsen [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, March 18, 2003 11:51 PM Subject: lingo-l Carriage return using numeric keypad ENTER key Hi Can anyone help with a piece of lingo that will make the Enter key on a Windows numeric keypad work as a carriage return in an editable text box. I have tried a number of things such as - on keyDown me if the key = ENTER then set member(sprite(the currentSpriteNum).member).text = member(sprite(the currentSpriteNum).member).text RETURN -- (I also tried just the word RETURN or RETURN in lieu of the above line) else pass end if end Director help tells me - On PC keyboards, the element ENTER refers only to the Enter key on the numeric keypad. and The RETURN Constant; represents a carriage return. All I am able to get this key to do thus far is place a square box (unknown character) in the text. Alan Neilsen Multimedia Developer Learning Services Deakin University Geelong Waterfront Campus Geelong, Victoria 3217 Telephone : +61 03 5227 8155 E-mail: [EMAIL PROTECTED] Please feel free to visit us at - Learning Services: http://www.deakin.edu.au/learningservices Exemplars of our work: http://cowan.ls.deakin.edu.au/exemplars/ [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: lingo-l Carriage return using numeric keypad ENTER key
A better way to do it would also be to use the put...after terminology (and you can compress the member reference, too): on keyDown me if the key=RETURN then put RETURN after sprite(the currentSpritenum).member.text else pass end if end Charlie Fiskeaux II Media Designer The Creative Group www.cre8tivegroup.com 859/858-9054x29 - Original Message - From: Charlie Fiskeaux II [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 19, 2003 10:43 AM Subject: Re: lingo-l Carriage return using numeric keypad ENTER key You're not addressing the member correctly. By using sprite(the currentSpriteNum).member you get this result: member x of castlib y try this: on keyDown me if the key=RETURN then member(sprite(the currentSpriteNum).membernum).text=member(sprite(the currentSpriteNum).membernum).text RETURN else pass end if end Charlie Fiskeaux II Media Designer The Creative Group www.cre8tivegroup.com 859/858-9054x29 - Original Message - From: Alan Neilsen [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, March 18, 2003 11:51 PM Subject: lingo-l Carriage return using numeric keypad ENTER key Hi Can anyone help with a piece of lingo that will make the Enter key on a Windows numeric keypad work as a carriage return in an editable text box. I have tried a number of things such as - on keyDown me if the key = ENTER then set member(sprite(the currentSpriteNum).member).text = member(sprite(the currentSpriteNum).member).text RETURN -- (I also tried just the word RETURN or RETURN in lieu of the above line) else pass end if end Director help tells me - On PC keyboards, the element ENTER refers only to the Enter key on the numeric keypad. and The RETURN Constant; represents a carriage return. All I am able to get this key to do thus far is place a square box (unknown character) in the text. Alan Neilsen Multimedia Developer Learning Services Deakin University Geelong Waterfront Campus Geelong, Victoria 3217 Telephone : +61 03 5227 8155 E-mail: [EMAIL PROTECTED] Please feel free to visit us at - Learning Services: http://www.deakin.edu.au/learningservices Exemplars of our work: http://cowan.ls.deakin.edu.au/exemplars/ [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!] [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: lingo-l Carriage return using numeric keypad ENTER key
On Wednesday, Mar 19, 2003, at 09:43 America/Chicago, Charlie Fiskeaux II wrote: You're not addressing the member correctly. By using sprite(the currentSpriteNum).member you get this result: member x of castlib y try this: on keyDown me if the key=RETURN then member(sprite(the currentSpriteNum).membernum).text=member(sprite(the currentSpriteNum).membernum).text RETURN else pass end if end The currentSpriteNum property is quirky. It's better to use me.spriteNum; also, use a stopEvent to make sure the enter keystroke won't propagate: on keyDown me if the key = ENTER then stopEvent sprite(me.spriteNum).member.text = sprite(me.spriteNum).member.text RETURN else pass end if end Warren Ockrassa | http://www.nightwares.com/ Director help | Free files | Sample chapters | Freelance | Consulting Author | Director 8.5 Shockwave Studio: A Beginner's Guide Published by Osborne/McGraw-Hill http://shop.osborne.com/cgi-bin/osborne/0072195622.html [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: lingo-l Projector in WinXP
Could you help me test this file in your guys XP I use DirMX to make this projector. ftp://ftp.newasiabooks.com/maths/testxp.exe You'll need to put the dir file up for us to do any meaningful testing. With the exe (which is a larger download) we have no idea what you're trying to do, what errors you're getting, or why. Even if we do see an error, without the source, we won't be able to give you much direction. 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: lingo-l Carriage return using numeric keypad ENTER key
On Wednesday, Mar 19, 2003, at 09:58 America/Chicago, Charlie Fiskeaux II wrote: A better way to do it would also be to use the put...after terminology (and you can compress the member reference, too): on keyDown me if the key=RETURN then put RETURN after sprite(the currentSpritenum).member.text else pass end if end That returns an error. Dot syntax and put after do not get along. -- WthmO [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!]
lingo-l on hyperlinkClicked
I must be missing something basic here - 'cause I've made this work before. I have a text member that I've put on stage. I have a field member called source with some valid HTML - it has one or more links in it that look like this: a href=somelinkSome text/a Then attach a behavior that to puts the text into the html of a member and waits for a click on a hyperlink: property spriteNum on beginSprite me sprite(spriteNum).member.html = member(source).text end on hyperlinkClicked me, data, range put data put range nothing end I put a breakpoint in the hyperLinkClicked routine above and run. The text shows up, the links are blue and underlined. But the on hyperlinkClicked never gets called. What's up with that?? 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/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 on hyperlinkClicked
On Wednesday, Mar 19, 2003, at 11:22 America/Chicago, Irv Kalb wrote: I put a breakpoint in the hyperLinkClicked routine above and run. The text shows up, the links are blue and underlined. But the on hyperlinkClicked never gets called. What's up with that?? IIRC to make dynamically loaded hypertext work, you have to, after loading the text in your member, set the member.media = the member.media to refresh Director. -- WthmO [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!]
lingo-l External casts
Do external casts not get loaded if the project is published and used on a web page? Or do I need to do something special? Thx J [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: lingo-l on hyperlinkClicked
Have you tried : member(source).media = member(source).media to wake up the member? Worked for me when I created hyperlinks on the fly. Bertil Flink Creative Media - Original Message - From: Irv Kalb [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 19, 2003 6:22 PM Subject: lingo-l on hyperlinkClicked I must be missing something basic here - 'cause I've made this work before. I have a text member that I've put on stage. I have a field member called source with some valid HTML - it has one or more links in it that look like this: a href=somelinkSome text/a Then attach a behavior that to puts the text into the html of a member and waits for a click on a hyperlink: property spriteNum on beginSprite me sprite(spriteNum).member.html = member(source).text end on hyperlinkClicked me, data, range put data put range nothing end I put a breakpoint in the hyperLinkClicked routine above and run. The text shows up, the links are blue and underlined. But the on hyperlinkClicked never gets called. What's up with that?? 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/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: lingo-l Scripting Xtra
A better forum for you would be the mmxdk-l listserv, which is this list's equivalent but for Xtras developers. To do that, email [EMAIL PROTECTED] and put in the body of the message subscribe mmxdk-l This list is for the Lingo side of things. Mmxdk-l is for those working with MOA and the XDK, which is what you're going to be doing. - Tab At 10:32 AM 3/19/03, Des Marron wrote: I am very new to Xtra development, I only started looking into it on Monday! I don't really know what I'm doing, I would be really grateful. I have been given a program that was developed in C++ and was not developed as an Xtra, we have been told by the developer that we can use the program but we will have to convert it to an Xtra ourselves. I have been looking at the XDK but I'm a bit lost, I have used C++ before but not to much and I and quite fluent in Lingo but I just don't know where to start. It is a scripting Xtra and I have being trying to decipher the DrAccess code there is a CallAFunction part that might be useful. Also I have been looking at the skeleton code I have a very high level notion of what I'm supposed to do, do I call the functions in the already developed c++ program from the skeleton script class of should the script class and C++ program be integrated. If you have any information at all that may help me I would greatly appreciated it. [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: lingo-l on hyperlinkClicked
The only way I've dynamically created hyperlinks is: sprite(4).member.word[1].hyperlink = http://whatever; Have you tried putting the hyperlink of your text member in the message window to see if it actually has a hyperlink assigned to it? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Irv Kalb Sent: Wednesday, March 19, 2003 12:23 PM To: [EMAIL PROTECTED] Subject: lingo-l on hyperlinkClicked I must be missing something basic here - 'cause I've made this work before. I have a text member that I've put on stage. I have a field member called source with some valid HTML - it has one or more links in it that look like this: a href=somelinkSome text/a Then attach a behavior that to puts the text into the html of a member and waits for a click on a hyperlink: property spriteNum on beginSprite me sprite(spriteNum).member.html = member(source).text end on hyperlinkClicked me, data, range put data put range nothing end I put a breakpoint in the hyperLinkClicked routine above and run. The text shows up, the links are blue and underlined. But the on hyperlinkClicked never gets called. What's up with that?? 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/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: lingo-l Carriage return using numeric keypad ENTER key
- Original Message - From: Howdy-Tzi [EMAIL PROTECTED] put RETURN after sprite(the currentSpritenum).member.text ... That returns an error. Dot syntax and put after do not get along. Actually, it's not that, it's yet another odd quirk. Full verbose syntax doesn't work either, you need to drop the .text part. This works perfectly: put RETURN after sprite( me.spriteNum ).member That is definitely the correct syntax for a field, but it also happens to work with text members, despite the fact that it shouldn't work without the .text. BTW, put...after is [very] significantly faster than using the concatenation operator, so should be used instead whenever possible. - 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: lingo-l Carriage return using numeric keypad ENTER key
On Wednesday, Mar 19, 2003, at 12:20 America/Chicago, Robert Tweed wrote: - Original Message - From: Howdy-Tzi [EMAIL PROTECTED] put RETURN after sprite(the currentSpritenum).member.text ... That returns an error. Dot syntax and put after do not get along. Actually, it's not that, it's yet another odd quirk. Full verbose syntax doesn't work either, you need to drop the .text part. Yep! That's right! Forgot about that one. -- WthmO [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: lingo-l Text/Integers?
On Wed, 19 Mar 2003 00:01:36 -0800, Buzz Kettles [EMAIL PROTECTED] wrote: somewhere I read that the first (implicit conversion) is faster than the latter (string() function) ?! that would seem unlikely to me. Quite likely! As supported by the fact that an object reference (instance) goes 'to string' differently in each case: Try making this parent script: on getRefCount me toStr1 = me.string refCount1 = integer(toStr1.word[3]) toStr2 = string(me) refCount2 = integer(toStr2.word[3]) toStr3 = me refCount3 = integer(toStr3.word[3]) toStr4 = put me after toStr4 refCount4 = integer(toStr4.word[3]) put [refCount1, refCount2, refCount3, refCount4] end Name the script 'a', then in the message window; script(a).new().getRefCount() -- [4, 3, 2, 2] In other words, string() and .string seem to create additional references (and therefore must use more cycles allocating and releasing memory) than implicit coercion to string. Implicit coercion also happens with 'put after'. .string is clearly the most 'expensive' of the three aparently equivalent forms. It is also the most recent piece of syntactical sugar in this discussion, so I wouldn't be surprised if it were implemented as a quick hack. I discovered all this when experimenting with 'destroy' handlers - finding out whether an object has more than one reference - whether it was 'safe' to cut it loose. Of course, to do this, you have to subtract the extra references which are created for the task, but depending on how you go 'to string' you have to subtract a different value to get the 'true' reference count. Also using 'put into', 'put before' and 'put after' is 'cheaper' than using an assignment operator (with strings at least). str1 = str1 str2 -- slower put str2 after str1 -- faster Presumably because an assignment operator requires that memory is allocated for the right side of the operation, while the left side is still in memory. Additionally, the 'original value' of the left side needs to get garbage collected. Using 'put before' or 'put after' only allocates the memory needed to accomodate the additional string data. With this in mind, I would also expect 'put into' to use less memory / fewer cycles than the assignment operator (=) in those cases where a variable already exists, especially if the variable is a string. Strings are passed by value, not by reference, so they are not particularly efficient. We all know that strings can be very long (as in 'how long is a piece of...'), so an assignment involving the concatentation of two long strings must be quite expensive. Using 'put after' or 'put before' should allow some of this lost efficiency to be regained. However, I have not done any tests to confirm this. (Any takers?) Ahh you can't keep that good ol' hypertalk syntax down. Brennan [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: lingo-l on hyperlinkClicked
Thanks very much Howdy - that did it! (Of course, no mention of this in the docs) Irv At 12:01 PM -0600 3/19/03, Howdy-Tzi wrote: On Wednesday, Mar 19, 2003, at 11:22 America/Chicago, Irv Kalb wrote: I put a breakpoint in the hyperLinkClicked routine above and run. The text shows up, the links are blue and underlined. But the on hyperlinkClicked never gets called. What's up with that?? IIRC to make dynamically loaded hypertext work, you have to, after loading the text in your member, set the member.media = the member.media to refresh Director. -- WthmO [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!] -- 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/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 on hyperlinkClicked
On Wednesday, Mar 19, 2003, at 12:34 America/Chicago, Irv Kalb wrote: Thanks very much Howdy - that did it! :D (Of course, no mention of this in the docs) Actually it's a quirk, so no, it's won't be documented. It's not intended behavior. :\ What I seem to recall is that this manifested from the start with Dir7 in 1999. Sic semper deferrals. -- WthmO [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: lingo-l testing for Internet connection
On Wednesday, Mar 19, 2003, at 12:18 America/Chicago, Slava Paperno wrote: Is there a way to use Lingo to see if the PC/Mac is connected to the Internet? Not reliably, in my experience. You can try polling the environment.internetConnected but you'll probably find it's not accurate. As I recall it has problems with proxies. I use baOpenURL to start the default browser and load a page, but I'd like to test for connection first. Well, theoretically the machine will start a dialup session if there isn't a connection. It might not hurt to let the user know in advance with something like If you click here a web page will load (or whatever works), thus giving him/her a little warning that a net connection will be required. Warren Ockrassa | http://www.nightwares.com/ Director help | Free files | Sample chapters | Freelance | Consulting Author | Director 8.5 Shockwave Studio: A Beginner's Guide Published by Osborne/McGraw-Hill http://shop.osborne.com/cgi-bin/osborne/0072195622.html [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: lingo-l on hyperlinkClicked
- Original Message - From: Howdy-Tzi [EMAIL PROTECTED] Actually it's a quirk, so no, it's won't be documented. That's because Director would cost at least twice as much, and there would be far less trees left in the rainforests if they had to use enough paper to document all the quirks ;-) - 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: lingo-l Text/Integers?
At 19:37 Uhr +0100 19.03.2003, Brennan wrote: Strings are passed by value, not by reference, so they are not particularly efficient. We all know that strings can be very long (as in 'how long is a piece of...'), so an assignment involving the concatentation of two long strings must be quite expensive. Using 'put after' or 'put before' should allow some of this lost efficiency to be regained. However, I have not done any tests to confirm this. (Any takers?) to my knowledge strings are handled a bit trickier (since ...D8.5 ??), in that they get passed by reference, and all variables which reference the string point to the same address in memory as long as their content doesn't get changed, in that case the reference is tossed and the altered string will be written to a new address. so memory only needs to be allocated, if the string is changed. I don't know exactly how to test this with lingo only (I vaguely remember an xtra, maybe one of daniel devolders ? which showed the address in memory of the data referenced by a variable). and I even may have gotten this completely wrong, but as I understood a director engeneer once, it was changed for D 8.5 / 8.5.1 or even DMX to work that way. -- ||| 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: lingo-l on hyperlinkClicked
On Wednesday, Mar 19, 2003, at 13:35 America/Chicago, Robert Tweed wrote: Actually it's a quirk, so no, it's won't be documented. That's because Director would cost at least twice as much, and there would be far less trees left in the rainforests if they had to use enough paper to document all the quirks ;-) Heh, not to mention Gretchen's hit count would dwindle rapidly! -- WthmO [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!]
lingo-l Direct Email Xtra
Hi list, I work on multimedia projects freelance. My current client is interested in utilizing the DirectEmail Xtra in our project. Here's the situation...while he does have the software (Director) available on his machine, the computers in his office are tremendously SLOW. I've been working on the project from my own computer with the version of Director that I own (different copy, different serial numbers). If he was to purchase the xtra for his company, would I be able to use it on my copy of Director or will I have to work on his machine in the office to make the projector? Thanks for any information you can offer. Regards, Ivy [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: lingo-l Text/Integers?
- Original Message - From: Alex da Franca [EMAIL PROTECTED] I don't know exactly how to test this with lingo only You could test for this easily by simply timing how long it takes to call a function with strings of varying lengths (say, 1 char, 100 chars and 1 chars) one function returns the string untouched, while another does something with it's local copy. You should see a dramatic difference in the timings when the string is physically copied compared with the reference passing. You should not see any difference in times for different lengths of string when passed by reference, but when passed by value, the longer strings will take more time to copy. FWIW, Delphi has used the same method you describe to pass strings since version 2, so it's fairly likely that they could have done the same thing with Lingo. - 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: lingo-l Direct Email Xtra
On Wednesday, Mar 19, 2003, at 14:41 America/Chicago, ives1026 wrote: I work on multimedia projects freelance. My current client is interested in utilizing the DirectEmail Xtra in our project. Here's the situation...while he does have the software (Director) available on his machine, the computers in his office are tremendously SLOW. I've been working on the project from my own computer with the version of Director that I own (different copy, different serial numbers). If he was to purchase the xtra for his company, would I be able to use it on my copy of Director or will I have to work on his machine in the office to make the projector? You'd be best advised to ask this question of the owner of the Direct Email Xtra. -- WthmO [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!]
lingo-l testing for Internet connection
Is there a way to use Lingo to see if the PC/Mac is connected to the Internet? I use baOpenURL to start the default browser and load a page, but I'd like to test for connection first. There's a great TechNote on using getNetText for this at at http://www.macromedia.com/support/director/ts/documents/internt_connected.htm but that Note was written in 2000. Any newer methods? Which of the newer Director books have the most info on using Net Lingo and Multiuser Server? I've never done Internet Lingo before, and my library may be a little behind. My most recent book is Gary Rosenzweig's Special Edition using D 8.5. Many thanks! Slava [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!]
lingo-l Printomatic on IBM
Hi list, While using the Printomatic xtra in Director, we found that printing on IBM machines running Windows 98 results in a failed printout. The print options dialog box is opened and the paper is fed in, but is returned blank. Machines where the printout fails have the following configuration - IBM makes (NetVista, 300 GL) 64 - 128 MB RAM PII or PIII processors HP LaserJet 2100 Series printer Similar configurations running Windows NT/2K don't have this problem. More details, if needed can be provided. Thanks. I mailed Electronic Ink support with this issue, but they haven't got back to me yet. If anyone can suggest why this happens, I'd be grateful. We need to ship this thing out ASAP. Thanks. Pranav Negandhi Software Engineering Learnet India Limited, Mumbai. Phone: 91-22-56768120 http://www.learnetindia.com Does anybody remember laughter? -- Robert Plant, The Song Remains the Same. [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: lingo-l Printomatic on IBM
Thanks Mayuresh. Getting it checked out right away. Pranav Negandhi Software Engineering Learnet India Limited, Mumbai. Phone: 91-22-56768120 http://www.learnetindia.com Does anybody remember laughter? -- Robert Plant, The Song Remains the Same. snip What the site does mention is that the Xtra fails reliably when printing on HP printers thanks to their below par drivers. The first thing to do would be to check your driver versions across all your test machines and then try it with updated drivers. snip [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: lingo-l Printomatic on IBM
I don't recall reading of any problems specific to any machine. What the site does mention is that the Xtra fails reliably when printing on HP printers thanks to their below par drivers. The first thing to do would be to check your driver versions across all your test machines and then try it with updated drivers. ___ Regards, Mayuresh - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, March 20, 2003 10:57 AM Subject: lingo-l Printomatic on IBM Hi list, While using the Printomatic xtra in Director, we found that printing on IBM machines running Windows 98 results in a failed printout. The print options dialog box is opened and the paper is fed in, but is returned blank. Machines where the printout fails have the following configuration - IBM makes (NetVista, 300 GL) 64 - 128 MB RAM PII or PIII processors HP LaserJet 2100 Series printer Similar configurations running Windows NT/2K don't have this problem. More details, if needed can be provided. Thanks. I mailed Electronic Ink support with this issue, but they haven't got back to me yet. If anyone can suggest why this happens, I'd be grateful. We need to ship this thing out ASAP. Thanks. Pranav Negandhi Software Engineering Learnet India Limited, Mumbai. Phone: 91-22-56768120 http://www.learnetindia.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: lingo-l Projector in WinXP
Very thanks for your reply ftp://ftp.newasiabooks.com/maths/testxp.dir also putted on the server already. Its just a flying box around the stage, nothing special. Develop platform:Win98SE (CHI) + Director MX(Eng) Test Platform Win98SE (Chi/Eng) ok Win2000 (Chi/Eng) ok WinMe (Chi/Eng) ok Winxp (Chi/Eng) fail maybe it is really language version problem. However I did try using WinXp (Eng) + DirectorMX (Eng) still some of the WinXp(Eng) cannot use the file. The strage thing is, if the machine is connect to the Lan, everything works From: Kerry Thompson [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE: lingo-l Projector in WinXP Date: Wed, 19 Mar 2003 11:24:53 -0500 Could you help me test this file in your guys XP I use DirMX to make this projector. ftp://ftp.newasiabooks.com/maths/testxp.exe You'll need to put the dir file up for us to do any meaningful testing. With the exe (which is a larger download) we have no idea what you're trying to do, what errors you're getting, or why. Even if we do see an error, without the source, we won't be able to give you much direction. 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!] _ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus [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!]