Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash








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!




ActionScript.org Forums > ActionScript Forums Group > ActionScript 1.0 (and below)
Posted on: 12-07-2004, 09:00 PM


View Complete Forum Thread with Replies

Sponsored Links:

Alpha Transparancy On SWF Files
I am using one master 'file to load multiple swf's into the file so that I can use these modules to change the information readily and quickly. I am having a slight problem however. When I have all of the files load in, they all seem to work properly, however when they're all loading in at once or even two, it seems that it's only showing whichever is the lowest on the layer order. When that file is in view you can clearly see the 'background' color of the main file, however you cannot see any of the other clips. So it seems that the alpha is working however not all mc's are visible.

they are all being loaded on separate layers into separate clips being created. the code i'm using is as follows (however is different for each clip obviously as to prevent them from loading into the same location.

--------------------------------------
this.createEmptyMovieClip("menu_mc", 0);
menu_mc.loadMovie("menucontent.swf", this);
--------------------------------------

if anyone has any insight on this I would greatly appreciate it. I attempted searching for an issue like this however had no luck finding anything. if you know of a thread just drop the link.

Thanks a ton!
Wes

View Replies !    View Related
Combo Box Alpha Transparancy
Is is possible to set a style that will change the alpha of a combo box.


thanks

View Replies !    View Related
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

View Replies !    View Related
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?

View Replies !    View Related
Transparancy In Flash Movie
Hello,

Can anybody tell me how to create a transparant flash movie?

My current website has already a backgroud and I want to keep this as my main background.

I hope someone can help me.

Thanks

Regards,

Colin

View Replies !    View Related
Flash Movie Transparancy...
Hi everyone,
I have a flash movie that I would like to go over an image on an HTML page. But I need the flash movie to be transparant so that you can see the image underneith aswell.

Can some one help me please. Thanks

View Replies !    View Related
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.

View Replies !    View Related
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!

View Replies !    View Related
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

View Replies !    View Related
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!

View Replies !    View Related
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.

View Replies !    View Related
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

View Replies !    View Related
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

View Replies !    View Related
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!

View Replies !    View Related
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

View Replies !    View Related
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!

View Replies !    View Related
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);
}

View Replies !    View Related
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

View Replies !    View Related
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?

View Replies !    View Related
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.

View Replies !    View Related
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,

View Replies !    View Related
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

View Replies !    View Related
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

View Replies !    View Related
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.

View Replies !    View Related
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

View Replies !    View Related
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

View Replies !    View Related
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?

View Replies !    View Related
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.

