ActionScript 2.0 :: Make Menu Alpha Changing?
Jul 28, 2004I 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 RepliesI 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 RepliesI 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 RepliesI would really like to make a menu that fades in and out with actionscript. I am thinking that it would look like this [URL] - rollover businesses. I have been trying, but nothing is really working.
View 2 RepliesThe menu is like this http:[url]... (the site is in portuguese but it doesnt matter), when I click in on menu the actual menu does an alpha to 0 and the next menu appears using the alpha from 0 to 100 (and some animations like the cellphone going up).Now, how can I do a menu like that, whatever the menu I choose, it does that alpha animation ?
View 1 RepliesI'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 Repliesthis.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.
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 Repliesi 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.
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 Repliesi'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]....
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 RepliesThe 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].....
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]...
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]....
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 RepliesI 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
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).
how to increase the alpha of a movie clip when you rollover a button.
View 1 RepliesI'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 Repliesanother rollover question dealing with changing the opacity of the button. Anyways. after digging through the site I found this:
[Code]...
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 !!!!
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.
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]...
where the Alpha Value is located? It is not show up on the properties menu. I'm trying to animate and object to fade in and out similar to this walk through. CS flash 5 seems be different.
View 4 Repliesok so this is my first attempt at action script, and have three pretty thick books (flash bibles all, because its not just actionscript im new to) so, here goes, im trying to make a horizontal menu where the OTHER buttons fade on mouseover. i dont have tweens or anything except layers (for the bg and all buttons on individual layers) so I searched the net, and seems everyone wants to fade the button they are over....well I had to pick something so close as to what I want yet totally not give me a clear defined way to get the opposite result, so after many hours, heres my code for button1:
[Code]...
I am working on a DVD User Interface for my final project in Photoshop. For extra credit points I am trying to figure out how to make the menu items to light up when the pointer is touching the menu icon.
View 1 RepliesI need a tutorial for a hierarchical drop down menu system that drops down 3 sub levels. Do I make the items in the sub menus individual buttons and then insert them into a movie clip or make every sub menu item a movie clip and insert them into buttons?
View 1 RepliesIm trying to make a menu for a web page using menubar and menu components, is ther any way of making os specifing that the menu can get drawn out of the canvas, since i need that the bar is thin for getting in a space betwen to image headers.
View 1 Replieshow to make a sub-menu for a flash context menu. I have tried to create a menu item that is a menu in itself, but it wouldn't work.
View 1 RepliesI am new to Flash and am working on a web template I purchase online. I have a flash file called flash.fla I'm working with in Flash CS4 (trial). Of the five main menu buttons, I would like to redirect the 4th (the "videos" tab) to a youtube channel I've set up. I've located where the 4th button is in my .fla file. It's called B4. I double clicked on it, which opens it up in the timeline. There's 4 little objects in the timeline: b, b, t1, and t2.b is a frame, as is the 2nd b, and both t1 and t2 are documents. The only one I can open up in ActionScript is the 2nd B. I choose the GetURL from Script Assist, and put in my desired address, as followsI then close out ActionScript, and Export it as an Image File. I name it flash.swf to replace the .swf with the same name on my server. When I publish the new changes, the page just says Menu. If I click on that,
View 2 Replies