ActionScript 3.0 :: Alpha Not Working On MovieClip

May 28, 2009

I created a symbol (Movie Clip) for my library, and I can manipulate all of its properties except for one—alpha. Here is a sample of the code:
 
var range:Range = new Range();  // Range is the symbol in my library, and has been exported for ActionScript
range.alpha = .1; // Doesn't seem to work as the symbol is still at 100% opacity.
_buffer.draw(range, range.transform.matrix); // This is where I draw the symbol to the buffer
 
Everything draws fine, but it is as if the alpha property is not working.
 
P.S. - If anyone knows, should I use a Graphic for my symbol instead of a Movie Clip if I only have one frame?

View 7 Replies


Similar Posts:


ActionScript 3.0 :: Alpha Value Not Working Correctly For MovieClip

Jun 29, 2009

I'm wanting to create a simple red flash effect which entails a red flash suddenly appearing and fading away on screen.

I'm currently doing this by creating a red box as big as the screen and made it a movieclip. I'm then decrementing this movieclips alpha value from 100 to 0 but ofcourse, it's not as simple as that.

It seems that any alpha value greater than 0 makes the object have 100% alpha. So what's going on? How should I do it?

View 2 Replies

ActionScript 3.0 :: Setting The Alpha Of MovieClip With Objects Changes The Alpha Separately For Each Object

Oct 23, 2010

[URL] i want the object to fade out but in the object there's a lot of overlapping pictures and each becomes half transparent. how to make the movieclip to change the alpha as it was without objects?

[Code]....

View 2 Replies

ActionScript 2.0 :: Alpha Mask Not Working?

Aug 19, 2009

I've tried to make an alpha mask using a photo and a mask containing a alpha gradient. Using this code:

ActionScript Code:
maskee.cacheAsBitmap = true;
maskMC.cacheAsBitmap = true;
maskee.setMask("maskMC");

But it's not working? The 'blob' mask in the center should motion tween bigger. I can see the alpha mask in action, but the motion tween doesn't do anything. The image is freezing.

View 6 Replies

Flash CS4 - Alpha Motion Fade Not Working

Aug 12, 2009

I have a basic alpha motion fade which works using my flashplayer but not in flash players less than version 10 (no fade is present its just instantly there). If I change the player I am developing for in my movie settings the fade just does not work.

View 1 Replies

Professional :: Alpha Tween Not Working Properly

Jan 5, 2011

If I have this line of code:
var myTween:Tween = new Tween(contHolderMain, "alpha", None.easeNone, 0, 100, 100, true);
contHolderMain's alph value should move from 0 to 100 in 100 seconds, but it only take about 5.

View 1 Replies

ActionScript 3.0 :: Alpha Transparency Not Working On PNGs?

Jun 17, 2011

I'm currently constructing a scrollbar as part of a website using as3 and png images. I've got loaders for each image inside of an array, and when loading on each image finishes, it's added as a child to a sprite on the stage. I've got a background image with no transparency, which loads fine. On top of that, I've got the actual slider, which loads the RGB data, and appears to be using the alpha as a 1-bit mask. So anywhere that I have partial transparency, it just shows up as black, where it should be showing the background underneath. I can't find any attribute that will change the way loaded images process alpha transparency.

View 2 Replies

Flash :: Flixel - Alpha Not Working Properly

Jan 17, 2012

I have something odd happening when I update a FlxSprite's alpha repeatedly to make it fade out. Instead of taking 150 seconds to fade out completely (I actually want 15 seconds), it fades out over maybe 2 seconds. I tried tracing the actual alpha value, and the sprite is invisible when the alpha value is around 0.95 (95% opacity, ie slightly transparent). how I can get the alpha to work properly in Flixel?

[Code]....

View 2 Replies

ActionScript 3.0 :: Alpha Tweens Not Working Properly?

Nov 13, 2010

var myTween:Tween = new Tween(object, 'alpha', None.easeNone, 0, 100, 10, true)
myTween.start();

when I do this, the object flickers sometimes and also seems to go faster than the specified 10 seconds sometimes. Also when I noticed this is when I've been getting a weird error: Error opening URL [URL]

(I omitted some of the link in order to post)

This is the first time I have encountered weird problems like this. My mind is a little confused (a lot I mean).

View 4 Replies

ActionScript 3.0 :: Alpha Transition Not Working With Dynamic Fields?

Oct 23, 2008

I understand from reading various forums that if you do not embed the font in to the movie the dynamic field
won't fade with alpha. But when I try to enbed the font or setting embedFonts = true the text just disappears.

I have the text now with a tween just to show that the tween is working while the alpha is not.

This is the link to the SWF:

[Code]...

View 1 Replies

ActionScript 3.0 :: Alpha Property On Dynamic Text Not Working?

Sep 25, 2008

I have generated several TextFields dynamically through a for loop. I would like all the text fields to have their alpha set to 0 so that each field can eventually fade in.

