PDA

View Full Version : ActionScripts and Director


SusanZ
06-26-2002, 12:33 AM
Does anybody know how to make actionscripts work in Director?
I am using Flash 5 and Director 8. Any help would be appreciated. It seems the actionscript I am using works fine alone but does not play in Director.

Abelius
06-26-2002, 12:52 AM
Hmmmmm... I thought Lingo was Director's scripting language, not Actionscript... Specially since Flash has become part of the MX Studio package, and Director has not...

CyanBlue
06-26-2002, 10:30 AM
Hi...

Is this what you want???
http://www.macromedia.com/support/director/ts/documents/flash5_director8.htm

OR...

Calling Lingo commands/functions by using getURL function in Flash like...
getURL("lingo: cursor 280");

SusanZ
06-26-2002, 04:02 PM
I know that Lingo is Directors scripting language, but I am putting a flash in Director and it is not working when it is in Director and was wondering if there was a way to get it to work in Director.

Here is the actionscript I am using in Flash that will not work in Director. This makes the MC shake and get larger and smaller.


onClipEvent(load){

speed = 2
distance = 3
size = 20

}

onClipEvent(enterFrame){

_x = Math.random(time += speed) * distance + 160
_y = Math.random(time += speed) * distance + 98
_xscale = Math.random (time += size) +100
_yscale = Math.random (time += size) +100

}