CreateJS / html5ads

An in-depth white paper on building HTML5 advertising with CreateJS and Flash Pro. Includes supporting materials, sample banner ad, and helper classes.
73 stars 58 forks source link

If not using setSleep, ad.sleep/ad.wake functions do not work #3

Open Convincible opened 5 years ago

Convincible commented 5 years ago

If we do not use ad.setSleep(15, [...]), then the manual functions ad.sleep and ad.wake do nothing. Presumably this is because setSleep doesn't only set a sleep timer, it also sets sleepEnabled = true. Is there a way to set sleepEnabled without setting the sleep timer?