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
Similar Posts:
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
Nov 17, 2011
I have a MovieClip with white background and would like to change it's Background color and alpha settings at runtime. How can I?
View 1 Replies
Dec 16, 2009
I am currently trying to set a movieclips alpha property from an external text file. The movieclip is called Text_Main_Slide1
The text file:
banner_settings_468x60.txt
which contains:
&Alpha_Main_Slide1=0&
I have currently written:
loadVariables("banner_settings_468x60.txt", 0);
Text_Main_Slide1._alpha = Alpha_Main_Slide1;
which doesn't work.I can however set it manually: Text_Main_Slide1._alpha = 0;
But I need to be able to set the number from the text file.
View 6 Replies
Mar 12, 2012
I have a MovieClip, named "thing", that's in one position and in another position on the next frame. I added an eventlistener to "thing" to advance frames. Very simple, everything works fine.I then add "thing.alpha = 0.5" in the button's event listener. Now when I publish the file, thing fades but doesn't move.
p.s. For reference, here's the entirety of my AS3 on the first frame:
import flash.events.MouseEvent;
stop();
thing.addEventListener(MouseEvent.CLICK, doClick);
[code]....
View 6 Replies
Aug 11, 2011
set the alpha on a loader which is inside a class Portrait. I've got 27 pictures I load through a class. I can set the alpha for 23 pictures. But when I try to set the alpha for 27 pictures the alpha for the first 4 pictures cannot be set. I can set it only to 1. They've been loaded and when I trace the alpha value it states 0.5 for example but nothing is displayed. The strange thing is that this is only so for the first 4 pictures when there are more then 23 pictures to load. I've tried replacing the pictures but that doesn't make a difference.Here is the Portrait class:
Code:
package
{
import flash.display.*;
[code]....
When I change if(i==0) to if(i==6) that is, anything higher than 3 it works fine.
View 21 Replies
Dec 6, 2009
I am creating smiley faces and then copying them to a banner. I have two fla files open, one has the smiley in it and some layers of the smiley are made up of areas with a alpha setting of less then 100%.When I highlight all of the smiley and copy, then move to the other other open fla file that has a blue banner, and 'paste' the smiley pastes ok but all the areas that have an alpha setting of less than 100% have a blue shade to them from the banner. How do I prevent this and retain the colours I had?
View 1 Replies
Jul 4, 2004
I am having trouble setting the alpha of a movie clip (this is a bitmap, if that matters). My code is as follows:
Code:
on (change) {
if (this.getSelectedItem().data == 3) {
set (this._parent.ahouston._alpha,100)}
if (this.getSelectedItem().data <> 3) {
set (this._parent.ahouston._alpha,0)}
}
I don't believe it is a problem with my combobox actionscript, as just putting:
Code:
set (this.ahouston._alpha,100)
in the only frame of the parent movie clip doesn't work either.
EDIT: Now it shows it with 0% alpha, but won't turn to 100%. I was wrong. It is a combobox problem.
View 7 Replies
Nov 29, 2009
Suppose I have a Bitmap containing a color which is some arbitrary mix of RGB, how would I go about setting the alpha value of that particula color?
View 6 Replies
Oct 15, 2009
I am having problems with the _alpha property of dynamic masks. For some reason they don't seem to accept it. I have a holder mc that I use as a mask and the holder is full of dynamic mcs for which I would like to set apha properties. My code is:
[Code]...
View 6 Replies
Jan 7, 2011
If I have a clip already on the stage. how can I go about having code to set the alpha = 0 so that the clip is default invisible. If I set the alpha in the class constructor it gets reset to what its set on the stage. I tried to use the Event.ADDED event since that gets dispatched before rendering too (I think). I mean If I don't have any choice then I'll just set it to 0 manually . Just was hoping to have the capability to set it in code. So that I can still see the clips on the stage just to make it easy for moving them around if I needed to. Where I need to set the alpha so that it takes effect 'after' the default values get applied..
View 9 Replies
Nov 2, 2005
is it possible to to change the value of the alpha setting of an attachedMovie
I have
Code:
function attachBk (thisBk, nextBk):Void {
if (thisBk == undefined) {
this.attachMovie(nextBk,"bkHolder1", this.getNextHighestDepth());
[Code]....
When I click a button I want bkHolder1 to fade out but so far I haven't had any success, I tried doing bkHolder1._alpha = 0 just to see if it would affect it's property but it didn't.
View 4 Replies
Nov 14, 2011
I attempted to build a Flex 4 skin for a Spark button, typical practice. I adjusted the colors and other styles to my liking, including using dot selectors to specify alternate colors and such during different states. However, these are all ignored when the button is disabled. Regardless of what I do, in the disabled state, my button always has the wrong color and is alpha'd to 0.5 (even if I specifically state that alpha.disabled="1"). All the other skin states work as expected. This is my custom skin. If it were working correctly, it would appear to have no shadow or highlight, and would be a gradient grey color. Instead, it appears as a 50% alpha version of the up state (shiny green).
<?xml version="1.0" encoding="utf-8"?>
<s:SparkButtonSkin xmlns:fx="[URL]"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:fb="[URL]"
minWidth="21" minHeight="21" alpha.disabled="1">
[Code] .....
This is the code used to create and then disable the button:
_action1Button = new Action1Button();
view.actionGroup.addElement(_action1Button);
_action1Button.enabled = false;
The error was that _action1Button is not the actual button, rather, it's the container of the button. Doh! Switching it to _action1Button.actionButton.enabled = false; fixed the issue.
View 1 Replies
Sep 6, 2010
I have a script which dictates alpha on rollout and onroll but I want to set a default alpha setting for images which are loaded via xml. Here's a tidbit:
[Code]...
I've tried combinations of tn_group["tn"+i].tn_button.tn_pic._alpha = 85; and such but I'm still a big newbie
View 2 Replies
Apr 3, 2011
What I am trying to do I think is pretty simple.
Consider this code:
ActionScript Code:
var imageContainter:String;
var fileName:String;
[Code]....
This code appears to be working. I'm dynamically creating a bunch of movieclips that each contain an image. The also code stacks each clip on top of each other.
I'd like to be able to now set the alpha or visibility of all of those movieclips to 0 or false, except for the first one. I have other code that will set specific movieclips to display based on mouseEvents.
How do I refer to all of them? And should I be using arrays as well?
View 7 Replies
Jun 7, 2005
I want to achieve the effect on [URL]. The effect on the left on the about page in which when the mouse moves over the alpha of the object goes to 0%. I have all the layers set up with masks and all but need the action script. I tried applying the following code to a mask which I converted to a movieclip.
on(rollover){
this._alpha--;
}
But this did not work for some reason.
View 2 Replies
Feb 5, 2008
I have 20 frames on a timeline, and a mc in the frames. Frame 1 the mc is _alpha 0%, at frame 20 the _alpha is 100%. A tween between the frames fades up the mc alpha. How can I change the frame 20 _alpha setting from outside the swf file? Say I need the alpha to be 60% at frame 20 BUT I can't open up the FLA, can I adjust the Alpha setting (using Loadvars perhaps) without going back into the FLA? I won't have access to the FLA (when the file is online) and I want to be able to manipulate the frame 20 _alpha setting. I have tried doing this totally in actionscript and not using the timeline, but if I can't get that to work I will need to be able to adjust the alpha parameter without editing the FLA.
View 2 Replies
Oct 26, 2008
Folx; Does the manual document the setting of transparency in TextField.textColor or TextField.backgroundColor, not just the _alpha of the TextField altogether? If so, I cant seem to find it. In addition to the RGB/hex values, the color palette in the Properties panel allows you to set transparency in %, yes, but can this also be achieved programmatically?
View 1 Replies
Mar 12, 2010
If I change some value for a parent sprite, the same value will affect all of its children. So if I set alpha or width on the parent, the child will automaticly get the same value.
View 4 Replies
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
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
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
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
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
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
Jan 18, 2010
How can i change the alpha value of a movieclip through actionscript?
View 1 Replies
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
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
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
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