Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash








Problem With Dynamic Image Fade


Im trying to make a flash movie where the infinate number of images are loaded from external file. Then a loop is made from fading images.

Here's the current code, any ideas how to make images fade one by one?


ActionScript Code:
function fadinaway(){ var alpha_interval:Number = setInterval(fadeImage, 50, target_mc);
function fadeImage(fadeeee:MovieClip):Void {
    fadeeee._alpha -= 5;
    if (fadeeee._alpha <= 0) {
        fadeeee._visible = false;
        clearInterval(alpha_interval);
    }
}}

var n:Number = 0;
this.createEmptyMovieClip("target_mc", this.getNextHighestDepth());
loadVariables("params.txt", target_mc);
function checkParamsLoaded() {
    if (target_mc.done == undefined) {
        trace("not yet.");
    } else {
        for (i in target_mc) {
            n = n+1;
            trace(target_mc[i]);
            duplicateMovieClip(target_mc, "target_mc2"+n, n);
            fadinaway()
            target_mc._x = target_mc._x+50;
            loadMovie(target_mc[i], "target_mc2"+n);
            trace(n);
        }
        clearInterval(param_interval);
    }
}
var param_interval:Number = setInterval(checkParamsLoaded, 100);

external file:

PHP Code:



pilt1=http://www.helpexamples.com/flash/images/image1.jpg&pilt2=http://www.helpexamples.com/flash/images/image2.jpg&done="done" 





current status:
http://www.zone.ee/bluescreen/vahetple_0.1.html




ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0
Posted on: 07-18-2006, 02:59 PM


View Complete Forum Thread with Replies

Sponsored Links:

Dynamic Image Fade
hello folks!

i need to fade some dynamic images one after the other in.. how i do this?


Code:
this.imgs = ['oks.jpg','oks2.jpg'];

var x = 0;
var y = 0;

var i;
for (i in imgs) {
var t = this.createEmptyMovieClip ("thumbnail" + i, i);
var c = t.createEmptyMovieClip ("picHolder", 0);
var thumb = imgs[i];
c.loadMovie (thumb);
c._x = x + (80 * i);
c._y = y;
c._alpha = 80;
}

http://oliver.mopa.at/oks/oks_intro.fla

thanks in advance!
oliver

View Replies !    View Related
Dynamic Image Fade - Help
I am trying to have a simple fade for my image gallery. This works perfect. Except, after I click approximately ten times, a graphic on a separate layer below my container movieClip get's erased. It is strange becase it is just a plain graphic placed on the stage. For some reason it goes away after I click this gallery over ten clicks. Strange.


Code:
import mx.transitions.Tween;
import mx.transitions.easing.*;

var imgLevel:Number = 6000;
var attachLevel:Number = 5000;
var imgMC:String = "containerImg" + this.imgLevel;
var prevImgLevel:Number;
var prevImgMC:String;
var imageNum:Number = 1;

function nextNewImage(Void):Void {
this.imgLevel--;
this.imgMC = "containerImg" + this.imgLevel;
this.prevImgLevel = this.imgLevel + 1;
this.prevImgMC = "containerImg" + this.prevImgLevel;
this.container_mc.createEmptyMovieClip(this.imgMC, this.imgLevel);
this.container_mc[imgMC].attachMovie('img' + this.imageNum, 'img' + this.imgMC, this.attachLevel);

// Fade out
var imgFade:Tween = new Tween(this.container_mc[prevImgMC], '_alpha', Strong.easeOut, 100, 0, .5, true);
this.imgFade.onMotionFinished = function(Void):Void {
container_mc[prevImgMC].removeMovieClip();
};
}

// Load Default Image
this.nextNewImage();

this.nextImg_mc.onRelease = function(Void):Void {
if (imageNum == 4) {
imageNum = 1;
} else {
imageNum++;
}
nextNewImage();
};

this.prevImg_mc.onRelease = function(Void):Void {
if (imageNum == 1) {
imageNum = 4;
} else {
imageNum--;
}
nextNewImage();
};

View Replies !    View Related
Dynamic Image Fade
hello folks!

i need to fade some dynamic images one after the other in.. how i do this?


Code:
this.imgs = ['oks.jpg','oks2.jpg'];

var x = 0;
var y = 0;

var i;
for (i in imgs) {
var t = this.createEmptyMovieClip ("thumbnail" + i, i);
var c = t.createEmptyMovieClip ("picHolder", 0);
var thumb = imgs[i];
c.loadMovie (thumb);
c._x = x + (80 * i);
c._y = y;
c._alpha = 80;
}

