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
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")
_
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,
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
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
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)
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
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
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
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
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
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
)
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
/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
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
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
)) + 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
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
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
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
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
21 matches
Mail list logo