Common library AS code