Re: Conversion of string into variable name

2005-06-16 Thread Irv Kalb
Well, it was a general description of how to use a single list instead of many variables using a base name with a 1, 2, 3, etc. appended to it. Here the text of my earlier message: ... If you have a need for something like this, what you really want is a list. Lists are one of the most pow

Re: Conversion of string into variable name

2005-06-16 Thread Buzz Kettles
this question came up fairly recently - what you probably want is a proplist with unique names in some way related to particular spritenums Irv did a great description last time, so I'll let him find his older response :) -Buzz At 8:24 AM +1000 6/17/05, you wrote: Hi list. It's been a w

Re: hiding some globals from "clearglobals"

2005-06-16 Thread Cole Tierney
At 12:18 PM +1200 6/17/05, Sean Wilson wrote: on restoreMyStuff But isn't your restoreMyStuff handler going to have to go into the file you're navigating to? You said you didn't want to touch the code in this file, and you shouldn't have to: The the movie I'll go to will return to my movie

Re: hiding some globals from "clearglobals"

2005-06-16 Thread Sean Wilson
on restoreMyStuff But isn't your restoreMyStuff handler going to have to go into the file you're navigating to? You said you didn't want to touch the code in this file, and you shouldn't have to: -- parent script "global.saver.class" property myVarList property myRestoreEvent on new me, lV

Re: Conversion of string into variable name

2005-06-16 Thread Valentin Schmidt
If that's not what you want to do, then please clarify your question. (However, I'm guessing that the thing you really want is a "list") My interpretation is that Elvin asked for code like the following: myLocalVariable = (the globals)[symbol("myGlobalVariable" & me.spriteNum)] where the glo

Re: Conversion of string into variable name

2005-06-16 Thread Irv Kalb
I'm sorry, but your question is not clear enough for anyone to answer. Where does the string that you have come from? Where does the "dfddf" come from? What does the code you are showing here have to do with lingo.ini? Is this code supposed to live in a behavior attached to many different s

Re: hiding some globals from "clearglobals"

2005-06-16 Thread Cole Tierney
At 12:23 AM +0200 6/17/05, Valentin Schmidt wrote: Hi Cole, 'version' does not get zapped when all other globals are cleared. You could save all your globals (including version itself) in a property list, set 'version' to the property list, call clearGlobals, then restore everything from your pr

Re: dateChooser revisited

2005-06-16 Thread Valentin Schmidt
Hi Bryan, totally untested, but the documentation says that selectableRange is specified like: myDC.selectableRange = {rangeStart: new Date(2001, 4, 7), rangeEnd: new Date(2003, 5, 7)}; Those curly braces are just a short form for creating native Objects in Flash, so I think the following

Conversion of string into variable name

2005-06-16 Thread Jojie, Leah, Kiahra & Kahyla
Hi list. It's been a while since I've touched programming. I have string that I would like to convert as a variable-name so that I can use that to call a variable with different values on them. basically this is what it's supposed to do roughly on beginspite myVariable = "myVariable" & the s

Re: hiding some globals from "clearglobals"

2005-06-16 Thread Valentin Schmidt
Hi Cole, 'version' does not get zapped when all other globals are cleared. You could save all your globals (including version itself) in a property list, set 'version' to the property list, call clearGlobals, then restore everything from your property list. That's really a brilliant idea! I had

Re: hiding some globals from "clearglobals"

2005-06-16 Thread Buzz Kettles
excellent James! a real use for that horrible archaic! -Buzz At 10:41 PM +0100 6/16/05, you wrote: On 6/16/05 9:40 PM, "Cole Tierney" <[EMAIL PROTECTED]> wrote: Hi, I'm working on a project that needs to go movie some "existing_movie". The problem is that this "existing_movie" calls clea

Re: hiding some globals from "clearglobals"

2005-06-16 Thread John Mathis
clearglobals. But ideally, I'd like a solution that does not touch the code in "existing_movie". Try this: script "AnyOldScript": property AllMyVars (script "AnyOldScript").AllMyVars = gMySpecialPList clearGlobals gMySpecialPList = (script "AnyOldScript").AllMyVars Better yet, just use (scrip

Re: hiding some globals from "clearglobals"

