lingo-l@mail4.fcgnetworks.net
HI EVERY ONE I HAVE ONE QUESTION What is the best way to implement audio and video on cross platform CD with commpresed audio and video and without instaling software on client Commputers HTANKS [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: Script cast member error
Thanls folks. At 12:01 28/04/02 -0700, you wrote: >I can correlate. >Same workaround. it seems scary to do the workaround, but it has always >worked for me. > >-Buzz > >At 8:52 AM -0700 4/28/02, you wrote: >>Yes, I see this often. It is usually a parent script that is the >>affected script. Director usually stops at the first line of code in a >>script (not the first executable line, but the first line - whatever that >>is - and jumps into the debugger). Here's what I generally do when this >>happens. -- Flash and Director programming, visit: http://flashysites.net Libros Multimedia y Software, visite: http://www.SrEnrique.co.il Tel: +972 9 774 9447Cel: +972 53 586386 P.O. Box 875, Ra'anana 43108, Israel [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: Any easy way to copy script instances???
Thank you so much, Jakob! Your first script will suffice nicely. :) Darl [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: Any easy way to copy script instances???
At 11:18 -0400 28/04/02, [EMAIL PROTECTED] wrote: >I'm using script instance objects that have their properties modified >throughout a game at several points in time. But they need to be copied, >including their properties, on the fly. The only way it appears this can >happen is to creating a "new" script instance and then do a repeat loop for >copying all the properties across from the target object script. Is there >any easier way? No, I think not, but then again how hard is that? Of course intricacies may arise... particularly from ancestors... just as in real life ;-) You could add a method to the classes that should feature duplication, a basic version looking like so: on duplicate me tObj = me.script.rawNew() repeat with i = me.count() down to 1 tProp = me.getPropAt(i) tObj[tProp] = me[tProp] end repeat return tObj end Having the duplication-method as part of the class itself, rather than detached as a generic 'objectCloner-function', allows you to customize the handling of particular classes, based on their individual needs. Especially when the properties contain values that are handled by reference, rather than by value, you will have to decide how these properties should be copied; shallow or deep, ie: just copy the reference, or duplicate properties themselves, based on their ilk. This has probably been reported before, but it seems that objects with an ancestor wrongly returns their ancestor-class, rather than their own class, when querying their 'script' property. So the handler above expanded with a work-around for said confusion: on duplicate me tAncestor = ancestor ancestor = VOID tObj = me.script.rawNew() ancestor = tAncestor repeat with i = me.count() down to 1 tProp = me.getPropAt(i) tObj[tProp] = me[tProp] end repeat return tObj end Or more generically for classes with or without an ancestor: on duplicate me tAncestor = me.getAProp(#ancestor) if tAncestor.objectP then me.setAProp(#ancestor, VOID) tObj = me.script.rawNew() me.setAProp(#ancestor, tAncestor) else tObj = me.script.rawNew() end if repeat with i = me.count() down to 1 tProp = me.getPropAt(i) tObj[tProp] = me[tProp] end repeat return tObj end Jakob [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
RE: HELP with 3d director
> I'm trying to create a primitive or place a max model in > director. I need the model to be placed in a w3d object I already > have on the stage. Any suggestions or sample code will be greatly > appreciated. Look at loadFile() and/or cloneModelFromCastmember() in the dictionary. -Sean. [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
Re: Script cast member error
I can correlate. Same workaround. it seems scary to do the workaround, but it has always worked for me. -Buzz At 8:52 AM -0700 4/28/02, you wrote: >Yes, I see this often. It is usually a parent script that is the >affected script. Director usually stops at the first line of code >in a script (not the first executable line, but the first line - >whatever that is - and jumps into the debugger). Here's what I >generally do when this happens. > >Stop running, open the script where Director stopped in the editor. >Copy the entire text of the script. Close the script. Open up a >new member as a script member. Paste. Go back and delete the >original member. Make sure you name the new script member >correctly. Recompile all scripts. Try again. This usually fixes it >for me. > >Irv > >At 5:47 PM +0200 4/28/02, Enrique Nivasch wrote: >>Hello, >> >>All of a sudden, a script that was working perfectly, started >>giving me the error >> >> Script Error: Script cast member not found >> >>when it tries to execute the first statement of the script. >> >>What does the error mean? What is causing it? >> >>Thanks, >> >>Enrique >> > >-- > >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: beginSprite script
Hi, Thanks Colin and Irv for your explanations. Yes, the beginSprite was in a movie script. I amended this to a behavior script but still the movie could not run. >Don't use the timer for something like this - because there is only one of >this kind of timer available. What then is the timer used for? > If you are doing timing somewhere else in your program, then there might > be an interaction. If by timing, you mean the timer, no, I haven't. When you write interaction do you mean that there might be a conflict? >Instead, set up your own timing with either using either ticks or >milliseconds, e.g, > >property pEndTicks > >on beginSprite me > pEndTicks = the ticks + (2*60) -- two seconds from now >end > >on endSprite me > if the ticks < pEndTicks then > go to the frame > end if >end I used your code but when I tried to run the movie, the playback head jumped to frame 140 from frame 1 and stopped there. All the code prior to frame 140 still did not execute . Why is that? Noelle [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: Script cast member error
Yes, I see this often. It is usually a parent script that is the affected script. Director usually stops at the first line of code in a script (not the first executable line, but the first line - whatever that is - and jumps into the debugger). Here's what I generally do when this happens. Stop running, open the script where Director stopped in the editor. Copy the entire text of the script. Close the script. Open up a new member as a script member. Paste. Go back and delete the original member. Make sure you name the new script member correctly. Recompile all scripts. Try again. This usually fixes it for me. Irv At 5:47 PM +0200 4/28/02, Enrique Nivasch wrote: >Hello, > >All of a sudden, a script that was working perfectly, started giving >me the error > > Script Error: Script cast member not found > >when it tries to execute the first statement of the script. > >What does the error mean? What is causing it? > >Thanks, > >Enrique > -- 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: beginSprite script
At 10:21 PM +0800 4/28/02, noelle cheng wrote: >Hi, > >From the archives I know that this script is executed once and it >may be placed in a frame script. > >My questions are : > >1. must a beginSprite always end with a end beginSprite? It should end with an "end" statement just for consistency. It will work without an end statement, buut it is a good idea to have one. Anything written after the final "end" of a handler is considered a comment. So, a beginSprite handler can end: a) with nothing, b) with an "end" statement, or c) with an "end beginSprite" statement. > >2. has a beginSprite ever caused a movie to terminate at the point >and stop executing ? > >This is the code I used and it was used in a frame script at frame 140: > >on beginSprite > startTimer >end >on exitFrame me > --This waits for 2 seconds > if the timer<60*2 then > go to the frame > end if > >end > Don't use the timer for something like this - because there is only one of this kind of timer available. If you are doing timing somewhere else in your program, then there might be an interaction. Instead, set up your own timing with either using either ticks or milliseconds, e.g, property pEndTicks on beginSprite me pEndTicks = the ticks + (2*60) -- two seconds from now end on endSprite me if the ticks < pEndTicks then go to the frame end if end 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!]
script error?
Hi, I am trying to understand this: on AdjustVolume me if pyMyDirection = #down then sprite(pnMySoundChannel).member.volume = \ sprite(pnMySoundChannel).member.volume - 1 else sprite(pnMySoundChannel).member.volume = \ sprite(pnMySoundChannel).member.volume + 1 end if END AdjustVolume This dot syntax script means that the sprite members' sound volume is arbitrary and if the down button is pressed, the volume becomes -1 i.e. softer and if the up button is pressed, the volume of that member becomes +1 i.e. louder. 1. Am I correct to write that this script is independent of the music that is being played i.e. it just controls the volume of the music at the screen where it is placed? 2. On running the program, these words appear script error:property not found #volume? I did define it in the PI : for the down arrow (sprite 13): Which sound channel sprite? I chose 1 adjust sound up or down? I chose #down for the up arrow (sprite 12): which sound channel sprite? I chose 142 - that was the max number. adjust sound up or down? I chose #Up 3. So I opened the debugger to check my mistake. the words appeared on the right: me = pnMySoundChannel =1 pnMyDirection =#down spritenumber = 13 these words appeared on the left a.mouseDown - on mouseDown me repeat while the stillDown me.AdjustVolume() end repeat END mouseDown b. AdjustVolume - the code is above My code did execute- there is no doubt about that. There is no void message. So why is there a script error? TIA Noelle [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!]
Any easy way to copy script instances???
I'm using script instance objects that have their properties modified throughout a game at several points in time. But they need to be copied, including their properties, on the fly. The only way it appears this can happen is to creating a "new" script instance and then do a repeat loop for copying all the properties across from the target object script. Is there any easier way? Thanks in advance, Darl [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: beginSprite script
>My questions are : > >1. must a beginSprite always end with a end beginSprite? > >2. has a beginSprite ever caused a movie to terminate at the point >and stop executing ? You can say: on handlername --some meaningful lines of code end handlername or on handlername --some meaningful lines of code end or even on handlername --some meaningful lines of code on nexthandler end and it will still work. I dare say that a bug might have caused a beginsprite to terminate the movie at least once in the five years that beginsprite has been around! My bet though is that your script is a movie script, and not a behavior script. It only works the first time because the timer is automatically started for you, and the rewind isn't triggering the beginsprite to reset the timer (because it's a movie script). [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!]
Script cast member error
Hello, All of a sudden, a script that was working perfectly, started giving me the error Script Error: Script cast member not found when it tries to execute the first statement of the script. What does the error mean? What is causing it? Thanks, Enrique -- Flash and Director programming, visit: http://flashysites.net Libros Multimedia y Software, visite: http://www.SrEnrique.co.il Tel: +972 9 774 9447Cel: +972 53 586386 P.O. Box 875, Ra'anana 43108, Israel [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!]
beginSprite script
Hi, From the archives I know that this script is executed once and it may be placed in a frame script. My questions are : 1. must a beginSprite always end with a end beginSprite? 2. has a beginSprite ever caused a movie to terminate at the point and stop executing ? This is the code I used and it was used in a frame script at frame 140: on beginSprite startTimer end on exitFrame me --This waits for 2 seconds if the timer<60*2 then go to the frame end if end When I re-wind and play my movie, it plays frame 1, then the playhead immediately jumps to this frame 140. The code in prior frames did not execute. Why is that? TIA for your help. Noelle [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: under a major crunch, quick imaging lingo solution
This is awesome?!? Can anybody confirm? -A >thanks for everyone#s help. >I am writing on a german keyboard and can´t find all the keys. I found >thaT if i rotated the sprite(any sprite with rotation of 0 degrees) by .01 >degree the framerate doubled, so that was my solution. weird but it >worked. >thanks, > >b > > >[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: Random listItem - Was: (no subject)
>I have tried a few different things like putting the note names into >a list, like [#noteA, #noteB,#noteC] and so on. > >on noteA >sprite(1).member = "key1Hilite" >repeat while soundbusy 1 >end repeat >sprite(1).member = "key1" >end > >But I am having trouble getting at the Playlist randomly. >What would be the correct way to get at a random instance in a list like this? notes = [#noteA, #noteB, #noteC] rndNote = notes[random(notes.count)] -A. [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: under a major crunch, quick imaging lingo solution
thanks for everyone#s help. I am writing on a german keyboard and can´t find all the keys. I found thaT if i rotated the sprite(any sprite with rotation of 0 degrees) by .01 degree the framerate doubled, so that was my solution. weird but it worked. thanks, b [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!]