• flickr
  • linkedin
  • twitter
  • rss

Tech

Make a whole DIV a link the easy way with Jquery

Make a whole DIV a link the easy way with Jquery

<script type="text/javascript" src="jquery/jquery-1.7.1.min.js"></script> <script type="text/javascript"> function init() { $(".simBox").click(function(){ window.location=$(this).find("a").attr("href"); window.open($(this).find("a").attr("href")); return false; }); $(".simBox").mouseover(function(){ $(this).addClass("simBoxOver"); }); $(".simBox").mouseout(function() { $(this).removeClass().addClass("simBox");…
try / catch

try / catch

Try and catch is most handy for handling files with AIR etc. Pretty straightforward, but just incase you forget the…
Datagrid – delete selected row

Datagrid – delete selected row

Again, this is all just SelectableList behaviours but how often does anyone use datagrids to remember this?! dataGrid.removeItemAt(dataGrid.selectedIndex); http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/fl/controls/SelectableList.html
Get frame number from label AS3

Get frame number from label AS3

function getFrameByLabel(yourMovieClip:MovieClip, frameLabel: String ):int { var scene:Scene = yourMovieClip.currentScene; var frameNumber:int = -1; for( var i:int ; i <…
4 of 11
12345678