2005-06-16 Thread Sean Wilson
The previous replies seem to require you to either modify the movie you're navigating to (getPref, read cast member) and/or that the 2 files share a castLib. Your idea of a timeout seems sound, though I haven't tried it. It needs to be persistent (or it disappears on stopMovie of the first fil

Re: hiding some globals from "clearglobals"

2005-06-16 Thread James Newton
On 6/16/05 9:40 PM, "Cole Tierney" <[EMAIL PROTECTED]> wrote: > Hi, > > I'm working on a project that needs to go movie some > "existing_movie". The problem is that this "existing_movie" calls > clearglobals a couple times and tromps on my global space. I could > get access to "existing_movie" an

dateChooser revisited

2005-06-16 Thread Bryan Thompson
Hi all, I've been able to access and set the properties in the dateChooser Flash component (thanks for the info Valentin), but am now having trouble setting the selectableRange. I'm sure it's a syntax issue. This is what I'm working with: on mSelectableRange me, st, en stYr = st.year stMo =

Re: hiding some globals from "clearglobals"

2005-06-16 Thread Alex da Franca
Am 16.06.2005 um 22:40 schrieb Cole Tierney: Hi, I'm working on a project that needs to go movie some "existing_movie". The problem is that this "existing_movie" calls clearglobals a couple times and tromps on my global space. I could get access to "existing_movie" and toss a reference t

Re: hiding some globals from "clearglobals"

2005-06-16 Thread Duck
Thursday, June 16, 2005, 9:40:58 PM, Cole wrote: CT> Has anyone tried anything similar? Or, something I used to do before I moved away from using globals completely, was to use properties of a script cast member. Eg, have a script cast member called "globals". In that script, you define a pr

Re: hiding some globals from "clearglobals"

2005-06-16 Thread ken . hubbell
in any script member you can put properties and then use function calls to reference them: property pFooProp on pFoo data if voidP(data) then return member("globals").script.pFooProp else member("globals").script.pFooProp = data end if end --to use just set it: pFoo() --and get it:

Re: hiding some globals from "clearglobals"

2005-06-16 Thread Buzz Kettles
you could use one of the Xtras that saves Lingo objects in a file. (PropSave or the other one (whose name escapes me now)) Then you'd just have to determine WHEN to restore (optimally just after that movie clears) BUT - if they are clearing to get rid of stuff, you run the risk of returning w

Re: hiding some globals from "clearglobals"

2005-06-16 Thread Duck
Thursday, June 16, 2005, 9:40:58 PM, Cole wrote: CT> I think the timeOutList might be a safe place (I don't think that CT> gets zapped). I was also considering an off screen MIAW to hold some CT> of my props in static movie script, but I think a timeout object CT> would be cleaner. How about

hiding some globals from "clearglobals"

2005-06-16 Thread Cole Tierney
Hi, I'm working on a project that needs to go movie some "existing_movie". The problem is that this "existing_movie" calls clearglobals a couple times and tromps on my global space. I could get access to "existing_movie" and toss a reference to gMySpecialPlist into a temp variable and restore

Re: Dev Center Newsletter (Director is more visible)

2005-06-16 Thread John R. Sweeney Jr
on 6/16/05 1:00 PM, Emmy Huang at [EMAIL PROTECTED] wrote: > the Developer Center > Newsletter I'm unfamiliar with this newsletter. Where can I get more information about what it is and how I can obtain a copy? Thanks in advance, John === John R

Re: Dev Center Newsletter (Director is more visible)

2005-06-16 Thread Vegard Hofsøy
On Jun 16, 2005, at 20:00, Emmy Huang wrote: Also, if any one has ideas for additional articles, we're looking. Here´s one: A totorial on how to use FLV-video _without_ Flash components. Vegard Hofsoy -- [To remove yourself from this list, or to change to digest mode, go to http://www.pe

RE: Dev Center Newsletter (Director is more visible)

2005-06-16 Thread Emmy Huang
Thanks for the feedback! Tom took the lead in scheduling at least one new article per month, and we have a few more in the queue. Also, if any one has ideas for additional articles, we're looking. Best, e Emmy Huang :: Sr. Product Manager :: Director/Shockwave Player http://www.markme.com/emmy

Dev Center Newsletter (Director is more visible)

2005-06-16 Thread Frank Di Luzio
I am abusing this list to tell Tom and Emmy and any others I don't know of that I have noticed and appreciate that the Developer Center Newsletter has been featuring Articles using Director more often. That was always among my suggestions in the MM surveys. Regards, Frank [To remove yourself from