http://oliver.mopa.at/oks/oks_intro.fla

thanks in advance!
oliver

View Replies !    View Related
Dynamic Image Loader With Fade Help
Hello All,

I am making a Dynamic Image Loader with a fade in, fade out loader. I am using some premade code and when you click on the image it fades out then fades in the next image.

Could you please help me take out the onPress part so it just goes to the next image without somone needing to click to make that happen?

I am clueless on this one.
Thanks so much for your time,
Bobby

var baseurl = _url.substr(0,_url.lastIndexOf("/")+1);
var dir = baseurl + "flash_images/home";
var images = ["1","2","3","4","5","6","7"];

playFade = function(){
this.gotoAndStop(this._currentframe + this.speed);
}
loadFade = function(){
var lod = this.fader.contents.getBytesLoaded();
var tot = this.fader.contents.getBytesTotal();
if (lod && tot && lod == tot){
this.speed = -1;
this.onEnterFrame = playFade;
}
}
pressForNext = function(){
this.speed = 1;
delete this.onPress;
}

fading_symbol.onFadeOut = function(){
this.speed = 0;
this.fader.contents.loadMovie(dir + "/" + images[0] + ".jpg");
images.push(images.shift());
this.onEnterFrame = loadFade;
}
fading_symbol.onFadeIn = function(){
this.speed = 0;
this.onPress = pressForNext;
}

fading_symbol.gotoAndStop(fading_symbol._totalfram es); // straight to onFadeOut
stop();

View Replies !    View Related
Problem With Dynamic Image Fade
Im trying to make a flash movie where the infinate number of images are loaded from external file. Then a loop is made from fading images.

Here's the current code, any ideas how to make images fade one by one?


ActionScript Code:
function fadinaway(){ var alpha_interval:Number = setInterval(fadeImage, 50, target_mc);function fadeImage(fadeeee:MovieClip):Void {    fadeeee._alpha -= 5;    if (fadeeee._alpha <= 0) {        fadeeee._visible = false;        clearInterval(alpha_interval);    }}}var n:Number = 0;this.createEmptyMovieClip("target_mc", this.getNextHighestDepth());loadVariables("params.txt", target_mc);function checkParamsLoaded() {    if (target_mc.done == undefined) {        trace("not yet.");    } else {        for (i in target_mc) {            n = n+1;            trace(target_mc[i]);            duplicateMovieClip(target_mc, "target_mc2"+n, n);            fadinaway()            target_mc._x = target_mc._x+50;            loadMovie(target_mc[i], "target_mc2"+n);            trace(n);        }        clearInterval(param_interval);    }}var param_interval:Number = setInterval(checkParamsLoaded, 100);


external file:

PHP Code:



pilt1=http://www.helpexamples.com/flash/images/image1.jpg&pilt2=http://www.helpexamples.com/flash/images/image2.jpg&done="done" 





current status:
http://www.zone.ee/bluescreen/vahetple_0.1.html

View Replies !    View Related
Problem With Dynamic Image Fade
Last edited by Codemonkey : 2006-07-19 at 02:13.
























Im trying to make a flash movie where the infinate number of images are loaded from external file. Then a loop is made from fading images.

Here's the current code, any ideas how to make images fade one by one?


ActionScript Code:
function fadinaway() {
    var alpha_interval:Number = setInterval(fadeImage, 50, target_mc);
    function fadeImage(fadeeee:MovieClip):Void {
        fadeeee._alpha -= 5;
        if (fadeeee._alpha <= 0) {
            fadeeee._visible = false;
            clearInterval(alpha_interval);
        }
    }
}
var n:Number = 0;
this.createEmptyMovieClip("target_mc", this.getNextHighestDepth());
loadVariables("params.txt", target_mc);
function checkParamsLoaded() {
    if (target_mc.done == undefined) {
        trace("not yet.");
    } else {
        for (i in target_mc) {
            n = n + 1;
            trace(target_mc[i]);
            duplicateMovieClip(target_mc, "target_mc2" + n, n);
            fadinaway();
            target_mc._x = target_mc._x + 50;
            loadMovie(target_mc[i], "target_mc2" + n);
            trace(n);
        }
        clearInterval(param_interval);
    }
}
var param_interval:Number = setInterval(checkParamsLoaded, 100);


external file:

PHP Code:



pilt1=http://www.helpexamples.com/flash/images/image1.jpg&pilt2=http://www.helpexamples.com/flash/images/image2.jpg&done="done" 





current status:
http://www.zone.ee/bluescreen/vahetple_0.1.html

