02-11-2005, 06:53 PM
Is there a way to place a button inside a simble?
I mean... I know you can... I was wondering if you could place an action to this button put it inside a simble and still make it work?
so... first you have to create the button simble... then... create another simble... in this second simble you insert the button simble and add an actionscript or url to it. My question is: when you click on the button when it is inside the second simble... will the actionscript be executed?
... hope I made myself clear :o
02-11-2005, 09:52 PM
i think you will have to mask the top button with the 2nd button, but y would u want to do such a thing? y not just make one button with different up down over and hit states?
02-12-2005, 02:23 PM
yeah... I know it sounds ridiculous do do such a thing... But I was actually thinking of maybe adding more than one button to a simble. So by placing ONE simble I would actually place like three or four buttons. Why would I want to do that? Because this way I could easily create a motion tween for the buttons. ´cause if you place several buttons on one layer and try to make motion with them, the motion will look wierd... right? :confused: but if I had only one simble I could do a smooth motion tween. :thumbsup: so really my point was to make a movie simble or something and in this simble add other button simbles(so the movie simble would have actual buttons inside it)... the problem is that if I add actionscripts to these buttons they won´t work since the actionscripts are INSIDE the simble and not ON it.
so... I guess what I really am wanting to know is how to add and actionscript inside a simble and still make it work when I place the simble in the movie clip... sorry... Im having a little bit of trouble explaining myself :rolleyes:
04-05-2005, 03:52 PM
Yes, you can put action script on a button or buttons and then save them with their actionscript attached as a movie clip symbol. The buttons can still do their action script even though they are inside the movie clip. You need to be careful with your paths though, because buttons inside a movie clip are not part of the main timeline. For example, if you want the main movie to stop when a button is clicked, you need to put _root.stop(); and not just stop(); in your button script. Also, if you are passing variables to the button from the main timeline, you need to specify them as global variables: _global.myvariable="widget" NOT just myvariable="widget"
On the other hand, couldn't you put each button on its own layer in the main timeline and do your motion tweening that way?
Hope this helps!