Quantcast
Channel: Adobe Community : All Content - Edge Animate
Viewing all articles
Browse latest Browse all 9897

Drop Accept error

$
0
0

Hi I´m having an strange error I can´t understand with my drop accept.  I explain it :

 

- I have various scenes and in one of them a symbol i need to drag but this symbol must be draggable only if I click on a determinated position. I do this with a trigger and use this function at my stage.

 

 


sym.getSymbol("_escena5").getSymbol('_filtroEscena5').$('Ellipse').mou sedown(function(){

sym.getSymbol("_escena5").$('_filtroEscena5').draggable();

});

 

Ok it works perfect I can drag my symbol only if I touch this trigger.

 

Then I need my droppable object responds to the same trigger so I use this:

 

sym.getSymbol("_escena5").$('btnFantasma').droppable({

                    accept:sym.getSymbol("_escena5").getSymbol('_filtroEscena5' ).$('Ellipse'),

                    drop: function () {alert('Dropeo');}});

 

But my dropable object does not responds. The curious thing is that if I use other object to the accept or just the "_filtroEscena5" where my Trigger is it´s works perfect. But it can responds to my Trigger. Any idea?

 

Thanks so much


Viewing all articles
Browse latest Browse all 9897

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>