View Replies !    View Related
[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&

View Replies !    View Related
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?

View Replies !    View Related
Set Alpha Transparency For The Swap Depth Movie Clip
Hi friend,

I need to set the alpha transparency for the swap depth movie clip. I am hereby sending you the queries in jpg files format . Please help me out. Expecting your earliest reply.

Regards

Rajesh

View Replies !    View Related
Setting Alpha For Movie Clip With Many Overlapping Contents
Hi everyone,

I have a little problem: http://img131.imageshack.us/img131/6425/51325525ea4.jpg

In the picture, I want (2) but when I set my MC alpha to 50% it becomes (1). Any suggestions? Thanks a million!
DAnny

View Replies !    View Related
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

View Replies !    View Related
[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?

View Replies !    View Related
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?

View Replies !    View Related
Transparancy
Hi all,
Please check this.
http://www.flashkit.com/tutorials/In...-176/index.php

I am trying to create a Screen Saver and I want a transparent BG in the SWF file for me to import > the Screen Saver Application... How do I acheive that? Any Other Method or application to create a transperant BG screen saver...
Thank you
Wishy

View Replies !    View Related
Transparancy
does anybody now how to make a flash movie with transparant background that word in every browser ?.

to know what i'm talking about check out this page
http://amantoin.brinkster.net/test.htm

if you visit this page with internet explorer you should see that the flash movie is transparant.
but if you visit it with netscape or opera or something. there is not that much of transparancy to be detected :-)

does anybody have a solution for this ?

View Replies !    View Related
Transparancy
Hi,

Could anyone tell me how to make shapes that are filled with a colour, but you can stil see through it in Flash MX.

Its like the effect you can get when you use Photoshop.

View Replies !    View Related
Transparancy
I've made a pic in photoshop, with a transparant background. Now when i copy-paste this pic into flash, flash puts a white background on it :s, how can i prevent this.

View Replies !    View Related
Transparancy
Hello

Is it possible to make a transparant (no white background) flash animation that is moving over a webpage (with help of Javascript). I think I've seen a butterfly fly over the screen somewhere sometimes, flapping its wings. But was it made in flash? Do I need special updates for my flash MX 2004?

Anders

View Replies !    View Related
Transparancy
How do I make a box so that you can see through it partially and see a line behind it?

View Replies !    View Related
Transparancy?
hi!

Is it possible to make a flash-application to be 100% tansparent executed by an event?

View Replies !    View Related
PNG Transparancy In Dreamweaver MX
My transparant PNG (made in Photoshop) does not appear as a image with alfa in Dreamweaver MX... Can I adjust something to use the transparancy?

Anyone?

Thanks E.

View Replies !    View Related
Transparancy In Stage
Hello All,

I am making a flash movie to be embedded in a HTML page. The actual movie symbol is smaller than the size of the stage. That is because when you click on it another symbol opens next to it.

What I need to know is how to make the stage transparent so there is not a white box covering up the HTML page.

Gracious,

View Replies !    View Related
Transparancy Of Images...
Ok...this might seem to be a stupid question, but it is something I have always have had trouble with.

How do you make the white in an image transparant in flash?

I have experinces with SWiSHmax and you can easily choose a transparant color in an image, but on MX I can find no option....what do I do?

View Replies !    View Related
Gradient Transparancy
hi
well i have another problem that im sure someone can help me with..

i have a flash movie.. on top of that movie i want to have a white gradient that is transparent... so that the far side will be white, while the closer side will show the original movie
does any one know how to do this?
am i making sense?

thanks

View Replies !    View Related
BitmapFill Transparancy
Hey all,

Im attempting to create my game graphics using bitmapfill...


From the Loader instance....


Code:
var img:Bitmap = e.target.content as Bitmap;
var bd:BitmapData = new BitmapData(img.width, img.height);
bd.draw(img);

_grassSprite = new Sprite();
_grassSprite.graphics.beginBitmapFill(bd);
_grassSprite.graphics.drawRect(-(_width/2), -(_height/2), _width, img.height);
_grassSprite.graphics.endFill();
addChild(_grassSprite);
I am trying to load in a transparent gif (orginally it was a png and originally i tried to embed it) but none of these work. I cant get transparancy in my fill.

Is this even possible? Am i doing something wrong?

Any help would be great.

Thanks,

View Replies !    View Related
SWF Transparancy And Capturing Keystrokes
Earlier I posted this:

>>onClipEvent(mouseDown){
>>if (Key.isDown(Key.CONTROL)){
>>this.startDrag();
>>}
>>}

>>Why wouldn't this work in my browser when it works fine >>if testing? Key.isDown(Key.CONTROL) never evaluates to >>true for some reason in Explorer...

Well I found the cause it's because I'm using the generated html with the 'window mode' option set to 'transparant windowless'. My SWF consists of several objects that I want to show floating above the html backgound image.

Is it not possible to capture keypresses and have a transparant background at the same time?!???

GP

View Replies !    View Related
Transparancy And Gradients In Masks
when masking, is it possible to have the mask have solid-to-transparant gradient so that whatever is being masked is only partially masked. any help would be much obliged.

View Replies !    View Related
Transparancy On Tree Component
Is there any code to write so you can see the background through it? And where shall I put it? in the tree.xml or in the tree“s actionscript.... Please

View Replies !    View Related
PSD To Flash Transparancy Halo
I am sure this has been asked and answered, but I just cant find it here.

Trying to make Flash work well...

I am taking an RGB image (bitmap), a photo with a green tree, blue sky and clouds and have knocked out the tree sky and clouds to separate layers (I use coral's knockout for many years). All in PS

Now I have 3 separate great (transparent) layers.

What I need to do is make the clouds move behind the tree against the sky.
I want to animate the image in Flash and use it in a web page.

Each layer is then taken to Image Ready to apply the settings for flash and the web.
Then to Flash to animate.

When I finish with flash, it plays with a WHITE HALO around the tree and white halos around the moving clouds.

When I use all 3 layers in Final Cut pro and create a QuickTime movie it is perfect (The PS Gods are good to me in FCP).
Here's a link to the QT movie.
http://www.mauget.com/2%20Animate2640Px_4t.mov

Flash using the same image and layers is not.
Is it Just the limitations of flash and/or the web not as smart as FCP or After Effects..

Any help is appreciated.

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved