-1
出于某种原因,想看看时,如果它的工作,我得到类型错误:AS3 - 不能使用SharedObject?
Error #1034: Type Coercion failed: cannot convert "[object SharedObject]1" to flash.net.SharedObject.
这里是我的代码:
stop();
var savedstuff:SharedObject = SharedObject.getLocal("myStuff");
addEventListener(Event.ENTER_FRAME, enterFrameEvent);
function enterFrameEvent (event:Event){
savedstuff += 1;
trace (savedstuff);
}
bootoon.addEventListener(MouseEvent.CLICK, clicks);
function clicks (event:MouseEvent){
gotoAndStop(2);
}