ActionScript 2.0 :: Making Mc Array "explode" In All Different Directions When Click On One Mc?
Aug 2, 2010
I have a rollover and rollout effect in my for loop that affects all of the mcs in my array. But when I click on one of the mcs I want all of them to "explode" in all different directions. Obviously I would accomplish this by setting it up in my tween so that they all go in random directions. But I'm not exactly sure how to do it in my for loop. The way I have my onRelease function set up right now only makes the very last mc tween. How do I make my tween affect all of my mcs?
My code:
Code:
import com.greensock.TweenMax;
import com.greensock.easing.*;
var linkageID_array:Array = new Array();
[code]...
View 1 Replies
Similar Posts:
Jan 26, 2007
I wanted a sprite to move round on the screen when a play button was pushed. I have a left and a right button which store strings "left" or "right" into the next positions of an empty array called history.
When i push the play button i want i want the sprite to move either left or right according to what commands are in the array. My code just seems to play one single command and then stops when i hit play again it just repeats the same command.
Is there any way to make it play through all commands in the array one after another?
Here's the loop that i was trying to use.
[Code]....
View 3 Replies
May 11, 2010
I want to explode a bitmap image. so I created some Array but I can not go ahead. Her is the code:
[Code]...
ok when i say Tweener.addTween(arrayOfBitmaps[i]. the animation is just made from the last part o fthe array and not by the whole group.
View 1 Replies
Oct 24, 2010
I have a moving vehicle on the stage, which should change directions according to where I click on the stage.I already made it work using this formula:var angle:Number = Math.atan2(dy,dx)*180/Math.PI+90;However, I need the car to tween to the correct angle, instead of just "jumping" to it. While this is easy enough to do, the car sometimes takes the longer turn (especially when I click in the bottom-left quarter of the stage), and it seems unnatural.
View 0 Replies
Apr 4, 2011
is there something like timeline efects in CS5? i cant find them anywere, and if there arent, how can i make an object explode? thnks
View 1 Replies
Jul 7, 2011
How to convert this form PHP to AS3?[code]...
View 1 Replies
Mar 3, 2011
I have some letters and would like to morph each one into a bubble - think clear floating bubbles and then have each one explode individually one by one. I tried breaking apart each letter and then doing a shape tween into a bubble shape. Then applying the Explode effect. It kind of works but when it's doing the shape tween there is some white space that looks weird during the transition depending on the letter being used such as "D." How to make this work more smoothly? I guess I could also just use a bubble type font but then that defeats the purpose of having each letter turn into a round bubble.
View 2 Replies
Aug 11, 2003
I'm trying to do that exploding text effect when it gets converted into pixels and the pixels wander around and recombine to form another word.Themovieclip of a square 5pixels wide and high has instance name of 'a'. What I'm doing right now is to create an array of points and duplicate the movieclip of the pixel and make it move to those points.[code]
View 2 Replies
Jul 13, 2009
Following is the code I paste in the first frame of layer1..it was working before I added for loop..I am tring to explode all six balls on the stage clicking..but what is missing ?How can I get it work ?
for (var i = 1; i<6; i++) {
ball[i].onPress = function() {
ball[i].gotoAndPlay("explode");
};
}
View 2 Replies
Dec 7, 2009
I have an mc, that I want to shatter and float away. I know I've seen classes that do this sort of thing. Have you heard of any?
View 2 Replies
Jul 23, 2009
I want a sound to play every time Code: Select all(explode) is triggered. I have had little success trying to attach audio when it happens, so i decided to make an empty 2 frame long movie clip, frame one has Code: Select allstop(); for obvious reasons, and frame 2 has no action but it has the sound "blast".
[Code]....
Is the code i'm using, i am getting no error reports but no sound is being played. What am i doing wrong? (the audio i want to play is named blast and has an export name of blast, the movie clip is named blastmc and has an export name of blastmc)
View 2 Replies
Sep 26, 2008
making custom click event in which I'm not getting any output and also not getting any errors in it.. following is the code
View 3 Replies
Sep 20, 2011
I am looking to explode an image backwards. Example, I have an image and at frame 1, Alpha is zero. At frame 20, the image is at Alpha 100%. From frame zero to 20, I want to have an exploded view come together by the time it reaches frame 20. I am reading this on web, and I don't have the 'Insert - timeline effects - explode' on my file menu. Is this a plugin that I have to install? This is the site I am reading. [URL]
View 4 Replies
Jun 2, 2010
[URL]
I want to make the thumbnails scroll left and right when a button the left and right side is clicked instead of the mouseover left/right scrolling. Essentially when the button is release I want the xml images to scrool to the next set. I have experience making that work with images embedded in flash but not with XML feed images.
What would i have to change to make the file work?
View 1 Replies
Jan 24, 2011
I have a component based on canvas, and within that component I have two images. I have the component listen for a click and when that event occurs one image goes transparent and the other becomes visible. This part works perfect. Now, on clicking that component, I also want to do something to the parent canvas, I already have this working for more basic types (image, canvas, text, etc) but the problem with my component is that the click event has the internal image as the target, so what I want to happen to the outside canvas is happening to the canvas of the component. How do I make my component as a whole the target of any clicks on it?
3.5 SDK
View 2 Replies
Aug 12, 2009
i have a few buttons that use loadmovienum to load a few clips into levels. The code on each button is something similar to:
on(release){ loadMovieNum("print_index.swf",1);printbutton._visible = false;webbutton._visible = false;illusbutton._visible = false;threedbutton._visible = false;retouchbutton._visible = false;}
But because the print_index movie slowly scrolls across the stage rather than immediately replace it, there is a moment where the button turns completely invisible after the click. Perhaps the bigger problem is that it doesnt make any of the accompanying buttons invisible like it is supposed to- only the one that is clicked.
View 3 Replies
Dec 4, 2011
I am an artist trying to remake my website...I have a picture of a window on my homepage. The window is a movie. When clicked on, the window lights turn on and a grid of thumbnail pics appear. Each thumbnail is a movie clip. When a thumbnail is clicked on, the movie plays and a larger image appears over the window. The problem is, the window is still active underneath the large image, so if I click on the large image, I am really clicking on the window movie clip underneath, and the thumbnail grid disappears-starting the window movie clip over. How do I make the window clip inactive after it is initially clicked? Also, I would like the larger images to end their movie clips after another thumbnail is clicked, so that there aren't large images piled up on top of each other.
View 6 Replies
Mar 2, 2010
I have an ArcGIS map created with Flex. The labels created dynamically are the towns on the map. We have some PDF files that have some information about the towns on the map.
Is there a way to make those town labels clickable so that they can display the PDF information on a new page?
View 1 Replies
Jan 28, 2012
I have a movieclip that moves arround on my stage. I'm looking for a way to tell what direction my movieclip is going in AS3. (up, down, left, right
View 1 Replies
Sep 16, 2010
I have been googling my butt off I can not find anything about AS3 and shooting in different directions.
I just need to shoot in the direction my char is facing.
I have this so far which work flawlessly ;-)
function Shoot(event:MouseEvent):void { trace("shoot");}
oh also I can get the direction my hero is facing using trace "character_mc.rotation"
View 3 Replies
Feb 8, 2009
I'm creating the action script for a VRC/LRC Program [URL] The program is made up of a 5x5 matrix of input text boxes which is limited to only one character which can be either one or zero. The rows and columns will be XORed.The last column and the last row will show the results. The results will depend if the user wants and even or an odd parity.. I have trouble in XORing the textboxes.
View 8 Replies
Oct 28, 2008
For my work i'm trying to get an Array properly into a text field. The array is being taken out of XML and then turned into the array and fed into a textfield. But it shows up like this:
[Code]...
View 2 Replies
Jun 4, 2009
I'm trying to clone The Legend of Zelda (NES) Link's movement.
This what I have:
PHP Code:
stop();var leftKeyDown:Boolean = false;var upKeyDown:Boolean = false;var rightKeyDown:Boolean = false;var downKeyDown: Boolean = false;var linkSpeed:Number= 7;// Link MovementLink.addEventListener(Event.ENTER_FRAME, moveLink);function
[Code].....
View 13 Replies
Dec 31, 2011
Ok, so I got this huge image of a map. I put a Mask over it so it will fit on a small screen. But....I want users to be able to view the whole map but click on arrow buttons that will transfer them in all 4 directions. I know I can do this with keyframes, showing different parts of them map each stage....But isn't there a simplier way? Some sort of actionscript code that will tell flash to scroll how many pixels left or right or up or down? And that it will know that the image will stop here so don't scroll more than that?
View 4 Replies
Apr 24, 2009
I've a got bar (songBar) on which it will appear the artist and the song name (artist_txt). What I want is when the title_txt width is larger than the songBar.width, the text to scroll from right to left, and when the tween is finished to scroll from left to right (all this tween has to be a loop). If the width of artist_txt is smaller or equal to the songBar.width then artist_txt is aligned in the center of the songBar. All I'm trying to code it's just what you see in winamp player.
Code:
var textTween:Tween;
if (mp3player.artist_txt.width > mp3player.songBar.width){
textTween = new Tween(mp3player.artist_txt, "x", Linear.easeNone, mp3player.songBar.x, mp3player.songBar.width - mp3player.artist_txt.width, 1, true);
} else {
mp3player.artist_txt.x =(mp3player.songBar.width + mp3player.songBar.x)/2
I don't know how to reverse the tween when it ends, how to create the loop and how to stop the tween if the else statement comes into play. i don't want to create the animation on timeline, all I want is code.
View 2 Replies
Jan 27, 2009
I am trying to make gallery of images located on server(local folder currently). I put pics in loader or grid. But I wouldlike to make action script which with on button click will takepics names as array from this folder and will great gallery. Thisfolder will be updated very often.
View 1 Replies
Jun 17, 2009
I have a movieClip called "button" within another movieClip called "movie1_mc" I want the "button" movieclip, which also loads XML on frame 12 of "movie1_mc to vanish on or after frame 13
This is the code I have in place but, "button" movieClip isn't disappearing. This is my first time using XML and Flash
//Code to "button movieClip disappear//
if (_root._currentframe == 13) {var linkname:Array = [_visible=false];}
View 1 Replies
Sep 18, 2010
Can I make an array of movieclips, and then make all of them visible? some-thing like:
ActionScript Code:
myArray[1] = new MovieClip();
myArray.visible = true;
[code].....
View 2 Replies
Oct 12, 2006
Is there a way to make a new array like an old one but have it not be a reference?
View 2 Replies
Nov 3, 2006
I got an array with much information (just numbers). I don't want the SWFDecompiler to read this array, so how can I deceive it? The array looks like this (not exacly, but):
[[[1,2,32,4,54,6,74],[19,2,23,44,5,3,7]],[[0,4,42,49,9,5,14],[19,2,8,64,1,3,1]]];
But it's way longer than that. Anyway, like I said before, how can I deceive the decompiler so it can't read my array?
View 5 Replies