21/02/2003 3:35:20 PM, "fluxus" <[EMAIL PROTECTED]> wrote:

>Well, that's at least some progress, because in versions prior to MX
>mouseEnter wouldn't work at all in LDMs, as far as I know.

Yes it did, the problem has always been movie scope. LDMs 
mouseEnter/leave/within always target the stage and this causes the problems.

Read my article on doug,

http://www.director-online.com/accessArticle.cfm?id=439

the article is getting old but most of it holds true. I discuss the mouseEnter 
problem and the sample movie has code that shows you how to get around this. 
The shortcoming of the code valentin put up is that it will only work if you have only 
one ldm.


Rob


>Here is simple way to fix director's confusion, based on the undocumented
>fact that the tell-command works not only for windows but also for
>LDM-sprites!
>
>1) in a sprite-script attached to the LDM-sprite in the main-dir:
>--------------------------------
>global gLDM
>
>on beginSprite me
>  gLDM=sprite(me.spriteNum)
>end
>--------------------------------
>
>2) in the script inside the LDM:
>--------------------------------
>global gLDM
>
>on mouseEnter me
>  tell the stage to tell gLDM to sprite(10).blend = 50
>end
>
>on mouseLeave me
>  tell the stage to tell gLDM to sprite(10).blend = 100
>end
>--------------------------------
>
>regards,
>valentin
>
>
>> Hello people, i've been trying for the last 3 years to use embbedded
>> movies the right way, no success..
>>
>> The main problem I face is that the scripts I write in the embedded movie
>> that accesss its sprites, tend to mix
>> up everything and endup accessing the main movie.
>>
>> example
>>
>> if I put a script on the embedded movie:
>>
>> on mouseenter me
>>     (sprite 10).blend = 50
>> end
>>
>>
>> lets suppose that this script is put on the (sprite 2) of the embedded
>> movie, when the mouse pointer passes
>> over that sprite, the (sprite 10) of the MAIN movie gets its blend level
>> changed, and not the (sprite 10) at the
>> embedded one?!?!?
>>
>> what in the universe make it works like that?? Why not use the same _root
>> and _parent syntax as Flash?
>>
>> and better, whats the syntax to change the blend level of a sprite on the
>> embedded movie?
>>
>> Luiz
>




[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 [EMAIL 
PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
with programming Lingo.  Thanks!]

Reply via email to