onMouseUp firing twice

  • I never noticed anything like that with the onmouseup-tag. Do you have maybe an onmouseup and onclick-tag set? Because the normal mouseclick involves the onmousedown and -up-tag.

    Best regards
    Nupsi

    I use the following code:

    <events onmousedown="mdown();" onmouseup="mup();"/>
    <action name="mdown"> trace('mdown');</action>
    <action name="mup"> trace('mup');</action>

    When I click and release, I get "mdown, mup, mup" displayed in the log...this is for an object movie - perhaps there is some kind of bug there ?

    I am using the Flash version, so no HTML5...

    -MortenFT

  • Hi,

    have a look into the "objecktskin.xml":

    Code
    <events name="objectskin"
    	    	...
    	    	onmousedown="mdown();"
    	    	onmouseup="mup();"
    	    	...
    	    	/>

    there are custom events defined which were also calling "mdown" and "mup" actions,
    and when you have overwritten/redefined these these actions then your actions will be called instead,

    best regards,
    Klaus

  • Hi,

    have a look into the "objecktskin.xml":

    Code
    <events name="objectskin" 
    	    	...
    	    	onmousedown="mdown();"
    	    	onmouseup="mup();"
    	    	...
    	    	/>

    there are custom events defined which were also calling "mdown" and "mup" actions,
    and when you have overwritten/redefined these these actions then your actions will be called instead,

    best regards,
    Klaus

    Actually, that is exactly where my code sits - there are no duplicate definitions - only 1 <event/> structure defined, and it is located in objectskin.xml...

    -MortenFT

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!