How Do You Alpha Tween A Movie Clip
I have a set of pictures which I have changed to movie clips and they are all set at an alpha of 50%, what I was trying to do is when you rollover each clip it tweens to 100% and then when you rollout it goes back to 50%.
I have tried doing this:
on (rollOver) { mountain._alpha = 100; }
on(rollOut) { mountain.alpha = 50; }
which didn't work, how would I get it to tween also?
thanks
ActionScript.org Forums > ActionScript Forums Group > ActionScript 1.0 (and below)
Posted on: 11-16-2005, 03:56 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Movie Clip Alpha Tween (text)
Hello all.
After following a few of the wonferful posts on the forums, I've managed to get my dynamically loaded text (from a plain .txt file) loaded into a movie clip. The clip is then added to the scene, and I can successfully motion tween the text from point A to point B.
However, I have failed miserably at getting the movie clip to alpha tween from one frame to another. An exact copy of my original attempt, using an object in the movie clip as opposed to text, was successful.
So, is my theory that dynamic text in a movie clip cannot have different alpha levels?
Alpha Tween Doesn't Work On Nested Clip
I have a movie with a nested dynamic text movie clip moving changing and alpha.
It works fine from its own timeline, but when I run the movie in test mode or published the alpha does not change (the movement still works, but is somewhat jerky).
The FLA file is huge, so posting it is a problem. I am trying now to replicate the problem with a simpler project. But maybe someone is familiar with the issue and can give me a hint?
JP
Mouse Rollover On One Movie Clip Increase Decrease Alpha Of Another Movie Clip..
So I really haven't messed with Actionscript much for a couple years and here is my issue.
I have several movieclips I put together that will eventually be a menu for my website. When you roll over a menu option (movieclip) I am trying to get another movie clip to fade in giving the description of the menu item.
For example - when you roll your mouse over the 'Live Chat' option a brief text description would appear telling you what the live chat is about. This description is a seperate movie clip appearing away from the original menu.
I have made the movieclips for the menu and the movie clips for the descriptions. I tried this action on the menu option to get the description to fade in:
Code:
onClipEvent (load) {
this._parent.mc_text_discussionBoard._alpha = 0;
}
onClipEvent (enterFrame) {
this.onRollOver = function() {
if (this._parent.mc_text_discussionBoard._alpha<100) {
this._parent.mc_text_discussionBoard._alpha += 5;
}
};
}
But the alpha only increases on the description (mc_text_discussionBoard) by 5 when I keep rolling my move over and out and over again. It makes sense why it does that, but I'm not exaclty sure how to get it to continually increase the alpha by 5.
any help would be great and I am anxiously waiting to get this solved!
Kevin
Using Stop(); On A Shape Tween Of A Swapped Movie Clip Symbol Within A Motion Tween
Thanks a lot for your time. I'm new to actionscript, and language syntax and I never really got along to begin with so I appreciate any help in the matter.
Basically the title says it all - I made a motion tween in the main scene, made a movie clip symbol (to shape tween a gradient) and added a stop(); inside the gradient-tweened-symbol. I then swapped the movie clip symbol with the motion tween in the main scene, and got exactly the effect I wanted (the item moved, then tweened itself) but the stop(); seems to have no effect.
I know this looks like one of those "that idiot didn't google before posting" questions, but I've been looking for about a half hour with different permutations of stop, doesn't work, actionscript, and flash, and I haven't found anything that seems to target this problem specifically.
If you've got any idea what's going wrong, please feel free to respond or show me how to better seek help on my own. Thanks again.
Alpha Tween Not Working Over Movie
I have a looped movie playing and I'm trying to put some text over top that will just fade in as soon as the flash starts. I did the tween with the alpha from 0% to 100% and it works if you play it in the timeline, but when you go to the 'preview' the text just show up at 100% right away with no fade.
Does anyone know what would cause this? or how I can get it to fade in properly?
Change A Movie Clip's Alpha By Clicking Another Movie Clip
Hello,
I have two movie clip instances on the stage, each belonging to a different class pakcage. Now I was hoping to realize a function that allows me to change the alpha of one movie clip when I click the other.
I tried to use static variables for both movie clips on the document class and leave the alpha changing statements in the movie clip classes. But I got the following error message:
ReferenceError: Error #1074: Illegal write to read-only property MyBtn2 on global. -- MyBtn2 is the class name of the button I was trying to change color.
Does anyone have a quick solution to this?
Movie Clip Tween From A Random Point To Another Movie Clip?
ok...
on a website I am trying to make...i have a rotating E (lowercase)
it flips around and does all kindsa crap
but when a person clicks on a button, i want it to tween from whatever frame it is on, to where all 3 of them line up and do a little flashy type thing
ei:
e#1 - upside down and backwards
e#2 - sideways and rotating on the y axis
e#3 - rotating on the x axis
now i want all of these to tween from the point they are at to a specific order....so they are all flat (ei: they look like this "e")
how the heck do i do this?!? i know i have seen it somewhere!!
Movie Clip Needs To Change Alpha Of Another Movie Clip
In frame 3 of my Flash animation, I make a graph animate using a mask. At the end of that animation I want a button in frame 3 whose alpha is set to 0 to become visible so it can be clicked.
So, within the movie clip of the graph, on the last frame I have:
mc_temp.alpha = 1;
stop();
But I get an error stating "Access of an undefined property mc_temp"
The button (set as a movie clip) is named "mc_temp". I don't understand why I can't call it directly from the timeline of a movie clip.
Reduce Alpha Of A Movie Clip
Here's what I'm struggling with for the lack of expertise on actionscript
I want an alpha of my movie clip on stage to gradulally decrease. And I'm trying for that decrease to happen after the other clip on stage is done playing
Here's what I have so far in the last frame of a movie clip after which I want the reduction to begin:
stop();
setProperty("_root.targetclip", _alpha, 35)
It's easy enough to assign a static value to it but how do I make it decrease gradually. I realize it has to be done through setting up a variable earlier on.
Something like
transparency = _alpha;
I'm just not sure what to do with it after...
And also definitely not sure about the syntax of all this.
From helping me out I guarantee that you most definitely will experience sense of humungous self-worth and grandeur.
Which (I heard)is not at all an awfull feeling.
Anywho,
Thanks already!
Movie Clip: Alpha Script
greetings,
is it possible for a frame's action script to control a movie clip's alpha value? If so, how?
thank you
Fade Alpha Of Movie Clip
Greets all,
I'm trying to do some actionscript that will fade the alpha value of a movie clip (which contains a video). Right now my mouse events only set the alpha to 100% and 0%.
mcVideo._alpha = 0;
mcContainer.onPress = function():Void {
this.mcVideo._alpha = 100;
};
mcContainer.onRelease = function():Void {
this.mcVideo._alpha = 0;
};
This is cool and works well but it would be nice to have a fade. How would I do this? Thanks in advance!
Getting To Movie Clip Beneath Alpha
I have a series of movie clips laid out across the stage... Some overlap...
They're all set to alpha 0, with the idea that on roll over they fade in to alpha 1... and then on roll out, back to 0.
But since alpha is 0, the object is still on stage and so if they overlap I'm getting the wrong event target each time.
Is there any way around this outside of pulling them out of the library when needed or placing them so they don't overlap?
Thanks much for your help.
Movie Clip Transparancy (not Alpha)
I am using a movie clip to load and display an image. I need to make a certain color of the image transparent, so you can see whats behind it in the parent movie clip. Anyone know how to do this with actionscript???
Thanks!
Odd Change In Movie Clip Alpha
A site I am developing (http://www.rainnetworks.com/betasites/vm/) is built in flash. After you click on a category (say, the Gear) and wait for several minutes, it disappears. Any idea why? I have nothing in the code telling it to do so... the only thing i have is when the movie clip enters the frame it fades in...so the alpha is set at zero, then onClipEvent(enterFrame){ this._alpha +=5; }
...is that my problem?
Edited: 04/16/2007 at 02:40:51 PM by ewon15
Movie Clip Alpha Trail
I'm having trouble getting my movieclips to have trails that fade behind it. I'm having the dupilcate movieclips delete themselves once their alpha reaches a certain point. Any idea what's wrong with my code? I'm pretty sure it has something to do with the counters.
You can view my fla here: http://www.immeldesign.com/help/helpMe!.fla
Thanks!
Gradual Alpha Movie Clip
Hey there guys... a quick (and undoubtedly simple) problem...
I have a button that, when rolled over, causes a certain movie clip to fade out. Then, on roll out, it fades back in (to 50% opacity). The code looks like this:
on (rollOver) {
setProperty("mc1", _alpha, "0");
}
on (rollOut) {
setProperty("mc1", _alpha, "50");
}
Can anyone suggest a way to make it fade out and in gradually ?
Thanks!
Brad
Movie Clip Alpha Trail
I'm having trouble getting my movieclips to have trails that fade behind it. I'm having the dupilcate movieclips delete themselves once their alpha reaches a certain point. Any idea what's wrong with my code? I'm pretty sure it has something to do with the counters.
You can view my fla here: http://www.immeldesign.com/help/helpMe!.fla
Thanks!
Using As To Control Alpha Of Movie Clip
Hey guys, I'm trying to get a dynamically loaded jpeg to fade in when the scene is loaded, and then fade out when the next scene is loaded. I know the first part of the code works to load the jpg, but the second part I found in a tutorial and I can't see what I'm doing wrong with it. It's probably something simple, but I don't see it. Can you take a look and either suggest a better way or correct my mistakes? Thanks.
ActionScript Code:
_root.createEmptyMovieClip("imageHolder1", 200);
imageHolder1._x=0;
imageHolder1._y=0;
loadMovie("02.jpg","imageHolder1");
function alphaTween() {
easeType = mx.transitions.easing.None.easeNone;
var time = 2;
startAlphaTween = new mx.transitions.Tween("imageHolder1", "_alpha", easeType, 0, 100, time, true);
}
Seperating Motion Tween From Alpha Tween
I am trying to fade in the alpha on a graphic symbol rather quickly at the same time the symbol scrolls very slowly up the stage, but the two seem linked, so that a very slow scroll means a very slow opacity gain. How can I fade the photo in quickly while the photo motion tweens slowly?
Duplicate Movie Clip - Alpha & Speed
I have this code (found here on Flash kit) on frame 1. Which duplicates my movie clip ot a constrained area. Works perfectly.
for (i=0; i<25; i++) {
duplicateMovieClip ("_root.maskclip.mask", "mask"+i, i);
_root.maskclip.mask._visible=0;
_root.maskclip["mask"+i]._x = Math.floor(Math.random() * 200) -100;
_root.maskclip["mask"+i]._y = Math.floor(Math.random() * 250) -100;
}
on frame 2 : gotoAndPlay (1)
Does anybody know how I could add to this code to control the speed of the duplication, and have random alpha properties for each duplicated clip
Many Thanks
Image Alpha And Max Movie Clip Size
I am working with Jesse Stratfords code for making a movie clip match the size of an image being loading into it. This code works great but I am looking to add the function of a fade in/out to the images being loaded into the clip. Any ideas?
I am also trying to limit the size of the mc that is created to a certain percent of the stage. Your help and expertise are much appreciated.
How To Reduce Alpha Value Of Movie Clip Using Code
Hi everyone
I am trying to reduce alpha value of movie clip. but it doesnt work some code i tried which given below. I want it using code only.
onClipEvent(load)
{
alphavalue=100;
for(i=0;i<=100;i++)
{
_root.almc._alpha = alphavalue;
}
alphavalue--;
}
Please help me
waiting for reply.
thanx in advance
best regards,
On Click Move And Alpha A Movie Clip
would like to know the AS code for getting a movieclip object to move to a specific x,y position on stage and change its alpha at the same time... would be nice if the movement was done with a nice tweening also.
using FlashMX .
Thanks
How To Controll The Alpha Speed Of A Movie Clip
Hi every one,
I read a lot of threads in this forum and got a lot of help, thank you.
Here is my question
When a movie clip is clicked on, another movie clip will fade out.
The problem is that the clip that needs to fade out just disapears in a second,
is there a way to controll the speed.
I read a lot of info about this for complicated setups, is there a simple fix for this.
I was hoping I could just do this designR_mc._alpha = 0/4;
But that does not work.
HERE IS THE CODE
design_mc.onRelease = function()
{ designR_mc._alpha =0;
}
Thanks to every one
Adrien
Movie Clip Alpha Acting Wierd - Help
Hey there!
Well, I am making a ticker program, relativly simple, it is ticking through a number of things... 4 dynamic text fields loaded from XML, and 1 image.
I have them all inside a central movie clip, that I would like to fade out, and then bring the other one in. So I set up my code so that I have the central movie clip fades out, but what happens is only the image fades out, while the dynamic text stays at alpha 100, and then changes to the next item... no fade on the text.
Is there something I need to know about this? Do I need to individually set the fade on each text field?
Thanks for the help.
Alpha Of Dynamic Text In Movie Clip
Hi all,
I am pulling data from a text file from within a movie clip. The movie clip has 2 layers, one with the artwork and one with the action frame that states the following...
Code:
stop();
var externalDataOne:LoadVars = new LoadVars();
externalDataOne.onLoad = function() {
titleone_txt.text = externalDataOne.titleone;
contentone_txt.text = externalDataOne.contentone;
}
externalDataOne.load("a.txt");
The movie clip sits on the main timeline on layer one and I created a motion tween with it, so that it moves (when exported the text moves) across the screen.
In addition to this, I'd like the text to fade from 0% alpha to 100% alpha. I have repeatedly tried setting the alpha on the first frame of the main timeline to 0% and on frame 10 (the end of the tween) at 100% but it doesn't seem to recognize this.
Can anyone maybe pinpoint what I'm doing wrong?
Thanks,
-Brian
Tween Into Movie Clip?
How would I change a long tween into a movie clip? I need to use multiple instances of the tween with different properties across my main movie.
Thanks for any help, Jeff
Tween A Movie Clip
hello friends
i have made a movie clip with few no. of images and i want to tween the moview clip by coding only and also want to control the speed of tweening
help me for the same
thanx
arjun...
Problem With Button Telling Movie Clip To Alpha
Here is the link to the file
http://derisiondesign.8k.com/poly.html
here is what my problem is.. I have the empty button and what i want it to do it when you roll over it, it will make the floating platform alpha fade and when your roll out it will go back to normal.. well i have it working but when your roll over it makes the shadow alpha too I just want the platform to alpha out NOT the shadow too.. i think i have it pointing to just the platform but for some reason it does both.. any ideas on how to fix this... the FLA is in the link.. Hope you can help me out.. thanks
-Nick
How To Do Alpha Effect On Movie Clip Which Colour Is Set By Actionscript?
I have a shape which is a movie clip called shapes. I have set the colour by...
Code:
on (release) {
var colorful = new Color("_root.shapes");
colorful.setRGB(0x003366);
play();
}
I then want to have an alpha effect which fades the movie clip out. But the problem is when I run this the colour reverts back to the default original.
Any ideas?
Using A Button To Control The Transparency (alpha) Of A Movie Clip
Hello i am completely new to the forum and i have been racking my brain searching for tutorials on this, i have done a search on buttons controlling movie clips and alot of stuff did come up but it was not exactly what i was looking for.
i am creating a HUD ( heads up display) for a game me and a few friends are making, i have windows i made in photoshop and turned into movie clips which i would like to control using buttons.
What i would like to do is when i click the buttons i would like them to control the transparency of the windows, for eg. when i click my button i would like the window to appear at 100% then when i click it again for it to go to 0% as if i have closed the window.
Any help would be greatly appreciated as this has had me up late so many nights. I am using flash cs3 and action script 2.0 as i a familiar with it.
[MX] Change Movie Clip COLOR And ALPHA From .TXT File
Currently using Flash MX. I know it's a bit older, but I think what I need can still be accomplished. I just need someone savvy with Actionscript.
I need the proper actionscript that assigns both COLOR and ALPHA to a movie clip from a remote .TXT file. If it helps clarify why I need that, it's because I'm designing a Flash file (.swf) that end users can post on their website, altering the color and opacity of a Movie Clip element simply by editing a text file. It provides them customization without having to own flash.
I have stumbled on a successful way to change the color remotely, but I have no clue how to apply ALPHA as well. Here's what I have so far...
MY FLASH FILE:
my_lv = new LoadVars();
my_lv.onLoad = function(s) {
if (s) {
var colorful = new Color(_root.BoxBackground);
colorful.setRGB(this.myBoxBackground);
} else {
trace("Unable to load file");
}
};
my_lv.load("colors.txt");
MY REMOTE .TXT FILE
&myBoxLine=0xCC00CC&
&myBoxBackground=0x999999&
&myButtonColor=0xFF0000&
&myDownArrow=0x663300&
&myUpArrow=0x660066&
&myButtonPlate=0x0066ff&
&myAlpha=10&
Fading A Movie Clip Tint's Alpha Using SetTransform
html: http://www.roscoecreations.com/main_flash.html
fla: http://www.roscoecreations.com/main_flash.fla
Please view the html file I have listed above and you will see that when you click on one of the people the others fade out and a background fades in. I would like to know how to fade the person back from the silhouette back to the real person. I know I can do this immediately using the setTransform function but I want it to fade in gradually. Anyone have an idea?
Im Using As2.0 To Try And Build A Slider To Control The Alpha Of Another Movie Clip
hi
i was wondering if u could help me, iam trying to bulid a slider which will change the alpha of another movie clip named light.
how do i do this.
here is the actionscript i have so far:
Code:
onClipEvent (load) {
top = _y;
bottom = _y;
left = _x;
right = _x+100;
}
this actionscript is on a movie clip containing the slider button, and on the button is the actionscript bellow:
Code:
on (press) {
startDrag("", false, left, top, right, bottom);
}
on (release) {
stopDrag();
}
Thanx for any help
Difference Between A Movie Clip And A Tween?
I've been tweening photos, fading them in and out in different layers, but I can't figure out how to loop them all together. Each one is in its own layer and they are graphics, not movie clips. I don't understand the difference between the two? Should I have made them all movie clips instead of tweened graphics?
I have a .fla file that has many layers, three of those layers have one photo on each layer fading in and out. I want the third photo from the third layer to loop back to the first photo on the first layer. I tried actions (gotoandplay) but it would just stop the whole flash movie and start over. I know I'm doing something wrong. Maybe this has something to do with them not being 'movie clips'?
Bear with me, I'm a newbie!
Buttons In A Movie Clip With Tween Help
hello People of Actionscript.org.
I am basically new to flash and i have to land here for support on my little project.
i have created a movie clip which has buttons inside. the movie clip has motion tweens and i can't get the buttons working to get URL.
please refer to this .fla for reference.
Thank you for support.
Tween Out Movie Clip Then Load Another
i have 3 buttons: about, portfolio, contact us
i have 3 movieclips: about_mc, portfolio_mc, contact us_mc
on release of each btn, it loads its related movieclip from the timeline. the movieclip tweens in then stops. when i click one of the other buttons i'd like the current movieclip to tween out then tween in its related movieclip. is there a script that will play a portion of one movieclip then skip and play another?
Is It Possible To Stop A Tween In A Movie Clip
Hello Kglad and other forum expert!
I have a movie clip (really just an image converted to a movie clip).
I a "zoom" effect set on two layers - on for the zoom mask, and the other for the base image.
I just use the modify/transform in some keyframes to have the image motion tween from normal size to a larger size.
The tween (aka zoom) is shown through the mask layer.
I did not create the motion tween using actionscript, but in the timeline between 2 keyframes.
Is there a way I can stop the tween when the movie plays ( by clicking a "pause" button).
Thanks for a great info resource,
eholz1
Multiple Movie Clip Tween
I'm creating a field of bubbles (~1,000 total) and would like all of them to pulse on the initial load but do not want to manually go in to each movie clip and write the tween (of growing and then reducing back to original size). Is there an actionscript that can apply this scale effect to each bubble in the file? Also, each bubble is a different, original size...thanks...
Buttons In A Movie Clip With Tween Help
hello People of Kirupa.
I am basically new to flash and i have to land here for support on my little project.
i have created a movie clip which has buttons inside. the movie clip has motion tweens and i can't get the buttons working to get URL.
please refer to this .fla for reference.
Thank you for support.
Can I Create A Tween Movie Clip In AS
Is it possible to create a movie clip in AS?
If I had a list of jpgs, could I create some Actionscript to fade in each one? ie instead of creating a Movieclip for each jpg and saving it as a SWF.
cheers
nick
[MX04] Dynamic Text In A Movie Clip... Won't Change Alpha
Hey I have some dynamic text in a movie clip which I'm trying to modify with HTML and have a smooth fade in and fade menu. However... when I switched from static to dynamic text, the dynamic text won't change alpha value. It is always 100%, so I don't know if I will be able to use just one text box for a menu I have. Can anyone help me?
How To Do Alpha Effect On Movie Clip Whos Colour Is Set By Actionscript?
I have uploaded the file so you can see what I mean. In the actual file, I am working on, there are animations between frame 2-19. When it gets to frame 20 the alpha effect on Symbol 2 does not work due to the actionscript colour change.
http://www.mediafire.com/upload_comp...id=brywlsvbbcd
Any ideas how to fix this?
Reverse Motion Tween In A Movie Clip
hello, i've searched on this site for my issue, but i'm not sure i've found what i need.
on the root timeline, i have an instance of a movie clip that contains a motion tween (12 frames to increase the size of the mc).
on the actions layer of the root timeline, i have written some code so that when the end user rolls over the mc instance, the motion tween plays. what i'm having trouble with is getting the movie clip to play in reverse from frame 12.
bookIntro_1.onEnterFrame = function(){
this.onRollOver = function(){
this.nextFrame();
this.play();
}
this.onRollOut = function(){
}
}
i've tried this.prevFrame, but it only does one frame, not completing to frame 1 of mc.
i appreciate any assistance offered. thanks in advance.
Movie Clip Tween Invisible On Stage...
I have 6 similar movie clips on stage with an action to play them on press. The Movie Clips contain a Symbol with a motion tween over a path, and a mask motion tween. When the Movie Clip is clicked it starts to play but the symbol tweening does not show up, while the mask tween works fine. Every symbol is in its own layer and the tweening seems fine in the .fla preview. I'm attaching the file, the smallest of the symbols on the stage is the one scripted. Thanks in advance for any help.
<mgl>
Movie Clip Tween Invisible On Stage...
I have 6 similar movie clips on stage with an action to play them on press. The Movie Clips contain a Symbol with a motion tween over a path, and a mask motion tween. When the Movie Clip is clicked it starts to play but the symbol tweening does not show up, while the mask tween works fine. Every symbol is in its own layer and the tweening seems fine in the .fla preview. I'm attaching the file, the smallest of the symbols on the stage is the one scripted. Thanks in advance for any help.
<mgl>
Putting Motion Tween Into Movie Clip?
Hello everyone,
I'm still new to flash and needs some help. I'm trying to make a simple walking skeleton move across the stage. I've made two graphic symbols and motion tween between them to make the walking motion. Now I need to make the skeleton move across the stage. It was suggested that I put the motion tween into a movie clip. However, I couldn't find the step to do this. Can someone point me to a good step by step tutorial? Is there a more efficient way to do this?
Thank you.
Eugene
|