Jump to content
GreenSock

barrowman

Cory's GSAP Flanimate example banner dissapears after a certain length of time.

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

Hi 

 

I'm using the GSAP Flanimate example, but it does something odd where after about 90 second all the images fail to display, just showing the broken image link.

No idea why. Does anyone know what i'm talking about?

Link to comment
Share on other sites

hmm, that sounds strange. Can you please explain exactly which file you are using as there are a few out there. Also a screenshot of what you are seeing would help. Better yet, host the html somewhere that we can see it running. I'm not familiar with canvas showing missing images.

Link to comment
Share on other sites

Does reverting to default publish template show the same behavior?

  • Like 1
Link to comment
Share on other sites

Kinda sounds like AdHelper's performance failover is being triggered...but you don't have the failover set up correctly just yet. Can't really narrow it down without seeing the actual example though.

  • Like 1
Link to comment
Share on other sites

Yeah, it's definitely one of AdHelper's failovers that are being triggered. The backup appears (but that'

s not correctly set up yet since you don't have an actual backup image). This code is found in the HTML, not the FLA, by the way. I'm not entirely sure why it's being triggered, perhaps something in your FLA is being continuously fired off or something.

If you just comment (or delete) the code for the failovers in the HTML, then you should be fine. However, if I were you, I'd personally investigate why they were being triggered...if it's either your code or a bug in AdHelper or Animate CC. It's weird that it's being triggered a minute out.

Here's the code to comment out >

if (!createjs.AdHelper.isSupported()) {        
   createjs.AdHelper.showAltImage(canvas, "images/backup_300x250.jpg", "javascript:doClickthrough(this)", "BannerWave", "_blank");
}
and then ...
var failCount = 1;

ad.on("slow", function(evt) {
   if (failCount === 0) {
      evt.preventDefault(); 
      failCount++; 
      this.watchFPS(15, 1); 
   } else if (failCount === 1){
      createjs.AdHelper.showAltImage(canvas, "images/backup_300x250.jpg", "javascript:doClickthrough(this)", "BannerWave", "_blank");
   }
});

or just comment out the line .watchFPS(15,1) in the code just above the stuff above.



 
  • Like 1
Link to comment
Share on other sites

Yes it is very weird, I can't see anything that would do it. But thanks for now your help has sorted it... cheers.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×