Fading In Text Using Actionscript
Is there any step-by-step help where I can fade in text in a text box? I searched the whole site but there are no tutorials whatsoever related to this? Please help!!
FlashKit > Flash Help > Flash General Help
Posted on: 05-06-2005, 04:50 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Fading Text With Actionscript
Hi all,
I'm making a dynamic menu that involves an _alpha value dependent on distance from the starting point.
Here's the problem: The dynamic text boxes within my movie clips stay at full strength while the rest of the clip's _alpha fades to zero. The effect: text floating around where there should be none. Any ideas?
Fading Dynamic Text With ActionScript
Greetings everyone!
I have just become a member of this forum, and I hope I will make great use of it, and try share what I know with others..
For start, I am stuck in one thing... I have a dynamic text fields that gets value with actionscript, and if I want to fade it also with actionscript, I can not get it done. I tried to make it a child element of a movie clip, and then change the alpa value of mc, but doesnt work.
If anyone can help me, I would really appriciate.
Fading Text In Letter By Letter With Actionscript?
Hi people!
Does anybody know if it is possible to animate text via actionscript.
For example, I would like to do that good old favourite of having text fade in letter by letter.
However, breaking apart every letter and indivdually fading them in one after the other not only takes a hell of a long time, but also (with large pieces of text) would cause huge file sizes.
I thought of masking, but I can't seem to get a soft edge on the mask to enable me to make it look like it is fading in.
Sooo.....
Does anybody know how to do this via actionscript,
OR...
Does anybody know how to get the soft edge on a mask to be able to create a similar effect.
Hope you can help
Cheers
Deadhands
Fading And Reverse Fading Text
I'm so new to this it's sick. But I figure I can take a few days and learn as much as I can. I'm building a website wherein I'll have a splash page before entering the main contents of the site.
I'm using Flash 5. On the splash page I want to know how to create a text object that appears in a 'reverse fade' fashion. I imagine a 'reverse fade' function can be done with any object or graphic - I've seen it on these awesome websites listed at FK.
I don't know if I'm evening asking this question right. I'm able to use CoffeeCup Firestarter and make things appear and fade easily (duh - who couldn't with that program) but can't view the code the Firestarter program produces in order to learn how it happened.
Appreciate any help someone could give me.
Thanks,
Jeff
Actionscript For Fading In And Out
Please could one of you pros out there help me out with the actionscript code which allows you to on press of a button fade in then on release it fades back out.......
T.T.F.N............
ActionScript Fading
Is there a smoother way (w/actionscript) to fade in buttons or MC's on mouseover. Right now I'm just using tweening and goto comands but there has to be a better way. Below is the standard code I have been using.
on (rollOver) {
gotoAndPlay(2);
}
on (rollOut) {
gotoAndPlay(21);
}
frame 2 is where the fade in tween begins
frame 21 is where the fade out tween begins
(of coarse w/stops at frames 1, 20, and the end of the MC.
Thanks.
Fading In And Out With ActionScript
I am trying to write code that will casue a image to fade in and out. I converted the image to a movie clip and attached this code
onClipEvent (enterFrame){
if (this._alpha >=0){
this._alpha -=5;
}else if(this._alpha <=100){
this._alpha +=5;
}
}
The image will fade away, but it never reappears.
Fading In/out With Actionscript
I'm looking for the best suggestion(s) on how to fade in and fade out a movie clip with actionScript ... based upon time... i would like to fade in one mc ... have it fade out ... then fade in another..and so on..
my existing code has some bugs ...
thank you anybody for helping!!
Fading With Actionscript
peepz,
My script:
Code:
onClipEvent (load) {
this._alpha = 0;
this._xscale = 31;
this._yscale = 31;
}
onClipEvent(enterFrame){
if (_root.testvar == "ja"){
if(this._alpha<100){
this._alpha+=5;
}else{
this._alpha = 100;
}
}
if(_root.testvar=="nee" ){
if(this._alpha>=100){
this._alpha-=5;
}else{
this._alpha = 0;
}
}
}
when i rollover my button he image will fade in correctly, but if i rollout the image wil just disapear immediately (without fading)...
my button have the following script:
Code:
on (rollOver) {
_root.testvar="ja"
_root.mcPhotoShow.gotoAndPlay(2);
}
on (rollOut) {
_root.testvar="nee"
_root.mcPhotoShow.gotoAndPlay(45);
}
who can help making it fadeout correctly ?
Fading Actionscript ( Please Help )
im trying to make a image fade in and out between 3 diffrent pictures. i know how to do it with tweening but the file is too big. isent there a way to use a action script to alpha a image in frame one at 100% then have it go the 0% in frame 30 usinng the alpha property without tweening? because when i do it in frame one its at 100 and it stays at 100 till frame thirty then it switches to thirty with ne betewwn. i tried to tween between frames be same result. i need a tutorial to help me do this. Please Help
thak you
Fading Out Using Actionscript
I was wondering if something was possible using actionscript coding.
Lets say I have a flash movie playing... and I have a button at the bottom of the page that if clicked, I want it to start fading out the playing movie, no matter where the movie is in it's timeline.
Can I make a button do that? On release if just fades out the entire swf?
If so please lemme know what the coding would be for this, because I've tried to think it through and i'm getting no where...
thanks for any help
- Mikey
Fading Actionscript
Im making a website, each page is on a seperate frame / layer. I dont want to tween between as they all go in different orders. My actionscript for the button is basic, its just after click go to frame *whatever* and stop. Is there anyone who knows any script i can add that will make it go to the frame and fade from currrent from to the selected one?
sorry that might not make sense, but any help is apprecaited!
Fading With Actionscript
Hello.
This, i suspect, is hilariously simple so I'd be very grateful if someone wants to make me look, well, amateurish. . Anyhow, I'm using the following actionscript to fade in an image:
Code:
brown_mc._alpha = 0
function fadeImagein(target_mc:MovieClip):Void {
target_mc._alpha += 4;
trace("fading");
if (target_mc._alpha >= 80) {
target_mc._alpha = 80;
clearInterval(alpha_interval);
}
};
this.tree_mc.ill_mc.ill_btn.onRelease = function() {
var alpha_interval:Number = setInterval(fadeImagein, 50, brown_mc);
};
and while it fades in appropriately, the trace tells me that the function is continously called even when the condition of the if statement is met. This is a fantastic forum and I'm very very grateful for all the help I've already recieved.
Actionscript Fading Question
hi guys, im a newbie to actionscript and i need a little help here.
to start, I created a movie clip. with 2 layers. and those 2 layers have a picture each on it.
on the 1st layer, I have the picture at 0 alpha and in the next 30 frames, it becomes 100alpha, after 30frames again it goes back to 0 alpha. so basically, it fades in and fades out. same goes with the image on the 2nd layer.
Since I have no idea of AC, i had to do this with motion tweening, which sucks coz it slows all other effects down in my flash project.
whats the code, for me to fade in and fade out the pictures?
i tried the actionscript.org set property tutorial, but it basically did nothing hehe. or i just didnt get it.
help
Actionscript For Fading Buttons?
Hi, I'm using actionscript to try to fade my buttons in and out when the mouse moves over them. I'm using the code on this thread, and it works fine, except it fades the whole stage, not just the button. I assigned a instance name to my button and used that in my code but it doesn't appear to work. What do you think I could do to fix my problem?
Alpha Fading With Actionscript
Hi,
I am trying to do alpha fading with actionscript. I have looked in the forum and another fla file where it was done but when I try it with my fla it does not work. I am making a slideshow component and everything is within the component. I have thumbnails as buttons from duplicateMovieClip. I am using something like this but doesn't work:
PHP Code:
MovieClip.prototype.loadPic = function(){
mc1.loadMovie("myPic.jpg");
if (mc1.getBytesLoaded==mc1.getBytesTotal && mc1._alpha<100){
mc1_alpha +=10;
}
Any help appreciated.
Fading In A Movieclip With Actionscript
I am trying to get a movieclip intance to fade in using actionscript
Anyone know of a good tutorial on this? or can you tell me why my experiment with this isnt working?
my (non-working but error free)code is this
firstframe of main scene=
function fade_mc(){
if(box_mc._alpha <= 100){
box_mc._alpha++;
}
}
setProperty(box_mc,_alpha,0);
movieclip instance=
onClipEvent (enterFrame) {
fade_mc();
}
thanks for your help -garrett
'FADING IN' Sound Using Actionscript
I have all this code on first frame of my movie. The Sound loads fine at defined volume, BUT will not fade in. I'd truly appreciate any kind of feedback.
Thanks.
--------------------------------------------------------
stop();
firstSound = new Sound(firstSoundMC);
firstSound.attachSound("firstSound01");
_root.firstSound.start(0, 999);
firstSoundVolume = 10;
firstSound.setVolume(firstSoundVolume);
_root.firstSoundMC.onEnterFrame = function() {
if (fadeIn01 == 1) {
_root.firstSound.setVolume(firstSoundVolume);
firstSoundVolume = firstSoundVolume+5;
if (firstSoundVolume>99) {
fadeIn01 = 0;
}
}
};
-----------------------------------------
Fading In A Button Using Actionscript...
I'm just attempting something here that to me was a pretty cool idea. However I need to use actionscript I believe to get the right animation...
Let me explain...
I placed the Letters "T, E, S, T" on my stage. I made each a seperate button... and I want them to be completely faded out.
When the visitor of the page uses the mouse and rolls over the page, I want shapes and letters and words to gradually fade in that I have hidden at zero alpha.
If the visitor rolls off these hidden buttons, I want them to stop fading in
Once all the letters... T, E, S, T are 100% faded in... I want the timeline to jump to another location.... and thus you can now unter the website.
So this is what I need
Actionscript coding, that on a rollover, individual buttons fade in gradually. Once ALL of the hidden buttons on the page are found, it acts as a "key" to enter the site. But the buttons NEED to be at 100% in order for the rest of the website to "unlock" so to speak
I hope someone understands my ramblings... Because I know what I want to do, and I'm 100% sure it's possible... but I don't even understand what I'm asking at the moment
Thanks a lot if you can help
Mikey
Fading A Sound Using Actionscript
Hi,
I want to fade a sound with actionscript when I press the spacebar.
I've got a movie clip named fade_mc the sound plays fine but no fade.
I have attached the following code to fade_mc:
onClipEvent (load) {
IACSound = new Sound(fade_mc);
IACSound.attachSound("IAC_160.mp3");
IACSound.start(0, 99);
IACSoundVolume=100;
IACSound.setVolume(IACSoundVolume);
}
on (release, keyPress "<Space>") {
IACSoundVolume=IACSoundVolume-5;
if (IACSoundVolume<5) {
fade_mc.IACSound.stop("IAC_160.mp3");
}
//loads a black screen which fades up
loadMovieNum("fader.swf", 4);
}
Any help with this would be greatly appreciated, I need to complete this project and it is the only thing left.
Thanks,
James
Fading Background Through Actionscript
Hi all,
It's a while ago since i've been posting but i bumped on a problem while working in flash. Here's the deal: I have a background image which is kind of red. However, i want the users to be able to change the background color through this code:
myColor = new Color(myMovie);
myColorTransform = new Object();
myColorTransform = { ra: t1, rb: t2, ga: t3, gb: t4, ba: t5, bb: t6, aa: t7, ab: t8};
myColor.setTransform(myColorTransform);
Now this works perfectly. When I click a button, the color tint (through 'Advanced') works perfectly. The only problem now is that i want to fade it over. I know this can be done by actionscript, but i havent succeeded yet.
This is what i tried:
on (release) {
t1 = 62;
t2 = 58;
t3 = 62;
t4 = 0;
t5 = 62;
t6 = 0;
t7 = 100;
t8 = 0;
for (i=1; i<100; i++) {
trace(i + "ste loop");
l1 = (t1/100)*i;
l2 = (t2/100)*i;
l3 = (t3/100)*i;
l4 = (t4/100)*i;
l5 = (t5/100)*i;
l6 = (t6/100)*i;
l7 = (t7/100)*i;
l8 = (t8/100)*i;
}
}
where t1, t2, t3 are the vars of the target colors and l1, l2, l3 are the current values of the movieclip. Now of course, if I put the setTransform code into the for loop, users won't see a transition, the loop would just be executed and the color would change. Is there a way to delay every single transition? I checked the setInterval, but didn't get it to work. I had a function on the frame with the setTransform code, and the setInterval inside the loop.
Any ideas? Would be greatly appreciated!
Alpha Fading With Actionscript
Hi,
i have a fairly complicated (for me) loop going on in "bgholder_mc", its a carrousell type merry-go-round thing. My goal is to fade the whole clip to alpha on release of one of the items - but seeing as how its happening in a scriptcreated MovieClip, I cant keyframe the alpha.
Anyone know how to alpha this?
Better formulation of the question might be :
How do I alpha something using script?
on(release){
_root.bholder_mc.alpha=0;
}
or something?
Again, the goal is for it to gradually fade...
Fading Alpha Using Actionscript
Hi all,
i have a movie called 'link' and inside it there is a button mask on top of another movie which has a text box inside it.
button mask
movie called 'dyn_text'
(text box inside this movie called 'text')
i am trying to add some on () actions (e.g. on (rollOver) or on (rollOut)) so that the movie containing the text box fades in or out using alpha.
the default alpha for the movie called 'dyn_text' is 50% and i want it to fade up to 100% on a rollover event and back to 50% on a rollout event.
i have been looking at the code in flash 8 and i can see that using a 'setInterval' may work but i can't get it working properly.
can anyone give me any ideas about how to go about this or point me in the direction of a tutorial?
cheers
Alpha Fading With Actionscript
Hi guys.
When I click my first button, I want my movie clip to fade in ( with actionscript )
When I click my second button, I want m movie clip to fade out ( with actionscript )
Any ideas how this is done?
Many thanks.
Fading Sound With Actionscript
I am trying to fade sound with script when a movie clip gets to a certain x value on the stage. Here is the what I have. It probably has problems, as I am an actionscript newbie:
Script on frame 1:
MySound = new Sound();
MySound.attachSound("wind01.mp3");
MySound.start(0,1000);
music.setVolume(100);
vol = 100;
fade = 5;
Script on movie clip:
onClipEvent (enterFrame) {
if (this._x >= 90) {
vol = vol-fade;
} else if (vol<0) {
vol = 0;
}
}
Can anyone tell me what I am doing wrong? Any help would be greatly appreciated.
Thanks
Fading MovieClip With Actionscript
Hi all!
I have the script below that fades my movieClip
onClipEvent (enterFrame) {
if (this._alpha>=1) {
this._alpha--;
}
}
How can I make it fade faster? - its quite slow to fade out and I need it to be 4 times faster without ramping up fps.
Thanks to all!
Menu Fading Using Actionscript
The first paragraph is the long-winded explination of what I need done and exactly what's going on, the second is an "in a nutshell" of what I need. I did a search for this and found bits and pieces that may have worked but couldn't for the life of me figgure out how to apply it to what I need.
I could not figgure out a better name for this, but basically I've got a (I think) complicated task that I need to, well, do. I'm making a website for my school, and have the main navigation menu setup in a rotating circle that stops rotating on rollOver of a button (thanks to a great tutorial on this site ). That's all fine and dandy, I've got that, but now comes my tricky part. I have a basic menu made that, when onRelease of one of the buttons, fades in ontop of the rotating menu (and if possible have the rotating menu kinda greyed out behind it, but I'll take what I can get, and I can probably figgure that out). When this menu fades in, it needs to dynamically load information (which I again know how to do) but the information it needs to load all needs to come from different files depending on what button is clicked. I've got a vauge idea of what it needs to do, but no idea how it does it. This loaded text becomes the backbone for a dynamic menu which, again, I can do. I digress, the second part is that when the user either clicks outside the menu or on a button (a matter of onRelease on a button or movieClip, no biggie changing for me) I need to menu to unload the dynamic content that it ahd loaded and fade away, so the user can't see it. All in actionscript. Rinse and repeate.
Okay, now in a nutshell.
I need actionscript that will allow the user to press a button and have a menu do an alpha fade in. When the button is pressed, it will also load an (I assume) XML file that can be used in the generation of dynamic objects (menus, images, ect...; i know how to do the images). When the user either clicks outside the "appeared menu" or on an exit button on the menu, the "appeared menu" will fade out and unload the XML file in preperation for a different button to be pressed and have new content loaded. Again this all needs to be in actionscript
Thanks in advance
Fading Sound With Actionscript
I am trying to fade sound with script when a movie clip gets to a certain x value on the stage. Here is the what I have. It probably has problems, as I am an actionscript newbie:
Script on frame 1:
MySound = new Sound();
MySound.attachSound("wind01.mp3");
MySound.start(0,1000);
music.setVolume(100);
vol = 100;
fade = 5;
Script on movie clip:
onClipEvent (enterFrame) {
if (this._x >= 90) {
vol = vol-fade;
} else if (vol<0) {
vol = 0;
}
}
Can anyone tell me what I am doing wrong? Any help would be greatly appreciated.
Thanks
Alpha Fading With Actionscript
I've been trying to put together a function that I can reference through various symbols in a movie to fade their alpha properties. So far all I've found is code that forces me to reference the specific symbol in the function, however I have to do this to a BUNCH of symbols over different periods within my timeline, part of which will be triggered by a loaded movie.
Does anyone have a function that will fade up or down that can sit on the _root. and be referenced by any symbol whenever needed?
If this doesn't make sense, please let me know, I will clarify!
Thanks in advance;
.mahchevoi
------------
Fading In & Out An Object Using Actionscript?
Hi
does anyone here know how to fade in & out an object using actionscript?
I got some text and i want it faded out 1st, but when it slides in i want to fade it in using actionscript cause this cuts down the file size than trying to do it using tween.
thanks
Fading Sound Via Actionscript
Is it possible to fade sound using actionscript? I am currently using the actionscript:
Quote:
//Play Internal Sound Behavior
if(_global.Behaviors == null)_global.Behaviors = {};
if(_global.Behaviors.Sound == null)_global.Behaviors.Sound = {};
if(typeof this.createEmptyMovieClip == 'undefined'){
this._parent.createEmptyMovieClip('BS_distant',new Date().getTime()-(Math.floor((new Date().getTime()) /10000)*10000) );
_global.Behaviors.Sound.distant = new Sound(this._parent.BS_distant);
} else {
this.createEmptyMovieClip('_distant_',new Date().getTime()-(Math.floor((new Date().getTime()) /10000)*10000) );
_global.Behaviors.Sound.distant = new Sound(this.BS_distant);
}
_global.Behaviors.Sound.distant.attachSound("dista nt");
if (true) {
_global.Behaviors.Sound.distant.start(0,2);
}
//End Behavior
You can see here that I have it looping twice but want to fade it out in the end. Can someone please point me in the right direction? Did a search but nothing helpfull came out.
Thank you very much.
_alpha Fading Using Actionscript Help?
Hello,
I have eight images in a MC that I would like to sequentially fade in, display for a few seconds and fade out using _alpha function. So far I can fade one in with this AS:
img1._alpha=0
img1.onEnterFrame = function() {
this._alpha +=10;
}
Assuming my instances are img1, img2, img3, etc, etc... how would I go about sequentially fading each instance from 0 to 100, letting it display on the stage for a few seconds and then fade out (like a slideshow)?
Any help would be greatly appreciated!
Macca
Fading Images Using Actionscript
Hullo,
I'm brand new to Flash.... I've found bits and pieces of my answer but they assume I know more than I do.
Can some tell me in real laymans terms how to have say... 5 images fading from one to another, looping using action script. I found a tut which does it using tweening, that's simple enough but apparently action script will reduce the file size and make it smoother.
I'm using mx 2004.
Thanks in advance...
Herb.
Fading In & Out An Object Using Actionscript?
Hi
does anyone here know how to fade in & out an object using actionscript?
I got some text and i want it faded out 1st, but when it slides in i want to fade it in using actionscript cause this cuts down the file size than trying to do it using tween.
thanks
Fading Alpha In/out With Actionscript
Hi there,
I am trying to fade in alpha on, say frame one, and then when alpha hits 100% send to say, frame two. I am working with the code below hashed from various tutorials however when alpha reaches 100 it then goes into 'strobe mode' and flashes on/off forever. I have tried everything to get it to react when it hits 100, but no luck- can anyone help?
function fadeIn(target, destination) {
//trace (this._alpha);
rate = 5;
target.onEnterFrame=function() {
rate = rate*.95;
if (this._alpha == destination) {
_root.gotoAndStop(2);
delete this.onEnterFrame;
}
this._alpha += Math.round((destination+this._alpha)/rate);
}
}
then on the frame in question:
onEnterFrame = function () {
fadeIn(_root.text1, 100);
}
I am hoping to be able to get text/images to fade in/out according to frames. This is for web banners so traditional tweens just take up too much space,
Any help would be much appreciated,
V
Mixing/fading Loops With ActionScript
Hi...
I'm having a problem transitioning two loops smoothly.
Here is the scenario:
The piece I'm working on is a presentation and runs from start to finish with no interactivity. I have imported two separate .wav files that are short drum beats of no more than 30 frames each. For the first minute I have the first loop going and then I want the pace to change and have the new loop fade in while the old loop fades out.
The problem is that when you assign the "Fade Out" property to the loop it fades out the tail end of the drum beat for every time it plays. I want it to fade out only after the 10th loop.
All the actionscript I've seen to fade out/fade in are button related... on(release) etc... Is there a simple script that will do this regardless of interactivity that just tells Flash how long to play the loop and when to fade it out?
Appreciate it if anyone has some advice.
Thanks.
Background Fading/changing W/ Actionscript
what would the actionscript be to change the color of the background...
i have four buttons and i want to make each of them have different color choices. one button make the background red, the other green, blue and whatnot...
so can anyone help me out please?
thanks in advance
Fading In A Movie Clip W/actionscript
Here's what I need... I made a New Symbol/movie clip with 70 frames out of Dimensions of a sphere rotating.
What I want to do is fade in the FIRST frame of the movie clip over approximately 10-12 frames, and then once the first frame is at 100% opacity - then the movie clip would begin and repeat til' all is loaded.
- innersight
Fading The Backgound Colour Using Actionscript
I am trying to change the background colour using actionscript. So far i have magnaged to tint everything on the root timeline but not the actual background colour. The script i am using is as follows, any help would be much appriciated....
[code]
//Create a color object called myColor for the target root
myColor = new Color(_root);
//Create a color transform object called myColorTransfrom using
//the generic Object object
myColorTransform = new Object;
// Set the values for myColorTransform
myColorTransform = new Object();
myColorTransform.ra = 100;
myColorTransform.rb = 255;
myColorTransform.ga = 100;
myColorTransform.gb = 255;
myColorTransform.ba = 100;
myColorTransform.bb = 255;
myColorTransform.aa = 100;
myColorTransform.ab = 255;
//Associate the color transform object with the Color object created for myMovie
myColor.setTransform(myColorTransform);
stop();
Fading In And Out With Actionscript?¿(n00b Question)
hi all, i got a problem...
I want to fade in and out a clip so its blinking...
I want to make the clip fade when it is 100 alpha untill it reaches 10 alpha then stop fading and start fading in.
my code(for the clip)
onClipEvent(load){
this._alpha = 100;
}
onClipEvent(enterFrame){
if(this._alpha == 100){
this._alpha = this._alpha - 2;
}
if(this._alpha == 10){
this._alpha = this._alha + 2;
}
}
I know I am doing something wrong...when it reaches 10 alpha it just starts flickering... can anyone help please...
Fading A MC's Color And Alpha With Actionscript
i cant seem to figure out how to fade to a color or alpha with actionscript.. in MX..
i can easily change the properties but i want it to fade to the alpha by clicking a button
does anyone know of a .fla or anything that could help?
thanks
Fading From One Color To Another With Actionscript, No Tweens
ok, here is the code so far, the clip that should change colour is "leftBlock" :
my_color = new Color(leftBlock);
var newcolor:Number = 0
button.onRollOver = function() {
newcolour = 0xC9C9C9;
leftBlock.onEnterFrame = function() {
newcolour = newcolour+((0x058444-newcolor)/5);
my_colour.setRGB(newcolour);
};
};
please can someone check this out
Thanks
Chris
Rephrased....Fading In A Button Using Actionscript
Lemme try to explain this again...
OK
I have a Black Box on the stage which I have converted into a button.
I want the alpha set at zero...
When the mouse hovers over the invisible box... it will begin to gradually fade in. If the mouse rolls off the box, and lets say the alpha is at 53%... i want it to stay at 53% until the mouse hovers back over the box...
When the box hits 100% alpha... I want the page to then follow what I have set in the timeline.
So i need some sort of actionscript coding that will allow me to do this
Maybe this makes some more sense than my previous post
Thanks for any help
Mikey
Actionscript Trigger Fading Transitions
Hi,
My actionscript isn't very good, but if someone here can offer some pointers, I'd be most grateful.
I have a flash website with 5 navigation links. When a navigation link is clicked, the main page image on the page will fade out and a new image will load in its place (each page has a different image).
How would I go about scripting this? How can I load images into a specific place on a page and get them to fade over the one that is already there? Is this something that is possible with actionscript?
If anyone could offer an explanation or example, I'm sure I'll be able to get a good impression of how it's done.
Thanks very much...
Actionscript Fading Problem Flash MX
Hi everyone here's my problem
I'm building a website which has a row of buttons which control a center console. What i want to do is when you click a button the center console changes to the page needed. However, i would like the page to fade in and the old page to fade out.
Its easy to get the new pages to fade in but it's getting the page already visible to fade out which i cant do.
Can anyone help, cause i blatantly need it
Thanks in advance
[MX04] Fading MC And Buttons Through Actionscript
Hello there,
I have a couple of questions on how to fade buttons through actionscript.
The first one is with a MC.
I have a set of 12 small images. They are all on an alpha of 60 when movie is loaded. I want each on to fade in to 100% alpha when a mouse hovers over that one.
This is what I have, and it doesn't work
Code:
this.onEnterFrame = function (){
moby._alpha = 60;
nikita._alpha = 60;
zhenya._alpha = 60;
alyssa._alpha = 60;
laura._alpha = 60;
jen._alpha = 60;
lux._alpha = 60;
lindsey._alpha = 60;
jamie._alpha = 60;
kelly._alpha = 60;
erin._alpha = 60;
colin._alpha = 60;
};
function (fadeOut) {
this._alpha -= 5;
if (this._alpha<=60) {
this._alpha = 60;
this.onEnterFrame = null;
};
};
function (fadeIn) {
this._alpha += 5;
if (this._alpha<=100) {
this._alpha = 100;
this.onEnterFrame = null;
};
};
moby.onRollOver = function(){
moby.onEnterFrame = fadeIn;
};
moby.onRollOut = function(){
moby.onEnterFrame = fadeOut;
};
Also I want to fade the color of a text from lets say an orange to a white. I want it to fade smoothly, and preferably through actionscripting. How would I do so?
Thank you,
Artem
Alpha Fading MC Using Pure Actionscript
Hi everybody i have a question...i want to make a banner that looks similar to this http://nikon.ca/en/ each picture is a movie clip and after its done playing it uses alpha to change from that mc to another one...i only want to use actionscript nothing else....any help is greatly appreciated!!!
Actionscript+XML Picture Fading Slideshow Help
I would like to create a xml based slideshow where only two movieclips exist, an array of the total number of pictures is obtained from an xml file, and each picture alpha fades to the next. I have seen this done a few times and looked over the code so I know the general idea but need help, so I will describe in in pseudocode. I have made it here(www.jerble.com/Other/home.swf) in flash, but would now like to integrate xml and do it in actionscript.
Code:
Code:
rootNode = new XML();
rootNode.ignoreWhite = true;
rootNode.load("pictures.xml");
rootNode.onLoad = function(success) {
if (success) {
var ef = rootNode.firstChild.childNodes;
_global.ef=ef;
}
}
//PSEUDOCODE BEGINS
variable one=new movieclip;
variable two=new movieclip;
for(i=0;i<ef.length();i++)
{
one=box.load()=ef[i].firstChild.nodeValue; (where the value is the url of the image)
for(j=0;j<100();j++)
{
if (j==50) then: two=text=ef[i+1].firstChild.nodeValue; (so that only one image will be loaded initially to minimize load time)
if (j==80) then: one=one.alpha[(100-j)*5] (thus the original alpha is 100, and it decreases by values of 5 for each "j")
}
}
Thanks for any help, and please keep in mind that I am not familiar with the syntax for the part I wrote in the pseudocode section, so any corrections are appreciated. Note: this would crash after it reaches the end because at i=last and j=80, i +1 would not exist, but I did not deal with the error for simplicity.
|