flash q
- Started
- Last post
- 12 Responses
- tonks
bit of a long shot depending whos viewing really. Is anyone familiar with this tutorial?
http://www.canfieldstudios.com/f…
It doesnt come with any explanation so Im wondering how you change the text within each button and also how I can get each button to actually do something?
cheers
- ********0
it looks like the numbers on the buttons are coming from the instance names of the buttons on the stage...
yup, exactly... try adding another instance of a button and gie it the instance name. mvcBtn9
then there'll be a button with a number 9 on it...
basically it spools through the instance names and places the number after the mvcBtn in the
textField of the button in question, via seeting the var on the button, as opposed to targetting it's ._text property... not the best way.Not to be cheeky but I think this tutorial is probably more advanced than what it is you are looking to do (not to mention they use a textField's var instead of targetting it properly - so no matter how complex not a good thing to learn from,,,)
- ********0
what is it you're wanting to do anyway?
- tonks0
hello. thanks for that!
well im really after an easy way to create more than one button. So for example I just create one button and then duplicate it however many times I want. The think I liked about this tutorial is that it had stay clicked states and you can change the text within each button!
Do you know any better ones? Would really appreciate your help.
Thanks.
- ********0
damn, if I had a spare 30 minutes or so I'd knock you up an example..
if you're still stuck over the weekend gimme an email ;)
- tonks0
i might have too. Its one of those things that seem so fundamental to everything I do but I dont really know how to do it properly. and once I have a working example its going to make my life a whole lot easier.
Thanks man.
- Timson0
the 'random movement script'-tutorial will ghive you insight on how to place and duplicate library-instances on the stage.
- ********0
brilliant idea Timson!
I was going to say tonks, the most important part of it is the concept, not specifically how to do it with buttons...
the principles you learn will aid you more than specific examples anyday, the more you do the more true this becomes with ActionScript until it is all extremely abstract ;)
- tonks0
cheers guys. i'll give it a whirl.
- ********0
any queries gimme a shout, unless you are a queery in which case speak to chossy
- davi-t0
Look this up here on the PVN..someone already asked this with the same exact link a few weeks ago.
- tonks0
errrr yeah that was me. heh.
as you can see i really need to fix this problem. I just went back and read the post. I didnt see it before thanks very much.
(im such a flash leecher, i hate myself)
I think the problem is I im not really using functions much so dont entirely understand them in this particular example. I would love to see it though.If someone could just set up an .fla with 2 instances of 1 button that shows each one with a different text in it and a different action assigned to each one and most importantly so it works with a 'clicked' state!
....I will be the happiest man alive ;)
- ********0
you have mail tonks.
It is just a very very simple example mind... but the concept should be clear...