Re: lingo-l Accessing global variables with sent parameters

2003-10-26 Thread Fumio Nonaka
I am a little late to come to this thread. But try the below. roymeo wrote: on testing this, that --movieScript -- do "global gFoo" this "Bar" -- do "gFoo" this "Bar = " that do "global gFoo" this "Bar"\ RETURN "gFoo" this "Bar = " that

Re: lingo-l Open a folder

2003-09-22 Thread Fumio Nonaka
You can use 'baOpenFile' method of Buddy API, which works on both of Windows and Macintosh (I tried with Director MX/Windows XP and MacOS X.2.6). The following example open the folder containing the director movie. result = baOpenFile(the moviePath, "normal") _

Re: lingo-l rounding numbers....

2003-06-17 Thread Fumio Nonaka
put Ceil(1.0) -- 2 A little modification is needed _ [EMAIL PROTECTED] wrote: on Ceil aFloat -- vInt = integer(aFloat + 0.5) vInt = integer(aFloat + 0.5) - (integer(aFloat) = aFloat) return vInt -- end Floor end Ceil Good luck,

Re: lingo-l rounding numbers....

2003-06-17 Thread Fumio Nonaka
A negative number was not considered. _ Fumio Nonaka wrote: [EMAIL PROTECTED] wrote: on Ceil aFloat -- vInt = integer(aFloat + 0.5) - (integer(aFloat) = aFloat) vInt = integer(aFloat + 0.5) - (integer(aFloat) = aFloat) * (aFloat = 0) return vInt

Re: lingo-l rounding numbers....

2003-06-17 Thread Fumio Nonaka
And thinking only the first decimal place? ;-) put Ceil(1.09) -- 1 _ [EMAIL PROTECTED] wrote: on Ceil aFloat vInt = integer(aFloat + 0.4) return vInt end Ceil Good luck, Fumio Nonaka Phone: +81-42-397-9452 Fax: +81-42-397-9452

Re: lingo-l Lingo to a flash sprite

2003-03-24 Thread Fumio Nonaka
Are you using Director MX? //[Flash MX] // MovieClip: _root.my_mc // MovieClip action onClipEvent (load) { function xMethod() { return this._target; } } --[Director MX] -- Flash sprite behavior on mouseUp(me)

Re: lingo-l Flash functions from lingo

2003-03-21 Thread Fumio Nonaka
How about the following: //[In Flash MX] // _root // Frame action oMessenger = {}; oMessenger.xExecuteFlashMethod = function() { trace("Called from Director MX"); }; --[In Director MX] -- Behavior for a Flash sprite property pMySprite, poFlashObject

Re: lingo-l Can Lingo call a function in a swf sprite?

2002-12-16 Thread Fumio Nonaka
You may utilize 'callFrame' command until Director MX will be available. // [Flash ActionScript] // _root // Frame action // Frame label: dirExecutes eval(dirTarget)[dirAction](dirArgument); delete dirTarget; delete dirAction; delete dirArgument; -- [Director

Re: lingo-l Distressflag (request)

2002-10-23 Thread Fumio Nonaka
For your information: [DIRECT-L] director 8 stub mac http://listserv.uark.edu/scripts/wa.exe?A2=ind0104CL=direct-lP=R16754 _ matt johansson wrote: Thats good to know. Where have Macromedia stated that Bruce, i'd like to take a look. Good luck, Fumio

Re: lingo-l Flash sprite and load movie actions

2002-08-28 Thread Fumio Nonaka
The 'loadMovie' action executed in a Flash swf file does not work in Director 7.0.2/Flash Asset Xtra 7.0.2r140. Director 8.0 or above supports the action in a swf. _ Erik Schutzman wrote: Is there a way to get a Flash sprites "loadMovie" action to work in Director? Good luck, Fu

Re: lingo-l interesting sendallsprites and frame script stuff

