Flash Help!
- Started
- Last post
- 5 Responses
- NOVOLUME
This is probably really easy, but I've never known how. I have a movieclip in flash that contains a transparent button. I'm planning on using this movieclip over and over across the site but I want the actual button inside the clip to be doing different things in every instance. How do I do this without duplicating the symbols?
Thanks in advance
- tonks0
not sure you want each button to do but if you want them to be individual you cant really use the same mc because whatever you do to it will effect everything else. If each have there own differences then they have to all be different? Am i making sense??!
- NOVOLUME0
I was sort of hoping that I could have a generic piece of code on the actual button and then maybe something on load of the actual movie clip that tells it what to do. Not sure if I've worded that very well.
- tonks0
yeah you can do that... sorry dude unless i know what your doing I cant help.. Theres a million ways to do something in flash.
- UndoUndo0
if yr button is called myButton you just need to write the code for the button after it has been duplicated
ie. MC1.mybutton.onPress = function(){
// do something
}then after second duplication
MC2.mybutton.onPress = function(){
// do something
}dont 'hard code' script on the actual button itself, just give it a name
- NOVOLUME0
Wicked, I think that will do it.
Thanks alot.