When I apply the alpha property by setting it to 0, or even .5 the text appears to still be at an alpha of 1. Does anyone know how to make the text appear with a low to 0 alpha?

I have attached the code from the function which runs the for loop to generate the text fields. Please not that the value of the text fields are stored in a global array, and the text format objects are also global and are declared in the main body of the class.

View 7 Replies

ActionScript 3.0 :: Alpha Tween Not Working On ScrollPane Gallery?

Jan 12, 2011

i have a problem with my as3 working on normal movieclips, but not on the gallery, the site  works by loading an external swf file with the UILoader, the swf that is  loaded is a ScrollPane that loads a Movieclip.The script i use:

import fl.transitions.Tween;import fl.transitions.easing.*;

var myTweenAlphaRoskilde:Tween = new Tween(roskildemc, "alpha", None.easeNone, 0, 1, 40, false);

1. frame is the preloader

2. frame is the Scrollpane and Movieclip that loads, the action is added here.
 
The file if it makes it easier:

[Link removed by moderator at OP's request]

View 11 Replies

ActionScript 2.0 :: For In Loop Isn't Working - Doesn't Change The Alpha Of Anything

Apr 15, 2008

I have a class file that contains a for in loop. basically there are 50 states (movieclips) on the stage and here is what I have:

[Code]...

I don't think I understand enough about arrays or for in loops to understand why this isn't working... it traces the array, but not statesArray[states], and it doesn't change the alpha of anything.

View 1 Replies

ActionScript 3.0 :: Working With Movie Clip Alpha In For Each Loop?

Mar 20, 2010

How can i change movie clips apha property slowly one by one in for each loop? I can't undestand what's wrong((( From XML data i create for each loop, where my MC creates. But i can't chang their alpha property slowly. When i'm trying

Code:
mc.addEventListener(Event.ENTER_FRAME, alphaShow)
function alphaShow(e:Event):void{
e.target.alpha += mcAlphaPlus;

[code]....

View 4 Replies

ActionScript 3.0 :: Alpha Property Causing Play() To Stop Working

Jan 21, 2009

I have a problem that is stopping my mc.play() stopping when I try to set the .alpha property of an object. I have attached the code and have rem // out the alpha lines. can send you the fla to see the problem occuring.

View 4 Replies

Movie Clip Alpha Tweens Stop Working When Published?

Nov 20, 2009

I have 3 mc's that I have placed a tween on that fades them from 0% - 100% Alpha (simple fade-in effect). The animations are fine if I test the movie within Flash. However, after publishing, I lose all those tweens in my swf, and all I see are abrupt changes from 0% - 100% alpha. What could I be doing wrong?

View 2 Replies

ActionScript 2.0 :: Alpha Fade Slideshow Only Working On First Page Load?

Apr 30, 2007

I have designed a "Before-and-After" slideshow using Alpha tweens to slowly fade one image into another. The effect works great, however, it seems that the effect only works on the first time the user enters that page. If the user clicks the "play again" button, I reload the .swf and want the effect the play again, but it just moves from the first to second image, without the alpha effect transition.Is there some way to "reset" the .swf to replay the alpha tween effect? why it would have this behavior? The site and effect are purely actionscript, so I cannot do something like "goToAndPlay(1)" in the last frame, the entire site is only in the first frame.

View 2 Replies

ActionScript 3.0 :: Movieclip Can;t Set To Alpha

Nov 18, 2010

i draw a rectangle, convert it to symbol1 and export for actionscript. after that i edit the rectangle class and inside the constructor i want to change the alpha value by writing this._alpha=44; a error msg popout : 1119: Access of possibly undefined property _alpha through a reference with static type Symbol1.

View 2 Replies

ActionScript 2.0 :: CS3 How To Alpha Out Movieclip On DragOver

Aug 24, 2009

I posted last week on the topic of getting movieclips to lock into place after you have dragged them in the correct location. Luckily I was able to figure it out by myself, love when that happens.

Anyway, I have a new issue. What I want to do is have a movieclip alpha to 0% when another movieclip is dragged over it. I want to it to happen by 25% each dragOver though. So it starts at 100% then the user drags over and the alpha is at 75% now, then another drag over and 50% etc...

The MC that is being dragged is called ragMC and the one that is alpha'd out is greaseMC.

View 2 Replies

ActionScript 3.0 :: Alpha Tween From One MovieClip To Another?

Jan 15, 2010

Using AS3, how do I create an alpha tween from one movie clip to another?
 
My thinking is that I can't use the timeline, because the fade is variable and event driven; e.g., the user clicks on one of many pics, and the stage alpha tweens from the current to the clicked.

View 1 Replies

ActionScript 3.0 :: How To Change Alpha Value On MovieClip

Jul 12, 2010

Basically, I want to change the alpha value on my movieclip. I start my mc with an alpha of .08 (8%).
mc.alpha = .08;
What I then want to do is increment it to .9 (90%) and when it hits that, decrement it back to .08, and then when it hits that, increment it again to .9 etc.

I have tried
if(mc.alpha==.9){
mc.alpha -= .01;
}else{
mc.alpha += .01;
}

View 7 Replies

ActionScript 2.0 :: Change Alpha Value On Any Movieclip?

Jul 3, 2009

Ok. I am new again so I hope I am describing this correctly. I don't know the best way to do this but this is what I've dreamed up so far: I have a number of movie clips on my screen, all thumbnail sized images, each with an instance name (ex: tw_lifeoftheparty, tw_xmen, tw_xfiles, tw_diehard, etc.).

In each movieclip there are 2 layers: the thumbnail image(bottom layer) and a black border(top layer). The black border is an object named wk_border and isin each of the thumbnail movieclips.

I have given wk_border the same instance name in each thumbnail movieclip "border"

[Code]...

View 5 Replies

ActionScript 3.0 :: Change Alpha Value Of A Movieclip Through It?

Jan 18, 2010

How can i change the alpha value of a movieclip through actionscript?

View 1 Replies

ActionScript 3.0 :: Alpha Vs. Movieclip 2 Frames?

Aug 14, 2010

So I've a movieclip with 2 frames placed on stage. 1st frame is button on state, 2nd frame is button off state which is just a bit lighter icon which can be achieved with alpha 40%.So I was wondering what would be better to do: leave the movieclip with 2 frames and then in ActionScript use .gotoAndStop() to show the off/on state or create movieclip with 1 frame and with ActionScript just change the .alpha of icon ? I mean better in performance, speed and all those things. Because if I have the movieclip with 2 frames and it's added to stage it's redrawing it going to 1st, 2nd, 1st, 2nd.. frame until I .stop() it..

View 2 Replies

ActionScript 2.0 :: How To Change MovieClip Alpha

May 6, 2004

I've been trying to change an MCs alpha with actionscipt. the movies FPS is 30. Here's the as:
onClipEvent(load) {
var alpha = blue._alpha;
alpha = 50;
var forwardA = true;
var changeA = true;
[Code] .....
Btw, "blue" is the MC that I want to change the alpha of, and this code is on that MC.

View 6 Replies

ActionScript 2.0 :: Setting A Movieclip To Alpha 0 %?

Jul 10, 2005

like my movie container in my _root, how do i set it`s alpha to 0? does this work: _root.contMovie.setAlpha(0); ? or is there any other possibility to set it`s alpha to 0?

the best thing for me would be if i could fade it to alpha via AS command, i can't control it direct because the movieclip is 2 levels above....:-)

View 6 Replies

ActionScript 2.0 :: Loading A Swf Into A Movieclip With An Alpha Of 0?

Aug 31, 2008

I have a movieclip named holder inside a movieclip named wrapper and a button that loads an external swf into wrapper.holder when it is pressed.I want to be able to fade in the external swf after its loaded by tweening the Wrapper movieClip's alpha property but the external swf just keeps appearing. When I use the same code to load an external jpg everything works fine. I used an onEnterFrame event to trace the _alpha of wrapper and it shows wrapper tweening in in 3 unit intervals.

Code:
myButton.onPress = function() {
loadMovie("projects/aboutBox.swf", wrapper.holder);
wrapper.holder.onEnterFrame = function () {[code]...........

View 1 Replies

IDE :: Alpha Transparency Upon Loading Swf In Movieclip?

Nov 11, 2009

I have a movieclip and I am loading on it an external swf. The mc is just a square box basically...it is set to 69% alpha/transparent in the "Color effect: style: alpha" settings.The problem is, when I load the swf now the swf is also transparent (seems like 69%)...I basically want the mc to be transparent, but the swfs that load w/in it should not be transparent.

example code:
mc.createEmptyMovieClip("newClip", this.getNextHighestDepth());
mc.newClip.loadMovie("some.swf");

View 4 Replies

ActionScript 3.0 :: Individual Alpha Elements On A Movieclip?

Nov 18, 2009

I have a movie clip that holds a button (latter a dynamic textfield -- (button is quicker for testing )).  I have the movie clip alpha set at .65 as I want the background image to bleed through slightly.  I put the button on the movieclip as I want it to be visible as the movieclip tweens on stage.  My question is, can I target the buttons alpha when the button is a part of my movie clip or does the movie clip and the button have to be seperate?

[Code]...

View 3 Replies

ActionScript 3.0 :: Alpha On Children Of Movieclip Instance

Jan 21, 2010

I've created a class which displays a carousel menu , I've then instantiated this carousel class in another class, created a method to hide the carousel and a button to open / close the menu by setting the alpha to 0. Within the carousel object is the controls for rotation. The problem is when I compile and run and then click the button the carousel is made invisible along with the controls but when I press it again, the controls appear again but the carousel doesn't. Really stumped on this one,

View 6 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved