Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
ActionScript 3
actionscript 3 - button action [listen for multiple events. eg. MOUSE_OVER, MOUSE_OUT, MOUSE_UP]
actionscript3 version of a more complex button action, which responds to rollover, rollout and clicking. this method uses one single 'buttonstuff' function with a 'switch' inside which causes the function to respond differently, depending on what...
1
2020
posted 16 years ago by stiobhart
actionscript3 version of the basic button action. in actionscript3, button actions can no longer be attached to the buttons themselves or called from the main timeline. you need to put an 'addEventListener' in the timeline to 'listen' for interacti...
1
2085
posted 16 years ago by stiobhart
basic actionscript button action that can be attached directly to a button on the stage. this will NOT work in actionscript 3, which does not allow actionscript to be attached directly onto buttons.
make sure you're attaching this action to a but...
0
1383
posted 16 years ago by stiobhart
- opacity: 0.5; Funktioniert in den neuesten Versionen von Firefox, Safari und Opera
- filter:alpha(opacity=50); für den Internet Explorer.
-moz-opacity:0.5; für ältere Versionen der Mozilla Browser wie beispielsweise Netscape Navigator, Mozilla...
2
1598
posted 16 years ago by skrippendorf
Quickly get the index of the current element. I find myself re-using this several times in a document, so I made a lil' function for it.
3
2380
posted 16 years ago by dougunderscorenelson
Replace the markers in the CSS Bundle with these to get foldable CSSedit groups.
4
1641
posted 16 years ago by dougunderscorenelson
Stupidly simple -- just one pitfall: class to be bound must have Get/Set methods for reflection to discover. Which is annoying when it comes to client side classes auto generated from WSDL.
0
1739
posted 16 years ago by rengber
This is the code to add to a website to listen for the Konami Code (as implemented on jQuery.com"
6
1531
posted 16 years ago by JakeCarter