[AS] Fades
Hello all,
I was wondering if it's possible to AS - automate a pretty time consuming work.
Look at the intro for this site.
http://www.louvre.ru/
You see that the picture will display by having rows of rectangles fading after each other.
I was wondering if AS can be written to tell 1 rectangle to fade after one another.
Not sure if i made myself clear....
Hope something like this can be done.
KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 01-22-2004, 02:04 PM
View Complete Forum Thread with Replies
Sponsored Links:
Mc Fades In Uneven At 100 Alpha- It Blinks Not Fades
the word "communications" in the flash logo fades in, but it sort of bumps into full transparency right at the end. I'd like the fade-in to stay consistent. this was done in AS2.
http://www.olanbrewer.com/flashtest.html
here's the code for the last frame of the animation:
stop();
(comm_mc is the instance name)
comm_mc.onEnterFrame = function(){
if(this._alpha < 100){
this._alpha += 2;
trace(this._alpha);
}
}
the trace statement shows that the rate it's fading in is at @1.95/frame and not the 2. what's with that? I tried using Math.round to no avail.
ex:1.953125, 3.90625, 5.859375...
as soon as it crosses 100 it's popping full brightness.
R
View Replies !
View Related
Fades
I'm made a fade effect by tweening from a symbol with Alpha 100% to the same symbol with 0% alpha. this looks great when I preview it by pressing enter but when I publish it the fading effect doesn't show up. How can I fix this?
View Replies !
View Related
Help With Fades In F4
Hey all, long time reader, first time poster and all that.
I'm broke so this is a flash 4 question.
Basically i want to find something that allows my movies to have edges that are gradiented, in that the background fades off to color x at each side. THis also needs to apply to things moving in and out of the movie - that is to say when something's 45% in the main frame, 35% of it is at 100 alpha but the rest is kinda faded, as if coming in from behind gradual clouds.
I hope this makes sense to someone.
Cheers
Brian
View Replies !
View Related
Fades?
i'm pretty new to flash so heres my problem
i have a website with various pages news bio contact etc
each page with different content
how do i fade in and out of the different pages?
for example if i'm on the bio page how do i morph or fade to the news or contact page so that the fade is the samefor each page
ie it wont directly go to the news page but will fade into it
hope i've explained this correctly
thanks!
View Replies !
View Related
[AS] Fades
Hello all,
I was wondering if it's possible to AS - automate a pretty time consuming work.
Look at the intro for this site.
http://www.louvre.ru/
You see that the picture will display by having rows of rectangles fading after each other.
I was wondering if AS can be written to tell 1 rectangle to fade after one another.
Not sure if i made myself clear....
Hope something like this can be done.
View Replies !
View Related
Fades
Hello all, n00b here with a question. I'm having trouble with fading a image in, then have it fade out. All I can accomplish is the fade in with out the fade out, or vice versa. Any help would be nice. Thanks!
View Replies !
View Related
Fades
Hello all, n00b here with a question. I'm having trouble with fading a image in, then have it fade out. All I can accomplish is the fade in with out the fade out, or vice versa. Any help would be nice. Thanks!
View Replies !
View Related
Image That Fades
I am using Swish 2 (just downloaded) and want to start a scene with a JPG image that stays for about 20 frames and then fades out. When I add the fade effect, the JPG fades over the entire duration. When I move the fade effect on the timeline and shorten the fade to 4 frames, the JPG does not show at the beginning of the scene. Thanks.
View Replies !
View Related
Sound Fades
Now that I have my sound Object playing with the start() and stop() sounds, I would like it's transitions in and out of my movie to be less harsh, so a fade in and out of volume respectively would be nice...
If the sound object is called mySound, I tried this:
for (i=0; i<=100; i++) {
mySound.setVolume(i);
}
This was my attempt to fade in, but if it IS doing it, it's VERY fast (ie, I can't detect a fade in at all)
Is there a "sit here and wait for x milliseconds" function? Or can you recommend a different method of fading sounds?
View Replies !
View Related
Line Fades
Hi all,
Is there a way I can make a line goto from a colour and fade until it is totaly transparent, I managed to get it right with shapes but no luck with lines
Any help would be great
View Replies !
View Related
Newbie Needs Help With Fades
Hello! I used to frequent these forums about two years ago but under a different name. I had to recreate my login because I do not remember what it was!
I got away from Flash for a long time and now I am getting back in to it and barely remember anything. I am simply trying to get text to fade into view, then fade away. Can anyone help me remember how to do that?
View Replies !
View Related
Attachsound Fades Everything Down
I've got a really nice fade up/down script working but it fades everything in my movie down. I have used the attachsound method and thought that this would solve my problem of targetting just 1 sound to fade down:
On 1st frame:
mySound = new Sound();
mySound.attachSound("soundtrack");
mySound.start(0, 300);
fade = "up";
volume = 0;
And this on an mc:
onClipEvent (enterFrame) {
if (_root.fade eq "up") {
if (_root.volume < 100) {
_root.volume = _root.volume +5;
_root.mySound.setVolume(_root.volume);
}
} else {
if (_root.volume > 0) {
_root.volume = _root.volume -5;
_root.mySound.setVolume(_root.volume);
}
}
}
Any suggestions?
View Replies !
View Related
Tints And Fades
ill try and explain this as simply as as briefly as poss!
i have a sort of sub menu.. when the user clicks where they want to go, the play head goes to and plays that labelled frame, where the selected sub menu item then tints to a different colour to indicate where the user is... thats all working fine.. the bit im stuck on is this...
once in a sub area the user will obviosuly have the freedom to leave and choose another area.. now at the moment the tint jus jumps back to the original colour upon leaving that frame to go to another.. i would much rather have it fade back to its colour
so in plain english i would like some actin script or any suggestions as to how i can do this (put bluntly)...
on clicking another button
play the fade/tint out of this item before going to the next frame label, and fading that 1 in..
maany thanks in advance
View Replies !
View Related
Tints And Fades
ill try and explain this as simply as as briefly as poss!
i have a sort of sub menu.. when the user clicks where they want to go, the play head goes to and plays that labelled frame, where the selected sub menu item then tints to a different colour to indicate where the user is... thats all working fine.. the bit im stuck on is this...
once in a sub area the user will obviosuly have the freedom to leave and choose another area.. now at the moment the tint jus jumps back to the original colour upon leaving that frame to go to another.. i would much rather have it fade back to its colour
so in plain english i would like some actin script or any suggestions as to how i can do this (put bluntly)...
on clicking another button
play the fade/tint out of this item before going to the next frame label, and fading that 1 in..
maany thanks in advance
View Replies !
View Related
Fades Not Correct..
people,
now i have a script that fades loaded images on a rollover movement, but if you first load the image and then wait a few seconds, he fades in after 3 seconds
my FLA makes it more clear....
please have a look at it maybe someone can fix this ?
thnx already!
View Replies !
View Related
Button AS Fades
Hi,
anyone know whats going wrong with my code?? i am trying to fade a button in to 100 when its clicked out out to 50 when another button is clicked.
// HOME
home_btn.onPress=function(){
_root.home_mc.onEnterFrame=function(){
if(this._alpha<100){
this._alpha+=5;
}
if(_root.work_mc._alpha>50){
_root.work_mc._alpha-=5;
}
}
}
// WORK
work_btn.onPress=function(){
_root.work_mc.onEnterFrame=function(){
if(this._alpha<100){
this._alpha+=5;
}
if(_root.home_mc._alpha>50){
_root.home_mc._alpha-=5;
}
}
}
View Replies !
View Related
Rollover Fades
I'm trying to find a tutorial that will create a fade back effect for a rollover. There are so many tutorials to sift through, I don't know how long it will take to find it on my own. So can someone help me?
Basically there are 5 color images of people on a page. When the mouse rolls over one image, the image's name/title should appear and the other 4 people images should fade back (to grey if possible, but not necessary). And when the mouse rolls off, the images should go back to normal. This should work for all 5 images. It sounds like a movie is needed for each rollover, but I can't quite pin it down.
Help!
View Replies !
View Related
Image Fades
I'm trying to set up a menu system with images triggered by rollOver events -- move your mouse over menu option 1, image A appears to the right; move your mouse over menu option 2, image B appears to the right. I got this working just fine. Now I would like the images to fade smoothly from one to the next, however the problem lies within the fact that the movie is non-linear -- the user could move the mouse from menu option 1 to menu option 3 without passing the mouse over menu option 2.
So.. is there a way i can have the images smoothly fade from one to the next without knowing the order in which they will appear? (Flash MX)
View Replies !
View Related
Help Please Take A Look At .fla Reverse/fades
I have a .fla project due in an hour or so and need to finalize it. It is too big to post so I can email it to someone if possible.
I want it to play the original movie clip. Then on rollover of buttons it plays original clip in reverse fast, and plays the movie clip the button calls for, then on rollout it fades that movie clip out and replays the original clip in its normal state.
Let me know if anyone can help. My email is tozier9@yahoo.com
thanks
View Replies !
View Related
Movie Fades
Hi,
I have been programming a website a tad bit above my experience level and I have encountered a slight issue.
I have built this file:
http://www.thewhiteroom.ca/mikey/nav_template.html
&
If you go into the latest button, it loads a portfolio swf file. Each image has its own load movie function.
Basically I would like when a person clicks the next or back button the movie will fade out before loading the next one.
How would I go about doing this? Is there a simple code?
Thank you!
View Replies !
View Related
Varied MC Fades....
Ok...so I went and got some things squared away with this script. My only problem now is that I have "square2" set to a higher alpha....making it change less often, But when "square" fades in the new pic for itself (because it changes more often), "square2" re-fades-in it's current pic in sync with "square" fading in it's next one. It's very frustrating. Can anyone help?????
Code:
pic = 1;
pic2 = 1;
max_pic = 10;
//number of pics//
jump = 10;
//jumping of alpha//
i = 0;
i2 = 0;
num = 100;
num2 = 500;
//fade in variable//
z = num;
z2 = num2;
//fade out variable//also speed of changing pics//the smaller the faster//
_root.square._alpha = 0;
_root.square2._alpha = 0;
loadMovie("images/image"+pic+".jpg", "_root.square");
loadMovie("images2/image"+pic+".jpg", "_root.square2");
_root.onEnterFrame = function() {
//fade in//
if (i<num) {
i += jump;
_root.square._alpha = i;
} else {
//fade out redirect//
if (pic == max_pic) {
pic = 0;
}
pic++;
//next pic//
if (z>0) {
//fade out//
z -= jump;
_root.square._alpha = z;
} else if (z == 0) {
loadMovie("images/image"+pic+".jpg", "_root.square");
//next pic load//
//initiate variables//
i = 0;
z = num;
}
}
if (i2<num2) {
i2 += jump;
_root.square2._alpha = i;
} else {
//fade out redirect//
if (pic2 == max_pic) {
pic2 = 0;
}
pic2++;
//next pic//
if (z2>0) {
//fade out//
z2 -= jump;
_root.square2._alpha = z2;
} else if (z2 == 0) {
loadMovie("images2/image"+pic+".jpg", "_root.square2");
//next pic load//
//initiate variables//
i2 = 0;
z2 = num2;
}
}
};
View Replies !
View Related
Alpha Fades
Hi,
I have 10 photos on my page.
When the page loads, I want the alpha of all of the photos to be 100%.
When I scroll over any of the photos, I want the other 9 to fade out to alpha 50%.
How do I do this?
Thanks!
View Replies !
View Related
Help With Image Fades
Hi,
Haven't used Flash in a couple of years now, and it has changed a lot...so I am a bit behind with the times. I need to do a site with a each section of the website having a background, that fades in when the user goes there. I want the transition from section to another to be smooth, and the new background image fade in on top as the other fades out (at the same time!)
Also how do i make some of the links on my website HTML pages and some flash? I need to be able to link back to the flash section of a site when clicking on the flash section. I found an example on the Louis Vuitton site, if you click on your account or newsletter and then click back to the Services it will go back to that specific section of the flash site.
http://www.louisvuitton.com - check it out to see what I mean.
Hope you can help, I want to start developing my flash skills again.
Thanks
View Replies !
View Related
Help With Alpha Fades
Hi, this is my first real time trying to use flash. I've got a few books and read a lot of stuff, but the only way you learn is just by diving in and trying to do stuff. I'm trying to accomplish a very simple animation for you guys proably, an alpha fade. What I have is a movie clip symbol that is part of my nav bar on my site. The way it is setup is that I have the text at 70% alpha an a background at 0% alpha, when you roll over the text, i want each of those to fade to 100% alpha, then when you roll over, you fade back down to 70% and 0%. For the life of me, I cannot get this too work. I can get on thing to fade, but not the other. I've tried prototypes, functions, anything. This is not my first programming experience, I'm damn good at C++ and PHP, but learning a new language is just really learning the quirks, syntax, and stuff like that.
I tried this code
Code:
Fade = function(Image:MovieClip, Speed:Number, Target:Number){
Image.onEnterFrame = function() {
Image._alpha += Speed;
if(Image._alpha >= Target && Speed > 0){
Image._alpha = Target;
delete this.onEnterFrame;
} else if(Image._alpha <= Target && Speed <0) {
Image._alpha = Target;
delete Image.onEnterFrame;
}
}
}
I've also but that code into a prototype basically.
I've tried to execute the code like this, but putting the action script inside the button
Code:
on(rollOver){ //this is the text, or the button
//if i were using it as a prototype function
this.Fade(4,100);
HomeDecorations.Fade(4,100); //I don't know how to reference the movie clip home decorations from inside the button. possibly _parent.HomeDecorations.Fade()?
}
The only way i've gotten anything to work is with prototype's, but then everything need to be a movie clip. I tried to make a prototype for a button, but that didn't work. My ultimate goal is to write a fade function that I can apply to any object anywhere. Maybe a class?
Thanks for the help.
View Replies !
View Related
Sound Fades
I have a script using setInterval to audio clips in and out. fadeIn works right but fadeOut isn't. Am I missing something? A typo?
ActionScript Code:
bells = new Sound ();bells.attachSound ("bells");cricket = new Sound ();cricket.attachSound ("cricket");birds = new Sound ();birds.attachSound ("birds");var sound_iv:Number;var sound_ov:Number;function fadeIn (soundClip):Void { soundClip.start (); soundClip.setVolume (0); sound_iv = setInterval (function () { if (_vol == undefined) { _vol = 0; } _vol++; soundClip.setVolume (_vol); if (_vol == 100) { trace ("FadeIn done"); clearInterval (sound_iv); } }, 10);}function fadeOut (soundClip):Void { soundClip.setVolume (100); sound_ov = setInterval (function () { if (_vol == undefined) { _vol = 100; } _vol--; soundClip.setVolume (_vol); if (_vol == 0) { trace ("FadeOut done"); clearInterval (sound_ov); } }, 10);}fadeIn(birds);
View Replies !
View Related
Fades In IDE But Not In SWF Player
In my FLA, I can see my preloader glowing and then fading away after the movie is completely loaded. When I test this in a web browser or SWF player, that animation is gone. Why?
Edit: the problem below has been solved. First problem is still unsolved.
View Replies !
View Related
Fades And Shadows
Hi,
This is probably a pretty simple thing to do but I cant figure out the best way to do it.
I want to make shadow and fade effects that can go over other layers with transparency.
Whats the best way to do this?
Thanks!
View Replies !
View Related
Fades Using _alpha's
I want gradually increase the _alpha of 7 buttons on a rollover.
At the moment all the buttons go straight to 100% i want to increase them all by 10& gradually.
on(rollOver) {
licence1._alpha = 100;
licence2._alpha = 100;
licence3._alpha = 100;
licence4._alpha = 100;
licence5._alpha = 100;
licence6._alpha = 100;
licence7._alpha = 100
}
Any ideas?
View Replies !
View Related
Fades That Work On A Mac
Even after reading all the forums and looking in several books I still not found how to use the alpha tween successfully.
I have tried to tween on the time line on both the Mac and PC with nothing but just the image, the image is not a big size neither.
I have also tried action scripting an alpha tween. Also trying with preloaders.
Which ever method I choose I keep getting the images (on a Mac only) blending in jerky and slow (not smooth).
In all my time with flash I still have not found a solution for this. However I know its possible. Cheek out the following: http://www.librium.no/, which ever Mac I use the alpha tween seems fine. I know its possible!
Kal
View Replies !
View Related
Audio Fades
so i want to have a player with audio in my main swf. but i need to have the sound fade out in different areas. like i have an audio section that i want the website's ambience audio to fade out ... a stop all sounds would be terrible! then what happens when i go back to another section of the site that i want to have the audio playing? is there no way to turn down and up the volume of my audio swf ? if anyone knows how i can script that it wud b super neat
View Replies !
View Related
Problem With Fades.
Hi,
I'm currently doing a flash program which, at the click of a button, goes to a frame actionscript. The codes are as follow :
------------------------------------
MovieClip.prototype.Decrement = function(minAlpha, speed) {
this.onEnterFrame = function() {
this._alpha -= speed;
if (this._alpha<=minAlpha) {
this._alpha = minAlpha;
delete this.onEnterFrame;
}
};
};
MovieClip.prototype.Increment = function(maxAlpha, speed) {
this.onEnterFrame = function() {
this._alpha += speed;
if (this._alpha>=maxAlpha) {
this._alpha = maxAlpha;
delete this.onEnterFrame;
}
};
};
with(frame)
{
_alpha = 0;
Increment(100,30);
}
with(imgSeqLabel)
{
_alpha = 0;
Increment(100,1.5);
}
with(algorithmLabel)
{
_alpha = 0;
Increment(100,1.5);
}
with(vectorLabel)
{
_alpha = 0;
Increment(100,1.5);
}
with(flowLabel)
{
_alpha = 0;
Increment(100,1.5);
}
with(imgSeqList)
{
_alpha = 10;
Increment(100,2);
imgSeqList.addItem({label:"Taxi",data:"Taxi"});
imgSeqList.addItem({label:"Rubic",data:"Rubic"});
imgSeqList.addItem({label:"Silent",data:"Silent"});
imgSeqList.addItem({label:"Mobile",data:"Mobile"});
imgSeqList.addItem({label:"Container",data:"Container"});
imgSeqList.addItem({label:"Hall Monitor",data:"Hall Monitor"});
imgSeqList.addItem({label:"Mother Daughter",data:"Mother Daughter"});
}
with(algorithmList)
{
_alpha = 10;
Increment(100,2);
algorithmList.addItem({label:"Lucas",data:"Lucas"});
algorithmList.addItem({label:"Horn",data:"Horn"});
algorithmList.addItem({label:"Anandan",data:"Anandan"});
algorithmList.addItem({label:"Nagel",data:"Nagel"});
}
with(vectorList)
{
_alpha = 10;
Increment(100,2);
vectorList.addItem({label:"5",data:"5"});
vectorList.addItem({label:"10",data:"10"});
}
with(flowList)
{
_alpha = 10;
Increment(100,2);
flowList.addItem({label:"Full",data:"Full"});
flowList.addItem({label:"Normal",data:"Normal"});
flowList.addItem({label:"Full + Normal",data:"Full + Normal"});
}
with(mainFade)
{
_alpha = 100;
Decrement(0, 10);
}
stop();
-----------------------------------------
basically what this script does is to fade in and fade out some objects. the thing is that when it comes to the lists, i.e imgSeqList, algorithmList etc., it cant be faded out, either that or the text just stays while the list fades out.
Another problem is that there is this weird delay when the frame and text fades in... i really appreciate anyone out there who has time to spare me. Thanks in advance.
a copy of my .fla can be found here.
View Replies !
View Related
Flickery Alpha Fades
I've created a movie in MX that has numbers of photo images fading up/down, and appearing to transition from one photo to another (e.g. as one fades down on one layer, another is fading up on the layer above it).
Most of them look great, but on several of the transitions, the fades appear "flickery" and sort of stilted (as if they're "catching" on something). Any suggestions for how to improve the smoothness? I tried using ease--didn't change it. Would increasing the fps rate help? Since it is only on some of the transitions, I'm reticent to change the fps overall. Also, I've never changed it from the default before, so am not sure what effect this has. Input? Suggestions?
Thanks!
View Replies !
View Related
Smart Picture Fades
Greetings!
I am working on an interactive flash CD-Rom that has global navigation throughout and is based on frame labels. I had the idea that clicking on button 1 would fade out the main photo on screen and when the timeline jumped to the correct frame label, the new photo would fade in. Fine, but what happens if you are in button 4 and want to go to button 2? There would have to be a picture fade for every single combination of navigation moves.
After giving the issue some thought, I was hoping to just use a simple movie clip that fades to white and acts as a transition to each frame label. I'm just not sure how to activate it appropriately when a new button is pressed.
I found the message below while searching for a solution to my problem. It's kind of a similar situation...
<<<I'm trying to put together a smart menu where each button tell targets to it's respective movie instance. So in the main scene you would have a group of buttons and their corresponding movie instances (each movie being different). Each movie has a labeled fade "in" and fade "out" animation sequence.
The tricky part is getting the the current on button to fade "out" while the newly pressed button fades "in".
I've used a global array to process the variables with boolean operators but I just can't seem get it right.
Shedding light or examples would be greatly appreciated.
Thanks,
gogo>>>
Would I need to do something similar? If so, I need a ton of help...What about using loadMovie? Should I have different scenes to accomplish this? Any help would be greatly appreciated, thanks!
Ryan Mininger
View Replies !
View Related
Movie Fades Out, New Mc Loads In.
I'm trying to set up my file so that on a button release, my externally loaded movie clip fades out and then a new MC loads in.
In the script below I'm trying to use a frame label "end" to indicate when the first mc has faded out, and then new mc should load, but it isn't working properly.
on (release) {
_root.emptyMC.gotoAndPlay("out");
if (_framesloaded = "end", emptyMC) {
loadMovie("02.swf", "_root.emptyMC");
}
}
Any help would be greatly appreciated.
thanks, Richard
View Replies !
View Related
Color Fades Away Onmouseout
I want to make a button which fades from yellow to black when i take the mouse away. I can easiy make it go from black to yellow(fading) on mouse over with simple shape tweening, but am not sure how to do this for onmouseout, any suggestions?
View Replies !
View Related
Image Fades Are Screwy
I made a simple image fade intro in Flash 5 for a photographer's site (http://www.beowulfseye.com/weddings/), however on certain monitors when the images fade up the image will fade up as one size then squish into a slightly smaller size once the fade is complete. It's very strange, since this only happens on some sytems (not including mine) and I was wondering if it's a compatibility issue with the system or monitor, or did I do something wrong? Please let me know.
Thanks,
Peter
View Replies !
View Related
Flash Hover, That Fades, How And Where?
hi
i am trying to build these little flash hovers.dunno how you call them, but they are about the same as in HTML, if you move over a picture, the "alternative text" normally shows, in flash this is also possible but then with a nice alpha fade..AND that it sticks to the mouse, or follows the mouse for the time you move over the picture...
does somebody know where i am talking about?
greetz
m.
View Replies !
View Related
Color Fades Between 10 Different Colors...
OK
picture this: i have 10 buttons lined up in a movie clip. under these 10 buttons there is a shape. i have selected 10 colors, one for each button, and i want this shape to turn the proper color when i roll over any button. the catch is this... i need them to fade from color to color. in addition, i want the shape to not be visible before you roll onto a button, fade in when you do, and then fade out about 1500 milliseconds after you are no longer rolling over buttons. any clever ideas? i thought of making a movie clip for all the separate colors and loading them on top of each other over and over, making the prior clip disappear each time the new one loads. also i have messed with setRGB and whatnot, but i must be doing something wrong... plus there just HAS to be a more clean way to do what i am trying to do. i figure somebody a bit more advanced might know. please please please help!
View Replies !
View Related
Odd Issue With Images With Fades
Hey,
For some reason on some of my fades (namely the titanic painting and the baseball player) when it fades through them it looks like the paiting "jumps" to the side. What's up with this?
http://www.weathersdesign.com/adair/
It is in the same EXACT position throughout the whole fade.
Anyone know about this?
Thanks!
Seth
View Replies !
View Related
Loding Fades For A Slideshow
Im trying to make a slideshow.I have about 200 pictures divided in sub categories.I want to make a new slideshow for every sub category.I want to create numbered buttons,so the user can click on wich picture he want's to see.There has to bee a fade before a picture is displayed.How do I do this?
I have tryed loading a "fade in" movieclip in frame 1:
loadMovieNum("in.swf", 1);
gotoAndPlay(2);
a wait action in frame 2:
stop();
function startAgain() {
clearInterval(myTimer);
play();
}
myTimer = setInterval(startAgain, 5000);
and loaded a "fade out" movieclip in frame 3:
loadMovieNum("out.swf", 1);
gotoAndPlay(2);
The in.swf and the out.swf are 10 frames.
This script works perfectly the first 3 frames. But when I try to copy those 3 frames and paste them into frame 4-5-6 to display another picture it doesen't work.What is wrong? does the out.swf cover up the frame 4-5-6?Do I need a pause-frame in the frame after out.swf, so out.swf can play to the end? Iam using this action so I can use the "gotoAndStop(4);" action if the user press picture-button number2.
View Replies !
View Related
Smooth Fades In Flash
Greetings,
I am making a slide show and was wondering if it is possible to fade from one image to another using action scripting. How is it done?
I have tried fading using transparency (take a symbol, and fade it from 0% to 100%, hold for qa few frames and fade back down from 100% to 0%) but it doesn'l look as smooth as I would like, even at high frame rates like 24fps.
If anyone has seen http://anfyflash.com/gallery/imagefader/index.html they have applets that will produce a very smooth trasition between images, see url above.
I would like to do this in Flash but I don't think they are just using transparncy to fade between images, So, I'm wondering if there is a way to do it though action scripting.
View Replies !
View Related
Text Fades=gone When Exported
i have been working on a flash presentation for some time now. i use text that fades with alpha+tween. worked fine untill today. made the another part of it (scene 5) and used the same text fading technique.
problem: in flash it all looks fine: the text fades in and out. but when exported to flash file / windows projector the text fades are gone. the text just apears right on (instead of fading) and where the fade out tween is, it just disapears. it just makes no sence! what am i doing wrong here?
note: this part of the presentation is kinda graphical intence (fading text, pictures etc).
thanks in advance for any help
View Replies !
View Related
[F8] Line Fades Out While You Draw.. Help Please (API)
Hi. I know how to draw using actionscript and all that. But how do you make it so that the line fades after a while. Like this http://www.selftitled.ca/ (drag the thing around). How do you get this effect. I'm guessing you could use arrays to do it, but I don't know anything about arrays. Can anyone explain to me how to do this?? It would be very much appreciated. Thanks,
Christian
View Replies !
View Related
[F8] One Mc Sticks To Mouse Other Fades...
Hi All,
I am trying to achieve an effect that is proving to be a little elusive!
I have a movieclip on the timeline named CENTERpages - within this mc are two other mc's.
One mc is named 'A' which has some code within it that makes the mc stick to the mouse and then spring back to it's origin when the mouse moves so far away from it's origin. It works fine and does exactly what I want it to.
The problem is with the second mc named shad. I want the shad mc to fade when the 'A' movieclip attached to the mouse - and fade more the further mouse/A moves away from it's point of origin.
this is the code that is contained on the timeline within CENTERpages/A/
PHP Code:
// custom variables
graphic.elasticity = 20;
graphic.resistance = .1;
// internal variables
graphic._xvelocity = 20;
graphic._yvelocity = 20;
function followMouse(){
this._x = this._parent._xmouse;
this._y = this._parent._ymouse;
}
function springToOrigin(){
this._xvelocity -= this._x * this.elasticity;
this._yvelocity -= this._y * this.elasticity;
this._xvelocity *= this.resistance;
this._yvelocity *= this.resistance;
this._x += this._xvelocity ;
this._y += this._yvelocity ;
}
area.onRollOver = function(){
this._parent.swapDepths( _root.getNextHighestDepth() );
graphic.onEnterFrame = followMouse;
}
area.onRollOut = function(){
graphic.onEnterFrame = springToOrigin;
}
How can I make the shadow mc fade and react to the distance that the mouse and attached movie clip move away by fading more?
Can it be done?
I have attached the .fla too - I have tried some onRollover code on the button for the area of the 'A' clip but it slows things down too much! :-(
Hope someone can help me out here
;-)
View Replies !
View Related
|