View Replies !    View Related
Dynamic Image Loading Fade Error
I'm having a very weird problem with a dynamic image slide show I'm working on. I am trying to have flash load a series of external .jpg images and then fade through them one by one. When you have less then ten images, this seems to work:

http://www.digitalstrawberry.net/cli...slide_show.swf

If you space the images out, they also work correctly how you would expect them to:
http://www.digitalstrawberry.net/cli...ect_fading.swf

The weird thing is that when I have eleven images or more, the first couple loaded images seem to "mask" each other, and theirfore don't show correctly.

http://www.digitalstrawberry.net/cli...slide_show.swf

You can see the masking problem when you space out all the images:
http://www.digitalstrawberry.net/cli...ect_fading.swf

The script currently duplicates a blank movieclip x number of times and then loads the images into the blank clips. Any idea what might be going wrong here?

View Replies !    View Related
How To Have Dynamic/external Loaded Image Fade In
Hello there,

I have a website that I recently converted all the 50 or so images to load externally. This is a good thing because I got the .swf file size from 3.5mb to 1mb. So what I am running into with that, if you go to the site: www.countandcastle.com you'll see that when you go to portfolio and click a thumbnail there is no transition it quickly jumps back to the original homepage image and then changes. Very "jittery" feeling. Does anyone know any code I can put into the move to help load these image files with a transition? The images load into _root.imageLoader and are activated/controlled by this script on the thumbnails movie clip.


Code:
function startLoading(whichImage) {
loadMovie(whichImage, "_root.imageLoader");
_root.onEnterFrame = function() {
infoLoaded = _root.imageLoader.getBytesLoaded();
infoTotal = _root.imageLoader.getBytesTotal();
percentage = Math.floor(infoLoaded/infoTotal*100);
_root.infoField.text = percentage+"%";
// Addition below to compensate for online lag, while bytes loaded & bytes total = 0...
if (percentage>=100 && infoLoaded > 0) {
delete this.onEnterFrame;
_root.infoField._visible = false;
}
};
};


var button_num:Number = 40; // number of buttons
var button_array:Array = new Array(); // array of button instance names

//Residential buttons
button_array[1] = "btn_mc01";
button_array[2] = "btn_mc02";
button_array[3] = "btn_mc03";
button_array[4] = "btn_mc04";
button_array[5] = "btn_mc05";
button_array[6] = "btn_mc06";
button_array[7] = "btn_mc07";
button_array[8] = "btn_mc08";
button_array[9] = "btn_mc09";
button_array[10] = "btn_mc10";
button_array[11] = "btn_mc11";
button_array[12] = "btn_mc12";
button_array[13] = "btn_mc13";
button_array[14] = "btn_mc14";
button_array[15] = "btn_mc15";
button_array[16] = "btn_mc16";
button_array[17] = "btn_mc17";
button_array[18] = "btn_mc18";
button_array[19] = "btn_mc19";
button_array[20] = "btn_mc20";
button_array[21] = "btn_mc21";
button_array[22] = "btn_mc22";
button_array[23] = "btn_mc23";
button_array[24] = "btn_mc24";
button_array[25] = "btn_mc25";
button_array[26] = "btn_mc26";
button_array[27] = "btn_mc27";
button_array[28] = "btn_mc28";
button_array[29] = "btn_mc29";
button_array[30] = "btn_mc30";
button_array[31] = "btn_mc31";
button_array[32] = "btn_mc32";
button_array[33] = "btn_mc33";
button_array[34] = "btn_mc34";
button_array[35] = "btn_mc35";
button_array[36] = "btn_mc36";
button_array[37] = "btn_mc37";
button_array[38] = "btn_mc38";
button_array[39] = "btn_mc39";
button_array[40] = "btn_mc40";
button_array[41] = "btn_mc41";
button_array[42] = "btn_mc42";
button_array[43] = "btn_mc43";
button_array[44] = "btn_mc44";

var btn_mc:MovieClip // temporary reference to button instance

// loop through array of buttons and assign actions
for (var i=0; i<button_array.length; i++) {

btn_mc = this[button_array[i]];

btn_mc["id"] = i; // create a unique id on this button

btn_mc.onRelease = function() {
infoField._visible = true;
if(this.id < 10){
startLoading("Creative/New Portfolio/residential enlarged/image0"+this.id+".jpg");
}else{
startLoading("Creative/New Portfolio/residential enlarged/image"+this.id+".jpg");
}
};

btn_mc.onRollOver = function() {
this.gotoAndPlay("t1");
};

btn_mc.onRollOut = function() {
this.gotoAndPlay("t2");
};

}// end loop
Any help would be greatly appreciated. I'd like to get this fixed soon, to avoid unhappy website visitors :P

