start enterframe inside a function


hi,

how can start/end enterframe function within custom function?

i've tried somthing like:

function startturning()
{
function enterframe() {
trace("uu");
}
}
startturning()
}
function stopturning()
{
function enterframe() {}
}

think i'm completly lost answers apregiated.

thanks, jakob.

jakob wagner wrote:
> how can start/end enterframe function within custom
> function?

what /actually/ want do?

it looks want (in lingo):-

-------------------------------------
property active

on enterframe
if not(active) exit
-- stuff
end enterframe

on beginsprite
active=false
end beginsprite

on startturning
active=true
end startturning

on stopturning
active=false
end stopturning
-------------------------------------

andrew




More discussions in Director Lingo


adobe

Comments

Popular posts from this blog

opencv3, tbb and rasp pi 2 - Raspberry Pi Forums

small ethernet problem - Raspberry Pi Forums

Multithumb configuration params not working? - Joomla! Forum - community, help and support