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
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
Mar 22, 2010
i have this little display and when you click on certain items their alpha changes to 0.1, this worked fine until i added another frame with a different display on another frame. so now when you change frames and go to the new display then go back to the old display on frame 1 the alpha properties are all reset back to 1. So to fix this i thought i could simply add all the movieclips with an alpha less than one to an array when i left the frame then when you come back to the frame you could reset all the moviclips in that array back to having an alpha of 0.1. But this doesnt seem to work. here is the code i used.[code]But this code doesnt seem to work, the strange thing is even when i add some trace statements they tell me that the alpha does in fact equal 0.1 but visibally they haven't changed.
View 2 Replies
Apr 29, 2010
I want to alpha tween (ease in from 0 to 1) an object on stage over 25 frames. And after the tween is over i want the object to persist on the stage and in the timeline. How can i do that?afaik i have to extend the tween in the timeline beyond the keyframe with 1 alpha. But when i do that this also extends the time of the tween from 0 to 1 and it actually lowers the alpha 1 in the keyframe automatically to some figure that fits with the ease in which apparently spans the entire tween.
View 8 Replies
Jan 7, 2010
Is it possible to have an movieclip of about 50 frames and navigate between these 50 frames? As if u put a marker on frame 10 and one at frame 30 and if u use a button it plays to frame 10 and stops and use another button to go from frame 10 to frame 30 and stop... and reverse if u use the earlier button.
View 5 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
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
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
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
Jan 9, 2010
mc1.mask = mc2
mc2 is a movie clip that is 50% alpha. How can I mask mc1 and keep the alpha transparency? That's about it.
View 3 Replies
Jul 12, 2002
I am still new to actionscript. What I want to do is set the alpha of a movieclip to rise and then lower at a set amount. I can do it so it set it at random but not the way I want it, e.g., clip starts at 20%alpah, and rised by 1 until it at 50% and then reduces by 1 until back to 20% over and over.
Second frame :
i = i+1;
setProperty ("/grid", _alpha, +i);
result = getProperty("/grid", _alpha);
if (result = 50) {
setProperty ("/grid", _alpha, 50-i);
}
Third frame.
gotoAndPlay (2);
View 2 Replies
Jan 19, 2011
I have a movieclip with an image that has transparency and filters applied to the movieclip.I know I can use "draw" to copy the movieclip to a bitmapdata object, but it doesn't seem to copy the filters and the transparency of the image. How can I copy these so the bitmapdata matches the original movieclip in appearance?
View 5 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
Feb 18, 2011
I am unable to change alpha of movieclip on button click using as2.[code]...
View 1 Replies
Feb 21, 2011
i am developing one small imteractive game.in that i'm getting one difficulty.Difficulty is: i want to play a moviclip whenever i 'll click on button ,and .For that i hav applied logic in following way.
function onMouseClick(event:MouseEvent):void
{
this.alpha=0; (alpha of 1st movieclip will 0 )
[code]......
View 5 Replies
Sep 15, 2011
When I mouse over a movieclip, I want its alpha level to change. Here's what I have:
ActionScript Code:
object.addEventListener(MouseEvent.MOUSE_OVER, mouseOverObject);
object.addEventListener(MouseEvent.MOUSE_OUT, mouseOutObject);
function mouseOverObject(e:MouseEvent){
if(!inventoryOpen){ e.currentTarget.alpha = 100; }
} function mouseOutObject(e:MouseEvent){
if(!inventoryOpen){ e.currentTarget.alpha = 50; }
}
It does work, but the mouseover only registers when the cursor is over certain areas of the movieclip.
View 2 Replies