Skip to main content
Participant
January 13, 2016
Question

Can someone help me to convert AS3 banner to AS2

  • January 13, 2016
  • 1 reply
  • 237 views

<script>

    var clickTag = '[@http://@]';

    var moreDetails = '[@http://2@]';

</script>

<script>

moreDetailsArea.addEventListener("click", onDetailsClick);

function onDetailsClick() {

    window.open(window.moreDetails, "_blank");

}

var tl = new TimelineMax({paused: true});

tl

.to('#box1-container', 0.75, {x: 170}, 0)

.to('#box1', 0.75, {x: -170}, 0)

.to('#box1-container', 0.5, {y: -67}, 0.7)

.to('#box1', 0.5, {y: 67}, 0.7)

.to('#box2-container', 0.75, {x: -159}, 1.15)

.to('#box2', 0.75, {x: 159}, 1.15)

.to('#box2-container', 0.5, {y: 56}, 1.85)

.to('#box2', 0.5, {y: -56}, 1.85)

.to('#c1', 0.5, {opacity: 0}, 2.5)

.to('#c2', 0.5, {opacity: 1}, 3)

.to('#c2', 0.5, {opacity: 0}, 5)

.to('#c3', 0.5, {opacity: 1}, 5.5)

.set('#replay', {x: -24}, 8.5)

.to('#ef', 0.5, {opacity: 1}, 8.5)

.to('#cta', 0.5, {opacity: 1}, 8.5)

.to('#partnerLogo', 0.5, {opacity: 1}, 8.5)

.to('#moreDetailsArea', 0.01, {display: "block"}, 8.5)

.to('#replay', 0.5, {opacity: 1}, 8.5)

.to('#replay', 0.5, {opacity: 1}, 8.5)

;

function playBanner(){

    tl.play();

}   

       

function replayPressed(){

    tl.restart();

}

document.getElementById("replay").addEventListener("click", replayPressed);

</script>

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
January 13, 2016

that's javascript, not as3