For instance, if your instance code is mc for your graphic, do you put want you want like rotation.mc.180?
Show me an example plz.
An instance name represent your movieclip or button, if u want to call an event handler for example, it should look like if your mc was called “myMovieClip”:
myMovieClip.onRelease = function(){
_root.gotoAndPlay(12);
}
First of all, u should put this script in yar _root (main) timeline, this script will goto frame 12 once myMovieClip Instance is Released.
And offcourse that goes to other commands in actionscript!
yours,
h88
Oh yeah and how did you know to use those AS words?
Here is another example:
This will set the alpha of the movieclip “H88” into 20:
_root.H88._alpha = 20
Oh and another one:
This will disable the visibility of the movieclip “myMC”:
myMC._visible = false
You don’t need to put = function () ( .
Thx for all the help, you made me know about AS way better and I thank you for that.
L8r
if you visit macromedia.com and look for the link, there is a actionscript dictionary availiable. This will tell you all of the functions, methods, and properties that are predefined for use in a/s.
As for how we know which ones to use,… that’s usually learned through reading books or doing tutorials. An excellent one is “ActionScript, the definitive guide”. MX’s version of this great text is still due to hit the shelves so we’re all waiting on that one, but if you’re using 5.0, that version of ASDG is already out, and is a great resource for learning basic and advanced actionscript.