2002-08-09 Thread Fumio Nonaka
You are right, Jakob. But I tried to put the same behavior to two sprites. Your script would call the other sprite each other. And I modifies my behavior a little. _ At 12:32 +0900 02_08_09, Fumio Nonaka wrote: on mouseDown(me, who) if (who #myself) then sendAllSprites

Re: lingo-l interesting sendallsprites and frame script stuff

2002-08-09 Thread Fumio Nonaka
by sendAllSprites, and should therefore be stopped to avoid a recursive loop. Like: '#dontSendAllSprites' Good luck, Fumio Nonaka Phone: +81-42-397-9452 Fax: +81-42-397-9452 mailto:[EMAIL PROTECTED] http://www.FumioNonaka.com/ See also:http://www.F-site.org/ [To remove yourself from this list, or to change

Re: lingo-l interesting sendallsprites and frame script stuff

2002-08-08 Thread Fumio Nonaka
) sendAllSprites(#mouseDown, #myself) end if end will freeze up director Good luck, Fumio Nonaka Phone: +81-42-397-9452 Fax: +81-42-397-9452 mailto:[EMAIL PROTECTED] http://www.FumioNonaka.com/ See also:http://www.F-site.org/ [To remove yourself from this list, or to change to digest mode

Re: lingo-l buddy api time and date function crashing help!

2002-08-03 Thread Fumio Nonaka
/3600 --gives you the current hour and put ((the systemdate).seconds mod 3600)/60 --gives you the current minute Good luck, Fumio Nonaka Phone: +81-42-397-9452 Fax: +81-42-397-9452 mailto:[EMAIL PROTECTED] http://www.FumioNonaka.com/ See also:http://www.F-site.org/ [To remove yourself from

Re: lingo-l is there a linecount for text members?

2002-06-11 Thread Fumio Nonaka
Good luck, Fumio Nonaka Phone: +81-42-397-9452 Fax: +81-42-397-9452 mailto:[EMAIL PROTECTED] http://www.FumioNonaka.com/ See also:http://www.F-site.org/ [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

Re: lingo-l Hex to decimal formula

2002-06-07 Thread Fumio Nonaka
hex to dec -- 24-bit max -- Tab Julius ([EMAIL PROTECTED]) parts =rgb(hexNum) decNum =parts.red * (256 * 256) decNum =decNum + (parts.green * 256) decNum =decNum + parts.blue return(decNum) end put hexToDec("F31AA9") -- 15932073 Good luck, Fumio Nonaka P

Re: lingo-l Rounding (unusually)

2002-06-05 Thread Fumio Nonaka
)) + 1 * ((n - integer(n-.5))0) Good luck, Fumio Nonaka Phone: +81-42-397-9452 Fax: +81-42-397-9452 mailto:[EMAIL PROTECTED] http://www.FumioNonaka.com/ See also:http://www.F-site.org/ [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi

Re: lingo-l data in ISO format

2002-05-18 Thread Fumio Nonaka
Another way (watch out a email line break): Colin Holgate wrote: aDate = the systemdate put aDate.year string(aDate.month+100).char[2..3] string(aDate.day+100).char[2..3] -- "20020519" Good luck, Fumio Nonaka Phone: +81-42-397-9452 Fax: +81-42-397-9452 mailto:[EMAIL PROTE

Re: lingo-l Big Dilema for me

2002-05-18 Thread Fumio Nonaka
end repeat nStart = the ticks clean(sTest, "g") put the ticks - nStart nStart = the ticks xClean(sTest, "g") put the ticks - nStart end Fumio Nonaka wrote: Searching whole string and deleting the character is a bit faster in my test. on xClean(sString, sChar) re

lingo-l Flash loadMovie in Director 7.0.2

2002-02-20 Thread Fumio Nonaka
in Flash 4.0r7 stand alone player. Does the 'loadMovie' action fail to work in Director 7.0.2? Thanks in advance. Fumio Nonaka Phone: +81-42-397-9452 Fax: +81-42-397-9452 mailto:[EMAIL PROTECTED] http://www.FumioNonaka.com [To remove yourself from this list, or to change to digest mode, go to http

Re: lingo-l chartonum 0?

2002-01-19 Thread Fumio Nonaka
Is this what you are looking for? put numToChar(0) -- "" _ [EMAIL PROTECTED] wrote: What's the ascii equivalent of chartonum = 0? Good luck, Fumio Nonaka Phone: +81-42-397-9452 Fax: +81-42-397-9452 mailto:[EMAIL PROTECTED] http://www.FumioNonaka.com [To remove yourself from