Group And Move Bunch Of Buttons And MovieClips
Apr 9, 2009I need to be able to click and drag multiple objects at the same time I can make it drag 2 objects but when I add another one it doesn't work?
View 2 RepliesI need to be able to click and drag multiple objects at the same time I can make it drag 2 objects but when I add another one it doesn't work?
View 2 RepliesI have created 25 MovieClips on the stage in 5 X 5 matrix.How can I treat 5 movieclips in each row as a group of movieclips so that I can apply same set action to them?(Similar to RadioButton functionality. )
View 6 RepliesI'm trying to apply a ChangeDepths() to a bunch movieclips that I've nested inside a main movieclip which I'm using as a mask. The ChangeDepths() function worked fine when the clips were not nested, but after I placed them in a new movieclip, I get this error:
[Code]...
I'm trying to dynamically generate a menu for a site. I have one movieclip that i duplicate and i want all those duplicates to share a mask.
[Code]...
This causes only the first menuitem to use the mask. After some searching i found that i should combine all these generated movieclips into one container movieclip and ultimately mask that container with myMask. I tried some createEmptyMovieClip, attachMovie & setMask combo's but it doesnt seem to work.
I'm trying to dynamically generate a menu for a site. I have one movieclip that I duplicate and I want all those duplicates to share a mask.
Code:
for (i=0; i < 5; i++) {
_root.menuitem.duplicateMovieClip("menuitem"+i, i);
_root["menuitem"+i]._y = menuYpos;
menuYpos += 35;
_root["menuitem"+i].setMask(myMask);
}
This causes only the first menuitem to use the mask. After some searching i found that i should combine all these generated movieclips into one container movieclip and ultimately mask that container with myMask. I tried some createEmptyMovieClip, attachMovie & setMask combo's but it doesnt seem to work.
I am making a thing where a bunch of square shaped movie clips will be placed on the desktop, and will be draggable. I was wondering if there was a way to get them to stick together... similar to the snap to objects tool. Like say I am dragging one and I want to make a large square out of the smaller squares. I want them to snap together...
View 5 RepliesI using this array to create rollover and rollout events for a bunch of movie clips, I only have one on my stage at the moment during testing. When I rollover and out I see the trace but no animation, if I change event.target for the movie clips instance name it works so its obviously something to do with how I am referencing the clips. These clips are just on the stage not within another movie clip.
Code:
//Button Actions
var buttonArray:Array =
[ whatIs_mc, ];
function initSite():void {
for (var i:Number = 0; i < buttonArray.length; i++) {
[Code] .....
I have a loop which creates a bunch of movieclips and sets them on the stage.As I create each one I attatch an eventListener to it.My problem is that when the eventListener fires, the function it calls always works on the first mc added to the stage, not the one that fired the listener.How do I fix this?Here's a bit of the code:
Code: Select allfor (var i:int=0;i<numOfItems;i++) {
item = new Item();
//etc etc[code].....
I am trying to create a bunch of buttons (actually movieclips) with code and have them have their own unique onPress event.
View 1 Repliesi cant seem to get a bunch of different buttons to work at once.this is a pretty complicated movie but the buttons are all simple.heres what i need.a next and previous frame button at the bottom
3 play button links that need to show a movie. (i was thinking of just using gotoandstop and having three frames at the end of the timeline for these movies, but if theres a way to just have the flv start playing ontop of the current frame on release that would be better.and the last thing is just some links to external urls from buttons made of ads and what not within the magazine.now i know how to make all these work by themselves but when i add the code for all these nothing works.i'll attach the .fla as well as an .swf.
I am trying to assign events to a bunch of buttons at once. To test out to see if my theory works i tried this code with 3 buttons on the stage named test1, test2, ect.
[Code]....
I am trying to assign events to a bunch of buttons at once. To test out to see if my theory works i tried this code with 3 buttons on the stage named test1, test2, ect.
Code:
var e=0
while(e!=4){
_level0["test"+e].onRelease = function() {
[code]....
they each trace something, but its the same thing?! tester4<<<
I have a set of button for moving the movieclips up, down, left and right. And I wonder how to make it so that I can move the three movieclips together at the same time when I press the moving button .
View 3 Replieshere is some AS3 code I wrote to have a bunch of buttons load some MoveClips. I am using a label to tell the button where to go to play the appropriate movie clip.
It all works fine, but it seems so repetitive and I keep reading about making the code more streamline, but I am having trouble doing just that.
[Code]...
I have a dynamically created textfield, and I would like to convert this textfield into a movieclip containing a childmovieclip for each letter of the text, so that i can animate the letters individually (for example treat them as particles and make them explode). Of course the converted movieclip should still look the same way as the original textfield.
View 3 RepliesI have lots of buttons on the stage but they all do the same thing, ie. CLICK & DOUBLE_CLICK.How can I group these functions so that if a button in a certain group is clicked then the functions of buttons in all other groups are disabled?
View 2 Replieswhen i press my button i then need to show a group of around 15 buttons so the code would be something like....
ActionScript Code:
function but1Click(eventObject:MouseEvent) {
button2.visible=true;
[code]....
how to tween the buttons separately.
View 1 RepliesIn Flex, sometimes when you need to clear a form you run into the problem that radio button groups seem to defy clearing: try as you might, setting selected=false on all buttons, setting selection=null on the group, doing both, doing them twice, etc., you always seem to end up with one pesky little radio button that's still selected. How do you solve this and restore the radio button group to its initial no-selection state?
View 7 Repliesi am working on small project where i find my self stopping at this rateMmm.. this project is dealing with buttons placed in MC name = main.ButtonCon the main i am programing those buttons as if
Code:
_root.main.ButtonC.b5.onRollOver = function() {
this.swapDepths(11);
[code]........
I have a movie with 5 movieclips named section1_mc, section2_mc, section3_mc, etcI want to advance to frames 1 - 5 by clicking in each of the movieclips. Do I need to add the onRelease to each of them, or is there a way to do it once for everybody. I tried the code below, but when I click on any of the movieclips the timeline goes to frame 5, the last one.
Code:
for (i = 1; i < 6; i++) {
_root["section" + i + "_mc"].onRelease = function(){
[code].....
well i want to make buttons that on rollover move to left, on rollout move back to their initial position, and if clicked, they but stay this time at the final rollover place, and be there until something else is clicked. When something else is clicked, the previous button , returns to its initial place. So i ve got it all figured out except for the freeze and move part when the buttons are clicked. All it does now , is when they are clicked they freeze at the position i want, but i havent got a clue how to update them, after so they start moving back, and reacting on rollover and rollout, when the next button is clicked.
[Code]...
I need to reset or deselect a group of radio buttons. How do I do that ?
View 2 RepliesNew at AS3, more of a designer than coder but I try. This will probably be easy for this forum's pros: I have 6 main buttons and 50 other buttons. When people click on one of the six main buttons, I need the 50 other buttons labeled from t_1 to t_50 to be disabled (mouseEnabled=false)
I don't want to write the same line of code 50 times so I'm trying something like this. This is the code for button#6:
butt6.addEventListener(MouseEvent.CLICK,menu6Handl er);
function menu6Handler(e:MouseEvent):void
{
//other tasks, etc...
[Code].....
i want to make a group of buttons, this buttons have to be in constant movement, random movement, so i download an example from this site, So now i have all the buttons moving, and the quesition is this... how can i make the random movement stop, on the rollover, and make it start again in the rollout.... thats the whole stuff..
View 6 RepliesI have 6 main buttons and 50 other buttons. When people click on one of the six main buttons, I need the 50 other buttons labeled from t_1 to t_50 to be disabled (mouseEnabled=false).I should add that all 50 buttons are in a sub group:this.wholeTree.t_1
I don't want to write the same line of code 50 times so I'm trying something like this. This is the code for button#6:
butt6.addEventListener(MouseEvent.CLICK,menu6Handl er);
function menu6Handler(e:MouseEvent):void
{
if(this.menu6.currentFrame==15){
[Code]....
This returns 2 errors: The first one is warning 3596 Duplicate variable definition: I tried assigning the variable definition just once at the beginning of the function but then it no longer works and the buttons 1 to 50 don't get disabled. The second error is TypeError: Error #1010: A term is undefined and has no properties.at main_Sustainability_fla::MainTimeline/menu6Handler()
I haven't been able to find the answer to this: I have a quiz-like animation that uses a group of radio buttons, I need the group to reset, clear or deselect the previous selection after submitting the answer on each question, is that possible?
[Code]....
i have 2 movieclips: i want to move both of them but the second movie clip will only move if the first clip reach his final destination how do i do that?
View 2 RepliesI am having trouble with a job I am doing at the moment which has an mc with buttons within it. I want it so that when I roll over the mc it tweens from a small version to a larger version, and on this mc there are some buttons. At the moment I can get the mc to move but the buttons remain inactive and also the rollover states on the buttons don't work. I have attached a simpler version of what I am trying to do to this post.
View 3 RepliesI'm creating a menu system, the text buttons should, on rollover, move all buttons to the left (of the button currently rolled over) 100 pixels, in the gap created a sub menu running vertically will appear which will break into a 2nd horizontal submenu etc. I'm still in the early stages, and have hit a stumbling block, I placed a trace (this); cmd in root of the roll over function then again in each segement of the IF/ELSE loop inside that fuction. The trace CMD in the root of the rollover gives me the feed back _level0.btn1 or 2 or what ever button I have rolled over but the ones inside the IF/ELSE loop all say _level0.btn0 regardless of the button I roll over!
[Code]...