Thanks,
Lorne

View Replies !    View Related
Fade Image In And Out Over Changing Dynamic Text From XML
What I am trying to do is to show the next three events for our club from an XML file, displaying them over a background image in a small looping Flash anim.

I have placed an image at the bottom, three dynamic text boxes on the layer above and I know that to get a fade effect using dynamic text , I have to place an image above the dynamic text layer so that is what I have done. As ever I am adapting code - this mainly from a fading slideshow.

This code loads the XMLstop();
var picArray:Array = new Array(); //array to hold the text
var thisNode:XMLNode = new XMLNode();
var arrPosition:Number = -1;
var xmlFile:String = "nextev.xml" ;//location of xmlfile
var imageXML:XML = new XML();
imageXML.ignoreWhite = true;
imageXML.onLoad = function(success:Boolean) {
for(var i:Number = 0;i<imageXML.firstChild.childNodes.length;i++) {
thisNode = imageXML.firstChild.childNodes[i];
picArray.push([thisNode.attributes.evname,thisNode.attributes.evw hen,thisNode.attributes.evwhere ]);
}
delete imageXML;
play();
}
imageXML.load(xmlFile);
In the next frame I am trying to use the tween class to make the top image fade in so as to cover the text while the next set of array values populate the boxes.stop();

// Import classes required for tweening
import mx.transitions.*;
import mx.transitions.easing.*;
// Init variables
var tweenTime:Number = 1; //time to fade
pic1._alpha = 1;
waitState = false;


var tween1:Tween = new Tween(pic1, "_alpha", Regular.easeIn, 1, 100 , tweenTime, true);
//loop back to the first event data after hitting the end

if(++arrPosition > picArray.length) {arrPosition = 0;};

tween1.onMotionFinished = function() {
eventname.text = picArray[arrPosition][0];
eventwhen.text = picArray[arrPosition][1];
eventplace.text = picArray[arrPosition][2];
arrPosition = ++arrPosition;
gotoAndStop(_currentframe+1);
}


Frame 3 is supposed to fade the covering image down and then wait for the showpicTime to elapse before going back to the fade up/data change of Frame 2stop();
import mx.transitions.*;
import mx.transitions.easing.*;
var showpicTime:Number = 4; //number of seconds to hide the pic between fades
var tweenTime:Number = 1; //time to fade
var tween2:Tween = new Tween(pic1, "_alpha", Regular.easeIn, 100, 1 , tweenTime, true);

startTime= (getTimer()/1000);
if (showpicTime>=(getTimer()/1000)-startTime) {
tween2.onMotionFinished = function() {
gotoAndStop(2);};
} else {
// Keep waiting...
};

The trouble is that when it runs there is a pause before the second item in the XML list appears, then it says undefined for all three text boxes and on the next loop it then alternates between the first item n the xml and the last. Also it is not holding the event information up for the required 4 seconds!

my xml is <?xml version="1.0"?><infos><event evname = "Fiesta Sailing" evwhen = "10am Sun 6th Apr" evwhere = "Landing Stage" /><event evname = "General Discussion" evwhen = "8pm Wed 9th Apr" evwhere = "Clubhouse" /><event evname = "Club 500" evwhen = "7pm Wed 16th Apr" evwhere = "Landing Stage" /></infos>

View Replies !    View Related
Dynamic Masking And Image Fade Slide Show
Hii,

I want to pick image from external source and want to dynamic mask those images and make a slide show to change images with fade in fade out effect.
In other words i want both these effect dynamically. I want to display thses images in a customized photo frame type area and then give fade in fade out affect.....

Can anyone help me.

Thanks

View Replies !    View Related
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.

View Replies !    View Related
Dynamic Flash Fade In Fade Out Slide Show
Hi,

Please suggest me tutorial for the fade in fade out slide show. i want to call images from xml or folder with fade in fade out. please help.

Thanks,
Anish

View Replies !    View Related
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.

View Replies !    View Related
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>

View Replies !    View Related
Dynamic Text - Fade In And Fade Out; Is This Doable?
All,


I've written a Flash file that reads variables from a txt and places these into a dynamic text box...I use setInterval to move from value to value. The movie works/looks fine, but I would like to jazz it up by having the text fade in and out of the dynamic text box (or slide in and fade out)....


My code, which appears in a single frame, looks like this:

// load the live update scores variables
function drawMe() {
loadVariablesNum("live_scores.txt", 0);
}

// load the variables defined in the drawMe function
var quitID;
quitID=setInterval(drawMe, 1000);

// set the counter
fscommand("allowscale", "false");
loadVariablesNum("player_stats.txt", 0);
count = "0";

// load the individual scores variables
function statMe() {
if (Number(count)==Number(numvars)) {
count = "0";
loadVariablesNum("player_stats.txt", 0);
} else {
count = Number(count)+1;
set("var", eval("var" add count) );
}
}
// load the variables defined in the statID function
var statID;
statID=setInterval(statMe, 5000);
stop();



Is there anyone out there who knows how to add fade in / fade out functionality to my movie? Any assistance would be greatly appreciated...thx in advance for your help...!



Regards,


Mike

View Replies !    View Related
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

View Replies !    View Related
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!!!!

View Replies !    View Related
[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!

View Replies !    View Related
[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!

View Replies !    View Related
[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!

View Replies !    View Related
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?

View Replies !    View Related
Animated Masking A Dynamic Image Is Causing Dynamic Image To Disappear Intermedently.
You can find the file here of what I am trying to do:
http://www.yourfilelink.com/get.php?fid=462218

Please tell me if you are having problems downloading it.

This has always irritated me and I can't seem to find a way around it.

I dynamically load an image to a movie instance and the movie instance is masked. The masking is animation on it, so that it looks like the image is animated via masking. It works if the masking animation is one long shape motion tween, but if I make the masking animation frame by frame, the image being masked disappears and reappears only when it is a long shape tween of the mask.

Please refer to the downloadable sample to understand what I mean. Is there a way around this?

I have seen page flip samples that is able to do what I am trying to do, but they used really advanced actionscripting to do this. I am using timeline.

View Replies !    View Related
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.

View Replies !    View Related
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.

View Replies !    View Related
How Do I Fade Out A Image?
Hello!
I have a pic in my flash. how can i fade it out????

Thanx!

View Replies !    View Related
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);

View Replies !    View Related
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

View Replies !    View Related
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

View Replies !    View Related
Fade Image A-B?
How can I fade one image into another?

View Replies !    View Related
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

View Replies !    View Related
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

View Replies !    View Related
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

View Replies !    View Related
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

View Replies !    View Related
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

View Replies !    View Related
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

View Replies !    View Related
[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

View Replies !    View Related
Image Fade In Help
hey guys

I have an image inside an mc and i want it to fade in any pointers.

Cheers guys

View Replies !    View Related
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;
    }
}

View Replies !    View Related
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

View Replies !    View Related
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.

View Replies !    View Related
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

View Replies !    View Related
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

View Replies !    View Related
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?

View Replies !    View Related
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.

View Replies !    View Related
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

View Replies !    View Related
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!

View Replies !    View Related
Image Fade Background
Ok, I have managed to make my title of my website fade between 3 images but once it gets to the last image it displays and ugly white background then starts again. I stopped this by using the "show" action but cannot d it for the last pic. help?

View Replies !    View Related
Image Fade Script
Heeelp! I can't believe that this could be hard to do, but I can't do it!!!

I have a map, with 72(!) regions, all buttons. On each button mouseover, I want it to fade the underlying symbol in. The symbol is separate from the button, in the same level. The symbol should do a quick fade in, hold it's tint durring the over state, and fade out when the out state is triggered. Each button needs an 'over' flag, so that the symbol tween will run smoothly, in it's entirety, even though the user 'pokes' at the button. HTH???

(each button and symbol follow a clean taxonomy, and could easily be addressed thru an array)

View Replies !    View Related
Making An Image Fade?
I am very new to Flash, I want an image to fade from the back to the front(I know how to do that) but then I want it to fade away..

any help is appreciated

Rick

View Replies !    View Related
Fade Image Gallery 2
i have a completed web site. i also wante to add some bells and whistles with t he use of a MC created in flash that is a fade effect. How can i load it into the website as a page/scene? I have imported into the library, but the result is a shell and not a working import. Can this be done at all?

Help........ Please?

NYmagic

View Replies !    View Related
Help Image Wandering On Fade In
I'm trying to fade in a JPG file and for some reason it is moving one pixel to the left as its alpha reaches 100. It was created with a tween and I have checked the X Y Coordinates on both keyframes to make sure the image isn't wandering because of a missmatch.

I'm providing an example file. (You'll need an image named KCCropped.jpg placed in the same directory as the fla)

Have you seen this before? Any help is greatly appreciated!

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved