Code
<layer name="social_facebook" zorder="3" url="%SWFPATH%/skin/facebook_64.jpg" onover="tween(scale,1.1,easeOutBounce);" onout="tween(scale,1,easeOutBounce);" align="lefttop" edge="center" x="100" y="89" onloaded="txtadd(onclick,'blink();delayedcall(1,hidewindows();openurl(http://www.facebook.com/sharer.php?u=',get(tour_link),',_blank);)');" />
No go in html5
replacing onclick with layer[social_facebook].onclick works fine, tracing onclick in the same stroke traces fine, but the onclick for the layer is really empty. Also this layer is a child.