as3Query: jQuery port to ActionScript
First we see the new jQuery 1.2.2 release, and now “nitoyon” has ported jQuery to ActionScript 3.0 creating as3Query.
This port has everything bar the Ajax features, and it comes with a set of demos:
JAVASCRIPT:
-
-
function animate(f:Boolean):void {
-
// Select ‘RoundRect’ elements using CSS selector
-
$(“RoundRect:” + (f ? “odd” : “even”))
-
.addTween({
-
rotation: 90,
-
scaleX: 0.5,
-
scaleY: 0.5,
-
time: 0.6,
-
delay: 0.3,
-
transition: “easeOutCubic”
-
})
-
.addTween({
-
scaleX: 1,
-
scaleY: 1,
-
time: 0.5,
-
delay: 0.9,
-
transition: “easeOutElastic”,
-
onComplete: function():void {
-
// restore the rotation and call again.
-
this.rotation = 0;
-
animate(!f);
-
}
-
});
-
}
-
(Via Ajaxian.)

leave a comment