AS3 Flash pro Banner Ad


error

 

typeerror: error #1034: type coercion failed: cannot convert flash.display::movieclip@2d093e41 fl.motion.animatorfactory.

 

code

 

import flash.events.mouseevent;

import flash.net.urlrequest;

// ......

invisclick.addeventlistener(

   mouseevent.click,

   function(event: mouseevent) : void {

     flash.net.navigatetourl(new urlrequest( root.loaderinfo.parameters.clicktag), "_blank");

     }

   );

 

 

when publish , open html in browser mouse pointer doesn't change arrow hand indicating link, if click on it go url.

 

thank you!

if invisclick movieclip, need set behave button ( in invisclick.buttonmode = true;). 

 

you should not nesting function in event listener.  keep function outside , reference name in listener.



More discussions in ActionScript 3


adobe

Comments