ActionScript 3.0 :: Changing The Alpha Of A Swf
Aug 10, 2010
I'm trying to create a tab system on my website. I have a small 25 pixel tall swf file at the top of the page that acts as the tabs. It uses PHP to communicate with the rest of the site. I have a larger swf below that acts as a directory to my files. When the user finds a file, he or she can open it in a new tab by clicking a certain button. And then switch between tabs using the top swf. I've got all of this down using AS3, but I'm not as good at the basic web design elements. How do I communicate to have every lower layer except for the one that the viewer wants to look at go to 0% alpha? Also, I cannot just have the tab system be all in one swf because some of the files that I want the user to open will be in AS2, which won't run inside an AS3 host.
View 3 Replies
Similar Posts:
Apr 11, 2011
this.addEventListener(MouseEvent.MOUSE_OVER,function() {
this.alpha=0
})
In an MC, I want it to become invisible when the mouse hovers over it. The reason I'm putting this code inside the MC and not making an instance out of it is because this MC will recur numerous times. The listener does work, as tested with trace(). For whatever reason, alpha doesn't.
View 1 Replies
Jun 21, 2005
I have been checking out the following tutorial:on how to adjust the volume with a slider.it's great!what I'd like to do is use that same slider to adjust the alphaof a movie clip.is that possible?or maybe adjust the alpha of a symbol.what i'm trying to do is create "mood lighting"where the user can move a slider and lighten or darken an interiorspace, by adjusting the alpha of a dark square on top of the scene.
View 3 Replies
Apr 28, 2003
i made text into a movie clip and put in this code to adjust the alpha.
onClipEvent (load){
this._alpha=100;
i=1;
}
onClipEvent (enterFrame) {
if(this._alpha=0 && i==0){
[Code]...
The alpha is going down.I think, because the text isnt there. What i'm having trouble with is getting it to go back and forth. Increasing and decreasing the alpha when it gets to it's maximum or minimum. I hope I'm making some sense.Does anyone have any ideas? And no I cannot do this with a simple motion tween because there are things happening in the background.
View 3 Replies
Jan 11, 2010
I'm blitting a map onto the screen with tiles.. and the source of these tiles are BitmapData objects.I know you can change the alpha of a bitmap.. but I'm not too sure if it can be done on the BitmapData object itself.I want some tiles to have less alpha than others. Applying the alpha to the Bitmap.. makes everything on the current screen have an alpha.. but I only need one tile of it..
View 4 Replies
Nov 3, 2009
i'm trying to get it so a MC1 on top of MC2 slowly fades in. It starts with alpha of 0 and i put it in a while loop (on MC1):
onClipEvent(load) {
this._alpha = 0;
var i = 0;
[code]....
View 2 Replies
Mar 8, 2009
I am changing colors of an mc dynamically, in this way: I have an mc of the color green for example. What I want is it to turn to a specific color in time. I have in that mc a sprite, that is that specific color (red in this case). iIset it's alpha to 0 and put it in the layer above the green part. Now when I set its alpha to 1, it will be that colour. When I set it to 0.5 ofcourse it'll be a mix between those colours. Is it faster to do it, but changing 0xFFFFFF? I wouldn't know how to do it though. i want to be able to tell it to go 3/4 of color nr 1 and 1/4 of color nr 2, for example. i also want to be able to choose those colours specificly, for the sake of art. so just choosing 0xFF0000 for red, wont do, for artistic reasons.
View 3 Replies
Apr 6, 2010
The thing should work like this: theres a movie clip in frame 10 of the timeline with two buttons inside, by clicking one of them the movie should jump to frame 15 and take the alpha of two Mc there (they are inside a different movie clip) to 0. This is what ie been trying (code on the button, btw):
on (release) {
McScene2.lettuce._alpha = 0;
McScene2.pumpkin._alpha = 0;
[code].....
View 9 Replies
Jan 28, 2012
i really can't belive i'm asking this, but i've been about an hour trying to look after a solution for this but I couldnt find nothing. i'm trying to change a movieclip's alpha when the swf loads and when I press an existing button. the problem is that that movieclip is inside a button and as3 has a problem with it.
this is what i am trying to do in the first frame of the first scene.
[Code]...
View 1 Replies
Jul 28, 2004
I have a menu inside a MC, and Id like to make s alpha = 50% when some button is clicked ,but when the mouse is over it, s alpha changes back to 100%.
View 1 Replies
Jan 7, 2010
I know how to change the alpha of one movie clip at a time on rollover, rollout, and release. But I'm a bit stuck trying to figure out how I would change the alpha of multiple movie clips, when one is clicked. It's for a simple photo gallery and I want all the thumbnails to darken once one has been clicked & the image is loading. I can't just fake it by having a somewhat transparent black movie clip appear over everything, because I need the alpha of each thumbnail to be able to change again once people roll over a new thumbnail.(a section of my code is included for reference but there are like 30 thumbnails so I didn't include it all, the code is the same for everything)
Code:
thumb_001.onRollOver = over;
thumb_001.onPress = down;
thumb_001.onRollOut = out;
thumb_001.onRelease () {
[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
Aug 15, 2009
I am very new to Flash and I have the following script:
mouseInterval = setInterval(changeAlpha,10);
function changeAlpha(){ fader_mc.alpha = Math.round(root.mouseX/550*100) }
This is simply to change the Alpha of my object as I change the X value of the mouse cursor. I keep getting the following error message:
1120: Access of undefined property mouseInterval
View 5 Replies
Dec 30, 2011
for a periodic table tool I'm making, I've incorporated an effect that changes the alpha value whenever I hover over an element (pretty standard). I've noticed a mysterious gain in memory when hovering over my elements; using SYSTEM.TOTAL_MEMORY - there would be about 0.005MB increase in memory usage when I hover over an element, which isn't relinquished when I move my mouse off. However, if I move my mouse back on again, there isn't a second memory gain.
[Code]...
Does anyone know why this memory gain is happening when the alpha value is changed? And curiously why it only happens once? Some extra info: my Element class is a MovieClip, with a couple of TextFields, primitive variables and a MovieClip in it. It has had its mouseChildren property set to false (and buttonMode property set to true).
View 1 Replies
May 15, 2009
how to increase the alpha of a movie clip when you rollover a button.
View 1 Replies
May 9, 2005
I have created a finite menu and it works fine, the only problem is that now I want to have the menu set to 50% alpha and when the user moves the mouse over the menu it gradually increases to 100%, Since I have never messed with Alpha's using action script.
View 14 Replies
Dec 18, 2010
I'm doing this via the motion editor. But, is it possible to fade an image gradully from left to right instead of the whole image at once?
View 8 Replies
Nov 17, 2009
another rollover question dealing with changing the opacity of the button. Anyways. after digging through the site I found this:
[Code]...
View 1 Replies
Mar 29, 2007
I've been playing around with the presentation screens and slide in Flash, from browsing the web there seems to be very little if any information of how to control MC's within different parts of a presentation i.e. removing them or changing alpha. I've loaded an MC and now I'm am trying to remove it from the stage been experiment on the same slide and I just cant seem to get control of it.
I was using
_root.slide1.intromc._alpha = 0;
But this doesn't work for. How I can get access to MCs in a slide if its possible !!!!
View 1 Replies
Dec 30, 2008
I'm trying to make a URL-Loader Class to speed up my workflow, but I can't manage to make the images I am loading visible, turning their alpha to 1.
I use the following line to invoke my custom loader:
import com.ab.utils.Load
Load.Image(menuitem.holder_mc, menuitem.image, this)
[Code]....
Notice where I call a Tweener, trying to make my mc (_ITEM)'s alpha turn 1.
I tried thing like loader.content and loader.content.holder_mc, but to no avail.
View 2 Replies
Apr 23, 2009
I have wrtitten some code that draws a couple of lines with changing alpha and width whenever the mouse is moved. I need to convert this code to AS3 so that I can use it in conjunction with some video tracking.
Code:
var speed:Number = 100;
var myNumber:Number;
var myMax:Number = 50;[code]...
View 1 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
Dec 15, 2011
just spotted this curious trick. If you want to flip something to go invisible on a click, and then reappear on another click (etc etc), try this:
create the sprite, setting alpha to either to 1 OR -1
mySprite.alpha=1; //OR
mySprite.aplha=-1;
[code]....
View 9 Replies
Jun 27, 2003
using AS, on loading a movie a solid shape is there with alpha at 100% then over a period of 5 secs its alpha is reduced to 0.
i'm new to this......please help if you want to if you don't have a good weekend but think of me struggling onwards and upwards...
View 14 Replies
Aug 2, 2011
I want to do aplpha = .5 for the whole app, but then have a MC display at full alpha, is there any way to do this?
View 6 Replies
Aug 14, 2009
How do I change the corner radius of a Label component in Flex. Tried applying style name, and the setStyle('cornerRadius',9) methods, but doesn't work. How can I change the arrow image in the combo box control to a different image?
View 4 Replies
Aug 31, 2009
I want to create another button on the main menu of my flash site. I want to take one of the existing buttons (which are set as movie clips) and modify it to show a different menu name and page link. BUT when I go into my library and "duplicate" my movie clip, change the instance name, drag it to the stage and attempt to modify it, the original changes as well. I need to keep the original the same and create a new one with the same code, frames, etc but with different static text. I keep going in circles
View 1 Replies
Feb 26, 2005
As far as I know theres in no way to cahnge the alpha of a dynamic text box. I put one in a movie clip and when i try to change the alpha of it everything else in it changes its alpha but the not the DT box. Could someone plz verify for me that u can't change alpha and help me find a component that allows alpha control with a dynamic text box. thx in advance.
View 5 Replies
Feb 1, 2006
basically when you load the .swf it changed everytime u re-load it , i want it to keep on changing even when the user hasnt reloaded the image
[Code]...
View 1 Replies
Sep 26, 2009
I've bought a component on flashden. This is a text component that makes it possible to load CSS & Html on your flash project. Check the included zip for the source. What I want is that the background of the component is transparant. Now it has a linear gradient. I've tried to set the drawing in the component to zero alpha but that didn't do the trick. How to edit the background (if nescessary by actionscript)?
View 2 Replies