Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Click to Go to Web Page not working.

Community Beginner ,
Jan 19, 2017 Jan 19, 2017

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!!!

2.7K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Beginner , Jan 24, 2017 Jan 24, 2017

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

...
Translate
Enthusiast ,
Jan 19, 2017 Jan 19, 2017

what does your code look like for the button action?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jan 19, 2017 Jan 19, 2017

Screen Shot 2017-01-19 at 19.54.27.pngScreen Shot 2017-01-19 at 19.54.34.png
Hope this helps you to help me

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 19, 2017 Jan 19, 2017

your code's ok.

place an alert('**"') above window.open to see if that function is being called.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jan 19, 2017 Jan 19, 2017

I am new at this.  Can you please explain in further detail?  Thank you kindly.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 19, 2017 Jan 19, 2017

what code did you use?

as3 or canvas?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 19, 2017 Jan 19, 2017

Are you assigning the event handler before or after the button appears on the screen?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Jan 19, 2017 Jan 19, 2017

Did you give the button an instance name yet?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jan 19, 2017 Jan 19, 2017

I don't think I did.  Can you please explain how to do so?  Thanks

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 20, 2017 Jan 20, 2017

use:

this.movieClip_18.addEventListener('click',f.bind(this));

function f(){

alert("*");

window.open('www.adobe.com');

}

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jan 23, 2017 Jan 23, 2017

Thanks for that.  But, unfortunately, it's still not working.  I am pulling out what little hair I have left
Any other thoughts?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jan 24, 2017 Jan 24, 2017

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 24, 2017 Jan 24, 2017

are you seeing that alert when clicking movieClip_18?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jan 24, 2017 Jan 24, 2017
LATEST

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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines