Use Semi-transparent Mask On External Swf?

Sep 12, 2009

I want to use semi-transparent mask on external swf for smooth transition. I'm using

clip.cacheAsBitmap = true;
mask.cacheAsBitmap = true;
clip.setMask(mask);[code].....

it doesn't work... what am I doing wrong?

View 7 Replies


Similar Posts:


ActionScript 3.0 :: Set Alpha On Semi Transparent Png?

May 3, 2009

I've been developing in AS2 for a few years now, and I'm learning AS3 at the moment. I ran into a problem about setting alpha on a PNG image.

I have a movieclip that holds a semi-transparent PNG image which comes straight from the library. Now I want to edit the alpha property of the movieclip. In AS2 it all works fine but when I set the alpha property in AS3 all semi-transparent pixels in the PNG image will fill with black first; then the alpha setting is applied.

Do I need to save my PNG's in particular way or do I need to edit settings in Flash to display correctly?

View 1 Replies

Professional :: Semi - Transparent Box That Can Execute Php Commands?

Feb 10, 2010

I am trying to find out if it is possible to a) create a semi transparent box in flash, b) motion tween that box into place, c) subsequently use it to run forms and PHP scripts (connect to a MySQL instance, ect). I know that an exact answer to c) will be long and complex, so a simple (general) yes or no will suffice... but if someone could point me in more detailed direction with a) and b), If you need to see the actual project I'm working on, or if I need to clarify my questions,

View 1 Replies

ActionScript 3.0 :: Glowing Semi Transparent Objects?

Oct 8, 2009

Once I have a semitransparent object (with alpha not equal to 1) and put a glow filter on it, the glowing area is visible not only near edges of an object, but also under the object. It changes the whole look of an object, while it (probably by my logic) only should have changed the look of edges.

how to glow (or drop shadow) only edges of an object?

View 2 Replies

Flash - Adding Semi Transparent Grey Rectangle Behind Popup?

Nov 30, 2010

I'm trying to make a modal pop up in my Flash application, not unlike the ASP.NET version seen here. I've already got the dialog box made, but I'm trying to add a semi-transparent gray rectangle over everything behind the pop-up, again like the one used in ASP.NET. Is there a way to do this in ActionScript? It needs to be semi-transparent, not fully, so you can still partially see what's behind it. I'm assuming you could apply this property to a Shape class somehow.

View 3 Replies

ActionScript 3.0 :: Semi-transparent Shape Stopping Mouse Events

Oct 3, 2010

I'm a bit boggled by a MouseEvent/layering problem.

I have a filled Shape, with alpha 0.5, on top of a Sprite. The Sprite has various MouseEvent listeners attached to it.

I'd like the user to be able to click on the Sprite. Unfortunately, Flash doesn't pass the events to the Sprite. (It does, of course, if the shape is unfilled.)

Is there any way to tell Flash to treat this object like an unfilled object, rather than a filled one, for the purpose of MouseEvents?

View 5 Replies

ActionScript 3.0 :: Full Browser Image With A Semi Transparent Background?

Aug 24, 2009

Currently I have link on an HTML page, and when the link is clicked, it opens a flash movie with slideshow and a semi transparent black background. The way I have it set up is as follows

CloseButton.as (the close button for the slideshow)
FullBackground.as (the black background)
MainContent.as (loads the slideshow)

then I have

main.fla (loads the CloseBtn, FullBG, and MainContent)
preloader.fla (loads the main.fla .swf)

View 1 Replies

Use Transparent BitmapData As A Mask?

Sep 15, 2010

I have a BitmapData object created dynamically that contains user-drawn shapes. I then attach that BitmapData object to a MovieClip via a Bitmap object and set that MovieClip as a mask to another MovieClip. The mask works but the whole bounding rectangle of the BitmapData is acting as the mask. But I want to exclude the transparent portion from the mask so only user-drawn shape can be set as mask. Can anyone tell how to achieve that?

View 3 Replies

ActionScript 2.0 :: Make The Mask Transparent?

Mar 9, 2006

I made a blind effect but when i play this effect it show the white strip on the clip which look's very bad. Is it possible to make the mask transparent so the background look same only the text is hidden omn which the effect is implemented.All of this thing are done in action script.

View 3 Replies

Professional :: Mask / Masking Using An Image With Transparent Bg?

May 30, 2010

Flash CS4 AS2 Okay -I have a flash movie, and I want to apply a mask to it.  The mask I want to apply, or rather, the "shape" of the mask I want to apply is an external image that was made in photoshop.  The shape is an irregular one with a bunch of jagged edges.  the shape itself is solid, with a transparent background.  I've tried saving it as a PNG with transparent b/g, and I've tried importing the PSD file directly into Flash - however  - when I go to use this shape for a mask, the mask that is applied is an entire rectangle bounding the imported image - rather than along the edges.Hopefully you can see what I'm trying to do here, and perhaps offer some insight on how I can get this image into flash (let's stick with the idea that the jagged edged manner of the image is too difficult to recreate inside of flash).

View 13 Replies

AS3 :: Mask Objects With Dynamic Transparent PNG Files In Flash?

Feb 7, 2012

i want to mask objects with dynamic transparent PNG files in Flash Action Script 3.0

View 1 Replies

Flex :: Use Transparent Images To Mask Images And Add An Eventlistener?

Sep 2, 2009

the easy part is to create the image and the mask for it:

// The jpg
var elementImage:Image = new Image();
elementImage.source = "/assets/materials/9/main-body.jpg";

[Code].....

but that's not working here. the event listener reacts even if i hover over the trasparent parts.

if i draw an vector graphic and use it to mask the image it works just fine...

View 3 Replies

IDE :: External SWF Loading As Transparent

Feb 23, 2009

I have a swf called scene0 which loads a swf called scene1 when a button is clicked. Scene1 just has some static text on it. My problem is that I can see scene0 through scene1, where what I want is for scene1 to cover scene0 so that it's hidden. I've tried changing the stage colour on scene1, thinking that the default white might be interpreted as transparent, but that didn't work; and I tried drawing a coloured rectangle covering the whole stage of scene1, but that didn't work either. For some reason the rectangle is... invisible. Or something.

View 1 Replies

Actionscript 3 :: Loading External SWF's With Transparent Background?

Apr 13, 2010

Just to get some professional opinions, is it possible to load in an external SWF and set that SWF's background to transparent?

This question has nothing to do with embedding the SWF in an HTML page. I already know that setting the WMODE to transparent will create a SWF with a transparent background in a browser.

View 2 Replies

ActionScript 3.0 :: Wmode Transparent And External.interface In IE

Aug 10, 2009

is there anyway to get the External.Interface.call functionality to work in Internet Explorer 7 when you have wmode set to transparent on the flash object in question?I've tried pretty much everything under the sun I can think of without any success after a long time browsing the net for fixes. I should point out that I get the calls to work in chrome and firefox with identical code and that it also seems to work in ie if I dont have wmode set to transparent.Essentially what I want to accomplish is to have a flash dropdown menu set to transparent so it can go down over html content without covering it and then using external.interface to resize the div the flash object is contained in when the mouse goes off or on the menu. In doing so making the html content accessable again when the mouse goes off the menu.

View 8 Replies

ActionScript 3.0 :: External.Interface In IE When Wmode Is Transparent?

Aug 13, 2009

I was wondering if there is a way to get the External.Interface.call functionality to work in Internet Explorer 7 when you have wmode set to transparent on the flash object in question?I've tried pretty much everything under the sun I can think of without any success after a long time browsing the net for fixes. I should point out that I get the calls to work in chrome and firefox with identical code and that it also seems to work in ie if I dont have wmode set to transparent.Essentially what I want to accomplish is to have a flash dropdown menu set to transparent so it can go down over html content without covering it and then using external.interface to resize the div the flash object is contained in when the mouse goes off or on the menu. In doing so making the html content accessable again when the mouse goes off the menu.

View 2 Replies

ActionScript 1/2 :: External Png As Mask?

Apr 7, 2009

I have several pngs I need to load as masks. The user will be making different selections that requires these to be external images. I've managed to get the png working as a mask just fine when I physically place it on the timeline and assign cacheAsBitmap=true to both it and the mc to be masked. But when I try to load the png using loadMovie... it no longer behaves as a mask...

View 7 Replies

ActionScript 2.0 :: Mask External Swf With Png?

Mar 29, 2005

I'm trying to mask an external swf with a png file. I searched and experimented,but to no avail...Found this code by claudio, but can't get it to work,it just won't mask!:

