3 Replies Latest reply on Apr 10, 2014 9:20 AM by kglad

    Close advertising banner

    Tomcom78

      Hi!

       

      I'm beginner in Flash.

       

      I created a banner and i want to enable viewers to close it.

       

      So i created a cross in Illustrator, uploaded it as first layer and converted it to a button.

       

      Then i entered the code (AS2) :

       

      on(release)

      {

      fscommand("quit");

      }

       

      Finally impossible for me to check if my button run correctly. I read that i can't try it online (hosting only the banner) but the button should run on the .SWF and it's not the case

       

      I also tried this code:

       

      on (press) {

      fscommand("quit");

      }

       

       

      For both situations, i can click on the cross but nothing happened.

       

      Maybe someone can help me!

       

      Have a good day!

       

      Tom