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
Similar Posts:
Dec 1, 2006
Is there a way to contol specific objects/movie clips in your swf file based on the size of user's browser window?
View 1 Replies
Aug 11, 2010
I have two buttons without names and I'm trying to have the same exact code on each so that you can click the button and it will turn white (or look like it), and click it again and it will turn back to blue (alpha at 100).This is the code I'm using on each button:
Code:
on (release){
if (_alpha == 100){
_alpha = 1;
[code]...
Unfortunately it causes both buttons to change their alpha to 0, not just the one that the code is on.Could anyone tell me why this is and how to make it so that only the button clicked is the one that has the alpha change? The reason I'm doing it this way is that I am going to end up using over 600 buttons like this, and I would much rather be able to copy and paste them in rows instead of naming them (I've already spent upwards of 45 minutes naming them A1, A2, B1, B2 and changing the code to fit).
View 5 Replies
Oct 2, 2010
I am working on a project for school using ActionScript 3. I have a matrix created with an animated movie clip. The matrix looks like a bunch of shapes changing size and color on the screen. I would like to have it so when I move my mouse moves over an individual shape in the matrix the alpha will change to be more transparent... like 0.5. I'm sure it would be a mouse move function, but I don't know how to write that part of the code.[code]...
View 16 Replies
Jun 27, 2010
how to grab the transparency (or alpha value) of individual pixels in an embedded or loaded video? We tried copying over a frame of video into a bitmapdata object with transparency enabled. However, even though we can "see through" the video at certain spots (indicating alpha = 0 there), the alpha value comes back as 0xFF for every single pixel in the BitmapData object.Obviously alpha data is being stored inside the embedded video, but how can I actually get that value?
View 0 Replies
Jul 5, 2010
There is an array 'squares' with instance names of MCs that i have on stage. I made a loop to randomize this array, so that every time the randomSquares() function is called, it would show different visible squares. But the problem is that if i call this function twice, same squares are visible as before. Everytime before calling this randomSquares() function, I also call a resetSquares() function.
var squares:Array = [s1, s2, s3,s4, s5, s6, s7, s8, s9, s10, s11, s12, s13, s14, s15, s16, s17, s18, s19, s20, s21, s22];
var myArray:Array = new Array();
function randomSquares():void {
[Code].....
View 2 Replies
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
Jun 20, 2004
I've gotten as far as getting a listbox with a list of articles to display the articles in a dynamic text box, only i can only get it to work if i use one huge external text file that contains all the articles. what i want is to have each item on the list open up its own external text file, i.e. for each item on the list, there exists a separate text file. I'm about ready to put my fist through the monitor, and that would suck because this is a really nice monitor
View 13 Replies
Apr 26, 2011
I got a Flash AS2 website and I need to get all the buttons inside an instancied movieclip (to define an specific property for each one). I've been searching for an hour or more, but I just got solutions for AS3
View 2 Replies
Jan 29, 2009
I've finally made the leap in to AS3 - it seems much nicer and easier than any of its predecessors but I'm still getting stuck on the odd thing.This is something I haven't been able to resolve with Google:
I have a movieclip with an instance name "myMC". On the first frame inside myMC I have another movieclip called "point". On the second frame inside myMC I have a movieclip with instance name "smallBox".This works:
myMC.point.transform.colorTransform = c;
This does not: myMC.smallBox.transform.colorTransform = c;
Do I need to do something to indicate I'm working on frame 2?
View 11 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
Oct 20, 2010
I have a draggable item, a MovieClip that calls startDrag() on itself when it is clicked, and another MovieClip on the stage.I need the MovieClip to receive ROLL_OVER and ROLL_OUT events while the draggable MovieClip is being dragged over it, but the lower clip doesn't receive these messages while a clip is being dragged over it.Essentially, ROLL_OVER is only sent to the topmost MovieClip under the mouse. Normally, you'd fix that with some combination of mouseEnabled or mouseChildren on the overlapping MovieClips, but if you do that to a draggable MovieClip, it breaks dragging. I need to detect when the mouse is over the lower MovieClip, regardless of what MovieClips are above it.
View 4 Replies
Jun 24, 2010
I am trying to create a navigation element. The items in the navigation are created dynamically from data in an XML file. What I would like to do is create a new movie clip then place all of the navigation elements into that movie clip so I can move it around as one piece.
Here is a simplified example of my code:
Code:
var navContainer:MovieClip = new MovieClip(); //clip to add elements to
addChild(navContainer);
//Create nav elements that I want inside navContainer//
[Code]....
View 3 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
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
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
Jan 26, 2010
Is it generally to position elements relative to other elements or in absolute values?
View 2 Replies
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
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
Oct 15, 2009
I want to create a box that has a random alpha effect over 31 frames.I'll be putting this box over top of other graphics to make it look like it's flickering.I can do this with animation but hope there is a solution using as.
View 9 Replies
Jan 27, 2009
I have one problem when i addChild a Loader into a MovieClip and when the Loader Complete i need set an Alpha to this Movieclip. I tryed use e.target.parent or e.currentTarget.parent but is no permitted to LoaderInfo Object.[code]...
View 2 Replies
May 26, 2003
I'm trying to make a movie clip move a small bit to the right and slowly (or quickly) dim until you can't see it. I've tried 2 different methods. The first was my original so that once you had the mouse in the original location of the movie, you just have to keep it there, you don't have to move the mouse with the clip. The 2nd was one i got after searching the forums. I've debugged out the for statement and tried just seeing if i could make a different movie's alpha change, and it didn't. So I believe the problem is either in the if (of the first) or onRollOver (of the 2nd).
[AS]onClipEvent(load){
xspot = _root._xmouse;
yspot = _root._ymouse;
[code]......
View 5 Replies