[AS]function preload() {
var t = container.getBytesTotal(), l = container.getBytesLoaded();
if (t && l == t) {
clearInterval(myInterval);

[code]....

View 10 Replies

IDE :: Drag-and-drop Recognize Transparent Areas Of External PNGs?

Jan 21, 2009

I have a simple Flash movie which loads several external PNG-24 images into movie clipsEach movie clip is partially transparent (using alpha transparency), and made drag-and-droppable. Everything works properly except that for each movie clip, I am able to drag and drop the clip using the transparent space around the image. I want the "grab-able" area of each clip to correpond to only the non-transparent areas of the PNG, not a rectangular box around each movie clip.

View 2 Replies

ActionScript 3.0 :: Wmode: Transparent - Stops The Displaying Of External Images

Dec 18, 2010

My flash piece loads an external image depending on the XML that gets pulled in. The problem is that it sits in with a busted *** calendar that won't let me z-index until the wmode = invisible. When I change it from "window" (aka default) to "invisible" my external images do not load in but the stage assets remain. So external images appear in window mode. Do not appear in invisible / opaque mode.

[Code]...

View 1 Replies

Actionscript 3.0 :: Datagrid + Mask + External SWF?

Apr 21, 2009

i've a problem with the datagrid component. i have a main swf with a mask. this main.swf loads the sub.swf into the mask. when my sub.swf has a datagrid object in it, it shows me the component, but the content is empty! and i can also trace the content. so the datagrid isn't the problem. the sub.swf runs perfectly in standalone mode ... but not if i load it into a mask!

View 1 Replies

ActionScript 2.0 :: Gradient Mask In External SWF?

Dec 12, 2008

so I have the gradient mask set up going on in a external swf called "rates". In the main timeline of the main swf "cwsite" I load "rates" into a empty movie clip entitled "windowloader". Unfortunalty when I preview the whole site, everything loads but the gradient mask isnt working. If I just preview the rates swf, the mask works.This is flash player 9 with AS2. Here is my gradient mask code in the rates swf:

Code:
_mask.cacheAsBitmap = true;
main.cacheAsBitmap = true;

[code]......

View 2 Replies

ActionScript 2.0 :: Load External Images Into A Mask?

Apr 1, 2007

I have 6 frame labels on my stage and on each one I have a mask animation, it's the same animation but on each frame label loads a different image, basicaly the image just fade's into the mask. I was hoping to try and do this with actionscript, just not sure how. Would also like to load the images externally too if possible.

View 1 Replies

ActionScript 3.0 :: Flash - MASK An External .SWF Movie?

Sep 18, 2011

I am using external .SWF movie on stage by using the following code. I want to mask some of the portion of this movie. How can I mask an external movie?

Code:
var mySwf1:SWFLoader = new SWFLoader("Clock.swf", {width:200, height:200, x:-300, y:-300, container:this, onComplete:completeHandler1});[code]....

I have entered the code on on Layer2 and created a MASK (Circle shape) on Layer1 and selected the MASK option by right clicking on Layer1. But It did not work.

View 2 Replies

Professional :: Transparent Background Is Not Working With Vmode Transparent?

Oct 17, 2010

I imported a video into flash and have a transparent photoshop layer to create an iPod skin. The video works fine, but I cannot get the "stage" to be transparent so that you do not see the flash background color behind the iPod skin.
 
I've read in the forums and have followed the instructions here from Adobe. If you look at my code, I have

[Code]...

View 6 Replies

Actionscript 3 :: Draw Transparent Graphics Onto Transparent BitmapData?

Feb 5, 2012

I'm trying to draw PNGs onto BitmapData that is transparent.

I create my BitmapData like this (using ARGB for the color):

new BitmapData(width, height, true, 0x00000000);

And clean it by using the same ARGB value:

bitmapData.fillRect(bitmapData.rect, 0x00000000);

When I use copyPixels() to draw graphics onto the cleaned BitmapData, I get this result:

If I don't use ARGB for the BitmapData color, it works fine:

But I have to specify a solid fillColor, meaning I can't render what's behind the Bitmap.

How can I make my BitmapData transparent, but not have the above occur?

View 1 Replies

Professional :: Make A Semi Trasparent .swf?

Mar 25, 2010

Can you export a semi transparent .swf? I need to send a .swf file with 70 percent opacity that will eventually be an overlay over a video.

View 1 Replies

Actionscript 3 :: How To Draw A Semi Circle

Jul 27, 2010

using action script how to draw a semi circle...i need to add tha semicircle in another circle the circle looks like this ![alt text][1] how to draw a semi circle inside that circle

View 1 Replies

Professional :: If Use Mask Tool For Video Clip The External Loading SWF Files Disappears?

Jun 21, 2010

I have masked the video clip. The masked clip is working fine. But the Actionscript 3, which contains 2 more SWF external movie clips not loading those files. Once I remove the mask they start working.

View 9 Replies

ActionScript 3.0 :: Semi-idle Question About For Each Instances?

Jun 15, 2009

when you iterate through an array using for / each, assuming the elements in the array are primitive types, the looping var takes on the type and value of each item, but is not a reference to the item.

Code:
var arr:Object = {a:1,b:2,c:3};
for each (var a:int in arr) {
a++;

[code]...

This differs from the behavior of PHP5, for example, where even though most objects are passed by reference automatically, objects within foreach loops are treated as copies unless specifically passed as &references like

PHP Code:

foreach ($arr as $key=>&$b) {}

Is there any way to get AS3 to do the decent thing and give you a choice whether subarrays are passed as references or not, without resorting to making ByteArray copies of your objects for every iteration of a loop?

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved