そもそも何で書かれてんの?w
キャストはC#では使うがjsでは使わない。(エラーになる)
しかしにもかかわらずGetComponentの書き方はjs
ひょっとしてBooなのか?w
jsならこんな風にでも書いとけば動く
var hoge:Transform;
var hogeGameObject:GameObject;
var instHoge :GameObject;
var scriptA:SCRIPTA;

function Start () {
hoge=transform;
instHoge = Instantiate (hogeGameObject);
scriptA= instHoge.GetComponent ("SCRIPTA");
scriptA.HogeTransform = hoge;
}