Image Fade Issue
Hey all, I'm calling different jpegs into a movie clip holder. It seems to take a while for the image to load (these are not big images either) and the image eventually disappears if the page is open for a minute or so.
This is the code I have on the holder movie clip:
Code: onClipEvent (load) { val = 0; } onClipEvent (enterFrame) { if (val <= 0) addval = 15; val += addval; this._alpha = val; delete(this.enterFrame); }
FlashKit > Flash Help > Flash ActionScript
Posted on: 04-15-2007, 02:18 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Alpha Fade Image, Wait, Fade Out, Next Frame
Greeting,
After three hous of review I have now looked at so many scripts (here and elsewhere) of fading in/out that I am more confused instead of less confused, which seems odd I know.
Here is what I have and what I want to do. I am using MX.
I have twenty images, one one each frame of a movie clip, placed around the stage. I want the imges placed instead of loaded so that I can control where they appear on the stage. I would like each image to fade in, stay on the stage for 4 seconds, fade out, and then go to the next frame (and repeat with the image located on that frame). Does anybody have any scripts that already do this. I am a beginner and I am not that famaliar with action scripting. I think what I need to do is use an onEnterFrame, with an alpha fade in, some type of delay/counting script, and then a fade-out, and go to the next frame.
I know that you all have thousands of things you could be doing instead of helping me, so please know that I appreciate it.
Image Fade In/fade Out Script
hi all! im new to this forum and a newbie on flash so please bear with me.
i'm wondering if i can create an image fading script which reads a text file that contains the path to the images and display it continously (i.e. loop). additionally, each of the image has a corresponding url so that if a particular image appears and the user clicks that image, the page will go to the specified url.
probably the text file should look like,
syntax: [path|url] delimited by pipe (|)
-----------------------------
/images/pic1.gif|http://www.yahoo.com
/images/pic2.gif|http://www.google.com
/images/pic3.gif|http://www.altavista.com
is this possible? thanks.
XML Gallery: Preload On Current Image/cross-fade Image
Hello,
I am new to action script but I am learning quickly.
I took the following tutorials and made a hybrid:
Photo Gallery Using XML and Flash
Photo Slideshow Using XML and Flash
I redesigned the interface and created this:
http://www.onarresdesign.com/greg/work2.html
Everything works great, but now I want to take it further than the tutorial.
I am trying to make the images cross-fade. I am open to any suggestions and I have tried many techniques with little success.
Here is the closest solution steps I have come up with:
Code:
1) First image preloads (grey background showing)
2) First image loaded into top level MC 1
3) First image fades in
4) First image in top level MC 1 remains visible
5) First image gets loaded into bottom level MC 2 behind current movie clip.
6) Top level MC 1 clears because its preloading next image
Bottom level MC 2 remains visible
7) Preloader shows on top of bottom level MC 2
8) Next image is loaded into top level MC 1
9) Next image fades in (cross-fade effect achieved because previous image is behind it)
10) Next image gets loaded into bottom level MC 2
Repeat process
I can't get the action script to do what I want. I have off set the moveclips to show that the images are loading into both movieclips. I currently have the 'nextImage()' function controlling this so it is understandable the both images are cleared because the function is loading new images into the movie clips at the same time. How do I get one movie clip to remain constant while the other is loading? It seems to be a matter of where the function is placed. Or so I think.
I would appreciate any help I can get on this. If would also appreciate any suggestions for making the code for the control buttons cleaner.
Thank you,
</asla>
Loop While Image Is Loading / Fade Image As It Loads
Hi, another question:
I'm pulling a jpeg into a flash file using this:
loadMovie("digitalP_bg_2.jpg", "holder");
i have a shape over the image which is being pulled in, and this shape is supposed to fade after the jpeg is loaded - i've used straight forward tweening for the fade. howe ever, even though the loadMovie function is placed before the fade on the timeline, the jpeg takes a while to load and so the fade happens before the actual image has loaded.
my action scriptiing is very very minimal, i'd like to know if there's an easy enough solution to this. what i am thinking of possibly is creating a loop while the image is loading - provided that it isn't too complex to detect how much of the image is loaded.
any suggestions?
you can view the fla and swf here:
http://www.ponch.biz/flashtest/
cheers
Ponch
Fade In And Fade Out Issue
I'm trying to fade out the MC once the time has runout... Any ideas? Here is my code...
PHP Code:
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
this._alpha += 2;
if (this._alpha>8) {
this._alpha = 8;
this.onEnterFrame = null;
}
myFrameTimer = function () {
this._alpha -= 2;
if (this._alpha<0) {
this._alpha = 0;
this.onEnterFrame = null;
}
clearInterval(myTimer);
};
myTimer = setInterval(myFrameTimer, 10000);
}
Fade Another Image On The Screen In And Out When Mouse Over Another Image
Im hoping someone can help me with this flash dilemma thats been bothering me. I have 3 images on the stage and when the mouse goes over one of the images, i want the other two to fade out. Then when the mouse leaves that same image, i want the two images that faded out, to fade back in. So far, ive turned the images into movie clips and made the movie clips fade out until frame 31. then i put an action to stop at 31 and then i have the fade in sequence from frame 32 to 60 (then i had a stop action at the end of that too). If anyone knows a good way to do this, i would really appreciate it. Id rather not do this with buttons, but if thats the only way you know, im still open to it because i really appreciate any feedback given. THANKS!!!!
[MX04] Image Fade + Image Cycle [HELP]
Hi guys,
Seeing as how I am only a lowly graphic designer, I was wondering if you fellas who actually know a little bit of Flash could throw me a bone here... and for the record I have searched probably 100 threads before posting trying to find something similar to the below URL but came up with nothing... if you know of one please point me there!
Anyway, I want to design a navigation banner very similar in functionality to:
http://www.greathomessonoma.com/
As you can see, when you mouseover the text, the image fades out and then is replaced by the next of 3 images total per category.
How does this work? I'd REALLY appreciate some help here, I'm just trying to get by with what I know. I'm assuming that they are linked movie clips with an alpha actionscript with some kind of organized (not random) rotation method. Anyway, thanks for the read and hope to hear back from someone!
[MX04] Image Fade + Image Cycle [HELP]
Hi guys,
Seeing as how I am only a lowly graphic designer, I was wondering if you fellas who actually know a little bit of Flash could throw me a bone here... and for the record I have searched probably 100 threads before posting trying to find something similar to the below URL but came up with nothing... if you know of one please point me there!
Anyway, I want to design a navigation banner very similar in functionality to:
http://www.greathomessonoma.com/
As you can see, when you mouseover the text, the image fades out and then is replaced by the next of 3 images total per category.
How does this work? I'd REALLY appreciate some help here, I'm just trying to get by with what I know. I'm assuming that they are linked movie clips with an alpha actionscript with some kind of organized (not random) rotation method. Anyway, thanks for the read and hope to hear back from someone!
[MX04] Image Fade + Image Cycle [HELP]
Hi guys,
Seeing as how I am only a lowly graphic designer, I was wondering if you fellas who actually know a little bit of Flash could throw me a bone here... and for the record I have searched probably 100 threads before posting trying to find something similar to the below URL but came up with nothing... if you know of one please point me there!
Anyway, I want to design a navigation banner very similar in functionality to:
http://www.greathomessonoma.com/
As you can see, when you mouseover the text, the image fades out and then is replaced by the next of 3 images total per category.
How does this work? I'd REALLY appreciate some help here, I'm just trying to get by with what I know. I'm assuming that they are linked movie clips with an alpha actionscript with some kind of organized (not random) rotation method. Anyway, thanks for the read and hope to hear back from someone!
Xml Slideshow Tutorial - Fade From Image To Image?
I am building a slideshow for a client based on Kirupa's fantastic tutorial http://www.kirupa.com/developer/mx2004/xml_slideshow.htm
I want to change it so that instead of new images fading in from the background color, they fade from image to image. To that end, I have created another instance of the image mc the same as "picture" but called "bg_picture". I have placed it in the same layer as picture, but sent it to the back so it would lie behind the main picture.
My thought was to load the current picture as a background picture before p got incremented (or decremented) and the new image fades in. That way, the fade will be from one image directly to the next. I have edited the code as follows:
Code:
function nextImage() {
if (p<(total-1)) {
bg_picture.loadMovie(image[p], 1); //added this line
p++;
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
picture_num();
slideshow();
}
}
}
When I test the flash file, the slideshow performs as expected except that when the new line is called, the image showing blinks out to the background color momentarily, then reappears before the new image fades in.
I thought it might be a question of the background image not being preloaded, so I tried the following code to force the background image to load before the transition starts. Unfortunately, there was no discernable difference in the display.
Code:
function nextImage() {
if (p<(total-1)) {
bg_picture._alpha = 0; //added code starts here
bg_picture.loadMovie(image[p], 1);
bg_filesize = bg_picture.getBytesTotal();
bg_loaded = bg_picture.getBytesLoaded();
if (bg_loaded == bg_filesize) {
bg_picture._alpha = 100; //added code ends here
p++;
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
picture_num();
slideshow();
}
} //added code
}
}
Does anyone have any idea what I can do to have this transition smoothly?
Fade In/out Issue
I am building a site at www.kansascitymenus.com/herefordhouse/test.html, that does some fade in/out stuff.
At the top, there are locations for the restaurant. you mouseover them, and it plays a movie below, that fades in. Move your cursor off the button, it fades out. I used a simple
on (rollOver) {
independence.gotoAndPlay(2);
}
on (releaseOutside, rollOut, dragOut) {
independence.gotoAndPlay(28);
for this.
The problem is that if you cursor out before the fade-in is finished, the jump ahead to frame 28 brings the Alpha to 100% before fading out, and looks choppy. I want to make is so that when you cursor in, it slowly Alpha's up to 100%, and if you cursor out before it hits 100%, it starts to fade from whatever Alpha it was up to. Right now I am doing the fades with tweens. I'm sure there is a fancy actionscript way to do it. If you could help me with this i would appreciate it.
Alpha Fade Issue
To create fades- I sometimes use a fade layer on top of elements- that is the same color as the bg.
This one (for some reason) seems to flicker- indicating that it's getting darker that 100% for a couple of moments.
Here is a simple example of the issue:
http://robinkmedia.com/alpha_example.swf
This happens using actionscript- or tweening.
It works fine with other colors (white box on white bg/ black on black/ red on red)
Anyone have any idea why- or experienced this before?
I know of other ways to create fades- but I need it to work this way for this project.
I would SO appreciate this if you could help- I'll even send you a small token of appreciation!
Fade In/Out MP3 Player Issue
Hi everyone, I think this comunity is great.I've learned a lot from you.
Now I have a small problem:
I've built an mp3 player, wich I want to fade in when mouseOver a text-button, and out when, well..out :D
The player works perfect outside a tweening animation(test scene), but not when u publish the whole movie.
Please, could anyone give me some advice?
If you are kind enough, the .fla is here:
http://www.square99.com/gotoMp3/mp3_player.fla
Thanks a lot!
Color Multiplication Issue On Fade MC
Hi guys,
I am getting there but have a tiny prob with the simple navigation system which fades in when you click the buttons. There is no content at the moment as i am having an issue with the fade in MC.
http://www.angelabrainphotography.co...ndex_main.html
If you look at the edges of the MC, the colour of the SWF bg changes when the fade begins. This becomes apparent at th edge of the SWF where the flash overlaps with the HTML page. I am guessing this is due to the multiplication of the the alpha over the bg of the browser. I have no idea how to solve this, can you offer any advice?
So far I have adjusted the timing, the alpha, the MC layer blend all with no success. I have stopped removing the bg of the SWF using the browser and added a bg in flash but still this hasn't worked.
Hope someone can help?
RS.
Full Screen Fade In Issue
I have some full screen code which works really well... I added a fade in to the code which does work to fade in the image but after 2 minutes the image just dissappears... Thought maybe you AS experts out there might be able to see what I am doing wrong! I've commented out the fade in code...
Code:
function loadBitmapSmoothed(url:String, target:MovieClip) {
var bmc:MovieClip = target.createEmptyMovieClip("bmc", target.getNextHighestDepth());
var listener:Object = new Object();
listener.tmc = target;
listener.onLoadProgress = function(target:MovieClip, bytesLoaded:Number, bytesTotal:Number):Void {
percent = Math.round((bytesLoaded/bytesTotal)*100);
pText.text = percent+"%";
};
listener.onLoadInit = function(mc:MovieClip) {
//fade in image
//mc._alpha=0; // Make mc 'mcl' _alpha 0
//mc.onEnterFrame=function(){ // Create new function
//mc._alpha +=15; // Speed 15
mc._visible = false;
var bitmap:BitmapData = new BitmapData(mc._width, mc._height, true);
this.tmc.attachBitmap(bitmap, this.tmc.getNextHighestDepth(), "auto", true);
bitmap.draw(mc);
// set size and position on load
if (Stage.height/Stage.width>target._height/target._width) {
img_prop = target._width/target._height;
target._height = Stage.height;
target._width = Stage.height*img_prop;
target._y = (Stage.height/2)-(target._height/2);
target._x = (Stage.width/2)-(target._width/2);
} else {
img_prop = target._height/target._width;
target._width = Stage.width;
target._height = Stage.width*img_prop;
target._y = (Stage.height/2)-(target._height/2);
target._x = (Stage.width/2)-(target._width/2);
}//}
};
var loader:MovieClipLoader = new MovieClipLoader();
loader.addListener(listener);
loader.loadClip(url, bmc);
}
Full Screen Fade In Issue
I have some full screen code which works really well... I added a fade in to the code which does work to fade in the image but after 2 minutes the image just dissappears... Thought maybe you AS experts out there might be able to see what I am doing wrong! I've commented out the fade in code...
Code:
function loadBitmapSmoothed(url:String, target:MovieClip) {
var bmc:MovieClip = target.createEmptyMovieClip("bmc", target.getNextHighestDepth());
var listener:Object = new Object();
listener.tmc = target;
listener.onLoadProgress = function(target:MovieClip, bytesLoaded:Number, bytesTotal:Number):Void {
percent = Math.round((bytesLoaded/bytesTotal)*100);
pText.text = percent+"%";
};
listener.onLoadInit = function(mc:MovieClip) {
//fade in image
//mc._alpha=0; // Make mc 'mcl' _alpha 0
//mc.onEnterFrame=function(){ // Create new function
//mc._alpha +=15; // Speed 15
mc._visible = false;
var bitmap:BitmapData = new BitmapData(mc._width, mc._height, true);
this.tmc.attachBitmap(bitmap, this.tmc.getNextHighestDepth(), "auto", true);
bitmap.draw(mc);
// set size and position on load
if (Stage.height/Stage.width>target._height/target._width) {
img_prop = target._width/target._height;
target._height = Stage.height;
target._width = Stage.height*img_prop;
target._y = (Stage.height/2)-(target._height/2);
target._x = (Stage.width/2)-(target._width/2);
} else {
img_prop = target._height/target._width;
target._width = Stage.width;
target._height = Stage.width*img_prop;
target._y = (Stage.height/2)-(target._height/2);
target._x = (Stage.width/2)-(target._width/2);
}//}
};
var loader:MovieClipLoader = new MovieClipLoader();
loader.addListener(listener);
loader.loadClip(url, bmc);
}
Text Alpha Fade Issue
Hello:
I've searched the forums and came up dry on this.
Why do my alpha fades not appear correctly when my text that I'm trying to fade is on a layer over a simple blue background (graphical symbol).
If I select any frames between my keyframes where my alpha tween is created, I see the text go from invisible to fully opaque. However, when I run the movie using ctrl-enter, the fade does not work and the text is fully opaque the entire time.
Any ideas?
Hexed.
- Thank god. Segmental faults are non-existant in flash.
Multiple Buttons: Fade Out Issue
The buttons share same tween class alpha function to fade out particular instance. The function only works when mouseover any first button and then can't get the function to work again if mouseover another button afterward. Any suggestion?
Code:
import mx.transitions.Tween;
import mx.transitions.easing.*;
function box(easeType) {
var begin = 100;
var end = 0;
var time = 0.2;
var mc = _level10.box;
boxTween = new mx.transitions.Tween(mc, "_alpha", easeType, begin, end, time, true);
}
button1.hit.onRollOver = function() {
box(mx.transitions.easing.Strong.easeOut);
}
button1.hit.onRollOut = function() {
_level10.box._alpha = 100;
}
}
button2.hit.onRollOver = function() {
box(mx.transitions.easing.Strong.easeOut);
}
button2.hit.onRollOut = function() {
_level10.box._alpha = 100;
}
}
Colour / Alpha Issue On Fade MC
Thanks for all the advice so far everyone.
I am getting there but have a tiny prob with the simple navigation system which fades in when you click the buttons. There is no content at the moment as i am having an issue with the fade in MC.
http://angelabrainphotography.com/site/index_main.html
If you look at the edges of the MC, the colour of the SWF bg changes when the fade begins. This becomes apparent at th edge of the SWF where the flash overlaps with the HTML page. I have no idea how to solve this, can you offer any advice?
So far I have adjusted the timing, the alpha, the MC layer blend all with no success. I have stopped removing the bg of the SWF using the browser and added a bg in flash but still this hasn't worked.
Its not a major issue but it does look unprofessional. Hope someone can help.
ARS.
Full Screen Fade In Issue
I have some full screen code which works really well... I added a fade in to the code which does work to fade in the image but after 2 minutes the image just dissappears... Thought maybe you AS experts out there might be able to see what I am doing wrong! I've commented out the fade in code...
Code:
function loadBitmapSmoothed(url:String, target:MovieClip) {
var bmc:MovieClip = target.createEmptyMovieClip("bmc", target.getNextHighestDepth());
var listener:Object = new Object();
listener.tmc = target;
listener.onLoadProgress = function(target:MovieClip, bytesLoaded:Number, bytesTotal:Number):Void {
percent = Math.round((bytesLoaded/bytesTotal)*100);
pText.text = percent+"%";
};
listener.onLoadInit = function(mc:MovieClip) {
//fade in image
//mc._alpha=0; // Make mc 'mcl' _alpha 0
//mc.onEnterFrame=function(){ // Create new function
//mc._alpha +=15; // Speed 15
mc._visible = false;
var bitmap:BitmapData = new BitmapData(mc._width, mc._height, true);
this.tmc.attachBitmap(bitmap, this.tmc.getNextHighestDepth(), "auto", true);
bitmap.draw(mc);
// set size and position on load
if (Stage.height/Stage.width>target._height/target._width) {
img_prop = target._width/target._height;
target._height = Stage.height;
target._width = Stage.height*img_prop;
target._y = (Stage.height/2)-(target._height/2);
target._x = (Stage.width/2)-(target._width/2);
} else {
img_prop = target._height/target._width;
target._width = Stage.width;
target._height = Stage.width*img_prop;
target._y = (Stage.height/2)-(target._height/2);
target._x = (Stage.width/2)-(target._width/2);
}//}
};
var loader:MovieClipLoader = new MovieClipLoader();
loader.addListener(listener);
loader.loadClip(url, bmc);
}
FLV Fade / Alpha Tween In Issue
Hey everyone
I think I've found the crux of my issue, but I'm not really sure how to solve it. I simply have one FLVPlayback component in the background and a movieclip on the layer above with an FLVPlayback component inside it. The first FLV component is constantly looping a five-second video.
So all I need is for the movieclip containing the second FLV component to load the right file, fade in, and when the video ends, fade out. Absolutely all of that works... apart from the fading in.
What I noticed was that my movieclip was fading in correctly, but the FLVPlayback component was empty and transparent until the fade had finished - then it played the clip. Here's my code, which gets called at random intervals:
Code:
function getHead() {
rand = Math.floor(Math.random() * 4) + 1;
feature.vid.load(headArray[rand]);
feature.vid.play();
var newtween:Tween = new Tween(feature, "_alpha", Strong.easeOut, 0, 100, 21, false);
}
...where feature is the name of my movieclip, and vid is the name of the component.
Does anybody have a solution for this irritating issue?
Thanks for your help.
Text Alpha Fade Issue
Hello:
I've searched the forums and came up dry on this.
Why do my alpha fades not appear correctly when my text that I'm trying to fade is on a layer over a simple blue background (graphical symbol).
If I select any frames between my keyframes where my alpha tween is created, I see the text go from invisible to fully opaque. However, when I run the movie using ctrl-enter, the fade does not work and the text is fully opaque the entire time.
Any ideas?
Hexed.
- Thank god. Segmental faults are non-existant in flash.
Full Screen Fade In Issue
I have some full screen code which works really well... I added a fade in to the code which does work to fade in the image but after 2 minutes the image just dissappears... Thought maybe you AS experts out there might be able to see what I am doing wrong! I've commented out the fade in code...
Code:
function loadBitmapSmoothed(url:String, target:MovieClip) {
var bmc:MovieClip = target.createEmptyMovieClip("bmc", target.getNextHighestDepth());
var listener:Object = new Object();
listener.tmc = target;
listener.onLoadProgress = function(target:MovieClip, bytesLoaded:Number, bytesTotal:Number):Void {
percent = Math.round((bytesLoaded/bytesTotal)*100);
pText.text = percent+"%";
};
listener.onLoadInit = function(mc:MovieClip) {
//fade in image
//mc._alpha=0; // Make mc 'mcl' _alpha 0
//mc.onEnterFrame=function(){ // Create new function
//mc._alpha +=15; // Speed 15
mc._visible = false;
var bitmap:BitmapData = new BitmapData(mc._width, mc._height, true);
this.tmc.attachBitmap(bitmap, this.tmc.getNextHighestDepth(), "auto", true);
bitmap.draw(mc);
// set size and position on load
if (Stage.height/Stage.width>target._height/target._width) {
img_prop = target._width/target._height;
target._height = Stage.height;
target._width = Stage.height*img_prop;
target._y = (Stage.height/2)-(target._height/2);
target._x = (Stage.width/2)-(target._width/2);
} else {
img_prop = target._height/target._width;
target._width = Stage.width;
target._height = Stage.width*img_prop;
target._y = (Stage.height/2)-(target._height/2);
target._x = (Stage.width/2)-(target._width/2);
}//}
};
var loader:MovieClipLoader = new MovieClipLoader();
loader.addListener(listener);
loader.loadClip(url, bmc);
}
Tween Class (alpha): Fade In Issue
Below's functions for rollover to fade out an object and rollout to fade in an object. Can't get the fade in to work (object still not visible/appear in), any suggestion?
Code:
// Import Tween/Easing classes
import mx.transitions.Tween;
import mx.transitions.easing.*;
function ballov(easeType) {
var begin = 100;
var end = 0;
var time = 0.2;
var mc = _level10.test;
ballov Tween = new mx.transitions.Tween(mc, "_alpha", easeType, begin, end, time, true);
}
function ballout(easeType) {
var begin = 0;
var end = 100;
var time = 1;
var mc = _level10.test;
balloutTween = new mx.transitions.Tween(mc, "_alpha", easeType, begin, end, time, true);
}
button.hit.onRollOver = function() {
ballov(mx.transitions.easing.Strong.easeOut);
}
button.hit.onRollOut = function() {
ballout(mx.transitions.easing.Strong.easeIn);
}
}
Thanks!
Friggin' Mick!
[MX04] Loading Dynamic Jpgs With Fade--cache Issue
hello. i'm using flash mx and working on this photographers website and have cut and pasted and tweeked a little code to load jpgs dynamically with a fade transition between the outgoing and incoming jpg. problem is that the first time you go to the site the images aren't cached and so the images don't fade in the first time. i would like to change that so everything fades accordingly.
my guess is that i need some kind of getBytesTotal() script to make sure that each image gets downloaded to the users cache first before it fades in.
but i'm not sure how to append the code i have with that script. i'm still definitely trying to grasp this stuff and am more of a copy/paste/tweaker of script than a write my own (although i'm working on it). any help would of course be greatly appreciated.
the website can be viewed here: www.ericpercher.com
and here is the script i'm working with:
jpgArray = new Array("images/image_0.jpg", "images/image_1.jpg", etc.)
//create two MovieClips that will hold the loaded files
this.createEmptyMovieClip("target1",1)
target1._x = 14;
target1._y = 76;
this.createEmptyMovieClip("target2",2)
target2._x = 14;
target2._y = 76;
//load first movie into clip 1 to start with the first image
target1.loadMovie(jpgArray[0]);
//set target 2s alpha to 0 so it can fade in
target2._alpha = 0;
activeTarget = target1;
currentIndex = 0
this.onEnterFrame = function() {
if (obj1._alpha > 0) {
obj1._alpha -= 10;
}
if (obj2._alpha < 100) {
obj2._alpha += 10;
}
};
button_0.onRelease = function() {
gotoAndStop( "dis0" );
if (activeTarget == target1) {
obj1 = target1;
obj2 = activeTarget = target2;
} else {
obj1 = target2;
obj2 = activeTarget = target1;
}
obj2.loadMovie(jpgArray[0])
obj1.onEnterFrame = function () {
if (this._alpha <=0 ) {
this.unloadMovie();
delete this.onEnterFrame;
}
}
};
then i have multiple buttons (button_1, _2, etc) which use the code directly above and load the next image in the array. thank you.
Image Fade In
If I have an image I want to slowly fade in, what actionscript would I use......I am very new to flash, and if someone could give me some sample code and tell me how it works, I would be greatly appreciative.
Fade To Any Image
I'm looking for some help creating a controllable slide show that works something like this:
You have a series of images that can be faded into each other by using a set of buttons. Each button triggers a specific image. Of course, this is not a simple tween job because you have to be able to go from any 1 image and fade to any other one.
I remember that josh ulm did a talk on this at flash forward 2000 and it was done in flash 4 with actionscript but i can't remember how to do it.
I'm using flash 4 mac but help in any version would be appreciated. Thanks.
Fade Image In And Out
I got my code to randomly load the movie images but I want to fade them in and out so they don't seems so jerky. I am also not pleased with the randomness of the the function. When I whatch the movie play I trace(rand) and it doesnt seem to randomize correctly. So I was wondering if someone could help me get the images to fade in then pause for a few milliseconds then fade out and as it fades out the the next image is fading in. I have two mc's one on the left and one on the right.
Code:
function randImage() {
rand = Math.floor(Math.random() * 3) + 1;
trace(rand)
ImageHolder.loadMovie("img" + rand + ".jpg");
ImageHolder2.loadMovie("chef" + rand + ".jpg");
}
setInterval(randImage, 1000);
Fade In/out Image
Hi,
first time on the forums,
im workin on a personal site for myself and need sum help,
i want to make an image fade in/out when the mouse moves over/out
of the image, ive got about 7 images on the page page,
i tired to use the movie clip example i found on hte net,
but i don't understand how it works/ how to add the same eefect on the other images too. can any one plz help me out,
if needed u can add me to ur msn: sexyhottchick4eva@hotmail.com
take care
How Do I Fade In An Image
hi all
im having problems, in that i want an image to fade in over another how do i fade in flash mx thanks to all that can help
chris
Image Fade In & Out
Hi!
I have a problem which i think is very strange. I have downloaded a fla from flashkit which is called "fade image gallery v3". What it does is basically fading images in and out. The problem is that it contains 10 buttons and 10 movieclips and it runs very smooth. But when i try to add more movieclips and buttons(i wanŽt 22 in total) the swf becomes very slow. It feels like it runs in slowmotion. Does anybody knows what the problem might be. IŽll send along the link to the fla if someone might want to help me. HELP ME Please. it is very important.
http://www.flashkit.com/movies/Inter...8721/index.php
//Johan
Image Fade
I'm sure there's a simple answer to this but I've had a play around and can't get it to work.
What I want is for an image to fade into the next one in the sequence every 10 seconds.
Any ideas?
Thanks
Image Fade In....Please Help
Hi
Does anybody know how to fade in a photo slowly from the centre??
Exactly like this http://www.splasposa.com/entrada_index.asp?idioma=2
Any ideas would be greatly appreciated.
Cheers
Fade One Image Into Another
can anyone please help me ..
i am using dreamweaver to build a website. all i need is to have one image fades out and another image fades In ... and it should loop.
please help me
Jaffan
Fade Image
Currently I'm using the following to load a random image into a movie clip each time the movie starts.
loadMovie("bailey"+Random(05)+".jpg", "photo_mc");
What I would like to do is put an effect on this...such as alpha.
I've seen some of the alpha code, but I'm not sure how to implement it.
Thanks
Jason
Fade In Image
I have a project where I want an image to fade in and out when the use rolls over and out of a button. I used the Flash Help example script and it works fine for fade out but they don't give example script for fade in and I can't seem to modify the fade out script to work. Here's the fade out example:
var alpha_interval:Number = setInterval(fadeImage, 50, img1_mc);
function fadeImage(target_mc:MovieClip):Void {
target_mc._alpha -= 5;
if (target_mc._alpha <= 0) {
target_mc._visible = false;
clearInterval(alpha_interval);
}
}
Can someone show me how to modify this to do a fade in as simply changing it as follows doesn't work:
var alpha_interval:Number = setInterval(fadeImage, 50, img1_mc);
function fadeImage(target_mc:MovieClip):Void {
target_mc._alpha += 5;
if (target_mc._alpha >= 95) { //I've tried many variations of this line.
target_mc._visible = true;
clearInterval(alpha_interval);
}
}
Thanks,
Rick
[CS3] Fade Image
Hi All,
It's been a while but I'm trying to build out a site and want to fade up some images. I recall seeing a post that expained how to get an image to fade on using it's levels (the dark areas would appear, then the light areas). It didn't fade on evenly. Does this make sense to anyone and does anyone know how I can do this. Perhaps the color matrix was used . . . like I said, it's been a while.
Thanks.
_t
Image Fade In Help
hey guys
I have an image inside an mc and i want it to fade in any pointers.
Cheers guys
Fade In Image, Help Please
I have a movieclip load an image using the following code:
ActionScript Code:
loadMovie("images/test.jpg", "thumb1");
I know the code to make a movieclip fade out, but how do I make it fade in?
I tried this, but it still starts out with a alpha of 1 (instead of 0), then goes to 100.
ActionScript Code:
onClipEvent (load) {
this._alpha = 1;
}
onClipEvent (enterFrame) {
if (this._alpha>0) {
this._alpha = this._alpha+2;
}
}
Image Fade
http://www.hiflyingcharters.com/
Can anyone tell me how the image fade is done on the main page of this site?
I have a basic knowledge of flash
Rgds
Image Fade
Hi, this is what i'd like to accomplish, I'd like to create a splash page. I have like 3 or 4 images that i'd like to fade into the next image. How can I do that??
For instance:
image1 phases into image2,
image2 phases into image3,
image3 phase into image4,
then image4 phase back into image1
Thanks.
Image Fade
Hi im new to flash and im making a simple series of images that fade in one by one from top to bottom on a page. To do that im simply using keyframing and the aplha function. Making the images fade in over 20 frames. However just before the images become fully visible they seem to stretch slightly and come back into position. Ive checked and theres no tweens that would make it do this. Is this a common problem and does anyone know of anyway around this??
Any help would be appreciated!!
Thanks
Neil
Fade Image, Appear Another
i just started with Flash MX2004, but I only found some easy tutorials, and not the HANDY ones. So I'm wondering how can i fade an image, and let another image appear instead of the fading one.
And another questions, how can I let pictures (8) move in circles so that u see each one of them (www.suicidesoldiers.co.uk that's what I mean)
or mayb the idea of the figure eight...
ty
Squadron
Image Fade Q?
anyone got any tips for fading in an image in flash with a bit of a twist... seen it a few places, not just an alpha fade but almost like it's got a filter on it... but without using PS?
Image Fade-ins
Hi can anyone tell me how to make those images wich fade-in out of nothing?
Can I make little movies of them and import them into dreamweaver?
Let me know please.
like in the site:
http://www.benesseresamoa.com/
choose flash and then for example "Dove Siamo" like the flower.
I've seen it so many times in other sites and like to know how to make this.
Fade An Image?
??? I'm trying to create an image that will fade in and hold on the front piece of a intro page and don't know how to do it. I've searched all through my lessons (flash mx) and "computer arts - flash hand book" but can find no reference to a fade effect for a gif or jpeg... can anybody help - thanks
zendo
Image Fade
Hello all. I wanted to inquire about fading in & out an image. I'm a little unsure what is causing my image to 'shrink' & 'expand' when I have not transformed the image in any way.
Here is what I did: I stared with an image, converted it into a symbol. Then I changed the alpha 0% to 100% and back....all with the motion tween.
http://216.197.105.184/flash/my_first_tween.html (look closely at the center of the image)
Does anyone know what would cause this, or how to correct the problem?
Thanks!
|