Watching Batman Brave & Bold with D.
TV Tux
Slider()
A simple slider… enter a value and hit enter, or click on the track, or move the thumb.
I just put this into the timeline:
setTimeout( function(){ mySlider_1.init( 0, 2000, 100, 0, txt ) } , 400 );
// to move the bar based off of the textbox
// this is quick and dirty, sorry
function setValFromText( )
{
trace("< " + Number( txt.text ) + " >");
var _txtVal:Number = Number( txt.text );
mySlider_1.valueDrag( _txtVal ); // <-- sets the value in the class
}
// alert back keys that are pressed
addEventListener( KeyboardEvent.KEY_DOWN, keyHandler );
// key press alert
function keyHandler( e:KeyboardEvent ):void
{
//trace("[ " + e.keyCode + " ]");
if( e.keyCode == 13 ) setValFromText() ;
}
Here is my actual class added to the slider object:
Creature on the stairs
youTube()
This is my simple class for playing a youTube movie in a containing swf.
→ OMG! WTF? More!
AS 3.0 standard settings
I’m just going to say this once…
When I set up to work in AS 3.0 on any machine there are a few standards I use:
→ Read the rest.


