How To Fade Pictures And Text In?
Well just as the subject says.. how can you make an Images and Text fade in? I tutorial would be nice.. Thanks
FlashKit > Flash Help > Flash Newbies
Posted on: 02-16-2003, 09:14 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Fade In Fade Out Pictures With Actionscript
I need a actionscript for the following problem.
load external *.jpgs with loadmovie in a movieclip. The picture fade in and fade out. Then the next picture will fade in and fade out.
In Flash MX folder samples is a tutorial called load_images.fla This tutorial works with click on the button.
What I want is that the movie play itself.
ThanXS
How To Fade In/Fade Out Multiple Pictures ?
I got a major problem here.Pls help. First I would like to fade in/out pictures everytime I press on different button. These button will determine which picture I will see. Secondly, I can click on any of these button and yet be able to see the fadein/out effect no matter which picture I am in. Thirdly,If I have another set of picture and if I decided to go to another set of pictures, I should be able to keep the same view that I previouly have but this time round with the new set of picture.
Fade In Fade Out With External Pictures
I use the following script to fade in and fade out four pictures on the stage. How should I adjust the script so that it is working with external pictures or pictures in the library.
Code:
function fadePics() {
var prev = pics[index];
index = ++index%pics.length;
var next = pics[index];
prev.onEnterFrame = function() {
this._alpha += (0-this._alpha)/ease;
if (Math.abs(this._alpha)<1) {
delete this.onEnterFrame;
}
};
next.onEnterFrame = function() {
this._alpha += (100-this._alpha)/ease;
if (Math.abs(100-this._alpha)<1) {
delete this.onEnterFrame;
}
};
}
var pics = ["pic1", "pic2", "pic3", "pic4"];
for (var prop in pics) {
pics[prop]._alpha = 0;
}
var index = -1;
var ease = 6;
var interval = 9000;
var id = setInterval(fadePics, interval);
fadePics();
Thanks in advance
Fade In/out, Over 3 Pictures
Hi, I was doing some changing backGround stuff and wanted to be like this
btn1 clicked, pic1 fade in, pic2 and pic3 fade out
btn2 clicked, pic2 fade in, pic1 and pic3 fade out
btn3 clicked, pic3 fade in, pic1 and pic2 fade out
I thought it was pretty east, but I kept getting stuck, sometimes it works and sometimes it doesn't, is there any really simple way to solve this problem if I have over 20 pictures? Array? or?...please help, thanks a lot for your time!!
Fade In/out Multiple Pictures
I would to fade in /out different picture in different sequence. For example, when I click on a button called Pic 2, Pictures 1 will fade out and pictures 2 will fade in and when I clcik another button called picture 3, picture 2 should fade out and picture 3 will fade in.The big problem that I have is that will happen if I am viewing pictures 3 and decide to go back to picture 1 ??.....picture 3 should fade out and picture 1 should fade in. How should I do all these....and tips.....Thanbks a million. !
Randomly Fade Pictures In And Out
What I'm trying to do is this. I want to fade pictures in and out, but randomly. Kinda like KrazyDad's cloud fly through. I looked at the code for that, but couldn't figure it out. I want to use an array to load the jpegs, and then cycle through it constantly.
Code:
randomPics = random (pics.length);
I just don't know how to fade them in and out. I grabbed this from a fla that faded pictures in and out using buttons
Code:
fadeIn = function () {
if (this._alpha <= 100) this._alpha += 5 ;
else this.onEnterFrame = null ;
// When the movie is fully visible, it doesn't do anything
}
fadeOut = function () {
if (this._alpha >= 0) this._alpha -= 5 ;
else this.removeMovieClip () ;
// When the movie is invisible, it is removed
}
I'm very bad at this programming stuff, so any help is much appreciated. I think I might keep my hands away from programming after this. Actually I have 1 more thing I wanna do, but then I will!
Fade Between Pictures With Inertia...
Hello peeps ; )
I have a picture gallery in flash and I want to achieve a certain effect like:
* When going to the next picture, it will have the effect just like the tutorial Alpha Graphic Fade with Inertia.
I think the Alpha fade effect is kinda common now... : ) So I wanna do this nice effect to my image gallery : )
Any help would be greatly appreciated : )
Fade Between Pictures With Inertia...
Hello peeps ; )
I have a picture gallery in flash and I want to achieve a certain effect like:
* When going to the next picture, it will have the effect just like the tutorial Alpha Graphic Fade with Inertia.
I think the Alpha fade effect is kinda common now... : ) So I wanna do this nice effect to my image gallery : )
Any help would be greatly appreciated : )
Randomly Fade Pictures In And Out
What I'm trying to do is this. I want to fade pictures in and out, but randomly. Kinda like KrazyDad's cloud fly through. I looked at the code for that, but couldn't figure it out. I want to use an array to load the jpegs, and then cycle through it constantly.
Code:
randomPics = random (pics.length);
I just don't know how to fade them in and out. I grabbed this from a fla that faded pictures in and out using buttons
Code:
fadeIn = function () {
if (this._alpha <= 100) this._alpha += 5 ;
else this.onEnterFrame = null ;
// When the movie is fully visible, it doesn't do anything
}
fadeOut = function () {
if (this._alpha >= 0) this._alpha -= 5 ;
else this.removeMovieClip () ;
// When the movie is invisible, it is removed
}
I'm very bad at this programming stuff, so any help is much appreciated. I think I might keep my hands away from programming after this. Actually I have 1 more thing I wanna do, but then I will!
Fade Between Pictures With Inertia...
Hello peeps ; )
I have a picture gallery in flash and I want to achieve a certain effect like:
* When going to the next picture, it will have the effect just like the tutorial Alpha Graphic Fade with Inertia.
I think the Alpha fade effect is kinda common now... : ) So I wanna do this nice effect to my image gallery : )
Any help would be greatly appreciated : )
Fade Between Pictures With Inertia...
Hello peeps ; )
I have a picture gallery in flash and I want to achieve a certain effect like:
* When going to the next picture, it will have the effect just like the tutorial Alpha Graphic Fade with Inertia.
I think the Alpha fade effect is kinda common now... : ) So I wanna do this nice effect to my image gallery : )
Any help would be greatly appreciated : )
Changing Pictures With Fade Effect
I am as new as a newbie can get. Ready?
Using the changing pictures on www.bransonhotelsmo.com as an example, how do I do that? What is this even called? A movie?
I have an HTML website with a picture on it as a table cell background. But I want to change that to a changing picture that fades from one image to another. Is Flash the way to do this or is there another easier way?
I have a downloaded trial of Swish Max2 to work with. (What Flash version would that fall under?)
Thanks!
Slideshow Tutorial: Can I Fade The Pictures Out?
How difficult would it be to make the images fade out the same way they fade in?
Code:
delay = 10000;
//-----------------------
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
image = [];
description = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
image[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
description[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
}
firstImage();
} else {
content = "file not loaded!";
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("images.xml");
p = 0;
this.onEnterFrame = function() {
filesize = picture.getBytesTotal();
loaded = picture.getBytesLoaded();
preloader._visible = true;
if (loaded != filesize) {
preloader.preload_bar._xscale = 100*loaded/filesize;
} else {
preloader._visible = false;
if (picture._alpha<100) {
picture._alpha += 5;
}
}
};
function nextImage() {
if (p<(total-1)) {
p++;
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
picture_num();
slideshow();
}
}
}
function prevImage() {
if (p>0) {
p--;
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
picture_num();
}
}
function firstImage() {
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[0], 1);
desc_txt.text = description[0];
picture_num();
slideshow();
}
}
function picture_num() {
current_pos = p+1;
pos_txt.text = current_pos+" / "+total;
}
function slideshow() {
myInterval = setInterval(pause_slideshow, delay);
function pause_slideshow() {
clearInterval(myInterval);
if (p == (total-1)) {
p = 0;
firstImage();
} else {
nextImage();
}
}
}
Any help is appreciated!
Slideshow Tutorial: Can I Fade The Pictures Out?
How difficult would it be to make the images fade out the same way they fade in?
Code:
delay = 10000;
//-----------------------
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
image = [];
description = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
image[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
description[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
}
firstImage();
} else {
content = "file not loaded!";
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("images.xml");
p = 0;
this.onEnterFrame = function() {
filesize = picture.getBytesTotal();
loaded = picture.getBytesLoaded();
preloader._visible = true;
if (loaded != filesize) {
preloader.preload_bar._xscale = 100*loaded/filesize;
} else {
preloader._visible = false;
if (picture._alpha<100) {
picture._alpha += 5;
}
}
};
function nextImage() {
if (p<(total-1)) {
p++;
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
picture_num();
slideshow();
}
}
}
function prevImage() {
if (p>0) {
p--;
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
picture_num();
}
}
function firstImage() {
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[0], 1);
desc_txt.text = description[0];
picture_num();
slideshow();
}
}
function picture_num() {
current_pos = p+1;
pos_txt.text = current_pos+" / "+total;
}
function slideshow() {
myInterval = setInterval(pause_slideshow, delay);
function pause_slideshow() {
clearInterval(myInterval);
if (p == (total-1)) {
p = 0;
firstImage();
} else {
nextImage();
}
}
}
Any help is appreciated!
Actionscript Cross Fade Multiple Pictures
hi all well I am creating a movie and in the backround I want to have a series of 16 images crossfade between eachother showing one at a time for at least 2 to 3 seconds each I want to do this in actionscript though coz if I use a regular tween the rest of my movie slows down, I can put the pics directly into the library or load them dynamically it doesnt really matter for me can someone please help me??
WiKfx
Fade Script Image Gallery Can Only Handle 10 Pictures?
Hi!
I'm doing my daily homework at Flashkit, in order to see how other people do certain things. This helps me a lot by seeing different ideas and code structures.
It was just the other day when I downloaded the "Fade script image gallery" by Ben Durman, when I stepped into an unsusual? behaviour that I can't get to understand.
It's very simple, in the gallery there are 10 pictures. Everytime you click in one number, the previous image fades out and the new image fades in. The AS code is very simple and easy to understand. However, why I can't possibly understand is that when I create a new layer with another image, the whole movie starts to statter, transitions are not smooth any longer and some transitions are not even properly executed. The more layers/pictures I add, the worse it all gets (15 pics is almost impossible to handle).
I made some modifications in order to improve it, but it was useless (although I keep on thinking that I should have helped!).
Part of the original code which makes transition between pictures happen is this:
code:
onClipEvent (enterFrame) {
// find alpha of new pic
picalpha = Math.Round(getProperty(picnum, _alpha));
// find alpha of old pic
oldpicalpha = Math.Round(getProperty(oldpicnum, _alpha));
// If you want to change fade speed, alter + & - amounts below!
// if the new pic alpha is 0, fade it up to 100
if (picalpha <100) {
setProperty(picnum, _alpha, picalpha + 5);
}
// if the old pic alpha is 100, fade it down to 0
if (oldpicalpha >0) {
setProperty(oldpicnum, _alpha, oldpicalpha - 5);
}
}
The slightly modified code by me is this.
code:
onClipEvent (enterFrame) {
// find alpha of new pic
picalpha = Math.Round(getProperty(picnum, _alpha));
// find alpha of old pic
oldpicalpha = Math.Round(getProperty(oldpicnum, _alpha));
// If you want to change fade speed, alter + & - amounts below!
this.onEnterFrame = function(){
// if the new pic alpha is 0, fade it up to 100
if (picalpha <100) {
setProperty(picnum, _alpha, picalpha + 5);
} else {
delete this.onEnterFrame;
}
// if the old pic alpha is 100, fade it down to 0
if (oldpicalpha >0) {
setProperty(oldpicnum, _alpha, oldpicalpha - 5);
} else {
delete this.onEnterFrame;
}
};
}
For those of you who are curious about it and want to help me find out what's going on, here's the original file and my modified file with 2 additional pictures on it.
Let's see if we can understand Flash behaviour a little bit more by finding an answer with this.
Thank you very much for your interest.
Manare
Fade Script Image Gallery Can Only Handle 10 Pictures?
Hi!
I'm doing my daily homework at Flashkit, in order to see how other people do certain things. This helps me a lot by seeing different ideas and code structures.
It was just the other day when I downloaded the "Fade script image gallery" by Ben Durman, when I stepped into an unsusual? behaviour that I can't get to understand.
It's very simple, in the gallery there are 10 pictures. Everytime you click in one number, the previous image fades out and the new image fades in. The AS code is very simple and easy to understand. However, why I can't possibly understand is that when I create a new layer with another image, the whole movie starts to statter, transitions are not smooth any longer and some transitions are not even properly executed. The more layers/pictures I add, the worse it all gets (15 pics is almost impossible to handle).
I made some modifications in order to improve it, but it was useless (although I keep on thinking that I should have helped!).
Part of the original code which makes transition between pictures happen is this:
ActionScript Code:
onClipEvent (enterFrame) {
// find alpha of new pic
picalpha = Math.Round(getProperty(picnum, _alpha));
// find alpha of old pic
oldpicalpha = Math.Round(getProperty(oldpicnum, _alpha));
// If you want to change fade speed, alter + & - amounts below!
// if the new pic alpha is 0, fade it up to 100
if (picalpha <100) {
setProperty(picnum, _alpha, picalpha + 5);
}
// if the old pic alpha is 100, fade it down to 0
if (oldpicalpha >0) {
setProperty(oldpicnum, _alpha, oldpicalpha - 5);
}
}
The slightly modified code by me is this.
ActionScript Code:
onClipEvent (enterFrame) {
// find alpha of new pic
picalpha = Math.Round(getProperty(picnum, _alpha));
// find alpha of old pic
oldpicalpha = Math.Round(getProperty(oldpicnum, _alpha));
// If you want to change fade speed, alter + & - amounts below!
this.onEnterFrame = function(){
// if the new pic alpha is 0, fade it up to 100
if (picalpha <100) {
setProperty(picnum, _alpha, picalpha + 5);
} else {
delete this.onEnterFrame;
}
// if the old pic alpha is 100, fade it down to 0
if (oldpicalpha >0) {
setProperty(oldpicnum, _alpha, oldpicalpha - 5);
} else {
delete this.onEnterFrame;
}
};
}
For those of you who are curious about it and want to help me find out what's going on, here's the original file and my modified file with 2 additional pictures on it.
Let's see if we can understand Flash behaviour a little bit more by finding an answer to this.
Thank you very much for your interest.
Manare
Fade Script Image Gallery Can Only Handle 10 Pictures?
Hi!
I'm doing my daily homework at Flashkit, in order to see how other people do certain things. This helps me a lot by seeing different ideas and code structures.
It was just the other day when I downloaded the "Fade script image gallery" by Ben Durman, when I stepped into an unsusual? behaviour that I can't get to understand.
It's very simple, in the gallery there are 10 pictures. Everytime you click in one number, the previous image fades out and the new image fades in. The AS code is very simple and easy to understand. However, why I can't possibly understand is that when I create a new layer with another image, the whole movie starts to statter, transitions are not smooth any longer and some transitions are not even properly executed. The more layers/pictures I add, the worse it all gets (15 pics is almost impossible to handle).
I made some modifications in order to improve it, but it was useless (although I keep on thinking that I should have helped!).
Part of the original code which makes transition between pictures happen is this:
ActionScript Code:
onClipEvent (enterFrame) { // find alpha of new pic picalpha = Math.Round(getProperty(picnum, _alpha)); // find alpha of old pic oldpicalpha = Math.Round(getProperty(oldpicnum, _alpha)); // If you want to change fade speed, alter + & - amounts below! // if the new pic alpha is 0, fade it up to 100 if (picalpha <100) { setProperty(picnum, _alpha, picalpha + 5); } // if the old pic alpha is 100, fade it down to 0 if (oldpicalpha >0) { setProperty(oldpicnum, _alpha, oldpicalpha - 5); }}
The slightly modified code by me is this.
ActionScript Code:
onClipEvent (enterFrame) { // find alpha of new pic picalpha = Math.Round(getProperty(picnum, _alpha)); // find alpha of old pic oldpicalpha = Math.Round(getProperty(oldpicnum, _alpha)); // If you want to change fade speed, alter + & - amounts below! this.onEnterFrame = function(){ // if the new pic alpha is 0, fade it up to 100 if (picalpha <100) { setProperty(picnum, _alpha, picalpha + 5); } else { delete this.onEnterFrame; } // if the old pic alpha is 100, fade it down to 0 if (oldpicalpha >0) { setProperty(oldpicnum, _alpha, oldpicalpha - 5); } else { delete this.onEnterFrame; } };}
For those of you who are curious about it and want to help me find out what's going on, here's the original file and my modified file with 2 additional pictures on it.
Let's see if we can understand Flash behaviour a little bit more by finding an answer to this.
Thank you very much for your interest.
Manare
[CS3] Fade To Text Window, Display Text, Fade Out, On Button Press
Hi All,
First post!
I am looking on the easiest maintainable way to have some buttons in a flash movie that each link to a different group of text.
I would like the buttons when clicked to fade the background slightly dull (but still visible) and then to display text in a scrollable window. When the user is done reading, they may click an X and the frame they were in prior they are returned to.
What have I tried so far?
1-I tried creating a new Scene, "Scene 2" and using scripting to get the buttons to load them - but it doesn't seem to be working when specifying "Scene 2", "label". Also, maintaining separate scenes doesn't seem very logical. I would rather an external text file.
2-I grabbed a couple scrollers on this very website, but I cannot get them to integrate properly with my current movie.
Any thoughts on a solution?
Thank you.
Multiple Fade In Fade Out Events On Different Sentences From A Text File?
Hi there
i've just learned to use flash to produce a flash doc that displays the tibetan mind training slogans. they're basically 59 sentences: be a child of illusion, always maintain a joyful state of mind etc etc.
anyway, i'm wondering if anyone knows how i can make it easier to achieve this. at present i've done it by creating individual fade in fade out events along a time line. but it strikes me that it should be possible to create just one fade in, fade out event and get flash to apply this event to all subsequent sentences. even better would be if i could just get flash to pull each sentence from a plain text file. does anyone know how to do this? maybe actionscript can do this. then it would be easy to create a flash file for learning anything from vocabulary to history quotes!
you can view it here:
http://www.geocities.com/tamsin_dev...saverfinal7.swf
here's the flash file
http://www.geocities.com/tamsin_dev...saverfinal7.fla
also, how can introduce a random element into this, so that any of the 59 slogans will be picked.
if you need any further info please contact me at tamsin_devas@yahoo.co.uk i can send you the slogan source files as well if you want.
eventually i want to create a screen saver.
thanks for any help you can provide. i'll write your name in tibetan if you want.
tamsin
Button Press, Text Fade, Fade In New Text.. HOW To Do It?
Newbie here of course...
Okay I have this web site that when it loads a movie clip plays (called "whitebox") making a white box, then I have another movie clip that puts black text ("maintext") into the white box when it’s done loading at frame 15.
Around the white box are 3 buttons, what I want to do is, when the viewer presses one of the buttons the "maintext" is to fade out and the new text is to fade into the same place the "maintext" was.
Please consider that all three buttons will have different text fading in, each time one is pressed.
here is what I have for the "maintext" to make it fade in the white box @ frame 15, which WORKS
onClipEvent (load) {
stop ();
}
The reason why I tell the clip to stop, if it was to play it would fade out before the viewer even got a chance to read it. I want it to fade when the viewer presses one of the buttons.
here is what I have for one of the buttons which does not work
on (release) {
tellTarget ("maintext") {
gotoAndPlay (1);
}
}
this code is not actually in the button symbol, I added it when I was in scene one not in symbol editing mode, could that be the problem?
This seems like an easy thing to do but i've been reading and trying for days and NEED some sort of direction. PLEASE
Any help would be great!!
George
georgenme@sbcglobal.net
AIM: djgeorgenme
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
Help Me With Fade In And Fade Out Text In Flash 8
hi guys,
i am new to flash, and i followed this tutorials to create fade in and fade out text:
tutorials
and it looks good in flash 8 when press enter key, but when i tried to publish and saved to .swf file, it looks quite different. the fade in and fade out effect was disapeared, it just shows text instead.
i don't know why or something i did wrong?
and i uploaded a the .fla file.
Thanks
Sean
[F8] Text Fade-in And Then Fade-out Isn't Working
Hi,
In the attahced file, I've got a layer labelled 'text' which contains a movieclip called 'endZones_mc' which is just some text that I want to Fade-in.
For this movieclip, I've inserted a keyframe in frame 1 with the alpha set to 0 and then one in frame 10 with the alpha set to 100. However, it isn't animating smmothly and nothing appears until frame 10 when it just appears all at once.
Can you tell me what I'm doing wrong please?
Thanks
Flash 101 - Fade In/Fade Out Text
I know this is easy. I know I've done it in my training classes. I've searched online for a couple of hours, but can't find exactly what I'm looking for. All I want to do is learn how to fade in a sentence and then fade out. Simple, I know, but I just keep getting that darned cursed dashed line! I won't bother explaining the things I've tried. Can someone just tell me what I am supposed to be doing. Ok.... if on frame 70 I want the phrase "a new opportunity" to be at 0% opactity, then reach 100% by frame 100... what do I need to do???? (Hopefully I can then figure out what I'd need to do to have it fade out again.) Thanks for your help.
Fade In/Fade Out Text Over Images
I am trying to create a fade in/fade out text effect over a background which consists of an image. I've tried breaking apart the text and using a shape tween with the alpha property, but it results in the text being slightly distorted.
I've also tried using a mask, but I don't want a rectangle appearing over the background.
Can anybody shed some light on how to create a text fade in/fade effect over an image without the text being distorted.
Thanks in advance.
Mitchster
Text Fade Out - Text Fade In Buttons
I Have five buttons. What actionscript (verison 2) do I use to have text fade out when you click on a button and then the next text fade in. But it doesnt matter which button you click on - so this way you can read whatever part of the text you want.
I was thinking of labeled frames and Button Behaviors but I dont know how to fade the main text and or whatever text your at then having the new text fade, in where you can click on any one of the buttons.
Thanks for your time and help,
JT
AS 2.0 - Fade In Text / Fade Out Text - Then Change Text
Hello all:
Here is what I'm trying to do:
#1 - set the text of my dynamic text box to a value which I've already received from PHP (don't need an example of how to obtain my vars - this works)
#2 - fade in that textbox - pause for a few moments
#3 - fade out the textbox and move on to the next variable - start from #1
I've tried calling a function via setInterval to display and fade in the text... But setInterval waits the full interval before even starting... Which isn't what I want.
I'll admin I'm an ActionScript newbie - but I can't be trying to do something that is so difficult, am I?
To be honest I've tried about 60 different functions and iterations of functions and I'm spent. Anybody have a quick example that they could post?
Pictures And Text In One
Is it possible to load a picture with text from a file outside of Flash with out having to load two seperate files. If so does anyone know the actionscript I would need to use.
My Fade Out / Fade In Script. Fade Out Works, Why Not Fade In? Any Ideas?
Hello all,
Hopefully this is just a simple problem with my code.
I have a container on the stage. When the loaded clip gets to the last frame it triggers the decreaseAlpha() function on the root level. This fades the current container out and works fine.
However I also want it to load the next clip(which it does) and fade that clip in. This doesn't work. It doesnt' fade in, can anyone point me in the right direction?
Thanks!!
Code:
function decreaseAlpha(boxName, clipName){
boxName.onEnterFrame = function(){
if(boxName._alpha > 0){
boxName._alpha -= 15;
}if(boxName._alpha < 5){
delete boxName.onEnterFrame;
increaseAlpha(boxName, clipName);
}
}
}
function increaseAlpha(boxName, clipName){
loadMovie(clipName, boxName);
boxName._alpha = 0;
boxName.onEnterFrame = function(){
if(boxName._alpha < 100){
boxName._alpha += 15;
}if(boxName._alpha == 100){
delete subboxName.onEnterFrame;
}
}
}
My Fade Out / Fade In Script. Fade Out Works, Why Not Fade In? Any Ideas?
Hello all,
Hopefully this is just a simple problem with my code.
I have a container on the stage. When the loaded clip gets to the last frame it triggers the decreaseAlpha() function on the root level. This fades the current container out and works fine.
However I also want it to load the next clip(which it does) and fade that clip in. This doesn't work. It doesnt' fade in, can anyone point me in the right direction?
Thanks!!
Code:
function decreaseAlpha(boxName, clipName){
boxName.onEnterFrame = function(){
if(boxName._alpha > 0){
boxName._alpha -= 15;
}if(boxName._alpha < 5){
delete boxName.onEnterFrame;
increaseAlpha(boxName, clipName);
}
}
}
function increaseAlpha(boxName, clipName){
loadMovie(clipName, boxName);
boxName._alpha = 0;
boxName.onEnterFrame = function(){
if(boxName._alpha < 100){
boxName._alpha += 15;
}if(boxName._alpha == 100){
delete subboxName.onEnterFrame;
}
}
}
Text Scroll W/ Pictures...
is there anyway to have a text scroll on click with a picture?
http://hbsquad.clanpages.com/heartbreakers.html
that is a example..the middle section..
i understand how to make a text scroller using HTML and pasting that into the action script..
is there a way to just get the data from a .txt file instead of loading it into action script?
thanks
dan
Weird Looking Pictures And Text
Hello,
Am using the scrollpane component in Flash MX. Everything works nicely for all my movieclips except one that is really long (vertical long).
If you click on the link "Jobb vi gjort" in the left area you will see what I mean.
http://homepage.te.hik.se/student/jn22cp/main.swf
Any ideas for a solution?
Pictures Within A Scrolling Text Box
is it possible to add graphics to a scrolling window
if you go to my sitemy site i want a movie to pop up under the links button and have a scrolling window of all the links
also how do i put a hyperlink into a scrolling text box?
Thanks, Brian (newbie)
Adding Pictures To Text Box
I am trying to figure out if it is possible to add pictures in a dynamic text box. The text I have is scrolling with the tracklisting for an album, I want to place a picture of the album cover next to the text, but also want it to move with the text when it is scrolled. is this possible? if so, how?
thanks.
-Kev
Fadeing In/out Pictures/text
i was wondering if it is possible to like fade in and out picture or text... or like fade a color from like black to white?
Fadeing In/out Pictures/text
i was wondering if it is possible to like fade in and out picture or text... or like fade a color from like black to white?
How To Load Pictures And Text
hey guys
i have 10 pics on my webserver. pic1, pic2, pic3, ... pic10 (all same size)
i also have 10 txt files on my server. text1, text2, ...text10
now is my question,
how can i load these pics and text in a container
so when a button is puched, it loads pic1 and shows text1
when button is pushed again, i want pic2 and text2 to load in the same container.
and is there a way todo this, so i can add more pictures and textfiles to my server without changing the fla file?
grtz & thx in advance
Text Documents Containing Pictures
Can a text document contain pictures????
Or should it be able to trace html then? And how can I m,ake it easy for a person to file text and pictures in a document?
Pictures In A Dynamic Text Box Help
I have a dynamic text box with scroller and i put some small pictures in it but when i scroll up and down the pictures dont move in place with the text they just stay put - anyway to make them move with the text?
Maskin Pictures And Text
I want to learn how to mask the way : Tell a friend, Latest News, and Latest projects boxes are masked when the page loads. They don´t just apear but they apear in a weird way, like a mask,
here is the site: http://home.halden.net/mellowlab/site/mellow.htm
I hope somebody understod thank you for any help, tutorial, etc. a step by step tut would help. i have looked at some tutorials here at kirupa but they are not helping me
Scrolling Text And Pictures
what is the AS for making some text and pictures scroll in with the same scrollbar. is there a component in mx that i could use?
Maskin Pictures And Text
I want to learn how to mask the way : Tell a friend, Latest News, and Latest projects boxes are masked when the page loads. They don´t just apear but they apear in a weird way, like a mask,
here is the site: http://home.halden.net/mellowlab/site/mellow.htm
I hope somebody understod thank you for any help, tutorial, etc. a step by step tut would help. i have looked at some tutorials here at kirupa but they are not helping me
Scrolling Text And Pictures
what is the AS for making some text and pictures scroll in with the same scrollbar. is there a component in mx that i could use?
Loading Pictures/text
Hi!
Is there some way to load pictures/text into an SWF without it actually being in that SWF file? For example, if someone clicks on a thumbnail, i want it to load the picture, however, since there are many pictures on my website, i don't want them all to load with the flash itself. Likewise, with text- i write a lot on my page and i want people to have the option of reviewing older writings, but i don't want it to all load right off. If anyone knows a good way to do this, i would REALLY appreciate it! Thanks!
jake
Pictures In A Dynamic Text Box
hey guys, i was working on my blog, and i decided that i want to be able to add HTML to the text box, so i can put pictures along with the text so i have this
Code:
theText.html = true;
theText.htmlText = "<img src="http://www.google.com/intl/en_ALL/images/images_hp.gif"> <img src="http://www.google.com/images/logo_sm.gif" width ="250" height="100">";
but when i try it
the pictures overlap, is there a way to fix this
Pictures In Scrolling Text Block?
is there anyway to put pictures inside a scrolling text box like the one in the tutorials section here. if so how can i go about doing this. ive tried inserting html for pics in the loading text file, but this just doesnt show up.
any help would be greatly aprecaited!
|