Random Animation Question
Hi, Firstly I would like to add thanks to the many posters on here with excellent informtion for newbies to flash like myself, it is by far the best site for info I have found so far. With this in mind I would like to ask my first question, and a plea for help from those with greater knowledge than I. I love the random animation code http://www.kirupa.com/developer/mx/random_motionMX.htm My question is, is it possible to add to that a direction? For example I want to use a fish as my movie clip to randomise, this code works absolutly brilliant, apart from when the fish goes left it appears to be swimming backwards! As far as I am aware Reverse is not the most common gear for fish, so is it possible to add something to the code that says if movement = left flip animation horizontally, so the fish always appears to be swimming forward? Thanks in advance for any helpTilly
KirupaForum > Flash > Flash 8 (and earlier)
Posted on: 09-17-2006, 05:33 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
- Help With Random Animation
- Random Animation
- Random Animation Help
- Random Animation
- Help With Random Animation
- Random, Random Animation :)
- Random Background/animation ?
- Duplicate And Random Animation
- Animation On A Random Button
- Random Number Animation
- Random Animation W/ Boundaries
- Random Balloon Animation. Help Please.
- Random Effect On This Animation
- Random Animation On Click
- Random Animation Project
- Random Curved Animation
- Best Way To Do A Random Rollover Animation
- Random Generated Animation
- Random Playback Of Animation
- Animation (Random Movement)
- Best Way To Do A Random Rollover Animation
- Random Line Animation
- Random Animation For Multiple Clips
- Random Background Animation Using Buttons
- Random, Scaling Animation, Per Viewing
- Random, Scaling Animation, Per Viewing
- Animation - Random Speed, Direction
- Animation - Random Speed, Direction
- Random Ball Animation In Wheel
- Random Animation Of Alpha Property
- Random Animation Of A Pulse Travelling Along A Circuitboard
- Help With Tutorial On Loading Random Movies Into Animation--
- AS 2 How To Handle An Image Queue And A Random Animation
- Animation - Random Speed, Direction, Following Mouse Cursor
- Looking For A Code To Make The Flash Animation Start At A Random Key Frame
- Preloader With "random Movie" Animation?
- Random Random Random Timer... Problems
- Need Urgent Help How To Combine Transition Class Tween Animation And Keyframe Animation?
- OnMouseOut{freeze Button Animation, Reverse Animation Back To..}
- Playing A New Intro Animation On Release During The Previous Outro Animation?
- Simulating Hieracical Animation Tween Mixed With Timeline Animation..
- Play/Pause For Animation/Nested Animation And Sound
- Help Linking Hit Detection To Animation In A Game (death Animation)
- Stopping Animation From Playing Before Another Animation Has Finished (On Keypress)
- Trouble Adding Animation To Existing Rollover Animation
- [CS3] Create Animation That Runs From Button Click After Another Animation Has Run
- Making An Animation Fade Into Another Animation When A Button Is Released?
- PLEASE HELP - URGENT Load Random Swfs From Individual Random Sets
- Random Movie Clips To Play For Random Amount Of Time
Help With Random Animation
I need to add a random animation and when finish one it should start another one and so on, I tryed to find some example like this but didn't found any
Can someone please help me to know how to do it?
Random Animation
Hello, I'm still new to this whole flash thing, but meh I'm trying to learn. xD
I dont know if this is the right section or not so if it isnt, I apologize now. :P Anyways what I'm trying to do is have an image fly across the screen at random speeds, random heights and spinning randomly. Also I would like to have the multiple instances of the same image flying across the screen at a time.
I know its a lot, but hey Id greatly appreciate your help
Random Animation Help
Hi,
I have created a nav bar and i have a logo that contains three objects. What i was hoping to do was for these letters to randomly rotate as the mouse is moved over the different buttons on the menu. Does anyone have any suggestions about how i might be able to create this effect? I'm trying to get the effect so that the rotation is animated, instead of just randomly changing the rotation of the objects. I thought about createing a random number when the mouse moves over the button and the using a time interval to run through the animation. Does anyone have any ideas? Thanks in advance for any help
Random Animation
HOW DID PUT MOVIES AT RANDOM WHEN THE USER IS NO INTERACTING WITH PAGE(EX.IF THE USER IS NOT CLICKING ANY MENU, A ANMATION SHOULD BE PLAYED. CAN ANY ONE HELP
Help With Random Animation
Hey guys, I'm working on a animation for a charity and i need to make some birds fly around the stage randomly, and change _xscale depending which direction they are moving.
I have an if() statement to check if the new destination point is smaller or bigger than the current _x position of each bird. This works perfectly, but when i use the continueTo() method, that if() statement isnt being called.
could someone please help me and tell me what im doing wrong.
here is the code for the birds.
************************************************** ******************
function flight(){
for (var i=0; i<birds; i++){
var bird:MovieClip = attachMovie("crane","crane"+i,i+1);
bird.gotoAndStop(Math.ceil(Math.random()*10));
bird._x = Math.random()*1200;
bird._y = Math.random()*400;
var birdScale:Number = bird._xscale = bird._yscale = Math.random()*50+20;
var destPointY:Number = Math.random()*500;
var destPointX:Number = Math.random()*1200;
if(destPointX < bird._x){
bird._xscale = -birdScale;
}else{
bird._xscale = birdScale}
var tween1:Object = new Tween(bird,"_x",Regular.easeInOut,bird._x, destPointX, Math.random()*5+2, true);
var tween2:Object = new Tween(bird,"_y",Regular.easeInOut,bird._y, destPointY, Math.random()*5+2, true);
tween1.onMotionFinished = function() {
this.continueTo(destPointX,Math.random()*5+2);
};
tween2.onMotionFinished = function() {
this.continueTo(destPointY,Math.random()*5+2);
};
}
}
************************************************** *****************
Thanx in advance for any help.
Random, Random Animation :)
Hi all
im trying to jump to a random animation (label) with a random delay between the jumps.
here is the code that is in the first frame
Code:
Pause = setInterval(blitz, random(30000)+15000);
function blitz() {
var aLabels:Array = ["one","two","three","four"];
tmpNum=Math.round(Math.random()*4);
trace(tmpNum);
gotoAndStop(aLabels[tmpNum-1]);
}
but ... its not working ... the only thing that happens is that the first animation is looping ... im using flash 8.
anyone got a hint for me what im missing?
Thanx
Tim
Random Background/animation ?
Hi folks,
i've got an question. I want to make an menu for my webpage and so i will creat some animation (example: a dot which follows a line) but i will make it five or six of this animations so that the menu dosn't will be boring. ok now i've got an question: is there a way to make this animations randomize? in one of my flash books i found a script to shange the background after every start (its the code for the background):
Go to an play (Random (_totalframes))
Here the background are on one frame per movie (as background). Is there a way to write an script to randomize some different screens and that there will be a random brake after one screent with the differnt animations (i thinks it's boring too if a animation will change after one ends). And how can i realize this random brake.
I hope someone can help me
Duplicate And Random Animation
Hi
I have a box (130 wide, 432 high) sitting on the hard left of my page. I want to get the box to populate line by line from the left, so ideally I would have 216 lines (lines are 2 high) zooming in from the left side. So I assume I would use duplicate move clip to save animating so many lines, and I also want the 216 lines to come in at different speeds or times, but eventually all end up as a solid box.
I can duplicate the lines OK
thistimeline = this;
for(i = 1; i<100; i ++){
lined_mc.duplicateMovieClip("lined" + i + "_mc", i, lined_mc)
thistimeline["lined" + i + "_mc"]._y += (i);
But getting them to move like I have described has me stumped...
Any ideas. Thanks.
Animation On A Random Button
Ok, I have five buttons, and I'm trying to play an animation or something if you click on the right button. But the thing that's bugging me is how do I get it to be random?
So, the animation would be on a different button every time.
If you have any links or something helpful please reply.
Thank you.
Random Number Animation
im after a MC which animates different random numbers. Rather than having a bunch of frames with different numbers in can someone please tell me how to do it with action script?
ta
Random Animation W/ Boundaries
For some reason I just can't wrap my head around this one.
I am trying to make a script based animation with boundaries. The easiest example would be a scaling ball. I basically want to say "if the ball is 20 pixels or smaller, increase the balls size by some interval. Once the ball's size is greater than or equal too 100 pixels, decrease the ball's size."
Also, I want to do the same thing, but make the extents slightly random, so on one cycle the ball's boundaries might be 24/167, on the next, 19/135, etc.
I don't know why I can't figure this out. Any suggestions?
thanks in advance!
David
Random Balloon Animation. Help Please.
I am trying to do animation where is balloons floating from down to up. This is much like a popular snowflakes animation but upside down. And I have tried to convert some of them into this balloon thing that is now looking like this:
http://koti.mbnet.fi/leeko/pics/balloony.html
But there are 2 problems.
First the smaller balloons (that should be behind the bigger ones) sometimes float infront of the bigger ones.
Secondly I would like that the picture of each balloon is randomly selected from about 10 different possibilities. So there would be more variety in this thing.
Now there is loop in Layers actions witch duplicates this balloon movieclip. And in that movieclips actions has the script that makes it float etc.
Any ideas?
Random Effect On This Animation
On the following website is a fairly simple Flash animation, the bottles come out at the screen and then fade away... This I can handle
http://www.patronspirits.com/en.phtml
I want to create this same effect however but on a video, how fast and which position the bottles come out at the screen is decided upon by the users mouse... How could I achieve this same effect if it were played on a screen without a mouse?
Thanks in advance!
Random Animation On Click
I read a tutorial about a footer that displayed pics randomly. Now I wanted to go one step further. Which means, I wanted them to appear randomly after a button was being pressed.
But being the noob that I am, i got into trouble.
The original code was
animation = 4;
directory = "http://www.mysite.com/footer/";
loadMovie(directory add Math.ceil(Math.random()*animation)add".swf",_level 0);
I placed the information about how many animations and where to find them, on the stage itself.
The rest of the code
(on (release) (loadMovie(directory add Math.ceil(Math.random()*animation)add".swf",_level 0)));
is on the button itself.
But it keeps complaining about a missing (
Anyone got an idea how to solve this?
Thanks in advance
Random Animation Project
I want to make 'Instances' appear randomly inside a frame of any size that we choose and it loops over and over.
These instances must have random colour, alpha, size, different life spans and it must happen at random speeds.
I want to be able to attach this script to any instance I choose (my main aim is to set it to letters)
there will also be multiple instances (letters) involved.
can you comment inside the script, so I know what to change etc for different effects.
Hope thats clear and that your able to help.
Thanks
Laurence
Random Curved Animation
I would like to animate an object on a random, curved path (imagine a fly buzzing around in the air) But I'm stumped on what sort of script would be used to achieve this effect. Can someone please point me in the right direction?
Best Way To Do A Random Rollover Animation
hello all,
just so you know i'm new to this forum, and a beginner at actionscript.
could anyone give me some tips on the best way to make a rollover -- but as you rollover it, it plays a random animation? (even if it's not random but one in a series of 4 or 5)...
hope this makes sense... please try and be specific with reference to the AS, or i will be confooozled..
ps. i know how to make a rollover button, it's just the random part i don't know how to do.
thanks!
betta
Random Generated Animation
Hi
Im trying to create a button that loads a random jpeg from file (I know how to do this.) and places it in a movie clip on a specific frame in its time line. Then when I click the button again it randomly selects another jpeg (but not the same one) from file and puts it into the next frame of the same movie clip.
The end result will be a randomly genetayed animation, which sounds like fun.
Any ideas
Cheers
Random Playback Of Animation
Hi,
Ok I've seen the math.random function and realize that it's great for generating random numbers...
But there must be a way of then assigning the number to a frame etc
I basically (although I know this is anything but basic) want to creat a movie clip that when the mouse goes over it a random animation plays ie a random frame etc
Is this possible? Im sure it must be!! it's just well out of the realms of my limited actionscripting knowledge (which isn't alot!!)
Thanks for any help:-
Spence
Animation (Random Movement)
hi,
I have seen one animation in the home page of site
www.ifinteractive.com
where there is serveral red points and there joining lining animate in random postion .
can anybodytell how I can do this type of animation.
Best Way To Do A Random Rollover Animation
hello all,
just so you know i'm new to this forum, and a beginner at actionscript.
could anyone give me some tips on the best way to make a rollover -- but as you rollover it, it plays a random animation? (even if it's not random but one in a series of 4 or 5)...
hope this makes sense... please try and be specific with reference to the AS, or i will be confooozled..
ps. i know how to make a rollover button, it's just the random part i don't know how to do.
thanks!
betta
Random Line Animation
Hello, i'm trying to make a line randomly move to a different point. (curveTo).
Now the first time the line moves it goes smoothly, but after that it doesn't go like i want it.
This is the as i currently have, i hope somebody can help me out
Code:
var controlX:Number;
var controlY:Number;
var currentX:Number;
var currentY:Number;
var firstMove:Boolean = false;
var amount:Number = 10;
stage.addEventListener(Event.ENTER_FRAME, randomLine);
function randomLine(e:Event):void {
if (firstMove == false) {
controlX = Math.round(Math.random() * stage.stageWidth);
controlY = Math.round(Math.random() * stage.stageHeight);
currentX = Math.round(Math.random() * stage.stageWidth);
currentY = Math.round(Math.random() * stage.stageHeight);
firstMove = true;
}
if (currentX > controlX) {
currentX -= amount;
controlX = Math.random() * stage.stageWidth;
} else if (currentX < controlX) {
currentX += amount;
}
if (currentY > controlY) {
currentY -= amount;
controlY = Math.random() * stage.stageHeight;
} else if (currentY < controlY) {
currentY += amount;
}
graphics.clear();
graphics.lineStyle(1);
graphics.moveTo(0, stage.stageHeight / 2);
graphics.curveTo(currentX, currentY, stage.stageWidth, stage.stageHeight / 2);
}
Random Animation For Multiple Clips
(using flash MX).
I have a spiral that turns in one full circle. What I would like to do is drag several instances of the spiral from the library and place them all over my stage in various places, scaled to various sizes. I would then like it if I made each clip start at a different point in its own rotation and to loop. (they will all keep spinning but all having started at a different spot on their own timeline.) My whole site is created in Flash, but I am new to ActionScript. Please keep answers as simple as possible. I appretiate all replies.
Random Background Animation Using Buttons
Hi, I have a bit of a problem and I thank you now for anyones help
I need to have a animated background which will play when a user clicks a button. The background animation has 5 points (5 bits of animation) until it loops back to its original point so in short pt1, pt2, pt3, pt4, pt5 and back to pt1.
(sorry to sound patronising but I am really trying to explain it properly) . Now there are 8 navigational buttons. When a user clicks on any of the 8 buttons, in no perticular order, I need the animation to play to the next point in the background animation. So in short but_2 plays will play backgd animation to pt1, then but_8 plays bg animation to pt2 and then if you click but_5 it plays bg animation to point 3 and so forth. If the background animation is random to the buttons, that would even be better. I am soooo stumped please help and thank you for reading my elaborted problem.
Random, Scaling Animation, Per Viewing
Hi there,
I've got a animation to do for a science experiment, simulating a student adding some solution (iodine) into a flask (with disolved vitamin c). At some point the vitamin c solution needs to change colour, and the iodine solution stops being added to the vitamin c.
Now there will be 400 students viewing this animation online from different machines, so I'd like the vitamin c solution to stop and change colour at different times (thus having the iodine solution stopping at different measurements in volume in the tube).
So I was wondering if each time this flash animation was accessed it would stop at a randomly chosen frame and then swamp one symbol for another (ie i would have the iodine solution scaling down the tube, and if flash could stop at a certain frame then the soultion would stop, then at that same spot if it could swap the gray vitamin c symbol for a red vitamin c symbol)
Hopefully that makes sense and look forward to you're help.
Random, Scaling Animation, Per Viewing
Hi there,
I've got a animation to do for a science experiment, simulating a student adding some solution (iodine) into a flask (with disolved vitamin c). At some point the vitamin c solution needs to change colour, and the iodine solution stops being added to the vitamin c. See http://img.photobucket.com/albums/v2...c/80890480.jpg
Now there will be 400 students viewing this animation online from different machines, so I'd like the vitamin c solution to stop and change colour at different times (thus having the iodine solution stopping at different measurements in volume in the tube).
So I was wondering if each time this flash animation was accessed it would stop at a randomly chosen frame and then swamp one symbol for another (ie i would have the iodine solution scaling down the tube, and if flash could stop at a certain frame then the soultion would stop, then at that same spot if it could swap the gray vitamin c symbol for a red vitamin c symbol)
Hopefully that makes sense and look forward to you're help.
Animation - Random Speed, Direction
Hey,
does anyone know how to make a similar animation as this on the top of the page, random speed and direction of bright lights, and when wait over the button, lights "bombard" it.
http://www.fullyillustrated.com/index.htm
Thanks,
Jure
Animation - Random Speed, Direction
Hey,
does anyone know how to make a similar .animation as this on the top of the page, random speed and direction of bright lights, and when wait over the button, lights "bombard" it.
http://www.fullyillustrated.com/indexhtm
Thanks,
Jure
Random Ball Animation In Wheel
Hi All,
Is there any help articles or files to generate a random ball animation in a wheel, something like a roulette game?
Random Animation Of Alpha Property
Hi all, I've been racking my brain for way too long on how to do this and I'm not sure where to start anymore.
Here's what I want to do:
I have a movieclip called smoke_mc and using function I make it fade in. Once it is fully visible I'd like to have it randomly fade in and out at different rates using AS instead of tweens.
If anyone can point me in the right direction it would be greatly appreciated.
TIA.
Random Animation Of A Pulse Travelling Along A Circuitboard
I am working on a site right now and I have a collaged background image with a faded ciruit board looking series of intersecting lines.
I would like to create a gradated sphere to simulate a signal travelling along the cicuits. However, I would like several instances of the signal (or pulse) to take different routes and begin and end randomly.
Is there a way to set-up possible routes with a motion guide and then tell objects to randomly choose those routes at random intervals???
Help With Tutorial On Loading Random Movies Into Animation--
I got stumped right at the first step - I didn't know how to create a movie and set it's width and height! - How silly is that - how do i create a movie? Do I create a new Flash Document? Here is the first step of your tutorial that I was about to follow - thanks!
Here's How
The following steps for Flash MX/2004 will help you to create your own animation and load random movies into it:First, create a new movie, and set its width and height to be 300 by 200 pixels. Also, set your frame rate to 25.
AS 2 How To Handle An Image Queue And A Random Animation
I am trying to find a solution to do something similar to what it mentioned below.
I have a x number images, these images should load one by one. Ideally float in and blurred out. After every Y number of images, there should be an animation should happen on the same space. It could be an image or a textual presentation.
Is there a way to do this in Flash (i think there is no option with the traditional film strip approach) or using AS?
Traditional method was to use film strip and performing the second animation on frequent intervals.
But when there are 6, 11, 16, 21... images, and if you want to see the other animation happens after every 5 image interval... then it'll be a tough ask with the filmstrip....
Does anyone having a better approach... Please comment...
Animation - Random Speed, Direction, Following Mouse Cursor
Hey,
does anyone know how to make a similar animation as this on the top of the page, random speed and direction of bright lights, and when waiting over the button, lights "bombard" it.
http://www.fullyillustrated.com/index.htm
Thanks,
Jure
Looking For A Code To Make The Flash Animation Start At A Random Key Frame
I have a image slideshow set up on a time line. Each image is on a different layer and I am looking for a code to make the flash animation start at a random key frame every time the page is loaded. Here is a link to the site I am working on:
https://jag-designs.sslpowered.com/u...ood/index.html
Thanks for your help!
Preloader With "random Movie" Animation?
Hi Guys,
I've made this movie (attached) that launches randomly an external .SWF each time that the HTML page is refreshed.
The sad thing is that it won't work if the aforementioned .SWFs have a preloader. Can anyone help me sort out the problem or figuring out what kind of preloader should I use to make the whole thing work?
Thanks in advance!
Random Random Random Timer... Problems
Heyy guys. I know you guys know this stuff backwards & forwards so maybe you can help.
This is a 2 part problem. Part 1 is Im trying to create a timer that functions at random intervals, the function in this case is playing a MC of a car driving on a freeway in 1 to 10 second intervals to give the feeling of, well, randomness. (I've attatched the .fla file if that'll help).
So it works, but not quite as it will generate intervals only twice before it repeats the second interval over and over. So the car will 'drive' in say, 7 seconds the first time and then it will drive in 3 seconds, then again in 3, and in 3 and in 3 seconds. Ive tested it so much I know its not coinsidence.
Here's the code Im using (located in the freeway MC):
var interval:Number = random(10)+1;
function someCodeToRun() {
_root.freeway.diffcars.drive01.gotoAndPlay(2);
}
setInterval(this, "someCodeToRun", interval*1000);
Part 2 is I also wanted the cars to be different colors, which is why there is a diffcars MC with different frames of cars, but now Im not even sure I was headed in the right direction with that.
Ultimately Id love to have different colored cars driving on the freeway at different intervals. Can anyone figure this out?
Need Urgent Help How To Combine Transition Class Tween Animation And Keyframe Animation?
Hi! I have a transitional tween class animation assigned to "mc_logo" on frame 1. However on frame 100, I have "mc_logo" animated on the timeline by regular keyframe animation.
I have assigned the tween class animation to "mc_logo" on frame 1 and the regular timeline animation starting on frame 100 does not execute now when I test the movie...why?
Do I need to end/clear the tween class animation so the regular timeline animation will work again?
Here is the code on frame 1 so far:
import mx.transitions.*;
import mx.transitions.easing.*;
import flash.filters.*;
var LogoTweenY:Tween = new Tween(mc_logo, "_y", Bounce.easeOut, -120, 171, 30, false);
Thank you in advance for your help.
Attila
OnMouseOut{freeze Button Animation, Reverse Animation Back To..}
This is my question in an action script "perspective", since i dont wanna spend the time typing this question out in plain english..
How would i implement this effect into a button I made that contains a MovieClip as the over state? ::
onMouseOut{
stop button's Over animation on current showing/playing frame;
then reverse animation back to start
OR
fade out current showing/playing Over animation frame, back to the button's load state (not over)
};
Playing A New Intro Animation On Release During The Previous Outro Animation?
I know about external swfs and having intros and outros, but I want my intros and outros to overlap...
for example, I want a background that's red and rotates when you click button 1, but I want to it rotate and change yellow when I click button 2, or rotate and change green when I click button 3...
I don't want it to rotate than fade to black and finish before the next animation has started, cause otherwise I don't get the smooth colour change from red to yellow, rather it's red to black than yellow...any tutorials that can help me?
thanks...it's hard to explain
Simulating Hieracical Animation Tween Mixed With Timeline Animation..
The theory was that I animate my clip say across the stage using frames in the main timeline. So this animates fine, but when I use the Tween class inside this clip the timeline animation is destroyed! the tween class for the clip was just doing some animation repeating, like as if it was the clips own timeline...this overpowers the parent animation and the slide across the stage doesnt happen...
why? and is there a solution more importantly.
Play/Pause For Animation/Nested Animation And Sound
Hello and Goodmorning, afternoon or evening.
I am relatively new to actionscripting and have come upon a problem I'm sure is probably easy but for some reason I can't make it work.
Basically I have a presentation that plays several voice over sequences that match up with accompanying animations which are mostly movie symbols that house the animation sequences. Well now the client wants to put a pause/play button on the presentation and I haven't been able to make it work... I put in stops but the movie symbols still play out the sequence and the voice over starts over... not sure what to do... HELP!... and thanks ahead of time.
Raul.
Help Linking Hit Detection To Animation In A Game (death Animation)
Hi everyone - I've just been experimenting with creating games in flash MX 04 and I've come across a problem that's had me stuck for a few hours now. I have just about everything working in my practice game, except when my character gets hit with the projectile... it won't go to the death movieClip that's located in the character's main movie clip (on frame 6 of it).
If anyone could check out the project file and let me know what i'm doing wrong it'd be greatly appreciated. The controls for the game are just the arrow keys to move the character, and down ducks - avoiding the projectile.
Thanks
Stopping Animation From Playing Before Another Animation Has Finished (On Keypress)
Hi guys
I've linked to the project I'm current working on; essentially, what it does is play a ripple animation at specific points on the stage when certain keys are pressed. What I'm trying to do at the moment is stop people from hammering one key many times, and creating several instances of a ripple in one location. As well as looking strange, it also slows down Flash considerably ;-)
I'm not really sure where to start, but what I'm thinking of would work as follows: -
Person pushes 'Q', and a ripple is triggered at the coordinates relative to that key. If they press 'Q' again, it is impossible to trigger another ripple at that location until the current ripple animation has finished. The same is true with all of the other keys (Q, E, S, Z, C, Up, Down, Left Right) when pressed.
However, it should still be possible to trigger ripples at the same time with different keys. For example, someone could press three different keys at the same time, and see three different ripples which play at the same time and overlap, etc.
Hope that's clear enough - if anyone could help me out with this, it would be most appreciated.
- Thanks!
http://www.joshbarton.co.uk/flash/Ripple_Project.fla
Trouble Adding Animation To Existing Rollover Animation
Hey all,
I'm using Flash 8. I have a picture of a building which is segmented into floors. Upon rolling over a grouping of floors the user sees either a blue overlay, indicating they can click, or a gray overlay simply describing what the floor is. I already have some actionscript in place and I don't need to alter it, I just added more animation to an existing movieclip rollover, but it's not quite working. On one of the floors that rolls-over gray, I want an additional rollover with some text. So I made a movie clip of the rollover animating out and the type coming in and I just added it to the gray fade in movie clip since there was already onRollover actionscript in place there. However, the rollover kept playing over and over again. So, of course I added a Stop action. Then, the animation didn't work anymore, it just rolled over to the final state of that animation. Does anyone have any ideas of what I can do, or what I can do as an alternative? I'll post the actionscript in case that helps. Like I said, the rollover "rolls-over" but either loops (without a Stop action), or rolls over to the final frame in the animation (with a Stop action).
Thanks!
Mc
[CS3] Create Animation That Runs From Button Click After Another Animation Has Run
Hi,
I am a newbie to flash & actionscript. I have, though, learnt the basics of flash animation, tweens & bits of actionscript and have created an animation movie consisting of sevral layers.
I have the movie stopping at the end and the graphics are all converted to buttons.
Now, from this end point, i want the user to click on one of the images (buttons) and then the flash movie to start a sub-animation.
BUT i don't know how to do this.
Do i need to create a new scene to do this or do i need to extend the layers and add the additional animation to the layers or do i need to add new layers to the same scene?
ALternatively, do i need to this in actionscript?
Please let me know what is the method of doing this in Flash. This seems like a simple thing which i've seen in flash movies before but i can't find any answers or tutorials on how to do this.
Please give me the steps involved in creating a second animation runnable from a click in the 1st animation.
To clarify further, my aim is to make the movie clip interactive using different motions 9or animations so that when an object in the 1st animation is clicked a different animation starts. So how can i achieve this?
Regards, shuja
Making An Animation Fade Into Another Animation When A Button Is Released?
okay, so I have for exmaple a red animated background for 'home' but when someone clicks 'media' for example, I want that red animated background to fade into a green animated background.
I tryed using external swfs, but I don't know how to make the outro animation of the first red swf fade into the intro animation of the second green swf, so it creates the effect of red into green, rather than red to black, than black to green.
any tutorials that could help me?
PLEASE HELP - URGENT Load Random Swfs From Individual Random Sets
I have two target mcs I would like to load different random swfs into
I have eight folders (a-h), each with 12 swfs (001-012)
I need to load a random swf (001-012) from a random folder (a-h) into the "card1" mc
I have figured out how to specify which one I want:
loadMovie("a/a001.swf","card1")
stop();
however, I need it randomized....
then, I need to load another random swf into my "card2" mc (001-012) from another random folder (a-h, ...except for the folder from which the first swf was loaded)
can somebody please help??????
Random Movie Clips To Play For Random Amount Of Time
hi,
i am loading external movieclips randomly into 4 seperate emptymovies, i now need a way to get these random clips that i am loading to play for a random amount of time and then load the next clip.
i need some help with the code...
how do i get the clips to loop, then assign each a random number and have flash check if the random num is = to current frame...if it is, have that clip stop and a new one load?
i have no idea how to write the code for this
any help would be great
thanks
this is what i was given so far..but don't know what to do with it.
Code:
var rnd = Math.round(Math.random(mc._totalframes));
mc.onEnterFrame = function() {
this._currentframe >= this._parent.rnd ? unloadMovie(this) : null;
}
|