خرید بک لینک

Vote count: 0

I have another action script 3 class which is linked back to main. I'm trying to addChild to stage but i'm getting an error: Call to possibly undefined method to child.

If I paste the same script in my main.as then it adds the movie clip perfectly fine? I'm getting the hello message back so its definitely linked ?

This is my code.

//Importing movieclip.
import MainBackground;

//We need to refer to the main background. 
var mainbackground:MainBackground = new MainBackground();   

//We then need to posistion this. 
mainbackground.x = 32;
mainbackground.y = 85;

addChild(mainbackground);

trace("Hello");     

asked 3 mins ago

برچسب: نویسنده: استخدام کار تاريخ: جمعه 24 ارديبهشت 1395 ساعت: 20:06

صفحه بندی