ActionScript 2.0 :: Realize Animation Of Two Pctures Fading In And Out With Each Other
Feb 7, 2004I would like to realize a animation of two pctures fading in and out with eachother made with actionscript (not with motion tween)
View 5 RepliesI would like to realize a animation of two pctures fading in and out with eachother made with actionscript (not with motion tween)
View 5 RepliesI would like to realize a animation of two pctures fading in and out with each other made with actionscript (not with motion tween)
View 5 RepliesI got a script that fades gradients into each other working. No actually runtime errors but after about 10 minutes (or so) of running the fading animation slows down dramatically. The code is about 100 lines long and for the first 10 minutes (or so) it runs great. I have made a note in the code where I think the issue is arising.
[Code]...
I need to realize textbox autoresizing in actionscript3(IDE - adobe flash pro cs3). For example my textarea is in width 100 px, user has been wrote in it something, that is bigger than 100 px, then my textbox should become increasingly.Also I can't realize multiline option: when the text goes beyond the textbox, it starts to scroll. In line type I've chosen 'multiline'.
View 3 RepliesI use Loader to load a picture,such as 1.jpg ,
_p1=new Pic("1.jpg");
Then I draw a circle as _p1 mask,such as _c
_c=new Sprite();
[code].....
I'm trying to play 2 external flash movies. its already running ok but i need the scene to be somewhat to gradually become transparent so that the timebased scene2 will comeout to of the screen.
Here is the script of it:
var myLoader:Loader = new Loader();
var url:URLRequest = new URLRequest("scene2.swf");
myLoader.load(url);
addChild(myLoader);
[Code]....
I can't work out why - but when I try to fade out some text (by calling fadeoutSecondText), the text fades out, and then immediately fades back in. Fading in and out struggle against each other, resulting in rapidly flashing text!
[Code]...
when i test the movie all i see is a large grey box (border color) with a medium white box (box color) in the bottom right.when i edit the border and lose the grey box but leave its line borders then i get the image with the white box in the bottom right. i've got an image: instance named 'image', a box: instance named 'box' and a border: instance named 'border' and pasted in the actionscript in
View 5 Repliesi've done the Fading Grid tutorial that Voetsjoeba wrote but i seem to be de-railing somewhere when i test the movie all i see is a large grey box (border color) with a medium white box (box color) in the bottom right.when i edit the border and lose the grey box but leave its line borders then i get the image with the white box in the bottom right. i've got an image: instance named 'image', a box: instance named 'box' and a border: instance named 'border' and pasted in the actionscript in place but it still hangs.
View 5 RepliesI have a movieclip that shows an animation onRollOver and an animation on RollOut but onRelease the animation enlarge itselfs but now when I'll roll out when the animation isn't open (so i didn't release) the animation plays the animation for the minimizing of the animation. Here's my code (I know its a bit amateuristic but I'm not a programmer )
[Code]....
so I have this scene in Flash where a song plays. However, once everything is done on the scene, the screen fades and it goes to the next one. I put a layer in the next one that stops the music, but it just suddenly stops without fade. Also it doesn't matter if I select FadeOut because it will still suddenly stop. If I put Event instead of Stop, the song just keeps playing.
View 1 RepliesAnyway, I want to do something really basic and simple. I want to have a word fade in then fade out. Then another word in another place fade in and fade out.
View 1 Replieshow I might fade this banner out automatically after 5 seconds if it isn't clicked on by the user?
ActionScript Code:
import mx.transitions.Tween;
import mx.transitions.easing.*;
new Tween(main_image, "_alpha", Strong.easeIn, 0, 100, 1.25, true);
[Code].....
Ive made myself an xml gallery already, i just wanted to put a fade on the thumbnails and main images after they are fully loaded, so they appear gradually. thought it would be simple using the onLoadStart, onLoadProgress and onLoadComplete functions that are envoked by my movieClipLoader, but having soe problems with the images and thumbs disappearing a short time after fading. a link to what ive got so far is here, have a look and wait a while and youll see the thumbs, mains disappearing [URL] my code for the gallery is such (all contained in one frame, no buttons involved):
[Code]....
I'm trying to mix the simple photo gallery code with the xml gallery. i'm trying to get the images to fade in and out like the simple gallery, yet have all the features of the xml gallery. I'd like to do this without making two different movie clips/xml files, like the simple gallery. Again, any help would be terrific. I'll post the two codes.
simple gallery:
loadMovie(this.pathToPics+this.pArray[0], _root.photo);
MovieClip.prototype.changePhoto = function(d) {
// make sure pIndex falls within pArray.length
this.pIndex = (this.pIndex+d)%this.pArray.length;
[code]....
i am basically half way home, but I can't quite figure out how to make my movieclip gradually fade out. What I want is an arrow to appear and dissappear when the user is around some buttons. Here is my code:
stop();
speed = 5;
_root.onEnterFrame = function() {
greenArrow._x += (_xmouse-greenArrow._x)/speed;
if (_xmouse > 0 && _xmouse < 340 && _ymouse > 0 && _ymouse < 60) {
greenArrow._alpha += 10;
[Code]...
I have a few movieclips that I am fading out alpha with actionscript
The problem is the MC is not a solid shape, it has layered shapes in it, so you can see all the shapes within it fading indivually
Is there a way of fading an MC as if it were a solid (bitmap?)
Is there an easy way of converting a vector mc into a bitmap in actionscript?
I've got two SWF files where one control what happens in the other using LocalConnect and would like to use opacity changes to make a nice transition between two movieclips in the receiving file. I want the two movieclips to fade nicely so I can't animate it because that would make a brake just as i hit the button.
This is the code in the SWF that sends the information.
Code:
btn01.onRelease = function() {
var sending_lc:LocalConnection = new LocalConnection();
sending_lc.send("lc_name", "methodToExecute", {targetName:"mc01", action:"play01"});
};
[code]....
I created a slideshow where the images fade out and in using a motion tween from 0% alpha to 100% alpha in 15 frames. The fading doesn't look right to me it is very jagged. Is there a better way to do this. My files are too big to upload even when I tried to limit them to 3 images.
View 1 RepliesSo I have a button (currently loading a movieclip) and on the main stage there is a piece of music playing constantly while the user looks around the available options on the flash.
What I want to know, is there a way to fade out the music when the button is clicked?
Im using ActionScript 2.0 also :-)
I have text that wraps around an image on a page and I want the text to fade in from top to bottom. I would have just made a gradient in Photoshop and then tweened it over the text. But the text wraps around an image and the gradient would cover the image.
View 2 RepliesI have an mp3 on the timeline (which is 30secs long), but I'm looking to fade it out using actionscript as the timeline moves along... I was able to do this with AS2 using:
[Code]....
I am putting a flash website together. It is a picture of a group of people standing outside and at random intervals a storm will fade in and out giving dynamic rain/wind/thunder sounds and lightning. The only problem I have is fading the sound out. The sound fades in fine with the movie clip but when the movie clip disappears the sound continue.Here is the code for that part of the flash. The "randomness" of the storm is set to very high probability on purpose for debugging reasons.
View 1 RepliesI would like the current page to fade out before another html page is loaded into the browser when clicking a link button. So I suppose the event handler needs to call a tween function, get the information when alpha of the main movieclip is 0, and then call the new URL.My wonder is how to make the handler read the alpha value of the main movieclip until it is 0, so that it can act upon it
View 4 RepliesI want to create a swf of 5 photos that fade into each other. For example, black background, first photo fades up from alpha 0 to alpha 100 in one second, stays on screen for 4 seconds, then fades back to alpha 0 while the next photo fades up, etc, then the 5th photo fades back into the 1st photo and it loops.
What's the best, easiest way to accomplish this with cs4?
Also, if the jpgs are 980 x650 pixels and approx. 70 kb apiece, will I need a preloader if I'm going to use the swf as a header to my site? If so, is there a simple, plug n play preloader I can use?
So I've actually managed to set up a pre-loader and as of for now, they way I make my loading bar progress is by streching its x-axis. But how can I change that to make it fade in (animating its opacity from 0 to 100 %) instead of stretch?
Here's the actions for the preloader:
import flash.events.ProgressEvent;
import flash.events.Event;
stop();
[code]....
Essentially im making a audio visualiser on flash for fun and learning OOP. I have made a group of classes used to create a set visuals dynamically changed from audio etc, I would like to now make another group of classes for a new set of visuals ("scene"). What I would like advise on is how would be a good way to transition between the two "scenes" with performance and more future expansion in mind. How would you approach this sort of thing?
Suppose I want to make a mini API sort of thing, so someone else could make a VJ scene and add to the collection or choose from a number of scenes to view. I only want it load when it has to.
Here is a graphic I've been working on --[URL]
Ignore the black thing in the corner -- it's my measuring tool.
The problem is that whenever you click on one of the states (all movie clips), everything else on the frame takes on the alpha fade too!
How do I make the alpha attribute apply ONLY to the state?
I have an mp3 on the timeline (which is 30secs long), but I'm looking to fade it out using actionscript as the timeline moves along... I was able to do this with AS2 using:
Code:
s = new Sound( );
s.attachSound("intro_music");
s.setVolume(100);
[code]....
I found one code in this forum, and what this code does it moves an object to a specified _x _y coordinates, now i want to achieve the same thing but my object will be invisible and slowly fade in as it will ease at the final point. Here is the code:
MovieClip.prototype.ease = function(x,y){
this.onEnterFrame = function(){
this._x = x-(x-this._x)/1.1;
this._y = y-(y-this._y)/1.1
[code]....
i tried to add _visisble = false; at the beginning and _visible - true; at the end but it doesn't really fade in smoothly, instead its just jumps from invisible point to visible without fading in.