Re: 3D Page flip effect???
Thank you for sharing the useful information, James... :) I just ordered the book and can't wait to see what's going to be in my brain after I get the book... I was kinda afraid that this effect involves with Imaging Lingo and I think that is the case... That part is the place where I left off last time when I was studying Director... Well... I guess this will be the good time to learn some more... :) I was wondering if you have any example you have available on line so that I can see how you have created the effect... Thank you again and have a nice day... Jason _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx [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!]
3D Page flip effect???
Howdy... :) Did anybody done any page flip effect for the book??? I want to create a book with page flip effect... Any insights??? TIA Jason _ Send and receive Hotmail on your mobile device: http://mobile.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: test....
no, from me... ;p >from me? _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.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: rs232 communication
I've heard that there is another one called SerialXtra from physical bits... Check it out at http://www.physicalbits.com/ I heard that this one is cheaper than DirectCommunication's Xtra... :) Good luck and happy birthday... :) _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx [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: [Q] I have problem opening a MIAW movie...
Hi... I just found out that the crash doesn't happen on Mac projector... Well... it could be true because there is no Dr. Watson on the Mac... :) Can anybody help me??? I just have no clue why this is happening... :( TIA Jason >Hi... > >I am having some problem opening a MIAW movie... > >I have a Director projector that contains a Flash movie... Within the Flash >movie, I have a getURL function call to invoke a custom Director >function... > >In Flash, > >on (release) >{ > platform = $version.substring(0, 3); > if (platform == "WIN") > { > pathDelimiter = "\\"; > pathDelimiter = 1; > } > else if (platform == "MAC") > { > pathDelimiter = ":"; > pathDelimiter = 2; > } > else > { > pathDelimiter = "/"; > pathDelimiter = 3; > } > > PathName = 4; > FileName = 13; > > getURL("lingo: openThis " add pathDelimiter add PathName add FileName); >// >this will be the same thing as issuing 'openThis 1413' on Director > getURL("lingo: cursor -1"); >} > >In Director, > >on openThis temp > global theWin > > theDelimiter = getDelimiter(integer(string(temp).char[1..1])) > theDirName = getDirName(integer(string(temp).char[2..2])) > theFileName = getFileName(integer(string(temp).char[3..4])) > > thePath = the moviepath & theDirName & theDelimiter & theFileName > > if string(temp).char[3..3] = "1" then >dotIs = offset(".", theFileName) >window(theFileName.char[1..dotIs - 1]).fileName = >thePath.char[1..thePath.length - 4] >window(theFileName.char[1..dotIs - 1]).windowType = 4 >--window(theFileName.char[1..dotIs - 1]).modal = true >window(theFileName.char[1..dotIs - 1]).Title = "Hyeongjun Je" > >set myRect = the rect of window(theFileName.char[1..dotIs - 1]) >set myStage = the rect of the Stage >set myWidth = (getAt (myRect, 3) - getAt (myRect, 1)) >set myHeight = (getAt (myRect, 4) - getAt (myRect, 2)) >set myLocH = ((getAt(myStage,3) + getAt(myStage,1)) / 2) - (myWidth/ 2) >set myLocV = ((getAt(myStage,2) + getAt(myStage,4)) / 2) - (myHeight/ >2) >set myNewRect = rect (myLocH,myLocV,(myLocH + myWidth),(myLocV + >myHeight)) >set the rect of window(theFileName.char[1..dotIs - 1]) = myNewRect > >window(thePath.char[1..thePath.length - 4]).open() > else >fxObj = xtra("FileXtra3").new() >fxObj.fx_FileOpenDocument(thePath) >fxObj = 0 > end if >end > >I have 5 DCR files in the Samples directory that I call with that openThis >behavior...(Two of them are Director movie files that has Flash embeded, >and three of them are Director movie files) >I don't have problem opening those first two with Flash with that behavior, >but if I open the other three in projector, I get the DR.Watson error >message... (I'm on Win2k with Director 8.5.1) > >Is there any known issue on this matter??? I am really stuck here and I >need some help... > >TIA >Jason _ 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!]
[Q] I have problem opening a MIAW movie...
Hi... I am having some problem opening a MIAW movie... I have a Director projector that contains a Flash movie... Within the Flash movie, I have a getURL function call to invoke a custom Director function... In Flash, on (release) { platform = $version.substring(0, 3); if (platform == "WIN") { pathDelimiter = "\\"; pathDelimiter = 1; } else if (platform == "MAC") { pathDelimiter = ":"; pathDelimiter = 2; } else { pathDelimiter = "/"; pathDelimiter = 3; } PathName = 4; FileName = 13; getURL("lingo: openThis " add pathDelimiter add PathName add FileName); // this will be the same thing as issuing 'openThis 1413' on Director getURL("lingo: cursor -1"); } In Director, on openThis temp global theWin theDelimiter = getDelimiter(integer(string(temp).char[1..1])) theDirName = getDirName(integer(string(temp).char[2..2])) theFileName = getFileName(integer(string(temp).char[3..4])) thePath = the moviepath & theDirName & theDelimiter & theFileName if string(temp).char[3..3] = "1" then dotIs = offset(".", theFileName) window(theFileName.char[1..dotIs - 1]).fileName = thePath.char[1..thePath.length - 4] window(theFileName.char[1..dotIs - 1]).windowType = 4 --window(theFileName.char[1..dotIs - 1]).modal = true window(theFileName.char[1..dotIs - 1]).Title = "Hyeongjun Je" set myRect = the rect of window(theFileName.char[1..dotIs - 1]) set myStage = the rect of the Stage set myWidth = (getAt (myRect, 3) - getAt (myRect, 1)) set myHeight = (getAt (myRect, 4) - getAt (myRect, 2)) set myLocH = ((getAt(myStage,3) + getAt(myStage,1)) / 2) - (myWidth/ 2) set myLocV = ((getAt(myStage,2) + getAt(myStage,4)) / 2) - (myHeight/ 2) set myNewRect = rect (myLocH,myLocV,(myLocH + myWidth),(myLocV + myHeight)) set the rect of window(theFileName.char[1..dotIs - 1]) = myNewRect window(thePath.char[1..thePath.length - 4]).open() else fxObj = xtra("FileXtra3").new() fxObj.fx_FileOpenDocument(thePath) fxObj = 0 end if end I have 5 DCR files in the Samples directory that I call with that openThis behavior...(Two of them are Director movie files that has Flash embeded, and three of them are Director movie files) I don't have problem opening those first two with Flash with that behavior, but if I open the other three in projector, I get the DR.Watson error message... (I'm on Win2k with Director 8.5.1) Is there any known issue on this matter??? I am really stuck here and I need some help... TIA Jason _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.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!]
[Q] How to trap Close action for MIAW
Hi... I am getting a name of the directory and the name of the file from the Flash movie within the Director projector to open a MIAW by using this line of code... on openThis temp theDelimiter = getDelimiter(integer(string(temp).char[1..1])) theDirName = getDirName(integer(string(temp).char[2..2])) theFileName = getFileName(integer(string(temp).char[3..4])) thePath = the moviepath & theDirName & theDelimiter & theFileName put thePath if string(temp).char[3..3] = "1" then dotIs = offset(".", theFileName) window(theFileName.char[1..dotIs - 1]).fileName = thePath window(theFileName.char[1..dotIs - 1]).open() window(theFileName.char[1..dotIs - 1]).windowType = 8 else fxObj = xtra("FileXtra3").new() fxObj.fx_FileOpenDocument(thePath) fxObj = 0 end if end That is working just fine... I am getting different new windows on different clicks from Flash movie file... The problem is... when I close that MIAW window by clicking on the [X] button the name of that window still exists in the windowList, which means that the window is still in the memory... So... I was thinking if there is any way I could trap that close action, I could put this code to close and remove from the memory... window(theFileName.char[1..dotIs - 1]).clse() window(theFileName.char[1..dotIs - 1]).forget() That's what I can think of to solve the problem... I'd appreciate if there is any other way to close and forget that window... Thanks a lot... Jason _ 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/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!]
[Q] How to Open a new window with bitmap images???
Hi... How do I open a new window with bitmap images such as JPEG files??? Is 'open {whichDocument with} whichApplication' be the one I will have to use??? Then what would be the name of the program that I need to specify for the JPEG file, Word file and Text file on both platforms??? I guess it would be 'NotePad' or 'SimpleText' for Text file, but I have no idea for other programs... Say I open a text file, it is the right one to use??? if the platform contains "Mac" then open "@:Resume:Resume.txt" with "SimpleText" else if the platform contains "Win" then open "@/Resume/Resume.txt" with "NotePad" What about the path for the applications??? Is there any way I could dynamically change the path delimeters with lingo??? TIA Jason _ Send and receive Hotmail on your mobile device: http://mobile.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!]
[Q] How to Close this window???
Hi... It's been a while since I didn't touch any Director myself, but I've been reading the list as much as I can so that my brain would get refreshed... Anyway I have a question... I did import my Flash file into the Director 8.5.1 on Windows 2000 Pro... Everything seems working fine except the opening a new window with JavaScript using getURL function in Flash... I am going to create a projector for both platforms with that Flash file as my portfolio... So... I did change this getURL line like this... getURL ("JavaScript:Hangman();"); --> Previous one for the web getURL("lingo: window(\"@/Samples/Hangman.dcr\").open()"); --> the code that I've put for the Projector... This seems to be working fine, except the close issue... Say that I click on the Hangman button from the projector and it will open a new window with Hangman.dcr, right??? The new window with the title '@/Samples/Hangman.dcr' comes up and I could play that game... Say I close that window with close button(X) on the window, and I click on the Hangman button on the projector again, and it will bring me the place where I was left off when I close the window... I guess it is the forget window issue, but I just don't know where to put this... My main movie file has a button that will open up a new window and that window does not have any close button.(I did delete it because I wasn't able to work that one with forget thing...) How can I properly close that new window so that the next click could bring me to the new fresh copy of window??? And... How can I change the title of the window to be just 'Hangman' rather than '@/Samples/Hangman.dcr'??? TIA Jason _ 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: batch converting sounds?
Hi... One vote for Audio Converter for general batch processing... http://www.audioconverter.info/ Jason _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
Re: Need help in Flash MX
Hi... I believe that there was a sample reservation related webpage that was made with Flash MX to show what MX can do... You might want to check MM's Flash showcases and see if that's still there... One quick question if you don't mind... :) Are you an employee of Biloxi or a sort of a contractor??? Have a nice day... Jason _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.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!]
Can you guys do some trimming???
I'm sorry to write this... but can you guys do some trimming when posting replies??? You know why, right??? Sorry for the yelling... :) _ Send and receive Hotmail on your mobile device: http://mobile.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: heavy external casts
Hi... I remember I did a crazy thing long time ago... :) D6??? D7??? I made a virtual museum which user can navigate with mouse or keyboard where actual paintings and the structure of the museum were rendered within Maya and all I did was controlling series of picture files with Lingo... The cast was about 500MB and it did take long time to loadup those external cast files when starting... I don't remeber for sure, but I don't think the overall movie wasn't too slow... Memory... I don't remeber... :) HTH Jason _ 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/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: (off topic) You're going to get fired!?
Oh... I thought he was working for aol... I guess he was pretty noisy at work judging by his postings... :p _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.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: always on top
Hi... MasterAPP's mappKeepOnTop does the job... You can get it from http://www.updatestage.com/xtras/masterapp.html Below are from the MasterAPP Manual --- mappKeepOnTop ( windowIDNum ) windowIDNum: integer window ID obtained from another method Returns: "OK" or string beginning with "Error:" Win32-only method. Window is displayed on top of all other windows, even when other app's windows are activated. Useful for making a Director projector behave like a floating tool palette. Example: on startMovie set windowID = mappDirectorMainWindow mappKeepOnTop(windowIDNum) end --- HTH Jason _ 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/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: recompile all scripts command
Hi... >When I answer yes, I find that all the scripts are recompiled, and the >effect can be a little disastrous. What effects I intend to have >may be lost. I think you might want to define 'disastrous' because I think what that button does is checking the syntax or your lingo commands... (Does this compile all the scripts and generate binary code somewhere on the machine???) So... if you've removed some scripts that needs to be refered from somewhere else in your movie... that might be the case when 'disastrous' comes in the picture... otherwise... I cannot guess... >But if I do not recompile the scripts, the movie does not run as it >should. Does Director shows you some error message with lingo code in it and stop??? Probably syntax error or global variable stuff??? Jason _ 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/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
Re: How do I learn lingo scripting?
Hi... I don't know much about lingo either... :) >how do I start learning lingo scripting? The fastest way to learn any kind of language in my experience is reading somebody else's script going line by line... and whenever you get stuck with some definition or function or concept, read a book... But then sometimes that will cause some sort of blanks in between your brain, so you might want to read a book from the beginning when you have some more time... >In Singapore where I live, a person is considered to be at intermediate >level if he/she is able to use the library palette behaviors. You are talking about those behaviors that comes with Director, right??? >But I think this is not how westerners view it. So... what is the definition of the intermediate lingo programmer in westerner's view??? I am kinda curious on this too... I am trying to get a job after the long school years and there isn't many jobs for multimedia developers... Maybe I am checking on the wrong tree... >All of you on this list are already programmers at this level. Nope... there are lots of people who doesn't belong to that level, including me... :p Oh... don't worry... you will get there soon... >Director 8.5 Shockwave Studio A Beginners' Guide by Warren Ockrassa (S$40). Yeah... Way to go Warren... :) I just checked Korean bookstore on the web and found your book too... It's not translated in Korean yet though... >I was not able to find Gary Rosenzweig's Advanced Lingo for Games. You can always order books from Amazon or some places like that... >Are these books considered a good introduction in the learning of lingo >scripting? I didn't personally read any of those books above... I have old Lingo Workshop, Director 6 Demystified, and Director 8 Demystified... The last time I was using Director, it was Director 6 and I was kinda off track while there were Director 7 and 8... so I got Phil Gross & Jason Roberts' Director 8 Demystified last year to freshen up my memory and to keep up with Director 8... I will say this book is fairly good point to start if you know Director and Lingo a little bit... Just my 2 cents... :) >Will buying a book and studying it be useful? Or do you have any other >suggestions? Sure... if it fits your learning style... :) I'd go over those tutorials that comes with Director line by line... and then I would go fetch those online tutorials and do as it says and so on... and I think I would program much better than I do now... :( HTH Jason _ 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/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!]
Play & Stop Button
Hi, Nitin... Thanks for understanding what I have said to you... :) As far as your question on Director... I don't quite get your point... Basically what you want to do is to try to turn on and off those buttons within Director's main tool bar, right??? I don't think that can be done... Say that you are not playing your movie file... then the button will be STOP on the tool bar because you are not running anything... Then there is no way you could run any script to turn PLAY on because there is no movie running within the Director's authoring mode... >just like that when i press on stop button the main >stage play button should stop(off) When you press your own STOP button which has below script in it, that means that Director is still running and pointing one specific frame... which means that PLAY button on the main tool bar should be ON... What do you think??? >if i set > >on exitframe >go to the frame >end HTH Jason _ Send and receive Hotmail on your mobile device: http://mobile.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: importing RTF?
Hi, Carl... Are we talking about the fileTypeList argument for DialogOpenFile function in the Dialogs Xtra??? If so, DialogOpenFile("RTF") does not load all the RTF files??? How is your script setup now??? Have a nice day!!! Jason _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx [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: Mpeg & directX
Hi... >I know you said specifically "other than checking the registry": Yup... I didn't read that far... I guess I will have to OPEN my four eyes WIDER!!! >;p How else can it be done within the Director rather than checking the registry??? We need Master's answer!!! :) Have a nice day!!! Jason _ Send and receive Hotmail on your mobile device: http://mobile.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: Database for a Mac and PC CD-Rom
Hi... Just by the look of your question, and if I do the project... I'll go with the complex list as long as you have too many questions on the database... if you do... go get some of those Xtras... something like Valentina or V12, possibly Datagrip??? Go either Direct-L or Lingo-L archive and go some search with 'database xtra'... You will get plenty of answers from there... HTH Jason _ 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: Mpeg & directX
Hi... :) >Is there any way to check the DirectX version before playing the video >(other than checking the registry)? The version of DirectX is written... HKEY_LOCAL_MACHINE\Software\Microsoft\DirectX and you can use "Version" property by using BuddyAPI like this... baReadRegString("Software\Microsoft\DirectX","Version","","HKEY_LOCAL_MACHINE" ) How do I know??? How should I know??? I never used that one before... I just did a search on Direct-L with 'DirectX version' and got Wayne Johnson's kind answer from there... Sorry... I know I am kinda cranky today... I've been in front of computer almost 20 hours and I need some sleep... :( Have a nice day!!! Jason _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx [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: Now, My turn..
I'm blessed three... :] Jason _ 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: Installation Related Questions
Thank you Augstin... Appreciate your help... :) Just for the record, I am in Georgia, USA... Jason _ 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: Installation Related Questions
Sorry... I forgot to ask some more questions... :) 4. I will be needing lots of credit cards for that installation piece... Does anybody know where I can get fake ones??? Probably there should be some sort of places where they actually make the templates for the credit card... Would it be illegal if I ask those printers(if I can find them) to produce fake credit cards??? If it is illegal, I will have to find another way such as importing from other countries??? :( 5. I'd like to give a signal to the motor which will be hidden into the installation piece... so... it's basically on and off thing... Can it be done with a director??? Good example of that might be home automation system??? I don't know... :) Thank you... Jason >From: "Jason Je" <[EMAIL PROTECTED]> >Reply-To: [EMAIL PROTECTED] >To: [EMAIL PROTECTED] >Subject: Installation Related Questions >Date: Tue, 26 Mar 2002 15:06:32 -0500 > >Hi, Guys... > >I am thinking of making an installation piece utilizing censors and >kiosk(s) >for my thesis project... > >Here are few questions regarding this project... > >1. I am thinking of using I-Cube from InfusionSystems... I did a piece with >Houdini before that is driven by the sensors... And I saw that there was >XMidi Xtra(http://troikaranch.org/troikatronix/xmidi.html) that runs on >Macintosh... Does anybody know if there is any Windows counterpart that >will >let Director communicate through the midi connection??? I see that there >are >some such as DirectCommunication Xtra, Serial Xtra, Sequence Xtra and so >on, >but can't find anything particular for this project. > >2. Well... first of all... I have never built anything that goes with >kiosk... :) Is kiosk that I can buy from a vender really a computer that >has custom shaped cover with a touch screen??? (I might as well build one >if >it is, though I don't know how to incorporate the touchscreen capability) > >3. I was wondering if someone could point me to the right direction where I >can find a reasonable kiosk hardware in terms of price and performance >where >I can port my director projector... > > >TIA > >Jason > >_ >Send and receive Hotmail on your mobile device: http://mobile.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!] _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx [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!]
Installation Related Questions
Hi, Guys... I am thinking of making an installation piece utilizing censors and kiosk(s) for my thesis project... Here are few questions regarding this project... 1. I am thinking of using I-Cube from InfusionSystems... I did a piece with Houdini before that is driven by the sensors... And I saw that there was XMidi Xtra(http://troikaranch.org/troikatronix/xmidi.html) that runs on Macintosh... Does anybody know if there is any Windows counterpart that will let Director communicate through the midi connection??? I see that there are some such as DirectCommunication Xtra, Serial Xtra, Sequence Xtra and so on, but can't find anything particular for this project. 2. Well... first of all... I have never built anything that goes with kiosk... :) Is kiosk that I can buy from a vender really a computer that has custom shaped cover with a touch screen??? (I might as well build one if it is, though I don't know how to incorporate the touchscreen capability) 3. I was wondering if someone could point me to the right direction where I can find a reasonable kiosk hardware in terms of price and performance where I can port my director projector... TIA Jason _ Send and receive Hotmail on your mobile device: http://mobile.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: Tracking a Button
Hi... What about postNetText()??? I think that might be the thing you can use to do the job... I think all you need to do is post the data and take care of its result by using netError() whether it is error or not... MM has a sample you might want to try... http://www.macromedia.com/support/director/ts/documents/sample_postnettext.htm HTH Jason _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx [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: to macromedia: jumpstart kit PC ONLY!?!?
>From AW... >Maya is available for these platforms: >Windows® NT, Windows® 2000 Professional, IRIX, Linux and Macintosh OS X. Does this make you feel any better??? :) Have a nice weekend!!! Jason _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.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: flash cursor
Hi... Is this what you want??? -- http://www.macromedia.com/support/director/ts/documents/sample_flash_cursor.htm -- Changing the cursor in an embedded Flash movie HTH Jason _ 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/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:
Hi... I just spent a couple of minutes searching for the previous postings and found the following article... What is the URL for the archive, by the way??? http://mail4.fcgnetworks.net/archives/lingo-l/ :) Here you go... Have a nice day!!! - From:Howdy-Tzi <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: Re: On off button Date:Fri, 8 Mar 2002 16:14:55 -0600 At 18:59 -0300 03/08/2002, Mercedes Rossetti wrote: >I am aware this sounds very simple to you but it's the Himalayas for me >who's just starting. Welcome to the joys of lingo! >I need to have a button that will display text when clicked and hide it >when clicked again. This is PC and Director 8. There are two Lingo keywords that are most pertinent here: 'sprite' and 'visible'. Essentially you would attach a behavior to your on/off button which, on a mouseUp event, would set the visibility of the text sprite to true or false. As an example, if the text you wanted showing or hidden was located in channel 5, you would attach this behavior to your on/off button: on mouseUp me sprite(5).visible = not ( sprite(5).visible ) END mouseUp What's up with the 'not'? Well, this is a toggle. It switches the visibility of the sprite to the opposite of whatever it is at the time the command is issued. Thus if the sprite is not visible now, after you click the button it will appear; similarly if it is visible this command will make it vanish. By default the text sprite will always be visible when the movie first runs. If you want to change that so it starts out *not* visible (off), you would attach a behavior like this one to the text sprite itself (not its on/off button): on beginSprite me sprite(me.spriteNum).visible = FALSE END beginSprite 'me' is a keyword behaviors use to reference the single behavior instance itself as it applies to a given sprite. 'me.spriteNum' refers to the sprite number to which the behavior is attached. That way the behavior always knows which sprite to make invisible -- the one that it's attached to. I've got a 28-page tut online that might be of merit to you, as well as other pages of freebies, discussion and so on. And, of course, I've got a book out (who doesn't these days) -- all relevant links are in my sig. The book *says* it's 8.5, by the way, but it would apply to 7 and 8 as well, since I have only one brief section on 3D and nothing, really, on imaging lingo. Have fun with it! Hope this helped! -- 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://www.osborne.com/indexes/beginners_guides.shtml _ Send and receive Hotmail on your mobile device: http://mobile.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: cast come to stage with scripting.
Hi... What about changing the location of that sprite whenever you want??? (I've been doing my shell programming homework all night, so I cannot remember any Director syntax...) :( 1. sprite(1).locH = -1000 sprite(1).locV = -1000 2. whenever you want to put that sprite on stage... sprite(1).locH = 100 sprite(1).locV = 100 updateStage 3. put it back to somewhere off stage when you don't need... 4. maybe you can use rect rather than locH and locV... HTH Jason _ Send and receive Hotmail on your mobile device: http://mobile.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: Microsoft Visual C++ Runtime Library
Hi... Any Xtra you are using for the project??? Just wondering... Jason _ 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: Re: dcr to dir?
Hi... go to http://www.j-roen.net/diropener/ and click on the 'What won't dirOpener do?' section... You will be able to see the reason why there is no such utility that will extract lingo scripts from the dcr movie file 'yet'... Well... you never know when the 'genius' will be making another utility what will do the job for all of us someday... :) _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.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: passiing parameters to a shockwave movie
Hi... Check out the MM site for 'Parameters accessible from Lingo' at http://www.macromedia.com/support/director/how/shock/lingoparam.html It might not 100% you want, but you will get the idea... HTH Jason _ 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/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!]
setaProp Question...
Hi, Guys... I have a setaProp question... I have 10X5 blocks in array and the way I represent them in director is using the list, and I have some problem now... Two of my array is set to like this...(from the initializing function...) Blocks list holds a value 0 being not clicked, and 1 being clicked... spritePos list holds the number of sprite that I will need to use to swap the images... - Blocks = [\ #click00:0, #click10:0, #click20:0, #click30:0, #click40:0, #click50:0, #click60:0, #click70:0, #click80:0, #click90:0,\ #click01:0, #click11:0, #click21:0, #click31:0, #click41:0, #click51:0, #click61:0, #click71:0, #click81:0, #click91:0,\ #click02:0, #click12:0, #click22:0, #click32:0, #click42:0, #click52:0, #click62:0, #click72:0, #click82:0, #click92:0,\ #click03:0, #click13:0, #click23:0, #click33:0, #click43:0, #click53:0, #click63:0, #click73:0, #click83:0, #click93:0,\ #click04:0, #click14:0, #click24:0, #click34:0, #click44:0, #click54:0, #click64:0, #click74:0, #click84:0, #click94:0] spritePos = [\ #click00:1, #click10:2, #click20:3, #click30:4, #click40:5, #click50:6, #click60:7, #click70:8, #click80:9, #click90:10,\ #click01:11, #click11:12, #click21:13, #click31:14, #click41:15, #click51:16, #click61:17, #click71:18, #click81:19, #click91:20,\ #click02:21, #click12:22, #click22:23, #click32:24, #click42:25, #click52:26, #click62:27, #click72:28, #click82:29, #click92:30,\ #click03:31, #click13:32, #click23:33, #click33:34, #click43:35, #click53:36, #click63:37, #click73:38, #click83:39, #click93:40,\ #click04:41, #click14:42, #click24:43, #click34:44, #click44:45, #click54:46, #click64:47, #click74:48, #click84:49, #click94:50] - and these are functions that I am using to display the status of the blocks either clicked or not according to the data read from the text file...(Fed to the Symbols list) - on displayButtons global theLevel global Symbols global Blocks global spritePos x = 1 -- Clear every blocks out repeat while x <= count(Blocks) set varName = string(Blocks.getPropAt(x)) setBlockOff(varName, spritePos.getaProp(varName)) x = x + 1 end repeat x = 0 -- Read the array information and put them into the Blocks array repeat with x in Symbols[theLevel] varName = "click" & x setaProp Blocks, varName, 1 setBlockOn(varName, spritePos.getaProp(varName)) end repeat end - and these functions are the ones that I use to swap the members and I have a problem with these functions... - on setBlockOn varName, spriteNo global Blocks set the member of sprite spriteNo to member("On") Blocks.setaProp(varName, 1) -- true updateStage end on setBlockOff varName, spriteNo global Blocks set the member of sprite spriteNo to member("Off") -- Blocks.setaProp(varName, 0) -- false -- setaProp Blocks, varName, 0 -- false Blocks[varName] = 0 -- false updateStage end --- as you can see I was playing with setBlockOff function to set the value of the Blocks list, and when I see the data from the debugger, it's actually changing the name of the property not the value of the property... When the process is in the second repeat loop of the displayButtons function, it invokes setBlockOff function and the value for the Blocks list goes like this... If you see the first item, it is written like "click00": 0 whereas the second item is written like #click10: 0 put Blocks -- ["click00": 0, #click10: 0, #click20: 0, #click30: 0, #click40: 0, #click50: 0, #click60: 0, #click70: 0, #click80: 0, #click90: 0, #click01: 0, #click11: 0, #click21: 0, #click31: 0, #click41: 0, #click51: 0, #click61: 0, #click71: 0, #click81: 0, #click91: 0, #click02: 0, #click12: 0, #click22: 0, #click32: 0, #click42: 0, #click52: 0, #click62: 0, #click72: 0, #click82: 0, #click92: 0, #click03: 0, #click13: 0, #click23: 0, #click33: 0, #click43: 0, #click53: 0, #click63: 0, #click73: 0, #click83: 0, #click93: 0, #click04: 0, #click14: 0, #click24: 0, #click34: 0, #click44: 0, #click54: 0, #click64: 0, #click74: 0, #click84: 0, #click94: 0] I think these three setaProp command that I have tested are actually setting the value of the data and the name of the data at the same time, or am I just wasting time here with nothing??? If I am wasting time, why does director changes #click00 into "click00"??? I don't understand... Thank you in advance... Jason _ 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: (no subject)
Hi, Andy... Is there any specific reason you saying that the former loop is much faster??? I'm just curious... :) Thanks... Jason >repeat with i = 0 to 99 > repeat with j = 0 to 4 > ... do something > end repeat >end repeat > >or > >repeat while i < 100 > j = 0 > repeat while j < 5 > do something > j = j+1 > end repeat > > i = i+1 >end repeat > >while the former is much faster _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.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: mmessageList "Xtraname" ERROR?
Hi... put mMessageList ( xtra "fileio" ) and you will be able to see the same information with the command put interface( xtra "fileio" ) Anybody know the difference between mMessageList and interface though??? What would be the reason for having two different command for the same function??? Just curious... :) Have a nice weekend... Jason _ Send and receive Hotmail on your mobile device: http://mobile.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: simple question
Hi... :) What about something like this in lingo??? on StartMovie global theFlag theFlag = 1 end on mouseDown me global theFlag if theFlag = 1 then theFlag = 2 go to "link" else theFlag = 1 go to "home" end if end something like that with proper marker setup should work... HTH Jason _ 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: Re: FileIO and List Question
Thanks alot Mr. Holgate... >on makearray thetext > repeat while thetext contains "!" > c = offset("!",thetext) > put "," into char c of thetext > end repeat > repeat while thetext contains "~" > c = offset("~",thetext) > put "],[" into char c of thetext > end repeat > return value("[["&thetext&"]]") >end Dang... Do you know how long my non-working code is??? Mine is 40 lines, yet your 11 line function works great... How depressing... :( Got a long long way to go... Thanks again... have a nice weekend... Jason _ Send and receive Hotmail on your mobile device: http://mobile.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: Re: FileIO and List Question
Hi, Guys... I am trying to add my parsed string from my text file into a multidimension array... Here is my input data from the text file... (Once again, I just broke it into multiple lines just for your eyes...) --- TotalSymbols=4& Symbols= 12!21!23!30!34!40!42!44!51!53~ 11!13!22!30!31!33!34!41!43!51!53!62~ 12!21!23!30!34!40!44!51!52!53~ 12!21!23!30!34!40!42!44!51!53 and this is the format I want it to be in Director as an array... - Symbols[1] = [12, 21, 23, 30, 34, 40, 42, 44, 51, 53] Symbols[2] = [11, 13, 22, 30, 31, 33, 34, 41, 43, 51, 53, 62] Symbols[3] = [12, 21, 23, 30, 34, 40, 44, 51, 52, 53] Symbols[4] = [30, 40, 21, 51, 12, 42, 23, 53, 34, 44] I think I kinda did parsing part and now I am trying to write this string into an array, and I am getting an "Index out of range" error... from line : Symbols[i].addAt(thisSpot, theData) I hope this is the basic thing I am missing here... Sorry... I've been up for almost 20 hours and my head hurts... I guess I should have gone to sleep when I wanted... :( Can someone tell me what is wrong with the code below??? I also have a question on this matter... Right now I have just four arrays, but it will grow in numbers which I do not know the size yet... And... AS you can see, not all of the arrays have same length... Some has 10 some has 12... There is no set value... Would it matter when I program it in Director??? Thanks... --- on parseData blah blah blah ... ... ... set Symbols = [] set thisSpot = 1 set newVar = false set numChar = the number of chars in newVarData2 repeat with i = 1 to TotalRecords repeat with j = 1 to numChar -- after running this repeat loop, -- all the data will be stored into the list currentChar = chars(newVarData2, j, j) set theData = theData & currentChar if currentChar = "!" then delete char the number of chars in theData of theData set theData = theData & "," end if if currentChar = "~" then delete char the number of chars in theData of theData Symbols[i].addAt(thisSpot, theData) thisSpot = thisSpot + 1 exit repeat end if end repeat Symbols.addAt(i, Symbols[j]) end repeat end --- >From the Debugger --- currentChar="~" Symbols=[] thisSpot=1 i=1 j=30 theData="12,21,23,30,34,40,42,44,51,53" --- Jason _ 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: Re: FileIO and List Question
Thanks for helping me out guys... I really appreciate it... :) Hi, Mr. Kurt... > > openFile(myFile, the moviePath & "SymbolsData.txt", 0) > >This path is hard coded to look for "SymbolsData.txt" in the same directory >as the director movie. Is it there? Yes, Sire... the file is sitting right there where my movie file is... I kinda figured this part out even though I don't understand this... I just rebooted my computer several hours ago and voila... I guess I've let my computer working too hard and long... Hi, Mr. Ockrassa... >Before you go any farther, it sounds like you don't need FileIO at all. You >should be able to do everyhting using setPref and getPref, which have the >added value of being Shockwave safe, so you can use it in a browser >setting, unlike FileIO. Thanks for letting me have another choice... :) I want to try this one with FileIO Xtra though, because this is my first time(or maybe second time) using any kind of Xtra... I'd appreciate it if you could explain me some more about your 'shockwave safe' mention... Will there be any kind of disadvantage if I use FileIO Xtra for this program??? I cannot use this in the browser if I use FileIO Xtra??? I am not planning to, I am just curious... :) (It doesn't matter whether I use FileIO or setPref/getPref because this is going to be the one that will help me to make another program, not the actual output movie, if you will...) >>(Made several lines for your eyes... It really is a one liner...) >>TotalSymbols=4& Symbols=12!21!23!30!34!40!42!44!51!53 >>~11!13!22!30!31!33!34!41!43!51!53!62 ~12!21!23!30!34!40!44!51!52!53 >>~30!40!21!51!12!42!23!53!34!44 > I assume this is an actual text string, not some kind of weird Flash >variable. That is, this has "" around it, correct? FileIO requires text to >be written. Nope... This is the file for Flash... not an actual string... TotalSymbols means the total number of records, and the leftovers are actual data that I call in Flash... I want to use those data in Director as an array data... and each array(Symbols[1], Symbols[2],...) represents the coordinate system for stage one, stage two, and so on... I need to replace '!' with ',' for the each item in an array, and '~' is a symbol for another array... which will be like this... Symbols[1] = [12, 21, 23, 30, 34, 40, 42, 44, 51, 53] Symbols[2] = [11, 13, 22, 30, 31, 33, 34, 41, 43, 51, 53, 62] Symbols[3] = [12, 21, 23, 30, 34, 40, 44, 51, 52, 53] Symbols[4] = [30, 40, 21, 51, 12, 42, 23, 53, 34, 44] So eventually I'll be having a list of lists in Director, right??? Right now I am at the stage of this parsing data thing... Having some difficulties as a matter of fact, but I'll see what I can do... Sitting in front of the computer made my head-ache, and my butt-ache... :( Just watching the monitor made my brain !@#$%^&*... :( Well... I guess I gotta go get some sleep or at least get some rest so that I could function a little bit better a couple hours later... Thanks again... and have a nice day!!! Jason _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx [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: you can open dcr files
>you can open dcr files with a program called >diropener. you get everything but the lingo. That is correct... I remember reading this discussion a while ago, and got this program and tested myself... It did work!!! Get it at http://www.j-roen.net/diropener/ My brain is !@#$%^&*... How come I don't remember the things that I used to know of... :(~~~ Jason _ 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: FileIO and List Question
Thanks Andreas... >I copied your code and pasted it in Director. It works. Are you sure >that "SymbolsData.txt" is a simple text file? Are you sure it's >correctly named? I got all the file name typed correctly and have no typo in my script... Still doesn't work... yet it works just fine with your machine... It probably will be the ghost of my abandoned XT, maybe??? >It does all the above. Try typing: >put xtra("fileIO").interface() >and RETURN key in the message window. Thanks for the info on interface(), I really needed it... :) >I would probably read in the whole file in one chunk. You will get a >string, which you can do find & replace in to replace delimiting >chars with blank space, and then you can convert it to a list. I'll give it a go, and see how this thing comes up... Have a nice day!!! Jason _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.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!]
FileIO and List Question
Hi, list... :) I have a simple FileIO and list question... I made a board game in flash that reads stage data from the text file... This text file, SymbolsData.txt is formatted like this... (Made several lines for your eyes... It really is a one liner...) TotalSymbols=4& Symbols=12!21!23!30!34!40!42!44!51!53 ~11!13!22!30!31!33!34!41!43!51!53!62 ~12!21!23!30!34!40!44!51!52!53 ~30!40!21!51!12!42!23!53!34!44 Right now I have four records which goes to 2D array in Flash after getting rid of those delimiter signs(!, ~)... The length of the each records may be different from stage to stage... (I have 10, 12, 10, 10 for now...) Then, I want to create a little program that does... 1. reads the same data file in Director on the start of the movie 2. parse the data into the form of the list, 3. display the data in graphical format(simple on and off of 5 X 10 matrix) 4. user can have options to navigate the list or add or delete the record, 5. put the list back into the above format and save the text file. I did a little bit of search on MM and DOUG and so on... and got the SAME answer... FileIO... Sounded easy... tried the example on my machine, and worked great... My first Xtra... :) Well... what do you know??? Bad thing always happens when you try to learn something... nothing goes right, right??? :( I need to omit the displayOpen command on that sample because I already know what file to open and save... So, I thought that I could just specify the file name to open... bang!!! What??? 'Bad file name' error??? what bad file??? I just don't get it... What did I do wrong??? I just told you the name of the file to open!!! Well... sad story... isn't it??? I even tried to pass the parameter to the handler, and it didn't work either... :( And... when I opened the text file with the open dialog box and put the content of the file into the message window, I get "whatever_the_content_of_the_file"... Why am I getting the double quotes??? Anyway to get rid of it??? Can someone help me out??? I think I got at least a couple of days work to go, but I can't even Open a file... One more question... I didn't go that far yet, but I gotta ask... How does FileIO read a data from the file??? Byte at a time, line at a time, or whole data at a time??? What would be the best way to parse the above form of data into the list and vice versa??? Thanks in advance Jason on readFromFile global myFile global myVar if objectP(myFile) then set myFile = 0 -- Delete the instance if it already exists set myFile = new(xtra "fileio")-- Create an instance of FileIO set fileName = "SymbolsData.txt" if not voidP(filename) and not (filename = EMPTY) then openFile(myFile, the moviePath & "SymbolsData.txt", 0) if status(myFile) = 0 then set theFile = readFile(myFile) -- Read the file into a Lingo variable put theFile into myVar -- save the text in a myVar else alert error(myfile,status(myfile)) -- display error message end if end if closeFile(myFile) -- Close the file set myFile = 0 -- Dispose of the instance end (Got if from the MM and edited a couple of chars for my amusement...) :) _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.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: Director IRC channels
Hi... From the previous postings... I didn't try them myself though... :) Subject: [DIRECT-L] IRC Chat Date: Tue, 10 Jul 2001 16:41:12 -0400 From: Robbie Newton <[EMAIL PROTECTED]> Does anyone know of any IRC's for director users? * - r 0 b B i E -[EMAIL PROTECTED] / , /\ \|/ /\ |\\_;=._//| \." "./ //^\ /^\\ .'``",/ |0| |0| \,"``'. / , `'\.---./'` , \ /` /`\,."( )".,/`\ `\ /` ( '.'-.-'.' ) `\ /"` "._ : _." `"\ `/.'`"=.,_``=``_,.="`'.\` ) ( --- Macromedia Director Mailing List (Direct-L) List Administrator: Eve Owens ([EMAIL PROTECTED]) To SUBSCRIBE or to UNSUBSCRIBE go to http://listserv.uark.edu/archives/direct-l.html and click on "Join or leave the list (or change settings)" For list archives http://listserv.uark.edu/archives/direct-l.html Subject: Re: [DIRECT-L] IRC Chat Date: Fri, 13 Jul 2001 12:46:05 -0400 From: Brian Romanko <[EMAIL PROTECTED]> Robbie, I was curious about that as well and went on a little scouting mission. I came across #director (duh) on efnet, and there were about 20 people idling in the channel. Mostly ops, and a bot or two. Apparently, the channel has been active for a few years now, and I'm sure there are people active during the day to chattle with. I think I'll idle there for a few days and see what it's like. Brian Romanko Lead Developer - Neo/SCI Corporation Member - Greater Rochester Macromedia User Group --- Macromedia Director Mailing List (Direct-L) List Administrator: Eve Owens ([EMAIL PROTECTED]) To SUBSCRIBE or to UNSUBSCRIBE go to http://listserv.uark.edu/archives/direct-l.html and click on "Join or leave the list (or change settings)" For list archives http://listserv.uark.edu/archives/direct-l.html Subject: Re: [DIRECT-L] IRC Chat Date: Fri, 13 Jul 2001 12:54:50 -0400 From: John Geiger <[EMAIL PROTECTED]> I have seen #director forver and never anyone in it. There is #multimedia but it is invite only. #warezart is a good one on efnet. Not just Director but a lot of good people on it. I thought efnet was on it's way out though. Most of the channels have been moving to newNet. --- Macromedia Director Mailing List (Direct-L) List Administrator: Eve Owens ([EMAIL PROTECTED]) To SUBSCRIBE or to UNSUBSCRIBE go to http://listserv.uark.edu/archives/direct-l.html and click on "Join or leave the list (or change settings)" For list archives http://listserv.uark.edu/archives/direct-l.html -- ___ Win a ski trip! http://www.nowcode.com/register.asp?affiliate=1net2phone3a [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: list down???
Hi, Guys... Testing mail for the testing mail... :p It doesn't look like the list is down... I'm just getting multiples of the same messages over and over from time to time... I sometimes am not able to write to the list... I don't know why... I remember there used to be a place on the web where I could browse all these postings... Can someone tell me what tha URL is??? Have a nice day!!! Jason > I don't receive any mails anymore since 31/1/2002. > is the list down??? -- ___ Win a ski trip! http://www.nowcode.com/register.asp?affiliate=1net2phone3a [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: Import Chinese Text
Hi DucHai, I don't know if my try is going to help you or not, but here it is... I have English W2K, D8.5.1, and Korean IME installed in my computer as a starter... I have tried to type some Korean words in the text member alone with English alphabet and found out that I wasn't able to type any Korean letter in the text field... (All I could see was :( Maybe it was not working on my case because I don't have Korean Windows installed or Korean version of Director installed... Don't know... I also have checked MM site and found out that there is no Chinese version of Director... Well... at least I tried... :) > how to put English and Chinese text > in just one text cast member. Just curious... Were you able to type any Chinese characters in your Director as a seperate text member??? Have a nice day!!! Jason -- ___ Win a ski trip! http://www.nowcode.com/register.asp?affiliate=1net2phone3a [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: Logic question...
Thanks Irv... I really appreciate your help... I wasn't really thinking of the list of all the possible solutions in the beginning... What I did was to see if any combinations of block make certain figures(such as three in a row or four in a column)... I think I got a great deal to go on with this game, but I think I can manage it somehow, of course with your help... :) Thanks again, and have a nice day!!! Jason -Original Message- From: Irv Kalb <[EMAIL PROTECTED]> Date: Tue, 29 Jan 2002 09:14:43 -0800 To: [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: Logic question... > Jason, > > The answer to your question depends a great deal on how you are > representing your 5 by 5 matrix (i.e. are you using a single 25 > element list, or a list of 5 lists where each sublist contains 5 > elements). But if you can do the proper translation, here's an > approach. > > Pe-calculate all possible winning combinations and make a list of > lists out of them. That is, make one list, where each element in the > list is a list of a single winning combination. To make this most > simple, let's just assume that you are using a single list with > elements 1 to 25 to represent your game: > > lCombinations = [\ > [1, 2, 3, 4, 5],\ > [6, 7, 8, 9, 10],\ > ... > [21, 22, 23, 24, 25],\ > [1, 6, 11, 16, 21],\ > ... > [5, 10, 15, 20, 25]] > > Then given this list of lists, you write a handler to step through > these combinations to see if all elements are the same color. > Completely untested: > > -- I'm assuming that you have some global list, let's call it gBoard > that contains the game elements > on CheckForMatch > nCombinations = count(lCombinations) > repeat with i = 1 to nCombinations > lThisCombination = lCombinations[i] > indexOfFirstItemInThisCombination = lThisCombination[1] > valueToMatch = gBoard[indexofFirstItemInThisCombination] > > nItemsInThisCombination = count(lThisCombination) > fMatched = TRUE -- assume a match until proven otherwise > repeat with j = 2 to nItemsInThisCombination > indexOfNextItemInThisCombination = lThisCombination[j] > thisValue = gBoard[indexofNextItemInThisCombination] > if thisValue <> valueToMatch then >fMatched = FALSE -- sorry Charlie >exit repeat > end if > end repeat > if fMatched then > -- This items in the list lThisCombination are all the > same value, do whatever you want here > end if > > end repeat > end > > Hope this gives you some inspiration. > > Irv > > > > At 11:46 PM -0500 1/28/02, Jason Je wrote: > >Hi... I am building a simple game and I need some help here... > > > >Let's just say that I am making a tetris-like game... The basic > >thing I have to check is if the blocks are same color or not... I'm > >using 5X5 matrix here... > >The basic things that I have to check in this game is to see if any > >three(four and five) consecutive blocks in any direction within the > >matrix have the same value or not... And I also check if any > >five(seven and nine) blocks are making any cross shape with same > >value and so on... > >Currently I am just using simple if statement to check all of > >occurence... but I think there should be some simple method that I > >could use rather than using if statements on all occasions... > >Can someone help me out here??? > > > >TIA > >Jason > > -- > > 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!] > > -- ___ Win a ski trip! http://www.nowcode.com/register.asp?affiliate=1net2phone3a [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!]
Logic question...
Hi... I am building a simple game and I need some help here... Let's just say that I am making a tetris-like game... The basic thing I have to check is if the blocks are same color or not... I'm using 5X5 matrix here... The basic things that I have to check in this game is to see if any three(four and five) consecutive blocks in any direction within the matrix have the same value or not... And I also check if any five(seven and nine) blocks are making any cross shape with same value and so on... Currently I am just using simple if statement to check all of occurence... but I think there should be some simple method that I could use rather than using if statements on all occasions... Can someone help me out here??? TIA Jason -- ___ Win a ski trip! http://www.nowcode.com/register.asp?affiliate=1net2phone3a [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!]