Hi, did you get this sorted out? let me know, then I can help you. But the basic answer is that your event management in as3 is quite a bit different than this tutorial which uses as2. I suggest that you maybe set your publish settings to as2 for a start, just to get the hang of it.
Really good tutorial! But i am stuck at 3:30 because flash says that I can't place code directly on objects in actionscript 3. How did you walk around that?
@MysteryKeytarGuy you can write script only into movieclips. So convert your graphic into a symbol by pressing F8 and choose movieclip. It's understandable you are confused, because this tutorial is actionscript 2, regardless of the title. And in AS2 you can write script into everything, and you don't add EventListener. Due to this fact, this tutorial is pretty useless to me.
hi there everyone. my channel has changed to the following name
toolsforteaching
I'm uploading new tutorials in flash and Unity3D, please follow!
toolsforteaching 17 hours ago
This has been flagged as spam show
actually, in actionscript 3.0 you have to add an event listener to push a button... the real script should be something like this:
var testArray:Array = new Array(); // create the Array
// lets assume that the instance name for the button is but1 and the function name = see
but1.addEventListener(MouseEvent.CLICK, see);
function see(m:MouseEvent){
testArray.push(fillArray.text);
arrayOutput1.text = testArray.toString();
}
pablogarin 2 days ago
Comment removed
pablogarin 2 days ago
this is not actionscript 3!
junkiego 4 months ago
Hi, did you get this sorted out? let me know, then I can help you. But the basic answer is that your event management in as3 is quite a bit different than this tutorial which uses as2. I suggest that you maybe set your publish settings to as2 for a start, just to get the hang of it.
Lodewikus1 6 months ago
Really good tutorial! But i am stuck at 3:30 because flash says that I can't place code directly on objects in actionscript 3. How did you walk around that?
MysteryKeytarGuy 8 months ago
@MysteryKeytarGuy select a blank frame in a second layer and goto actions.
george3dmax 4 months ago
@MysteryKeytarGuy you can write script only into movieclips. So convert your graphic into a symbol by pressing F8 and choose movieclip. It's understandable you are confused, because this tutorial is actionscript 2, regardless of the title. And in AS2 you can write script into everything, and you don't add EventListener. Due to this fact, this tutorial is pretty useless to me.
NavonWegen 3 months ago