adobe-flash-cs3

Loading array of display objects using shared objects in action script 3.0

你说的曾经没有我的故事 提交于 2020-01-07 05:53:30
问题 I'm trying to load an array that contain some display objects, the program lets me to populate the array with circles and save them to a shared object, then, I can trace the content of my array using the load button. The problem is that i can't load the array after that I restart my program. It traces me this message:"objects loaded: ,,," This is the code: var SO:SharedObject=SharedObject.getLocal("myFile", "/"); var arr:Array=new Array(); var counter:Number=-1; addBtn.addEventListener

Hide a Button in AS3?

◇◆丶佛笑我妖孽 提交于 2019-12-01 20:55:49
问题 I have a button called myBtn. In my actions in Frame 1, I have tried both: myBtn.visibility = false; myBtn.enabled = false; Both give me the same error: 1120: Access of undefined property myBtn. 回答1: ok. There are a couple of ways that you can do this. The first just involves using the timeline. Method 1 - Timeline Step 1. Go to Window tab, then select components. Drag a Button instance onto the stage. Step 2. In the properties panel, where it says 'Instance Name', replace with "myBtn" (make