Copy link to clipboard
Copied
I have placed a fade on the time line but when I go to test mode the fade works but my buttons are no longer active.
I am using adobe animate 2017. Does anyone know of any other way I can do a transition?
Your fade function is like this:
function fl_FadeSymbolOut_3(event:Event)
{
movieClip_4.alpha -= 0.01;
if(movieClip_4.alpha <= 0)
{
movieClip_4.removeEventListener(Event.ENTER_FRAME, fl_FadeSymbolOut_3);
}
}
and I had said to make it be this:
function fl_FadeSymbolOut_3(event:Event)
{
movieClip_4.alpha -= 0.01;
if(movieClip_4.alpha <= 0)
{
movieClip_4.removeEventListener(Event.ENTER_FRAME, fl_FadeSymbolOut_3);
gotoAndStop(10);
}
}
Copy link to clipboard
Copied
In the case of HTML5 Canvas you can't have zero alpha interactive buttons. Change the fade from 100 to 0 to be 100 to 1.
Copy link to clipboard
Copied
IM USING ACTION SCRIPT
and would like my mobile phone to fade out, i have created a separate button which i have placed on top, the alpha is on a rectangle which i placed over the phone to fade out and reveal the phone but when i test the button does not work but the fade does.
Copy link to clipboard
Copied
So, does the button fail before it has faded? When you do a test movie are there any errors showing in the Output panel?
Would you be able to put the FLA online somewhere for us to try?
Copy link to clipboard
Copied
The button stays in place after fade but is not clickable
after placing the fade and I run a test I get many error messages if I remove I have none and im able to click my button in test mode.
im away from my computer for a few hours, tell me where I can upload file to.
Copy link to clipboard
Copied
You would use dropbox or google drive, or any other file sharing service that you have access to.
Copy link to clipboard
Copied
Hi who should I send file to ie, email?
Copy link to clipboard
Copied
https://1drv.ms/u/s!AuGdE8MomFLngUV6t0d9HYYY4Fnw
This is my link to the fla
Copy link to clipboard
Copied
In your fade function, see if this solves the problem:
function fl_FadeSymbolOut(event:Event)
{
FADEANIMATE.alpha -= 0.01;
if(FADEANIMATE.alpha <= 0)
{
FADEANIMATE.removeEventListener(Event.ENTER_FRAME, fl_FadeSymbolOut);
gotoAndStop(10);
}
}
Copy link to clipboard
Copied
THIS DOES NOT SEEM TO WORK IS THERE ANOTHER WAY IN WHICH I CAN ADD A TRANSITION?
Copy link to clipboard
Copied
Your fade in is working ok, but without the gotoAndStop() after the transition ends, the fade layer is still on top, which is why the buttons fail. By going to frame 10 you're then away from the fade layer, and the buttons should work. They seem to work for me.
Copy link to clipboard
Copied
For some reason this has not worked for me I have followed your instructions. When I do this and test, it runs right through the whole video without stopping.
Copy link to clipboard
Copied
I have not seen any errors in the Output panel. If you are seeing any errors you could go into Publish Settings, and check the box that says "Permit debugging". Then the errors will show you which line number had the error.
Copy link to clipboard
Copied
I have checked and have no errors and have used the gotoAndstop() you suggested and have placed in different places of the script, am I missing something?
Copy link to clipboard
Copied
Can you upload the FLA again, and I can see what's the difference between what I did and what you did.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
You haven't given any permission to download the file.
Copy link to clipboard
Copied
SORRY, you now have permission.
Copy link to clipboard
Copied
Your fade function is like this:
function fl_FadeSymbolOut_3(event:Event)
{
movieClip_4.alpha -= 0.01;
if(movieClip_4.alpha <= 0)
{
movieClip_4.removeEventListener(Event.ENTER_FRAME, fl_FadeSymbolOut_3);
}
}
and I had said to make it be this:
function fl_FadeSymbolOut_3(event:Event)
{
movieClip_4.alpha -= 0.01;
if(movieClip_4.alpha <= 0)
{
movieClip_4.removeEventListener(Event.ENTER_FRAME, fl_FadeSymbolOut_3);
gotoAndStop(10);
}
}
Copy link to clipboard
Copied
THANK YOU Colin, it now works.