Fade In Tween Trouble...
maybe i'm completely crazy... i'm trying to tween a mc symbol... just a simple alpha fade... on the main timeline of a swf... he symbol is made of dynamic text embeded... but of two different text boxes... converted to grapic symbols... on two different layers... in the mc symbol... is there something wrong with me...? it wont tween... i've tried it with one layer... i've tried it grouping them... i need the fonts to be two different sizes in the one symbol...
help... it's probably something silly...
FlashKit > Flash Help > Flash Newbies
Posted on: 10-09-2006, 07:36 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
How To? Make A Tween Fade In And Fade Out
I have an existing tween that moves a shape across the screen. I would like to fade-in and fade-out the shape.
I'm not talking about the fade-in/out scroll bar.
I want the shape to vanish, almost, and slowely reappear.
Any ideas?
Fade In Without Tween?
Is there a way to make a movie clip (/graphic) fade in without using tweens? How to do it?
Thansk in advance.
Fade In/Out With Tween(), Or Is This Not Possible?
Hi all,
Code:
var AlphaTween:Tween = new Tween(myobj, "alpha", None.easeInOut, 0, 1, 2, true);
This code does not fade in and out. It just fades in.
How can I fade in, remain visible for a second, then fade out again?
Thanks for your help!!
Tween Or Fade
is there an easy way to do this or should I just try to find a easy flash banner maker.
I want an all flash banner, no actionscript, with animated text that rolls in, eases in and then stops. there will be two images, 1st one fades in, text rolls in and both fade out as 2nd image comes in with different text then...sequence stops..no loop effect.
I am not sure if this is called fading or tweening.
appreciate any help or tutorials on this exact premise. i found something here. http://webdevfoundations.net/flash8/page4.htm but it is a background color instead of an image and just one instead of two so I became confused.
the text is fine though.....any thoughts.?
thanks
Fade Without Tween
I have a slide show in flash mx and I want the pictures to have some sort of transition ... like have it fade into the next picture -- or go from blurry to clear.
Nothing major -- something quick. Right now I have each picture in it's own frame... I had the idea of putting a grey box over the picture and converting it to a movie clip and then performing some action on it ... but I don't know the right way to script it so it goes from solid to fade ... I can put it on the on(release, keypress...) I think ...
(am i losing you?)
i'm a programmer so would rather do this with script then on the timeline with tweening.
Newbie at Flash - I'm sure you can tell!
FADE - TWEEN TO ALPHA 0
I was following the the:
tutorial "Dissolving Words"
by "Derek Boge"
at "http://www.flashkit.com/tutorials/Text_Effects/Dissolvi-Derek_Bo-647/more4.shtml"
which suggests "change the Alpha to 0%".
It seems to work for him but when I go to the mixer and try this one of two things happens:
1) I make the stroke alpha 0, from black and go to the fill alpha to make it 0 and then check the stroke alpha to find it back at 100
2) I can make both alphas 0 (by accident!) but then rgb values go to 1 and will only go back to 1 if I make them all 0.
All that is needed is to fade, from black to nothing, from the first frame of the tween to the last.
It shouldnt be hard, so Im surely missing something basic!
Can someone help out please?!
Fade In Without Using Alpha & Tween...
I have some images and buttons I need to have fade in from 0 - 100 and I know there is some code to place on the frame in the timeline to cause this to happen.
I don't want to use the tween option as that adds a lot of memory the more times you use it per movie.
Does anyone have the code that I place in to make something fade in from 0 - 100
and then I need a separate one to make it fade back out from 100 - 0 later in the timeframe?
thanks for the help!!!!!!
Fade Into Colors In A Tween?
In this movie clip i'm making, i have a figure moving out of darkness and into light. I want it to change from black to white as it moves. how do i do this???
Can I Fade In A MC Without Using Motion Tween?
well its a simple question;
Can i fade in a MC without using motion tween, but use actionscript in stead, and how, any codes would help, and at specific time.. like 15 frames....
thx for ur time.
Fade Out (tween) Problem.
Hey all.
I'm working in Flash 5 and I'm trying to get a fade-to-white effect in a certain way. Now, I know how to fade it out. But I'm trying to fade it out over a tween (the image is moving on a motion tween and I want it to fade out while it's still moving).
Right now, I just have the tween completely stop so the fade-out can happen. But I want the tween to be able to keep moving while it's fading out. Is there some kind of fade-out filter I'm unaware of? I've seen it done before and want the same effect.
Again, using Flash 5 and any help would be appreciated. Thanks.
Tween Fade Problem
Please check out the files I uploaded, I am trying to make a swf load into an empty holder an then via button and the tween class to make it fade in and fade out.
I have managed to do something with the code, but the results are far from finished.
Please take a look!
theredtitan
Tween Fade Out Problem
Ok, my initial post was wayyy too long and disn't make a lot of sense.
Let me try to explain it this way...
I have a mc that I'm using inside of a button that plays one tween in a random loop.
I want to create an onEnterFrame function within my on (rollout) that does something only if the tween is not currently playing. If the tween is currently playing, I want the tween to finish playing and then do the action. Will I use an Event Listener for that? And if so, how do I write one? I've looked at the help files and for some reason they are not making a lot of sense to me. I'm currently using global variables to not much success...
Thanks for any help!
-Sandy
Fade Alpha After Tween
Hi I made the following AS tween that moves the MC from right to left. It should fade its alpha after the tween finishes. But it doesn't fade. Why not?
Thanks
Code:
import mx.transitions.Tween;
import mx.transitions.easing.*;
var myHoriTween:Tween = new Tween (fadeLogo,"_x",Back.easeOut,400,100,1.2,true);
myHoriTween.onMotionFinished = function (){
timeOut = setInterval(someSubCode, 5000);
function someSubCode () {
var myAlphaTween:Tween = new Tween (fadeLogo,"_alpha",Regular.easeOut,100, 0,2,true);
};
}
Fade-out Tween Problem
Hi
I have this functions to fade in and out attached clips.
PHP Code:
function fadeIn_M(my_InClip:MovieClip) {
new Tween(my_InClip, "_alpha", None.easeNone, 0, 100, 1, true);
}
function fadeOut_M(my_OutClip:MovieClip) {
new Tween(my_OutClip, "_alpha", None.easeNone, 100, 0, 0.5, true);
fadeOut_M.onMotionFinished = function() {
removeMovieClip(my_OutClip);
};
}
Now, while the fade-in works on rollOver, the fade-out does not on rollOut.
What I'm missing?
PHP Code:
for (var i = 1; i<=8; i++) {
this["btn"+i].ID = i;
var con_M2:MovieClip;
this["btn"+i].onRollOver = function() {
this.gotoAndStop("over");
var con_M2:MovieClip = _root.createEmptyMovieClip("con_M2"+this.ID, 20);
con_M2._x = 360;
con_M2._y = 352;
con_M2.attachMovie("ROLL"+[this.ID], "ROLL"+[this.ID], 1);
fadeIn_M(_root["con_M2"+[this.ID]]);
};
this["btn"+i].onRollOut = this["btn"+i].onReleaseOutside=function () {
this.gotoAndStop("up");
fadeOut_M(_this["con_M2"+[this.ID]]);
};
Thanks for any help.
Why Is Only The Fade-in Tween Working?
Code:
var imgLoader:Loader = new Loader();
imgLoader.contentLoaderInfo.addEventListener( Event.COMPLETE, function(){
var imgBmp:Bitmap = imgLoader.content as Bitmap;
imgBmp.y = 0;
imgBmp.x = 0;
var myFadeOut:Tween = new Tween(_mainImageContainer, "alpha", Regular.easeIn, 1, 0, 1, true);
if (_mainImageContainer.numChildren > 0){_mainImageContainer.removeChildAt(0)}
_mainImageContainer.addChild(imgBmp);
var myFadeIn:Tween = new Tween(_mainImageContainer, "alpha", Regular.easeIn, 0, 1, 1, true);
});
imgLoader.load( new URLRequest(slideshowRoot + "/" + mainImagePath) );
I've got a row of thumbnail images that fire the above code when clicked, which loads the fullsize version of the image into _mainImageContainer (a movieclip on the stage). But only the myFadeIn seems to work - when I click a thumbnail, the image that was being displayed disappears instantly, and the new one fades in. Why doesn't myFadeOut do what I expect?
What am I missing?
Tween / Photo / Fade In
I have been desperately trying to learn Flash for a project. Right now have a jpg image - converted it to a symbol - put it on its own layer. The first keyframe has an alpha transparency around 80%. The second (on frame 12) has an alpha of 0%. I put a tween in between the 2 keyframes. It doesn't transition. All the frames stay at 80% until the 2nd keyframe, then it pops to 0% suddenly. What am I doing wrong??? I have Flash professional 8.
Actionscript Fade Tween
trying to actionscript a tween for the first time and looking for some help.
I've created a movie that should start at 0 alpha and fade into 100. I've done this a million times using the "Create Motion Tween" feature but I want to to do this using actionscript. In the first frame of the movie I've put this code
Code:
var lcount;
lcount = 0;
while (lcount <= 100) {
alogo._alpha = lcount;
lcount = lcount + 1;
}
gotoAndPlay(2);
alogo is obviously the name of the movie fading in. Anyway in frame 2 it really just continues playing until frame 30 where it says
Code:
if (lcount == 100)
{ stop(); }
else
{gotoAndPlay(1);}
now the movie fades in too fast. In fact one minute it's not there and then viola....apart from slowing the frame rate (which I don't want to do - it's at 30 just now) how can I get this to gradually fade in like the "Create Motion Tween" does?
Any help is appreciated
MC Refuses To Fade In With Tween
this happened twice in 2 different instances this weekend. i've got a really straight forward loading indicator with this code on it:
Code:
onClipEvent(enterFrame){
this._xscale = (_root.getBytesLoaded()/_root.getBytesTotal())*100
}
the loading works fine.
I'd like it to fade in & out on the timeline though it refuses. It just gets stuck at 10% alpha.
is this a bug or am i missing somethinig really simple?
check my FLA: www.triggermotion.com/misc/loader.zip
Fade-tween Problem
Hi
I have this functions to fade in and out attached clips.
PHP Code:
function fadeIn_M(my_InClip:MovieClip) { new Tween(my_InClip, "_alpha", None.easeNone, 0, 100, 1, true); }function fadeOut_M(my_OutClip:MovieClip) { new Tween(my_OutClip, "_alpha", None.easeNone, 100, 0, 0.5, true); fadeOut_M.onMotionFinished = function() { removeMovieClip(my_OutClip); }; }
Now, while the fade-in works on rollOver, the fade-out does not on rollOut.
What I'm missing?
PHP Code:
for (var i = 1; i<=8; i++) { this["btn"+i].ID = i; var con_M2:MovieClip; this["btn"+i].onRollOver = function() { this.gotoAndStop("over"); var con_M2:MovieClip = _root.createEmptyMovieClip("con_M2"+this.ID, 20); con_M2._x = 360; con_M2._y = 352; con_M2.attachMovie("ROLL"+[this.ID], "ROLL"+[this.ID], 1); fadeIn_M(_root["con_M2"+[this.ID]]); }; this["btn"+i].onRollOut = this["btn"+i].onReleaseOutside=function () { this.gotoAndStop("up"); fadeOut_M(_this["con_M2"+[this.ID]]); };
Thanks for any help.
What Happened To My Fade In Out Tween
first of all this is my first ever website. its currently under construction and needs little tweaks here and there:
http://mrwatt.co.uk/portfolio.html
I have an embedded flash gallery that loads different XML content. achieved by pressing the three main buttons 'projects', 'journals' etc.
only projects and journal buttons are currently working. anyway when the gallery first loads my tweens between image changes work perfectly but when you click to view the next xml content 'journal button' it goes and there is no smoothness whats so ever.
i had an issue before, that when the journal button was clicked some of my previous xml data would still appear in my submenu. i managed to clear this with the unloadMovie. I cant see how this effects the tweens but it maybe the cause.
So is this the reason or is it something different? Any ideas would be brilliant. Thanks
Fade Alpha After Tween
Hi I made the following AS tween that moves the MC from right to left. It should fade its alpha after the tween finishes. But it doesn't fade. Why not?
Thanks
Code:
import mx.transitions.Tween;
import mx.transitions.easing.*;
var myHoriTween:Tween = new Tween (fadeLogo,"_x",Back.easeOut,400,100,1.2,true);
myHoriTween.onMotionFinished = function (){
timeOut = setInterval(someSubCode, 5000);
function someSubCode () {
var myAlphaTween:Tween = new Tween (fadeLogo,"_alpha",Regular.easeOut,100, 0,2,true);
};
}
Actionscript Fade Tween
trying to actionscript a tween for the first time and looking for some help.
I've created a movie that should start at 0 alpha and fade into 100. I've done this a million times using the "Create Motion Tween" feature but I want to to do this using actionscript. In the first frame of the movie I've put this code
Code:
var lcount;
lcount = 0;
while (lcount <= 100) {
alogo._alpha = lcount;
lcount = lcount + 1;
}
gotoAndPlay(2);
alogo is obviously the name of the movie fading in. Anyway in frame 2 it really just continues playing until frame 30 where it says
Code:
if (lcount == 100)
{ stop(); }
else
{gotoAndPlay(1);}
now the movie fades in too fast. In fact one minute it's not there and then viola....apart from slowing the frame rate (which I don't want to do - it's at 30 just now) how can I get this to gradually fade in like the "Create Motion Tween" does?
Any help is appreciated
Transition Tween Fade Out
Hey Guys, so I know if apply this script to a MC it will fade in...
mx.transitions.TransitionManager.start(wipe_mc, {type:mx.transitions.Fade, direction:0, duration:1, easing:mx.transitions.easing.None.easeOut, param1:empty, param2:empty});
Is there anyway i can have that re-written so it takes the same MC on a later frame and have it fade out?
Thanks in advance
_x Tween Trouble
I am unable to tween into a specific position. Here is the code that I am using.
if (_root.arrow._x>330) {
_root.arrow._x-=70;
gotoAndPlay("loop");
} else{
gotoAndStop(1);
}
When I replace "-=70" with "--" I can hit the exact spot that I am going for, but it does not move fast enough.
Any suggestions would be greatly appreciated.
Thanks
Fade-in/out Button Trouble
Hey guys and gals, I got a slight problem here.
Im trying to make a simple fade in and out button. I've put the fade-out movie clip inside the upstate of the button and the fade-in movie clip in the overstate of the button. Simple enough, it works. However, when you first load the flash swf, it immediately plays the fade-out of the upstate on your button. After the first bit, the button works fine, but how can I avoid the fade-out from playing without the mouse going over the button when first loading the page. It's really just a nusaince.
Thanks.
Trouble Getting Text To Fade In And Out
i am having trouble with adobe flash player. the web page is http://www.webdevelopersnotes.com/tutorials/adflash/flash_web_site_des​ign_tutorial_fade-in_and_fade-out_effect.php3, and i have tried this, and it is not working. the text just sits there. did i do something wrong, or is the software (flash player) not working properly?
Thanks.
Trouble With Fade OnEnterFrame
Hello,
I'm still learning AS, so I'm sure I'm overthinking this and that there is a simple solution.
Say I have 2 mc's on the root level (blue and yellow), and another mc (red) inside of the blue mc.
Using AS, I want to set it up so that when the red mc is clicked, its alpha fades to 0. Then when the yellow mc is clicked, the red mc's alpha fades back to 100.
I think I need an onEnterFrame somewhere, but I can't seem to figure it out. I included a sample file. Any help would be appreciated, thanks!
Is It Possible To Do An Alpha Fade W/ Motion Tween
I cant get a word to alpha fade with motion tween, even though there is a tutorial here that says, break the word up then convert each letter to a Graphic (which groups it) then just motion tween it and alpha fade it...
IT DONT WORK!!! And shape tween usually screws things all up, can someone help for a crisp Letter fade?
Thanks TV
Fade Tween Works In Authoring Env, Not In Swf
OK I've been making stuff fade by tweening the alpha setting on symbols for years. But now all of a sudden I have it working in Flash MX's authoring environment (i.e. pushing enter to play) but when you preview or export to SWF, the fades aren't working. The symbols just appear at 100% with no fade in. I've tried exporting for player 6 or player 7, same problem. There must be some stupid option somewhere that has gotten screwed up.
Tween Fade-in For Pic Gallery Using URLRequest
Hi -- I don't have the AS3 wherewithal to figure this out on my own, unfortunately. I'm using the below code to call up external jpegs via thumbnails placed on the stage ("guatTnails.boatAtDuskTh" being a sample thumbnail). I'm calling them into a component loader ("loader").
I slapped the tween fade code into the function to see if it would work, and lo and behold it did. But only when I preview the swf in Flash, where it works nicely. When I run "simulate download" or when I upload to the web, it's as if the code isn't there -- no fade-in at all.
Any idea why it works in Flash but not in real life, and/or is there another simple way to achieve a fade in for each image in my photo gallery?
Thanks!!
import fl.transitions.Tween;
import fl.transitions.easing.*;
guatTnails.boatAtDuskTh.addEventListener (MouseEvent.CLICK, ldr1)
function ldr1 (e:Event) {
loader.load(new URLRequest("pictures/boat at dusk.jpg"));
var myFadeIn:Tween = new Tween(loader, "alpha", Regular.easeIn, 0, 1, 1, true);
}
Tween Fade MC With FLVPlayback Component
I am updating an old file for a client. Built a while ago in AS1 he doesn't want to pay to update it right now.
I am trying to use the old laco tweening engine to alphaTo 0 when a button is clicked. The MC I'm trying to tween is a dynamically loaded swf that contains an FLVPlayback component.
Is there any easy way to do this cause from what I can tell I'm going to have to make some bitmap image of the current movie frame and add that to a movie clip and fade that still image out.
Any help is appreciated.
Thx
Fish
Tint Tween/fade Function
Hello Kirupa (first post here).
Im kinda stuck with a little project i hope you guys can help me with.
Im in need of a function which on mouseOver fade/tints to one colour (script definded) and on mouseOut fades back to original colour. (for multiple movieclips)
Iwe been through the forums.. tryed a bit of coding but couldnt get it to work ..
Anyone have an example that does the above?
Thanks in advance!
Kasper
FLV Fade / Alpha Tween In Issue
Hey everyone
I think I've found the crux of my issue, but I'm not really sure how to solve it. I simply have one FLVPlayback component in the background and a movieclip on the layer above with an FLVPlayback component inside it. The first FLV component is constantly looping a five-second video.
So all I need is for the movieclip containing the second FLV component to load the right file, fade in, and when the video ends, fade out. Absolutely all of that works... apart from the fading in.
What I noticed was that my movieclip was fading in correctly, but the FLVPlayback component was empty and transparent until the fade had finished - then it played the clip. Here's my code, which gets called at random intervals:
Code:
function getHead() {
rand = Math.floor(Math.random() * 4) + 1;
feature.vid.load(headArray[rand]);
feature.vid.play();
var newtween:Tween = new Tween(feature, "_alpha", Strong.easeOut, 0, 100, 21, false);
}
...where feature is the name of my movieclip, and vid is the name of the component.
Does anybody have a solution for this irritating issue?
Thanks for your help.
Motion Tween Wont Fade
I have set a text to swipe in from left to right.
Now i am trying to get it to fade out via a tween with alpha reduced to zero..It just stays visible throughout the rest of the movie.
http://www.nestinghouses.com/emr_home_intro_small.swf
Yes im new...please be kind. :D
I tried to get the "Where need...." Part to fade via the alpha in a motion tween as the picture of the building faded in..It just wont seem to take.
Tween Fade Buttons, Not Reliable
Hi everyone,
First off, my Actionscript skiils are a bit pants but I'm a quick learner. Any help on my problem will be a life saver!!
Okay, I've got a basic six button fla that uses the Tween class to fade in and out on rollover & rollout.
Now if I interact with the buttons slowly they work as I hoped they would, but if I move the mouse quickly between each button (which is how users are bound to) they behave incorrectly. Some buttons don't fade, some do, then some decide to stay at full alpha even though I've rolled off them.
Is there an obvious noob error here?
The worst of it is this is for a live project... gulp :oops:
The fla is on our web server if you would like to help me out.
http://www.urbanriver.com/site.zip
Cheers
Using A Tween To Fade In A Label Component
I created a Label component that dynamicaly checks the date and displays it as text. Sadly I have tried to put it into a Movie Clip to animate the button to fade it. No matter what I try by putting movie clip in movie clip the component is always visible after publishing. Even though, working on the FLA stage it will fade in and out... what the heck is going on... anyone know?
Multiple Tween Trouble
Ok are you sopposed to have more then 1 dif. kind of tweens on 1 layer....or are u sopposed to make a seperate layer 4 a seperate tween
thx alot 4 the help
this ? is bothering me
[FCS3] Tween Trouble In CS3
My Flash experience is in using Flash8, and I'm currently using CS3 for the first time. I am however using AS2.0, not 3.0.
I'm using several motion tweens between various keyframes in a layer of a movieclip. Each tween is from a keyframe with a symbol instance set at color: Alpha, 0% and the same symbol with color: Alpha, 100%. These appear to be functioning properly. Below that layer I have a layer with almost identical "static" symbols. The intended effect being part of the swf "fades in."
However, by the second frame as the alpha starts to tween in, the entire image (including the normal static layer) is washed out as if the tween layer has 100% opacity over the static fill layer.
I've done the exact same thing in the past using Flash8, so maybe I'm just forgetting something. Thanks for any help!
Tween Class Trouble
An swf is worth a thousand words, so....
Please go to http://www.datapixel.eu/datapixel.htm
and watch yourself. When you click on "Apri Menu" (Open Menu in english) an animation made with the Tween class shows.
It should enlarge the green panel in order to show the buttons. And IT DOES! .... sometimes.
Instead sometimes the animation stops prematurely and the menu is not correctly viewed. Do you know what's happening?
Thanks.
Trouble With The Tween Class
I'm having trouble with this code, it's for tweening Thumbnails in a photo gallery application I'm building:
Code:
var tween:Tween = new Tween(Thumbnails[Thumbnails.cur_thumbnail], "_alpha", mx.transitions.easing.Strong.easeIn, 40, 100, 1, true);
Thumbnails.cur_thumbnail = new_thumbnail;
What happens is while the tween variable is tweening the value of Thumbnails.cur_thumbnail changes therefore cutting off the tween before it gets started or at least I'm assuming this is what's happening.
How do I get around this? Thanks.
Tween Class Trouble
Well, firstly, excuse my poor english... I guess its not so good, but I hope you can understand me.
Well, I have imported the tween class at my .fla file with:
-------
import mx.transitions.Tween;
import mx.transitions.easing.*;
-------
as everywhere says it must be done. Later, I use:
-------
ROLLOVER:
var tw:Tween=new Tween(plano_mc, "_xscale", mx.transitions.easing.Elastic.easeOut,40, 100, 40, false);
var tw2:Tween=new Tween(plano_mc, "_yscale", mx.transitions.easing.Elastic.easeOut,40, 100, 50, false);
-------
inside a function that i call on the rollover method for the movieClip I want to tween.
The trouble comes in the rollOut method, where I have this code:
-------
ROLLOUT:
var tw:Tween=new Tween(plano_mc, "_xscale", mx.transitions.easing.Elastic.easeOut, 100,40, 1, true);
var tw2:Tween=new Tween(plano_mc, "_yscale", mx.transitions.easing.Elastic.easeOut, 100,40, 1, true);
-------
After the user rolls out, and even after the rollOut tween is well done, it resizes to the 100%, even if I'm out of the hitArea for the rollOver. All this instead of staying at the 40% of _xscale and _yscale, that is what I wanted the class to do (you can see it in the parameters of the tween).
It only happens in the rollOut method, because the rollOver doesn't get resized after is called as well as the rollOut... It should be logical if it should happen at both methods, but it just happens at RollOut, and even, each time I rollOut, is just one (or both sometimes) property which gets resized (sometimes the _yscale, other times the _xscale....). Is there any explanation for this???
I want to erase this error, that I can't find why happens. My only explanation is that Robert Penner did a bad class, but I don't really trust it because he is a Flash master and I'm just a beginner, so, please
pleeeeeaaaase!, anybody help me!
Thank you very much!
Tween Class Trouble
I have 2 tweens. I want my first one to be around 50% completed to start my second one. How do I do that ?
Code:
var Tween_right:Tween = new Tween(_root.mc_holder.mc_backgroundBlue, "_x", Strong.easeOut, 0, 525, 1, true);
var AlphaUp:Tween = new Tween(obj, "_alpha", Regular.easeOut, 0, 100, 1, true);
AlphaUp.stop();
Trouble With HitTestPoint And Tween
Hi guys,
I'm having a trouble with hitTestPoint and tween. Well, if you look at the code you will understand what I am trying to archive here.
---------------------
var action:Tween;
target01.alpha = 0.6;
target01.addEventListener(Event.ENTER_FRAME, transition01);
function transition01(event:Event):void {
if (target01.hitTestPoint(mouseX, mouseY, true)) {
action = new Tween(target01, "alpha", Strong.easeOut,0.6, 1, 1, true);
} else {
action = new Tween(target01, "alpha", Strong.easeOut,1, 0.6, 1, true);
}
}
---------------------
Yes, that's right. I'm trying to make the movie clip 'target01' to fade in once the mouse pointer roll-overs, and fades out when roll-out. But tween actions don't work...
Yes, I did MouseEvents instead, but it is not the way I want it.. Please help me outta here guys.
Trouble With A Shape Tween
Howdy guys,
I got this problem with a shape tween in my project. Its basically a CBt type of deal. But the problem is when u click on a button and go to the page, a shape tween of a semi-transparent box betting bigger is supposed to happen, it is also a movie clip. It happens inside of it. It happens in the flash file, but when I export it it goes all wierd. The box is supposed to come from the top left and go to the right bottom. But when it plays it only shows the right side line.
Are both the timelines supposed to be the same amount. There both 10 frames. Any kind of help will be greatly appericated.
thanks
Tween Class Trouble
I don't use Tween class often, so don't scold me if this is an obvious question.
When I set up a simple Tween, it works if I assign a specific object's instance name as the object to tween. But when doing it inside a for loop, it doesn't work. Yet everything else within the for loop works. I've tested every variable, and it's the object name that doesn't work. Here is a simplified version of the code. Someone please tell me what I've done wrong.
Attach Code
import mx.transitions.Tween;
import mx.transitions.easing.*;
for (var k:Number = 1; k<15; k++) {
var dakine = this["letter"+k];
dakine.onPress = function() {
this._xscale = this._yscale=90;
this.startX = this._x;
this.startY = this._y;
startDrag(this);
};
dakine.onRelease = dakine.onReleaseOutside=function () {
stopDrag();
this._xscale = this._yscale=100;
var letterUp:Tween = new Tween(this, "_x", Bounce.easeOut, this._x, this.startX, 2000);
};
}
[AS] Fade-trouble (lmc_tween...../com.qlod.....)
Hi,
only the first time the site is opened, my swfPreloader mc fades in and out and the swfContainer fades in. When subsequent swfs are loaded, the swfContainer is instantly visible.
What could be wrong? See for yourself here.
Here's the function that loads swfs:
ActionScript Code:
//
// ************************************************************************************
// Function: Load swf
// ************************************************************************************
//
function loadSwf(file) {
var unCache = new Date().getTime();
//
ps.removeMovieClip();
//
swfContainer = this.createEmptyMovieClip("swfContainer_mc", this.getNewDepth(), {_x:0, _y:80, _alpha:0});
//
swfContainer.onUnload = function() {
clearInterval(intervalID);
};
//
swfLoader.load(swfContainer, file + "?unCache=" + unCache);
}
Here, the loading gets monitored:
ActionScript Code:
//
// Instantiate a loader and load swfs -------------------------------------------------
//
swfLoader = new com.qlod.LoaderClass();
//
swfLoader.addListener(swfLoadMonitor);
//
swfLoadMonitor.onLoadStart = function(loaderObj) {
swfPreloader = _root.attachMovie("swfpreloader", "swfPreloader_mc", this.getNewDepth(), {_x:0, _y:80, _alpha:0});
//
swfPreloader.tween("_alpha", 100, 1, "easeInOutSine");
swfPreloader.progressBar._xscale = 0;
};
swfLoadMonitor.onLoadProgress = function(loaderObj) {
var percLoaded = Math.floor(loaderObj.getPercent());
//
swfPreloader.progressBar.tween("_xscale", percLoaded, 0.125, "linear");
swfPreloader.progressDisplay.text = "LOADED " + percLoaded + "%";
};
swfLoadMonitor.onLoadComplete = function(loaderObj) {
swfPreloader.tween("_alpha", 0, 1, "easeInOutSine", 2, function () {
swfContainer.tween("_alpha", 100, 3, "easeInOutSine");
});
};
Here, the home.swf is loaded, the fade in-out works only once for this initial call to the loadSwf function:
ActionScript Code:
//
// Load home swf ----------------------------------------------------------------------
//
loadSwf("./swf/home.swf");
//
stop();
Trying To Put A Downloaded Menu After A Fade Motion Tween.
Greetings to the Flash world.
I'm learning Frontpage and Flash MX at the same time and I'm trying to intertwine them both, since I read that making an all Flash site isn't such a good idea. (Plus I don't know how too). (I don't know how true that is though).
I downloaded a drop down menu and with the help of (iaskwhy and some others) I was taught how to go about editing the menu to reference to my site. Now what I'm trying to do is have the menu appear after my logo fades from big to small. I made a big logo and created a motion tween to make it smaller (did I do that correctly) and after that I want the menu to appear after it. I went to the menu and tried moving all the keyframes with the menu info backward and insert some keyframes in front so I could have the motion tween happen. When I did that and tested it the menu just blinks. I then tried to find a way to insert it into Frontpage but everything is on one screen.
I then tried to insert the drop down menu in a separate frame in flash, nope didn't work either. So all that leads me to nothing. So of course I have to come to the board for help. I would truly appreciate some help on this as always.
Incremental Counter Needs To Motion Tween And Fade In And Out
Hello to All :
I am very new at this AS thing and need to do this for a deadline that I have ... really close, but I have complete faith ...
basically I have a MC var (numbers) that is going to be used as an effect as a counter. The MC has to move from one side of the stage to the next and fade in and out. I have the AS for the counter down but when I use tweens to do the fading and motion the numbers get really funky. I attached the fla to this post ... can anyone help?
thanks
|