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

Can someone help me to convert AS3 banner to AS2

New Here ,
Jan 13, 2016 Jan 13, 2016

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

TOPICS
ActionScript
222
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 13, 2016 Jan 13, 2016
LATEST

that's javascript, not as3

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