Opacity Mask In Flash?
Oct 15, 2009is there such a thing as an opacity mask in flash? (like the one in illustrator--or something similar?)
View 5 Repliesis there such a thing as an opacity mask in flash? (like the one in illustrator--or something similar?)
View 5 RepliesI'm working with a Flash (CS5) presentation, so I have a "Next Slide" button on my app. Sometimes, I want to be able to fade in certain elements when I hit "Next Slide".My current way of doing this:
Create a MovieClip from a Rectangle with an opacity tween from 100 to 0 (with ActionScript to stop() at first frame).Copy and paste the MovieClip over the place where I want it to fade in, and give the instances a unique name.Add actionscript to the relevant keyframe of the slide with just rectangle1.play().This works fine when running. The only disadvantage is that once I have one of these rectangle MovieClips on my page, I can't see what's behind it, making it annoying to design the presentation.
what i am doing is to make something along the lines of the "scriptable mask" tutorial Inigo was kind enough to put up.My idea is to have a large mask behind the whole of my flash site, this masks a colour image with a black & white one (nothing tricky). The image I am using is actually 5 separate images combined, and each is a pic of certain parts of the site.I also have a very basic set of buttons along the bottom... each corresponding to each section.
All I want is to set it up so that when I mouse over the buttons, the _x of the mask moves to correspond with the correct image... really very basic... or so I thought .If anything it should be easier to do than what is in Inigo's tut (where he uses the _x of the mouse to move the mask)... i just cant seem to get it to work with a nice easing effect (its easy to get the mask to simply snap to each coordinate, but I need it to smoothly move).
I have an HTML document with a Flash object and an absolutely positioned HTML element above it. If I set the HTML element's opacity CSS property to any value less than 1, the Flash object (that is actually covered) receives mouse events. This problem cannot be reproduced with pure HTML elements. Furthermore, Flash only receives hover events, so I cannot click below the layer.I put a demonstration of the problem online.I get this behavior in Firefox 3.6, Safari 4.0 and Chrome 5.0 in both Mac and Windows. Flash plugin version 10 is installed.Is it a bug or the the normal and expected behavior? If the latter, then how can I prevent Flash receiving events when it is covered with a translucent layer?
View 5 Repliesnot sure if this is technically "actionscript"but i didn't know wher eelse to post iti need to place an flv on top of a background image, and i want to set the flv to have an opacity of like 30%-
View 4 RepliesCan we change the layer's opacity in flash CS4? Such as change the photoshop's layer's opactiy.
View 3 RepliesI have a startDrag function set up on a loader and mask that when the mouse is down on the loader it drags, when not it doesn't. There is also 2 buttons that control whether mask1 or mask2 is used. What i would like however is when the mouse is down - the area of the loader outside of the mask is visible but only by about 10/20% alpha, that way the user can see where all the image is while dragging. Is this possible? Full code can be seen below and i have attached the zip with the .fla file:
[Code]...
Just taking Koolmoves for a test drive and ran into a snag, I want to change the opacity of some shapes/objects that Ive created but I cant seem to find an option to adjust the opacity anywhere.
View 1 Replieshow to animate the movieclip opacity using Tweensy engine.
View 1 RepliesI'm trying to figure out how to make a slide bar that would control opacity. If I were to take to pictures on top of each other, the slide bar would control the opasity of the top image.
View 3 RepliesSuppose I have an image in the background with a white box over the image. What I am trying to do is get the box to oscillate it's _alpha property while diminishing to zero. Producing a 'twinkling' effect. I have the actionscript on the box_mc in an onClipEvent (enterFrame) function. Really there will be a lot of these boxes so the oscillation would have to be random.The code I have right now, which just lowers the opacity at a random rate - no oscillation is below:
onClipEvent (load) { h = Math.random();}
onClipEvent (enterFrame) { if (this._alpha>0) { this._alpha -= h;
}}
I have buttons inside/on window01/mc that are still active/clickable when the opacity is 0, I basically have a area on my website that if you click it opens the window corresponding to the button. how do I stop this? I only want the buttons to work when window01 is opacity 100. I'm not a pro at AS so please if you reply, walk me through it a bit or edit my code. [URL] just click in the blank black area below the nav bar and the window will appear. The normal way to get to this window is click products than the buttons.
Code: Select allimport gs.TweenLite;
btn06.addEventListener(MouseEvent.CLICK,f2);
function f2(e:Event){
[code]....
could someone point me in the right direction of how to pulse the opacity property. Math.sin on something and offset and scale the wave to run from 0-1 ?
View 2 RepliesI am trying to create a Photo Editor using Flash One of its features is to change the Opacity of the Image. Now my problem is how to change the Opacity of a bitmapData and save the image so that the resultant image has a changed Opacity.
View 2 Repliesmaybe point me towards a better way to mask. png file is way too big. I have been using the mask layer option to create my own mask around a jpg image by drawing around it on the mask layer. There has to be a fetter and faster way to do this. Is it possible to maybe have a specific color range have an alpha value of 0. Similar to green screening whereas If I put the item I want to clip on a green background flash will auto take out the green for me. and by auto I mean action script maybe. I think this can be done but im not finding it.
how are these guys clipping these images [URL] they have the movie clips set up where the black background on the 3 layers of shoes is getting masked out. When I go into the shoe movie clips I see there is a black background but it just disappears when I go back to main timeline.
ive gotten one movie clip to mask another in the actions frame but i cant seem to be able to mask the flames which are a shape with a movieclip in this as file. im not getting any errors but the mask isnt covering anything look near the bottom at s.mask=mask_mc; there are about 20 "s" shapes spawning per second if that has anything to do with it
Code:
//this package turns an mc into a flaming button that calls a javascript function
package
{
import flash.display.MovieClip;
[Code].....
I have a plan of a park and want to make some different zone (red, green, blue, etc.) I know how to make them but dont know how to put them to 50% of opacity.
View 3 RepliesI have 22 rollover buttons that are a tint. On the rollover, I want the button (75px square) to disappear. On the rollout, I want it to display it's original state.I can't use visibility because it causes a flicker. When I use alpha it resets the opacity to 100% regardless of the number I set it to - e.g. rollover {button.alpha = 0;} / rollout {button.alpha = 50;} still results in a solid box.
View 5 RepliesI was wondering if there is a way to set the opacity of an object similar to the .setRGB thing..
View 14 RepliesI'm trying to "fade" out a movie clip when I click on another movie clip. I know how to change the visibility to false or alpha to 0, but I want it to do this gradually rather then instantly.This is the code I currently have placed on the movieclip I'm using as a button, I am only trying to fade the SolidPurple, everything else is working exactly like I want it to...
Code:
on (press) {
this._parent.holderGreen.attachMovie("PathGreen","PathGreen2",1);
this._parent.SolidBlue._visible = false;
this._parent.SolidOrange._visible = false;
[code]....
(NOTE: I often mix up weather opacity means "fully visible" or "fully invisible". Is Opacity the same as alpha, or the opposite? Just to be safe, I'm using the word "transparency" instead.) Let's say you ask for a color, and I hand you 0x52BD86
Assuming you were wanting a "regular" color, I just handed you a nice little bluish color. However, assuming you wanted a "32 bit" color (that is, including an alpha channel) I just handed you a completely transparent color (0x0052BD86 to be precise), so it really doesn't matter what the visible color was, it's still going to be invisible.That's why AS3 BitmapData has separate methods "setPixel" and "setPixel32".
Would it not be better to have the first 8 bits be a "transparency" value, so instead of 0 being invisible and 255 fully visible, flip them, making 0 completely visible, and 255 completely transparent? That way, if I hand you 0x52BD86, you can basically assume I mean completely visible. Then we won't even need separate functions for 32 bit colors. But, this probably goes deeper than AS3, and likely would mean changing the way color is treated throughout the last couple of years, or? Is there any reason they created the alpha bits like that?
I want to have an object start off with an alpha of 0 but then opacity in to 100% later on the timeline BUT I have to use Actionscript.
View 6 RepliesI'm about to put my fist through the screen when trying to smoothly fade images together or lower an image opacity. The alpha is all the same throughout the tween. If I slide the alpha down on one keyframe, the entire tween's opacoty lowers instead of changing over the tween timeframe. I've resorted to using mask wipes.
Is there anyway to fade an image into another one or lower the opacity on a jpg? I'm stuck and can't figure it out. When I drop my image into the stage, it's a bitmap. There is no option to change it to a movie clip.I think when I create a tween, it allowed me to make a movie clip, I switched the graphic to a movie clip, but the alpha still didn't work.
how to describe what I want, but here goes. Assume I have 3 textboxes, and I enter some colour hex code in the first one, I want to apply a black layer on top of it, and have the opacity set to 50% and get the resulting colour in the second text box. Same thing, but with white on the third one.
Let me explain: consider this image below: In Photoshop, I have the base layer which is sort of sky blue in colour. I create two layers on top of it, one with black, one with white but both have an opacity of 50%. Now, I can use the colour picker (I) to simply select the two wanted colours.
I am having to do this an insane amount of times so I was wondering if I could produce it programatically.
I know, Ideally I should have tried out something, then give out the code which isn't working.. but this has stumped me enough that I don't even know where to start. The closest thing I've seen is Kuler so I think it is possible in flash at least, but then again, I don't know where to start.
Technology is not important to me, solution is - I am most comfortable with c# (at least I like to think I am) but I am a beginner in php, flash. Jquery, I am good at it with most stuff (well, who isn't?) - Php and Flash, I learnt it as a hobby just to familiarize myself.
I have buttons inside/on window01/mc that are still active/clickable when the opacity is 0, I basically have a area on my website that if you click it opens the window corresponding to the button. how do I stop this? I only want the buttons to work when window01 is opacity 100.
[URL]
just click in the blank black area below the nav bar and the window will appear. The normal way to get to this window is click products than the buttons.
Code:
import gs.TweenLite;
btn06.addEventListener(MouseEvent.CLICK,f2);
function f2(e:Event){
navigateToURL(new URLRequest("http://www.jmoneyaudio.com/"), "_self");
[Code].....
I was wondering if there is a way to set the opacity of an object similar to the .setRGB thing..
View 14 RepliesI have created a button with an instance name of 'ClickMe' and also five buttons each with thier own instance name (B1-B5). I want to change their opacity to zero onclick preferably as a tween from where they are now in opacity (100%) to the zero. I need some assistance with this. I know it involves importing classes and creating a function. I also believe I can control the set of 5 buttons with iteration.
ClickMe.onPress = function() { for (var i=1; i<=5; i++) { ['B1_'+i].changeopacity = MyMC!['B1_'+i].changeback; }
I know this isn't how to do it, but is something along the lines of what I need.
I'm new to Flash and I am having trouble getting this alpha tween to work correctly. It fades and then sometimes returns to full opacity. If I keep clicking the button it will eventually ease out and stay transparent.
var myalphaTweencornerout:Tween = new Tween(corner_btn, "alpha", Regular.easeOut, corner_btn.alpha, 0, 1, true);
I was wondering if its possible to mask multiple MC or Sprites under one mask, when using AS3.abc.mask = a;cba.mask = a;something like that
View 2 RepliesI am new to AS and stucked in a situation. I have a keyboard in which all grayed keys are single image but another layer have all active keys as separate movie clips. What I need to do is get external variables and make the opacity of relevant keys to 100% rest buttons should have opacity 0
like i receive variables key1= F10, key2= R key 3= pgdwn on flash file only these 3 movie clips will have opacity 100 rest all should have opacity 0. external variables can have any number of variable keys ( like 1 key to full keyboard).