Copy link to clipboard
Copied
Hello.
I was hoping someone could help me.
I have 3 layers on one scene.
The first layer is always there.
The second layer comes in just fine, and the stops action & click to go to frame and stop both work perfectly.
The problem is, when I get to that next frame on the 3rd layer, the Click to Go to Web Page doesn't work. I have made it a button, and I do see the finger when I hover over the image, but nothing happens.
HELP PLEASE!!!
I got it all to work. What the problem was, I was using a background image, and then two other layers that were animated.
So, I went into Photoshop and just used the background image for the two other images. So, everything worked out with my animation. But now I have another problem.
When I published it (BTW, it was created as an HTML5 Canvas), it works fine in Safari, and Firefox. but in Chrome, only the first slide opens. No matter how many times I click on it in Chrome, nothing. I don't
...Copy link to clipboard
Copied
what does your code look like for the button action?
Copy link to clipboard
Copied
Hope this helps you to help me
Copy link to clipboard
Copied
your code's ok.
place an alert('**"') above window.open to see if that function is being called.
Copy link to clipboard
Copied
I am new at this. Can you please explain in further detail? Thank you kindly.
Copy link to clipboard
Copied
what code did you use?
as3 or canvas?
Copy link to clipboard
Copied
Are you assigning the event handler before or after the button appears on the screen?
Copy link to clipboard
Copied
Did you give the button an instance name yet?
Copy link to clipboard
Copied
I don't think I did. Can you please explain how to do so? Thanks
Copy link to clipboard
Copied
use:
this.movieClip_18.addEventListener('click',f.bind(this));
function f(){
alert("*");
window.open('www.adobe.com');
}
Copy link to clipboard
Copied
Thanks for that. But, unfortunately, it's still not working. I am pulling out what little hair I have left
Any other thoughts?
Copy link to clipboard
Copied
I can get the last slide to go to a website, Only if I DO NOT put a stop on the previous slide. I just extended the length for about 5 seconds, then it goes to the next slide automatically. Since I selected to NOT LOOP the animation, it holds indefinitely until I click, and it then works. It seems that the problem is when I put a STOP command on the 2nd to last layer, and click to goto frame, everything works, EXCEPT the goto website.
Curious.
Thank you all for taking the time to help.
Copy link to clipboard
Copied
are you seeing that alert when clicking movieClip_18?
Copy link to clipboard
Copied
I got it all to work. What the problem was, I was using a background image, and then two other layers that were animated.
So, I went into Photoshop and just used the background image for the two other images. So, everything worked out with my animation. But now I have another problem.
When I published it (BTW, it was created as an HTML5 Canvas), it works fine in Safari, and Firefox. but in Chrome, only the first slide opens. No matter how many times I click on it in Chrome, nothing. I don't have any popup blockers in Chrome.
Even though this is supposed to be an HTML5, is it being saved as some sort of a Flash file? Even though in the folder, it has an HTML suffix. Plus, when I compressed it to mail it off and is uncompressed, it doesn't work.
Anyone?
Find more inspiration, events, and resources on the new Adobe Community
Explore Now