Making Somthing Fade
how to i make something fade. (i.e. a layer, object, MC; anything)
FlashKit > Flash Help > Flash MX
Posted on: 04-25-2005, 12:17 PM
View Complete Forum Thread with Replies
Sponsored Links:
Help On Making A Caracter Attack. And About Somthing Else.
yes, I need someone to have a actionscript about my caracter attacking. I whent on this tutorial one day, learned about how to make somthing attack, but somhow, it wont work on my file. heres the code. I hope someone knows this well. I just got flash 8, so im expirimenting on this. once I get this code right if so, I will complete my game controls.
heres the code right here:
(this code is for putting in the caracter)
Code:
moveSpeed = 10;
_root.laser._visible = false;
laserCounter = 1;
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.CONTROL)) {
laserCounter++;
_root.laser.duplicateMovieClip("laser"+laserCounter, laserCounter);
_root["laser"+laserCounter]._visible = true;
}
}
(this code is for putting in the laser)
Code:
onClipEvent (load) {
laserMoveSpeed = 20;
this._x = _root.player._x+90;
this._y = _root.player._y;
}
onClipEvent (enterFrame) {
this._x += laserMoveSpeed;
if (this._x>600) {
this.removeMovieClip();
}
}
now for the somthing else part, every time when you finsh beating the last enemy in one scene, how do you make it go to the next scene? If you dont really understand, i mean like when your in one lvl of a video game, and you kill the last monster in the lvl, youl be sended to the next lvl. but in flash, i dont know how to do that. does anybody know a code? if any helps out, Thanks soo much! sorry for all these problems, i know they are annoying. :P
View Replies !
View Related
Making Text Fade In And Out
I want to have some text slowly fade in.
I have converted the text to a symbol, and changed the alpha to 0%. Then I put in a keyframe where I want to start the fade in, alpha 0%. I put another keyframe where I want the text fully visible, alpha 100%. Then I put in a motion tween.
It works fine when I move the bar on the timeline. But it doesn't work when I test the movie.
I'm using Flash MX.
I am stuck. Please help!
View Replies !
View Related
Making Buttons Fade
i made this navagation bar for a project and i would like the buttons to fade to the colors that they have on mouse over and when pressed but im not sure how. could someone maybe post how or edit it for me, i would be quite thankful.
P.S.- can anybody tell me how to edit this code to open in the same page instead of a new window?
on(Release) {
getURL("http://www.google.com",_blank);
}
View Replies !
View Related
Making Images Appear To Fade
is there a way to ghost the images?
i cant find "alpha", there is "ease" but it doesnt seem to do anything
here is a link to what im trying to do; you must click on the image for the flash app to open:
http://www.deviantart.com/deviation/14259943/
thanks
View Replies !
View Related
Making This Fade In-&-Out More Efficient
Hey Folks,
I would like to know how I could make this Fade In and Out I made (I'm starting to get the hang on some of this stuff) more efficient.
I've got it working using two frames but I would like to do it in one, if it's possible.
Please see attached ZIP file, it's a Flash MX ver.
Peace
Jose Antonio
View Replies !
View Related
Making Objects Fade Out
So I am really new to actionscript 3.0. I have been programming for about 4 years now. Anyway, I have a very simple question. I have made a movieclip (represented by a circle on the stage) and I want to make it fade, so I used this code: (note that i named the instance ball)
ball.alpha = 1;
while(ball.alpha > 0)
{
ball.alpha-=0.01;
}
So anyway the problem with this seems to be that it waits until the whole section of code has to run before it refreshes the screen, which makes sense. So what I need to know is if there is a simple way to force the drawing after ball.alpha-=0.01;. Maybe something like:
while(ball.alpha > 0)
{
ball.alpha-=0.01;
StageDraw();
}
Remeber I am new to Actionscript. I understand coding in other languages, but even making a variable in Actionscript seems unnecessarily long and overcomplicated.
View Replies !
View Related
Making TextField Fade In/out In AS3
Hi There,
I am working in a document class and have some textfields on the stage as buttons. Can I control the alpha of a textfield? How do I have a the textfield inherit the properties of a Sprite? I want to have them fade out on a click event.
Many thanks for your help! Hopefully someday I can actually help someone in here!
View Replies !
View Related
Making A Mask Fade
Hi, i went thrug the toutorial on masks, but i cant seeem to make a good fade.
When i make a gradient , the black on the gradient showes up, but there it should be solid colour from the layer under. Any one know whats wrong?
View Replies !
View Related
Making A Movieclip Fade Out Please Help
I have on my stage different sub menues which Id like to have fade out when I press a certain button.
Thought I could do with _alpha, but I only fades a certain procentage. Not all the way.
ActionScript Code:
on (press) {</p>
<p>_root.contact._alpha -= 5;</p>
<p> if (_root.contact._alpha<10) {</p>
<p> _root.contact._alpha = 0;</p>
<p> }}
which I thought would work, but it only fades it 5% add a time.
how do I make it fade completely?
View Replies !
View Related
Problem Making Xml Text Fade
Hey guys ive got a problem fading text loaded with xml.. my code is as following:
function loadXML(loaded)
{
if (loaded)
{
_root.firstline = this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue;
_root.firstline_txt.text = _root.firstline;
_root.firstline_txt._alpha = 0;
}
else
{
trace("No Collision");
}
};
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("myXML.xml");
.. and then on firstline_txt:
onClipEvent (enterFrame)
{
_root.firstline_txt._alpha++
}
but obviously this dosent work, how do i solve it ?
thanks in advance
kaspar
View Replies !
View Related
Making A Movieclip Fade Out Before Playing A New One.
Hello everyone.
I have 6 buttons and 6 movieclips.
the 6 movieclips are all the same size and they should be displayed in the same little window when its button is clicked.
like this
---------------------------------------------------------
------------------------------
| movieclip inside this window |
------------------------------
button1 button2 button3 button4 button5 button6
---------------------------------------------------------
How can i make the movieclip fade out for 10 frames or so before playing the next one even if its still playing ?
Any script suggestions ?
Sammy.
View Replies !
View Related
Making Foto Fade-ins/outs With AS?
hello everybody,
I want to make a flash header with a menu with 9 buttons and a changing photo for each (so 9 fotos). When you click on one menu button the current photo should fade out and the new foto should fade in (pretty much simultaneously so it is a nice transition). Now I don't want to make those picture fade-out and ins with tweens, because then i would have to make about 81 tweens..
Instead, is there a way I could do this with AS? Can anybody give me some advice where and how to start, I'm pretty much clueless
Thx
View Replies !
View Related
Making My Alpha Fade In Faster
how can i modify or add to my script to make the alpha go faster?
here is my code i wrote.
ActionScript Code:
function animate() :Void {
mcLeftWhiteBox._alpha++;
mcTopRtBox._alpha++;
mcBotRtBox._alpha++;
updateAfterEvent();
}
mcLeftWhiteBox._alpha = 0
mcTopRtBox._alpha = 0
mcBotRtBox._alpha = 0
var Interval:Number =setInterval(animate,1)
View Replies !
View Related
Can U Please Help Me With Somthing.......
u know that little menue that pops up when you right click and will let you play it pause it or make it not loop..... well can i make it so you cant pause or play it. like make the menue not as big and less options i have seen it allot but i dont know how to do this. thank you!
View Replies !
View Related
I Want The TAB Btn To Do Somthing Else
Hello, I am trying to set up a text field with an integrated bullet system in. This is the code I am using and it sort of all works fine.
----
myListener = new Object();
myListener.onKeyDown = function() {
my_fmt = new TextFormat();
my_fmt.bullet = true;
my_fmt.italic = true;
if (Key.isDown(Key.SHIFT)) {
indenter = indenter+30;
my_fmt.blockIndent = indenter;
}
if (Key.isDown(Key.CONTROL)) {
indenter = indenter-30;
my_fmt.blockIndent = indenter;
}
mybox.setNewTextFormat(my_fmt);
};
Key.addListener(myListener);
----
But obviously using the Shift and Control key for controlling indents and bullets isn't really effective. I want to be able to use the TAB button to indent and SHIFT and TAB to go back from the indent, just like any microsoft application.
I have tried a few things but can't get anything to work, with the tab button just selecting everything each time.
some help on this would be great.
Thanks.
Kaan.
View Replies !
View Related
Making A Scene Fade Out After Button Press
thank you for reading and helping if you can - I am at a loss!
I want to let a user click one of several buttons (in a menu bar) and get the current scene to play several more frames, like a fade out, before the movie jumps to a new scene, corresponding to the button the user clicked. The only thing I can do now is set a goto action on the button instance, which immediately takes me to the new scene, without a chance for a smooth transition.
If there is a better way to get one scene to smoothly transition into another, I am open to suggestions. Please help if you can - any ideas or code would be greatly appreciated.
View Replies !
View Related
[MX] Making A Mini Jukebox With Fade In Loops
I am trying to get my website to play a track and loop it (see attachment).
I basically want it to be a basic version of
http://calpomatt.lavista.org/
My version doesn't fade in when you press the button, just kicks in.
what i want it 2 options that play different tracks. (and fade in).
It looks like the tracks get loaded in externally as you get a small loading bar on the top left when you hit a new loop. Because i am having 2 short loops i might preload the whole movie with a small bar and then start playing. does this sound right, am i going about it the right way ?
you can canibalise my attached file if you wish
thanks
oo0dekker0o
View Replies !
View Related
[mx] Making A Mini Jukebox With Fade In Loops
I am trying to get my website to play a track and loop it (see attachment).
I basically want it to be a basic version of
http://calpomatt.lavista.org/
My version doesn't fade in when you press the button, just kicks in.
what i want it 2 options that play different tracks. (and fade in).
It looks like the tracks get loaded in externally as you get a small loading bar on the top left when you hit a new loop. Because i am having 2 short loops i might preload the whole movie with a small bar and then start playing. does this sound right, am i going about it the right way ?
you can canibalise my attached file if you wish
thanks
oo0dekker0o
View Replies !
View Related
Changing Background Colour...making It Fade
hey there...i have made a file that changes the background colour when you roll over a button using the code
on (rollOver) {
bgcolor = new Color(_root.myBG);
bgcolor.setRGB(0x66FF00);
}
now i feel that the effect doesnt look right since the bg snaps instantly to that colour when i rollOver the button...i was wondering if it is possible to make the background fade from its original colour to the new colour
i have found a way to do this using tweens but i would perfer to use actionscript as i plan on having more complicated colour changes
View Replies !
View Related
Music Somthing..
YO! how can i make something like the movies in the Sound Loops and Sound FX sections ? When you play the sound, those bars next to it go up and down! ?? Need this quick! :P thanks.
View Replies !
View Related
Searching - If Something Is 'like' Somthing.
With SQL you can do something like:
WHERE name LIKE 'name'.
WHERE name = '%name%'
In my flash movie, I the function to search for titles. It consists of a text input box and a search button..
When the search buttons is clicked I then loop through an array checking if input_title.text = titles_array[i]['title']
The problem is that it only returns a result if it's an exact match.
Because some of the title are pretty long, I would like the search to be more flexible i.e:
type in "harry" and click search.
"harry the bastard" returned.
there is is no 'LIKE' in actionscript or wildcards that I can use, is there anyway i can do this?
View Replies !
View Related
PHP-mySQL Or Somthing
Hey everone i have been wqanting to know how to do this.
I want some people write there email in a Text field easy then make there message easier.Then i want a submit buttion that sends all the stuff they wrote in the Text field and i can get it.
PLease this is very Urgent.
I am making a site an i want to add some cool effects like that one.
View Replies !
View Related
Somthing Is Wrong?
Here is the problem.
I made a movie clip and a button. When you roll over the button I tell the movie clip to duplicate and move in the _x position, but all it does is move in the _x position but does not duplicate and the button moves with it. All I want is for the movie clip to duplicate in a differen't position with out moving the button with it.
how can I post the fla in here for you too see.
this is the code.
on (release) {
duplicateMovieClip ("_root.flash", "_root.flash5", 20);
this.flash5 = _x=random(505);
}
Any one know why this happens.
View Replies !
View Related
Taking A Button And Making It Fade In And Out On Rollover And Rollout
hello,
i am trying to modify some code i have for expaning rollover buttons,
i want to use alpha to have it start at 50% transparency, then when you rollover it slowly goes to 100%... then when you roll off, it slowly goes back to 50%.
whats happens now, is that it starts at 100% transparency and just fades to nothing on rollover, the Rollout is doing nothing
This is my code so far, it invloves a button inside of a MC,
the MC code is this
onClipEvent (load) {
fade = 50;
}
onClipEvent (enterFrame) {
if (this._alpha > fade) {
this._alpha += 2;
} else if (this._alpha < fade) {
this._alpha -= 2;
}
}
the button code is this..
on (rollOver) {
fade = 130;
}
on (rollOut) {
fade = 100;
}
View Replies !
View Related
Making Actionscript Photo Gallery Fade Automatically
Hey all,
Hopefully this hasn't been covered a lot here... I'm a newbie when it comes to ActionScript so hopefully someone here can help me out.
I've been using this kirupa designed flash photo gallery because it's far more efficent size wise than just creating the tweens in flash:
http://www.kirupa.com/developer/mx/photogallery.htm
My question is this:
What is the best way to change this photogallery so that rather than manually changing the photos with a button, it will fade them in and out automatically?
(i.e. on (release) {
_root.changePhoto(1);
} )
I tried wiring it up using "onEnterFrame" as a function to change _root.changePhoto but maybe I'm placing the code in the wrong place because I can't seem to get that to work.
Any help with this would be greatly appreciated.
View Replies !
View Related
Somthing Blocking Flash?
Hi everyone,
has someone ever had the Problem that his Flash film (with link) didnt work cuz of some javascript elements in the same php file?
I made a little film with a link in it ... the link triggers a javascript for a popup with "geturl bla bla" it worked fine in the beginning ... then the site became more complex *grrr* ... and now it doesnt work any more and i just cant see the fu..ing problem ... sorry ... its really makin me mad ... under the film is a normal textlink with the same linktarget that works fine.
The only script in the film is:
on (press) {
getURL ("javascript: popUpSMS('http://bla bla bla')");
}
Im not going to post the php source cuz its to big and full of includes ... i dont think that would help anyone.
If someone wants to have a look at the film, here is the link to the site www.noisy.de ... the flashfile im talking about is on the right side with a big SMS written on it.
If anyone had the same problem I would be glad if she or she could give me a hint
Thanx
Timtendo
View Replies !
View Related
Right Click Does Somthing In Flash?
Hi all,
I was opening the samples in my new flash 2004 and i ran into a sample called:
CustomizingContextMenu
now this sample has something to do with the mouse right click .
now i opened the fla and looked at it ... it seems easy enough to learn
but is there a tutorial or other samples to learn from
can any one give me info on how this thing works and how can i make do stuff i want?
thank in advance
View Replies !
View Related
Somthing Missing... MP3/php/mysql
I AM SO close i feel it.... please review the enclosed file... Im sure im missing something so simple in the AS. If anyone could help me I'd be most greatfull...
This is a flash mp3 player that gets a list from mysql db and displays it for the viewer to select from ... i cant get the controls to work
thanks in advance...
here is the fla ... http://www.vibetribe.org/mp3Problem.zip
Code:
var mp3Array:Array = [];
mp3List.addItem("loading mp3 data..");
var receiver:LoadVars = new LoadVars();
receiver.onLoad = function(ok:Boolean):Void {
if (ok) {
mp3List.removeAll();
mp3List.addItem("Select your mp3");
for (var i:Number = 1; i<=receiver.total; i++) {
receiver["mp3DataPacket"+i] = receiver["mp3_data"+(i)].split("|");
var id:String = receiver["mp3DataPacket"+i][0];
var mp3name:String = receiver["mp3DataPacket"+i][1];
var downloadLink:String = receiver["mp3DataPacket"+i][2];
var mp3DataObj:Object = {};
mp3DataObj.id = id;
mp3DataObj.mp3name = mp3name;
mp3DataObj.downloadLink = downloadLink;
mp3Array.push(mp3DataObj);
mp3List.addItem(mp3DataObj.mp3name);
delete (receiver["mp3_data"+i]);
if (i == receiver.total) {
setup_mp3_list();
}
}
} else {
trace("error");
}
};
receiver.load("http://www.vibetribe.org/get_mp3_data.php");
setup_mp3_list = function ():Void {
var mp3ListObj:Object = {};
mp3ListObj.change = function():Void {
if (mp3List.selectedItem.label != "Select your mp3") {
var sIndex:Number = mp3List.selectedIndex-1;
show_mp3_specifics(sIndex);
} else {
serverMsg.htmlText = "";
}
};
mp3List.addEventListener("change", mp3ListObj);
};
show_mp3_specifics = function (sIndex:Number):Void {
serverMsg.htmlText = "mp3 name: "+mp3Array[sIndex].mp3name+"<br/>"+"download link: <a href='"+mp3Array[sIndex].downloadLink+"'>download this mp3</a>";
play_mp3(mp3Array[sIndex].downloadLink);
};
formatTime = function (millisecs) {
var secs = Math.floor(millisecs/1000);
var mins = Math.floor(secs/60);
secs %= 60;
if (secs<10) {
secs = "0"+secs;
}
if (mins<10) {
mins = "0"+mins;
}
return mins+":"+secs;
};
play_mp3 = function (playLink:String):Void {
var fullUrl:String = "http://www.vibetribe.org/";
var soundHolder = this.createEmptyMovieClip("SoundController", 1);
soundHolder.init = function() {
soundHolder._sound = new Sound(this); //or maybe just new Sound() ???
this.isPlaying = false;
this.position = 0;
loadingbar_mc._xscale = 0;
progressbar_mc._xscale = 0;
};
soundHolder.loadSound = function() {
this._sound.loadSound(fullUrl+playLink, true); //VERY VERY VERY IMPORTANT... BUT MAY BE MY PROBLEM....
stop_btn.onRelease();
this.updateTime();
};
soundHolder.updateTime = function() {
var time = formatTime(soundHolder.position);
if (time_txt.text != time) {
time_txt.text = time;
}
};
soundHolder._sound.onSoundComplete = function() {
stop_btn.onRelease();
};
soundHolder.onEnterFrame = function() {
if (this.isPlaying) {
this.position = this._sound.position;
}
this.loaded = this._sound.getBytesLoaded()/this._sound.getBytesTotal();
loadingbar_mc._xscale = scrubber_mc._xscale*this.loaded;
progressbar_mc._xscale = loadingbar_mc._xscale*this.position/this._sound.duration;
this.updateTime();
};
play_btn.onRelease = function() {
if (!isPlaying) {
soundHolder._sound.start(soundHolder.position/1000);
soundHolder.isPlaying = true;
}
};
pause_btn.onRelease = function() {
if (!soundHolder.isPlaying) {
return (0);
}
soundHolder.position = soundHolder._sound.position;
soundHolder._sound.stop();
soundHolder.isPlaying = false;
};
stop_btn.onRelease = function() {
soundHolder.position = 0;
soundHolder._sound.stop();
soundHolder.isPlaying = false;
};
scrubber_mc.onPress = function() {
if (!soundHolder.loaded) {
return (0);
}
var pos = this._xmouse/100;
soundHolder.position = Math.min(soundHolder._sound.duration, pos*soundHolder._sound.duration/soundHolder.loaded);
if (soundHolder.isPlaying) {
soundHolder._sound.start(soundHolder.position/1000);
}
};
soundHolder.init();
};
View Replies !
View Related
I Got A Game Somthing Like Stick Rpg
i was wondering if anyone knew how to make cars randomly drive down the road because i have a top view like in the game stick rpg or stick world and both of them have cars that will drive in random lanes down the road and i was wondering does anyone know how to do this?
View Replies !
View Related
How To Make It Play Somthing Outside Of The Mc.
I have a MC and it has a button inside, and I need it to play somthing on the main stage. I think the code is somthing like this but im not sure
Code:
on (release) {
_root.gotoandplay("more");
}
And more is a frame label on the main stage, and the thing that is getting pressed is inside a movie clip.
Thanks,
Dan
View Replies !
View Related
Veriable Question- Must Be Missing Somthing- Please Help
ok, on a button i have it so when you lcick the button, it takes two variables (stored in two other objects on the main timeline) and adds them together and takes the total and one of the variables becomes that number.
on(release){
planet = _root.thingy.woohoo;
return = _root.otherthingy.yahoo;
total = planet + return;
_root.thingy.woohoo = total;
}
both variables change do to user activity, but if both variables (for example) come in as a value of 1 each, (planet = 1, return = 1), for some reason total = 11. So fro some reason they arnt ADDING on top of each other, but adding beside each other...
Very odd... what am i doing wrong?? This has never happened before. Thanks if you can help!
E/E
View Replies !
View Related
Easy - A Link To Somthing Outside Flash
Hi all, new to the forum here.
A nice easy one to get me started....
I have a swf file embedded in an Intranet page. I want to have a button on the swf that opens the user's Z: drive.
I can do it in html: the url is: file:///Z|/ (target: _blank)
easy! that works but i want the link to be in the swf so it looks nice.
It works when i preview my page in dreamweaver, or have a go with my local version, but no chance when I upload the page and try from there. Any ideas? can it be done? seems easy, maybe it's not.
Thanks in advance for any help / suggestions.
Dave
View Replies !
View Related
Hyperlinking Text Or Somthing Similar
I am in need of help. I have spent days looking for an answer. I'll be brief in my description of the problem.
I Desire: A scrollable list of in flash. This list will be of every satuday in the last year.
You click on a date and a separate window opens with swf file I have made containing pictures frome ach particular saturday.
I need to be able to continually add saturdays as time goes by.
My problems: If I make a scrollable list of words, it allows me to link to url's if I use static text but I have no conrol on the window proportions. it opens full size and stretches my small .swf
When I mask text it does no appear in the movie.
I tried making buttons of it and I have to mask a scrollable button clip but masking it once again hides the text.
If I could just make a listbox and make all the entries I make open a link in a new windo that would be my easiest solution. Is this possible or are there any other solutions?
Andrew
View Replies !
View Related
Making A Background Music Track Fade Out To Another Sound When An Object Is Clicked
Hello everyone,
Im fairly new to flash and have been creating a website over the past few days with it. I was trying to get and effect where there is a background music track playing and when an object is clicked on this background track fades out to another audio file and then when this file is finished it fades back into the original background track. Any ideas on how to do this? Your help is much appreciated.
Kind regards,
Brian
View Replies !
View Related
Somthing Wrong Here, Button Doesn't Work
I did the tutorial for open centerd popup window
http://www.kirupa.com/developer/mx/centered_popup.htm
And it works just fine on one of my sites. But when I used the same code (yes, I changed the adress to the right one ) for another site I made... it doesent work, nothing happens. It's like the klick function isn't active or somthing. I just dont get it?!? The only differens is that in the one were it doesent work, the button is in a mc (the meny mc, that fades in the options of the meny). I have to guess that this is why it doesn't work, but i dont understand why.... pleas help me, tHx
View Replies !
View Related
Somthing Wrong Here, Button Doesn't Work
I did the tutorial for open centerd popup window
http://www.kirupa.com/developer/mx/centered_popup.htm
And it works just fine on one of my sites. But when I used the same code (yes, I changed the adress to the right one ) for another site I made... it doesent work, nothing happens. It's like the klick function isn't active or somthing. I just dont get it?!? The only differens is that in the one were it doesent work, the button is in a mc (the meny mc, that fades in the options of the meny). I have to guess that this is why it doesn't work, but i dont understand why.... pleas help me, tHx
View Replies !
View Related
Making Content Fade Out Before New Content Fade In
I'm stuck... and see if you can follow what i'm trying to say cause i won't be able to describe well.
I'm working on a project now and I've got buttons that start a movie clip that basically in just a scaled box that has content over top of it.
How can i make it so that when a different button is clicked, the content currently being displayed is animated (in whatever fashion) going out before the new content comes in? for every peice of content every time.
Thanks,
--John Bohn
View Replies !
View Related
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;
}
}
}
View Replies !
View Related
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;
}
}
}
View Replies !
View Related
Making An Animation Fade Into Another Animation When A Button Is Released?
okay, so I have for exmaple a red animated background for 'home' but when someone clicks 'media' for example, I want that red animated background to fade into a green animated background.
I tryed using external swfs, but I don't know how to make the outro animation of the first red swf fade into the intro animation of the second green swf, so it creates the effect of red into green, rather than red to black, than black to green.
any tutorials that could help me?
View Replies !
View Related
Alpha Fade In, Tint Fade In And Then Fade Out
Just wondering, do u guys usually use actionscript to do alpha and tint fade? or just use the propeties tween control?
i heard that using actionscript will be better as it will not lag if the user's computer is slow....
here is to get a better idea what i'm trying to achieve using tweening
http://h-y-p-h-e-n-s.net/main.swf
To Alpha fade in, white tint fade in and then fade out white tint to original state.
I knoww how to script the alpha fade in but i have problem with the tint fade. I also have read through every line of http://actionscript.org/tutorials/ad...de/index.shtml
but i just don't know how to go about implementing it to my case.
i will really appreciate it if u can help enlighten me
View Replies !
View Related
Alpha Fade In, Tint Fade In And Then Fade Out
Just wondering, do u guys usually use actionscript to do alpha and tint fade? or just use the propeties tween control?
i heard that using actionscript will be better as it will not lag if the user's computer is slow....
here is to get a better idea what i'm trying to achieve using tweening
http://h-y-p-h-e-n-s.net/main.swf
To Alpha fade in, white tint fade in and then fade out white tint to original state.
I knoww how to script the alpha fade in but i have problem with the tint fade. I also have read through every line of http://actionscript.org/tutorials/ad...de/index.shtml
but i just don't know how to go about implementing it to my case.
i will really appreciate it if u can help enlighten me
View Replies !
View Related
|