Re: 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. (B (Broymeo wrote: (B> on testing this, that --movieScript (B -- do "global gFoo" & this & "Bar" (B -- do "gFoo" & this & "Bar = " & that (B do "global gFoo" & this & "Bar"\ (B & RETURN & "gFoo" & this & "Bar = "

Re: Open a folder

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

Re: flash object..

2003-07-02 Thread Fumio Nonaka
Or, you may use dot syntax: (B (BfoFlashObject = newObject("Object") (BfoFlashObject.myProp = "Hello World" (BfoFlashObject.myOtherProp = "Life should be free" (B_ (B"Mark R. Jonkman" wrote: (B> It can be done in Director (B> Lingo code: (B> (B> foFlashObject = newObject("Object") (

Re: rounding numbers....

2003-06-17 Thread Fumio Nonaka
And thinking only the first decimal place? ;-) (B (Bput Ceil(1.09) (B-- 1 (B_ (B[EMAIL PROTECTED] wrote: (B> (B> on Ceil aFloat (B> vInt = integer(aFloat + 0.4) (B> (B> return vInt (B> end Ceil (B (BGood luck, (B (BFumio Nonaka (BPhone: +81-42-397-9452 (BFax: +81-42-397-

Re: rounding numbers....

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

Re: rounding numbers....

2003-06-17 Thread Fumio Nonaka
put Ceil(1.0) (B-- 2 (B (BA little modification is needed (B_ (B[EMAIL PROTECTED] wrote: (B> on Ceil aFloat (B-- vInt = integer(aFloat + 0.5) (BvInt = integer(aFloat + 0.5) - (integer(aFloat) = aFloat) (B> return vInt (B -- end Floor (B end Ceil (B (BGood luck, (B (BF

Re: Lingo to a flash sprite

2003-03-24 Thread Fumio Nonaka
Are you using Director MX? (B (B//[Flash MX] (B// MovieClip: _root.my_mc (B// MovieClip action (BonClipEvent (load) { (Bfunction xMethod() { (Breturn this._target; (B} (B} (B (B--[Director MX] (B-- Flash sprite behavior (Bon mouseUp(me) (B oFlashObject

Re: Flash functions from lingo

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

How does setCallback pass a object reference to Flash

2003-02-12 Thread Fumio Nonaka
The behavior below successfully set callback to a Flash object. But (BDirector MX fails to get a reference to a Flash object with (B'getVariable'. In fact the local variable assigned a Flash object (Breturns 'void' in the handler. The 'beginSprite' handler seems to be (Btoo early to get a va

Re: OT: emoticon madness

2003-02-05 Thread Fumio Nonaka
I have not known so many of them. Thank you, Kerry.(^^) (B (BAnd I understand \(^o\)(/o^)/ means "aside \(^o\) from (/o^)/ this". (B_ (BKerry Thompson wrote: (B> Localization note: the Japanese have embraced e-mail emoticons with a (B> vengeance. Check this out: (B> (B> http://club.pe

Re: 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. (B (B// [Flash ActionScript] (B// _root (B// Frame action (B// Frame label: dirExecutes (Beval(dirTarget)[dirAction](dirArgument); (Bdelete dirTarget; (Bdelete dirAction; (Bdelete dirArgument; (B (B-- [Director Mov

Re: Distressflag (request)

2002-10-23 Thread Fumio Nonaka
For your information: (B (B[DIRECT-L] director 8 stub mac (Bhttp://listserv.uark.edu/scripts/wa.exe?A2=ind0104C&L=direct-l&P=R16754 (B_ (Bmatt johansson wrote: (B> (B> Thats good to know. Where have Macromedia stated that Bruce, i'd like to take a look. (B (BGood luck, (B (BFumio No

Re: 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 > Di

Re: interesting sendallsprites and frame script stuff

2002-08-09 Thread Fumio Nonaka
that this message is sent 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.o

Re: 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 (wh

Re: interesting sendallsprites and frame script stuff

2002-08-08 Thread Fumio Nonaka
s(#mouseDown) 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, o

Re: buddy api time and date function crashing help!

2002-08-03 Thread Fumio Nonaka
way > put (the systemdate).seconds/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-

Re: is there a linecount for text members?

2002-06-11 Thread Fumio Nonaka
end if nLines = nLines + 1 end repeat end 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.c

Re: Hex to decimal formula

2002-06-07 Thread Fumio Nonaka
hexToDec hexNum >-- Example 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 &g

Re: Rounding (unusually)

2002-06-05 Thread Fumio Nonaka
ing one line): > > put n - (n - integer(n-.5)) + 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 mod

Re: Big Dilema for me

2002-05-18 Thread Fumio Nonaka
h i = 1 to 10 sTest = sTest & sTest 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 fa

Re: Big Dilema for me

2002-05-18 Thread Fumio Nonaka
; QUOTE & "bc" & QUOTE & "def" & QUOTE & "ghij" & QUOTE & "klmno" repeat with i = 1 to 10 sTest = sTest & sTest end repeat nStart = the ticks clean(sTest, QUOTE) put the ticks - nStart nStart = the ticks xClean

Re: 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:[

Re: Flash loadMovie in Director 7.0.2

2002-02-20 Thread Fumio Nonaka
I might misunderstand you. Do you mean that Director 7.0.2 can import and support Flash 4 .swf but only the ActionScripts of Flash 3 can be worked in it, don't you? If so, could you provide any documentation to say that? _ Fumio Nonaka wrote: > Flash Asset Xtra in Director 7.0.

Re: Flash loadMovie in Director 7.0.2

2002-02-20 Thread Fumio Nonaka
Movie might be Flash 4 and later. Regards, 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://www.penworks.com/lingo-l.cgi To post messages to the list, ema

Flash loadMovie in Director 7.0.2

2002-02-20 Thread Fumio Nonaka
an play 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 dige

Re: 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 yo