ActionScript 2.0 :: Make The Vibration Effect Stop?
Aug 16, 2003how to let the vibration occur for a finite timeframe. i.e. how do i make it stop?
View 3 Replieshow to let the vibration occur for a finite timeframe. i.e. how do i make it stop?
View 3 Repliesi have text which i have created to vibrate using this code
onClipEvent (load) {
// movie width/height
height = 150;
[code].....
I am working on a file that emerges with a vibration / random alpha effect, but I don't want the effect to last forever... I want it to stop.Here's my code, which is placed on the first keyframe (actions) in the timeline:
var vibration = 0;
var xShift = random(vibration * 2+1) - vibration;
var yShift = random(vibration * 2+1) +- vibration;[code].......
After a few moments, I want it to come into focus (end of timeline has a normal image, in focus).
I have text which I have created to vibrate using this code
onClipEvent (load) {
// movie width/height
height = 150;
width = 500;
this._xscale = this._yscale=temp;
[Code] ....
How to get vibration becomes more violent over time?
I've built a code to cyclically move a scene on the bottom of my stage; I've done this to make a slowing-and-stop-easing effect at anytime the command will arrive. The entire scene mc is _x long something like 6000 px. The whole code goes in this way:
1) importing on the stage (with attachMovie) a mc with this code inside:
onClipEvent(enterFrame) {
_parent._parent.fondo_mc._x -= countermovement;
if (_parent._parent.fondo_mc._x <= -5800) {[code].....
The code goes right, but I need to improve it.Now there is just a variable, I tought to use two vars to implement the whole code in a setInterval, but maybe it's unuseful, and actually I can't use it in the right way.
Second issue: actually when slowAndStop function is called the scene slow too fast, if I take it to 15 it slow better but the scene is running too fast...
The best would be that the scene slow down and stop following: A) a temporal variable (and I can try to implement it with setInterval, that for istance is a cycle)
B) an indipendent moving variable, so that on one side I set the speed, on the other side I set the slow-and-stop in a matter of time with countermovement.I also tried to use a second variable:
var counter:Number = 15;
// set the _x increment
var countermovement:Number = counter/2;
but the scene slow and goes backward a bit
This code does what I want except for all the vibrating once the mc has stopped bouncing. I guess it's still bouncing. I threw in a 'delete.onEnterFrame' if _y==floor, but that doesn't give me the desired results. I want it to bounce for a bit then come to a rest with no vibration. I'd upload a basic .fla, but I'm restricted from uploads at work. All you need to do is create a 100x300 .fla, make a mc with the instance name of box_mc, place it at 10y, 25x and paste the code into the actions panel.
[Code]...
I'm in the process of creating an earthquake that takes place in an office setting. This will require the entire room to rumble. I found the following script that makes things rumble fairly well when I slap it on a movie clip:
Code:
onClipEvent (load) {
//movie width/height
[code]....
I want to be able to make a movie clip (that acts as a button) so the roll over effect finishes before the roll off effect is triggered. Like if a marker circles a button, i want the circling animation to stop before the roll off effects happens. Anyone know how to do this.
View 2 Replieshow can i stop a tv shaking effect at certain frame ?
var posx:Number = image_mc.x;
var posy:Number = image_mc.y;
image_mc.addEventListener(Event.ENTER_FRAME, shakeIt);[code].........
I have this animation where a tv screen has a static effect on it. This is the code of the tv animation:
[Code]....
I have a 30 frame flash movie with a Bitmap image for a background and a Graphic with a Wipe-In Transition, but when I play the SWF file in Flash Player, the movie loops. Is there a way to stop this? It has to be in .swf format, can't be .html.
View 7 RepliesIs it possible to stop this effect using actionscript in the middle of a movie. For example If I inserted this in frame one of my movie, how would I stop this effect using action script in frame 20?
View 10 RepliesIs it possible to stop this effect using actionscript in the middle of a movie. For example If I inserted this in frame one of my movie, how would I stop this effect using action script in frame 20?
View 10 RepliesI'm completely new to AS3. Being completely new to actionscripting I found a tutorial on how to create a typewriter effect, which I have successfully made into a movie clip. My problem is that I want to stop the movie for the typewritten text to appear and make the movie pause for a pre-defined number of seconds and hereafter continue to the next scene or frame or whatever is the most easy. The link for the file text.flv: [URL]
View 1 Replieshow to stop the script when it's running.To make the sky no more snowy and make snow disappear.
View 1 RepliesI saw the snow tutorial on this website and i plan on using it for 20 seconds (500 frames) in my introduction. It works perfectly fine, but after that time, it doesn't stop. It keeps on going and going and going... how to make it stop or make it go into the background? used the code provided by the tutorial. I know this is sudden by can someone answer today because i have to put it together before thursday.
View 1 Replieshow can I make a carousel effect similar to this website? Is there an easy program to assist? Is it flash?
View 1 RepliesHow can I make this blue effect of lines? like in diablo 3 site
View 1 RepliesI'm referring to bv: [URL] I'd like to make the same effect as the buttons, the fact they move with AS and never follow the same path.
View 3 Repliesi want to make Flash Slidshow for my web ...but i dont know how. i wanted to make a flash effect which make front image into small pices and move from left to right ...like air taking them away and after 10 seconds in background we can see the other image....
View 4 Replieslike they did on this site: [URL] so, how to make this scrolling effect
View 3 RepliesCan you tell me how to make effect from 8 second in movie? I talking about this cicles <blue lights> [URL]
View 6 RepliesI wander if anyone knows a way how to make a wave effect in flash. In fact anything that would remind of sea would be accepted.
View 7 RepliesIs there anyone who know how to make a pulse effect. I mean something like a circle on the stage that is growing big and then if it has some dimension it will grow small, and to do that infinitely.
View 1 Replieshow to make a pageflip effect?
View 6 RepliesIm trying to make the swf file which is placed in the footer of this website[url]...
How do i go about creating the hover over and out state?
Is this done by action script and how do i convert the buttons to links? [url]
I'm working with the fading grid effect and I got it to work perfectly. I was just wondering if there is a way to make an image map after the effect is done. ie: If I'm using the effect on a menu.
View 2 Repliesi'm a design student who is relatively new to actionscript. So anyway, i'm trying to make an effect whereby the cursor, whch is a pen, is moving on the canvas and leaving a trail of ink as it moves.
View 2 RepliesI'm trying to make the same effect as in the Cooliris wall in Flash using the Away 3D classes.[URL]..1. (Dumb question) I don't know why the pictures from flickr feed are not showing when my site is online. It works on my local but I just saw that it doesn't when online. I thought flickr has a crossdomain.xml.
2. (This is my real question) How can I make a shadow of the last row? If you look at Cooliris plugin you will see that the wall looks like being placed over a shiny glass so the last row is reflected. What's the best practice to do that? Can I duplicate all thumbnails from the last row and just rotate them? Is that good for the CPU and memory when I will deal with a very long wall?
I'm working with the fading grid effect and I got it to work perfectly. I was just wondering if there is a way to make an image map after the effect is done. ie: If I'm using the effect on a menu.
View 2 Replies