Transform(command)
hi, I' ve tried to put transform(n1,n2,n3, ... ,n14,n15,n16) in the variable tTransform, Like this: (in message window) tTransform = transform(0.4872,-0.0562,0.,0., 0.0795,0.1722,0.7071,0., -0.0795,-0.1722,0.7071,0., 19.2884,1.7649,4.2426,1.) Like in the 3D Lingo Help but it's doesn't work director say : script error : wrong number of parameters What's wrong? Help Please, Thanks McKay Lee _ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail [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 member not found
> > In a dictionary application, the user clicks on a word, thus > a variable called gLookup is populated with that word > > The problem is when a definition isn't in the cast. How do I > write the error checking to compensate? Sharon, Prior to setting the member of sprite(15) you should check to make sure it exists. Try this instead: on mouseUp me if the number of member glookup <> -1 then sprite(15).member = member glookup end if end [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: ANN: Director MX
I've never noticed a performance hit with static flash sprites, only ones that are animating.. I've found that if the score knows they are static, that's true. I.e., if the sprite or the member is marked as static. If you set the static property through Lingo, though, I think the instance of the Flash Asset Xtra is already instantiated, and sits there grinding up resources, even though the sprite may be static. 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: Cast member not found
This is an old problem, because the act of "checking" for the castmember results in the error itself. There are a couple of solutions, but I would suggest that at the beginning (depending on how many words you have) you build a list of all available words. Then, you check against that list. If it's short enough, and constant, you can just hardcode it, but a more flexible way is to scan the casts. Assuming the words are all in a segregated cast (or at least together in another one), you can use functions like: the number of members in castlib x the name of member x in castlib y Basically, find the range you want to check (from 1 to the number of members ..., or from 100 to 500), then start with an empty list and then loop through the range. For each member, check if the type is #empty (if you expect some to be empty), and if not, and assuming the name isn't "" (an empty string), then add it to your list. You only want to do this once, unless you expect the castmembers to be changing on the fly. Then, when you run your code, instead of going to the castmember, first check it against your list and see if it's in there. If it is, then it's valid, and you can safely access the castmember. - Tab At 01:33 PM 11/27/02, Sharon Moeller wrote: In a dictionary application, the user clicks on a word, thus a variable called gLookup is populated with that word I am then swapping the definition sprite with that new word On mouseUp me sprite(15).member = member gLookup End The problem is when a definition isn't in the cast. How do I write the error checking to compensate? Sharon Moeller [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 member not found
The problem is when a definition isn't in the cast. How do I write the error checking to compensate? You can check the number of member without throwing a script error: -- Welcome to Director -- put the number of member "not found" -- -1 put the number of member "some existing member" -- 18 -- Cole [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!]
Cast member not found
In a dictionary application, the user clicks on a word, thus a variable called gLookup is populated with that word I am then swapping the definition sprite with that new word On mouseUp me sprite(15).member = member gLookup End The problem is when a definition isn't in the cast. How do I write the error checking to compensate? Sharon Moeller [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: ANN: Director MX
Obvious natural progression? Not really. Director has always been a platform for creating high-end multimedia apps/presentations that's also robust enough to also support custom application development of varying kinds. Flash has always been an animation platform with coding added so that it's positioned as a pseudo-replacement for HTML; i.e. it's primarily for web use. There are drastic considerations for the two different uses that simply cannot be merged without losing functionality in both cases. Personally, I think Director MX's Flash integration is very cool, but we have to be careful about wanting it to go too far. Charlie Fiskeaux II Media Designer The Creative Group www.cre8tivegroup.com 859/858-9054x29 - Original Message - From: "Robert Tweed" <[EMAIL PROTECTED]> To: "Lingo-L" <[EMAIL PROTECTED]> Sent: Tuesday, November 26, 2002 10:28 PM Subject: Re: ANN: Director MX - Original Message - > > > On a related topic, one of the biggest questions I want > > answered about the new tighter integration of Flash is > > whether we can now have as many Flash sprites on the stage > > as we want without instantly crippling performance. > > Well, I never like phrases like "have as many Flash sprites on the stage > as we want without instantly crippling performance". You may want 15, but > the next guy wants 50. ;) That aside, we did not change the fact that each > Flash sprite gets its own instance of the Flash Xtra and thus the memory > and performance demands of multiple SWF sprites is the same as in previous > releases. That's essentially what I was asking, but I am not familiar enough with the details of implementation to know why performance of Flash objects in Director is so much lower than if the same objects were arranged in a single Flash movie. > We are most definitely looking into changing this so that all Flash > sprites play under one Xtra instance but that's a *significant* change to > the Xtra that we felt was far too much work to accomplish in this release > given everything else that is going on. We have a keen eye on this moving > forward as it would be a big boost for using multiple assets in a single > movie. What I'd really like to see is a shared code-base and consistent object-model between both Flash and Director. If both of them used the same low-level rendering engine (which Lingo would have access to, of course, through imaging Lingo) and could each access any property of any object in either language, then it should be a lot easier to mix the two. This would basically mean that Flash and Director would be the same thing, except that Flash would be a scaled down plugin with no support for secondary scripting languages (i.e., Lingo, but while your at it...); Xtras, etc. Shockwave/Director would be like Flash plus a load of other cool stuff including more direct access to the low-level rendering engine. To me, this seems like an obvious natural progression towards convergence for the two. - 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!] [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!]
Macromedia Announces Director MX - INM is ready!
This week, Macromedia announced the release of Director MX. This new version, which now offers Mac OS X support, is a great development platform for Flash users and other multimedia professionals who need advanced interactivity, off-line delivery and boundless possibilities through third-party Xtras. ***Integration New Media is ready!*** Integration New Media is the first Xtra developer to offer products that support Director MX. All of our Xtras are Director MX ready for Windows and Mac OS 8/9; and several support Mac OS X. Visit our website today to find out more! http://www.IntegrationNewMedia.com Please contact me, [EMAIL PROTECTED], if you require any additional information. Best regards, Steve Steve Zografakis Sales and Customer Service Coordinator Integration New Media, Inc. www.IntegrationNewMedia.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: recursive use of handler
THX for the quick reply, Tab ! Andreas, I am using recursion in a project where I use DOM-lingo to work a bunch of XML stuff. A recursive setup can simplify things there, and is sometimes (as far as I see) the only solution. sincerely, Erik Phalet OK, I guess you're right. It doesn't make much sense in the example you sent, but I take it it's a simplified version (which I'm grateful for) pointing out the problem... -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: ANN: Director MX
Rob, > > Would you know if nested director movies get a similar support? > Keep on bugging Macr for this cause they might notice for the > next release. I've done that since D8 Beta > All your "off stage" elements should not be showing up unless you have > your LDM (linked director movie) sprite set to either 0 width or 0 > height. The sprite will crop the LDM based on width and height for > everything except 0, also check the LDM member to make sure you have it > set to crop, if you want cropping or scale if you want scaling. > > This will work, I've done it many times. If it isn't and you have a > small sample movie you can send me off-list, I'll check it for you. It's not on my priority list just now, but I'll give that a shot when I get the chance (I never thought of playing with those settings). What's the performance like LDM v MIAW? Thanks! ... Alex ... > SELECT * FROM users WHERE clue > 0 0 rows returned [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: recursive use of handler
Erik Phalet <[EMAIL PROTECTED]> wrote: > If I put a breakpoint on the line "return propertyList", I see what is > happening, but how can I pass my return value through this stack ? Hi Erik, You're almost there: on createList oldList, newList if not ilk(newList,#list) then newList = [] end if if oldList.count > 0 then newList.add(oldList[1]) oldList.deleteAt(1) propertyList = createList(oldList, newList) -- <= propertyList = ... else propertyList = [#propName: newlist] end if return propertyList end Cheers, James [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!]
recursive use of handler
THX for the quick reply, Tab ! Andreas, I am using recursion in a project where I use DOM-lingo to work a bunch of XML stuff. A recursive setup can simplify things there, and is sometimes (as far as I see) the only solution. sincerely, Erik Phalet > Tel * +32-(0)2-751 45 29 > GSM * 0473 86 41 36 > Mail * mailto:[EMAIL PROTECTED] > > www.theWizard.be > Interactive Communication > Registered Office * Machelsesteenweg 67,1820 Melsbroek, Belgium > Production * Zandvoortstraat 8, 2800 Mechelen, Belgium > > > [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: recursive use of handler
Hello, Is it possible to return the result of a recursive loop to the handler that called the loop, instead of to the previous instance of the handler itself ? I am not sure the question is accurate, but you can check out what I mean with this example-moviescript. on startMovie myList = [5,6,7] myPropList = createList(myList) put myPropList end on createList oldList, newList if not ilk(newList,#list) then newList = [] end if if oldList.count > 0 then newList.add(oldList[1]) oldList.deleteAt(1) createList(oldList, newList) else propertyList = [#propName:newlist] end if return propertyList end The value that is returned to startMovie is VOID, while I need it to be the constructed propList. If I put a breakpoint on the line "return propertyList", I see what is happening, but how can I pass my return value through this stack ? sincerely, Erik, This will not work because the propertyList will never be constructed. The if statement only causes a recurse if oldList.count > 0. The else will never happen. This would however work: on startMovie myList = [5,6,7] myPropList = createList(myList, []) put myPropList end on createList oldList, newList -- if not ilk(newList,#list) then --newList = [] -- end if if oldList.count > 0 then newList.add(oldList[1]) oldList.deleteAt(1) createList(oldList, newList) end if if oldList.count = 0 then propertyList = [#propName:newlist] end if return propertyList end ...although I find the whole construction a little awkward. Why do you want this recursive setup anyway? HTH -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: recursive use of handler
Sure, you can do recursion. However, if you want to pick up the result, you'll have to do it when you call, as in: myResult =createList(oldList, newList) Then do whatever (add it to the other list, pass it back, etc.) At 07:09 AM 11/27/02, Erik Phalet wrote: Hello, Is it possible to return the result of a recursive loop to the handler that called the loop, instead of to the previous instance of the handler itself ? I am not sure the question is accurate, but you can check out what I mean with this example-moviescript. on startMovie myList = [5,6,7] myPropList = createList(myList) put myPropList end on createList oldList, newList if not ilk(newList,#list) then newList = [] end if if oldList.count > 0 then newList.add(oldList[1]) oldList.deleteAt(1) createList(oldList, newList) else propertyList = [#propName:newlist] end if return propertyList end The value that is returned to startMovie is VOID, while I need it to be the constructed propList. If I put a breakpoint on the line "return propertyList", I see what is happening, but how can I pass my return value through this stack ? sincerely, Erik Phalet > Tel * +32-(0)2-751 45 29 > GSM * 0473 86 41 36 > Mail * mailto:[EMAIL PROTECTED] > > www.theWizard.be > Interactive Communication > Registered Office * Machelsesteenweg 67,1820 Melsbroek, Belgium > Production * Zandvoortstraat 8, 2800 Mechelen, Belgium > > [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!]
recursive use of handler
Hello, Is it possible to return the result of a recursive loop to the handler that called the loop, instead of to the previous instance of the handler itself ? I am not sure the question is accurate, but you can check out what I mean with this example-moviescript. on startMovie myList = [5,6,7] myPropList = createList(myList) put myPropList end on createList oldList, newList if not ilk(newList,#list) then newList = [] end if if oldList.count > 0 then newList.add(oldList[1]) oldList.deleteAt(1) createList(oldList, newList) else propertyList = [#propName:newlist] end if return propertyList end The value that is returned to startMovie is VOID, while I need it to be the constructed propList. If I put a breakpoint on the line "return propertyList", I see what is happening, but how can I pass my return value through this stack ? sincerely, Erik Phalet > Tel * +32-(0)2-751 45 29 > GSM * 0473 86 41 36 > Mail * mailto:[EMAIL PROTECTED] > > www.theWizard.be > Interactive Communication > Registered Office * Machelsesteenweg 67,1820 Melsbroek, Belgium > Production * Zandvoortstraat 8, 2800 Mechelen, Belgium > > [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: ANN: Director MX
What I'd really like to see is a shared code-base and consistent object-model between both Flash and Director. If both of them used the same low-level rendering engine (which Lingo would have access to, of course, through imaging Lingo) and could each access any property of any object in either language, then it should be a lot easier to mix the two. This would basically mean that Flash and Director would be the same thing, except that Flash would be a scaled down plugin with no support for secondary scripting languages (i.e., Lingo, but while your at it...); Xtras, etc. Shockwave/Director would be like Flash plus a load of other cool stuff including more direct access to the low-level rendering engine. To me, this seems like an obvious natural progression towards convergence for the two. - Robert Cool! -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: pausing a lingo program
hi there, does anyone out there know how to have director pause for a specified period of time while the processor is running? I would like it to iterate a loop after pausing for a certain number of ms. thanx! Ramesh, I would probably use "go the frame" instead of "pause", but if you really want to proceed with this, try this in a frame script: -- Gaunitz 2002 -- on exitFrame me timeOut("waitTO").new(2000, #nextStep, me) pause end on nextStep me timeOut("waitTO").forget() go the frame + 1 end -- -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: pausing a lingo program
on begin Sprite --all set into a score-script, behaviour startTimer end beginSprite on enterFrame if the timer >= 3 * 60 then --could be altered to whatever, now in seconds.. alert "Director" -- do the stuff.. else go to the frame end if end enterFrame on exitFrame go to the frame end exitFrame Something like this or set startTimer from moviescipt in handle: on startMovie Quoting ramesh <[EMAIL PROTECTED]>: > hi there, > > does anyone out there know how to have director pause for a specified > period > of time while the processor is running? I would like it to iterate a > loop > after pausing for a certain number of ms. > > thanx! > > Ramesh > > > [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!] > - FREE E-MAIL IN 1 MINUTE! - [EMAIL PROTECTED] - http://www.pc.nu [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!]