-
1. Re: Mouse Out not working in Muse
moods88130517 Jul 9, 2017 3:30 PM (in response to bo_spasic)Hey just wanted to let know I got some kind of answer for this:
-
2. Re: Mouse Out not working in Muse
Colin Holgate Jul 9, 2017 3:57 PM (in response to moods88130517)It doesn't read a lot like an answer! What is the simplest example you can give that would show the problem?
I tried this script:
this.btn.addEventListener("mouseout",out);
this.btn.addEventListener("click",clicked);
stop();
function out(){
alert("out");
}
function clicked(){
alert("clicked");
}
Both the click and the mouseout responded, in Animate and in Muse.
-
3. Re: Mouse Out not working in Muse
moods88130517 Jul 9, 2017 4:32 PM (in response to bo_spasic)I know right lol! The "mouseout" script seems to be ignored and Im not sure how to fix it. Adobe encourages users to create buttons and animations in AnimateCC since they have officially discontinued Edge Animate.
-
4. Re: Mouse Out not working in Muse
Colin Holgate Jul 9, 2017 5:10 PM (in response to moods88130517)Edge Animate was perhaps a good fit with Muse in that you more normally do responsive designs in both. Adobe Animate for HTML5 is usually a fixed size canvas document. You can make it responsive in terms of with and height, but the moment would stay the same layout.
If you test my script and it doesn't work for you, let me know what your HTML publish settings are. Or if you can post an FLA online that I can try.
-
5. Re: Mouse Out not working in Muse
moods88130517 Jul 10, 2017 4:30 PM (in response to Colin Holgate)I couldn't get your code to work
Here is the .fla file.
Thank you in advance!
-
6. Re: Mouse Out not working in Muse
Colin Holgate Jul 10, 2017 5:08 PM (in response to moods88130517)I figured it out. Your button is the size of the stage, and so by the time your mouseout would happen the cursor is already outside of the stage. Making the stage a bit bigger made it still work in Muse.
If it needs to be that way for some reason, look at the stage.mouseleave event to see if that would be another way to handle it:
-
7. Re: Mouse Out not working in Muse
moods88130517 Jul 12, 2017 5:45 PM (in response to Colin Holgate)omg thank you that worked like a charm!!!!!
-
8. Re: Mouse Out not working in Muse
Colin Holgate Jul 12, 2017 5:57 PM (in response to moods88130517)I'm curious, did you make the stage bigger, or use the stage.leave event?