This content has been marked as final. Show 3 replies
you could but why bother? if every movieclip in your swf is going call actions() why not just call actions() when a movieclip (on the main timeline) is pressed? or are there movieclips in your swf that aren't supposed to call actions()?
basically its a word search application i need to create.
Which is the reason for the grid and each grid has its own letters which are stored in an array and are called into the text boxes which are embedded within each squars movie clip when my script initializes. I need all the movie clips to initially have all the same actions which will eventually be., on roll over change colour, on roll out change colour, on click change colour, if correct change colour if incorrect change colour. they are the actions i will be applying.
However because each one has its own letter i also need each one to have their own unique properites which i will programme seperately.
just knowing whether i can click anywhere on the stage and find out the movie clip name so that it can then be stored into a variable would be really helpful if anyone could show me how to do this if it is possible to do.
you can't click anywhere on-stage but you can click on any movieclip and store its instance name in a variable (say mcName). if you DON'T have any onPress methods defined for your movieclip you can use the following. if you have onPress methods already defined and you want both your previously defined onPress handlers and the new onPress handler to work, this can be done too.