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
Similar Posts:
Apr 4, 2012
I download "scrollbar_vfinal_2004 from this site and use it my own movie but when I test the movie, the text is not showing. Without text lay mask, the scrollbar works.
View 2 Replies
Aug 19, 2003
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).
View 4 Replies
Jan 22, 2010
AS3 Movie clip does not have .setMask() method, but it has .mask property. What is the syntax to set a mask on movie clip A (mcA) using movie clip B (mcB) mith .mask parameter in AS3?
mcA.setMask(mcB); // does not work in AS3 (no setMask() method any more)
mcA.mask = mcB; //does not do the job either
View 6 Replies
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
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
Jun 4, 2004
[FMX] I am having trouble loading an XML file on an external server into my flash movie when it is uploaded. The data loads in fine when the flash file is on my local computer with the xml file on a server. As soon as the flash file is uploaded the XML data will not load in.
View 2 Replies
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
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
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
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
Apr 30, 2003
I am creating a full site in flash. The main movie has an empty movie clip in the middle of the movie to load external movies as the user clicks on the links. Everything has worked good so far as the linking has only gone 1 level deep. However, when I created a new external movie, and had buttons on it for another external page, but yet to open in the main movie, I can't get anything to work. Example.... In the main movie, the user clicks on the archive link, and the external archive movie is loaded into the main movie. Now, on this archive movie, there is a button on it that links to a another movie (say text effects.swf). However, when they click this button for text effects, I can't get it to load into the main movie clip and replace the archive movie that was currenlty there.
View 14 Replies
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
Jun 3, 2011
I'm putting a mask on an image that is being animated around the stage which works fine, but when i change the mask using as3 the mask stops following the image and stays in one place.. while the image moves around the stage... is there a way to force the mask to stick on the image?
[Code]...
View 2 Replies
Mar 3, 2011
i have a 2 recangle movie clip with w:500 h:400 named (p1 , bs) ,and a i wanted to Mask those 2 movie clip with action sctrip, with a w:1000 h:1300 Recangle, named(Mask)i can do it if using the layer Masking, but i wanted to use action stricp to mask.
code:
p1.mask = Mask
bs.mask = Mask
but i cant do it , i cant mask those 2 movie clip at the same time ,it only work on bs.mask = Mask.i intention is to Mask those both movie clip,any idea what is going on ?
View 1 Replies
Jan 21, 2003
I have a flash menu (125 px x 600 px) on the left of a webpage. It consists of (15) buttons each of them havin' a onMouseOver-->getURL. When the mouse enters the flash movie (that is the menu) there is a mask button that moves along the y axis and when you move to a button in the menu the mask moves to that point. When you click on it it opens the URL in your browser. Now the problem is that when you leave the flash movie (menu) I want the mask to go to the upper part of the movie (menu).How can I do that?
View 3 Replies
Aug 7, 2009
I have Flash CS4 and I'm developing an RPG game. My goal is to dynamically change the weapon/armor the main hero has on according to what the player has on. I think the term is paper dolling. Basically I want to be able to set a point in which a graphic (movie clip/w.e) can be place permanently and I can load images to it via actionscript 3. I want the point to stay on the hero becuase I plan to move him and animate him and I want to be able to have it so that all it takes is me loading an image to the hero so it will basically "mask" over him. Hope you guys understand what I'm saying, I'm having a hard time figuring this out.
View 3 Replies
Mar 12, 2010
Is there a way to mask a movie clip in a way that alters the width and height of the object? I have a child movie clip that is larger in width so I'm having issues manipulating the width, height and coordinates proportionally of the parent movie clip.
View 4 Replies
Oct 6, 2011
have added a button in my flash movie to print a scrolled text , but when i press the button , it will just print the visible area of that textfield , and dont print the out of mask area . i want to print the whole of my text in that movie clip
View 1 Replies
Apr 17, 2003
I want to mask a movie clip with another one, the mask is a dynamic square which expands to the whole scene.Anyway, I wanted to now what is the relation between the layer of the masked movie and the mask itself,(should they be at the same level or not?) I use the above script:
_root.createEmptyMovieClip("mask", 22);
_root.createEmptyMovieClip("masked", 21);
masked.attachMovie("home_btn", "masky", 0);
_root.masked.masky.setMask("mask");
[code].....
View 3 Replies
Nov 16, 2006
I have a movieclip that contains code for an API drawing shape. I can use it to mask a movieclip containing an image but not a moviclip that contains a dynamic gradient.
Code:
// CREATE MASK SHAPE WITH DRAWING API
// create empty movieclip
[code].....
View 3 Replies
Dec 22, 2003
I have a movie clip that is a motion tween with a shape with fade... Now I want to put this mc as a mask .. and showing a part of an image with lot of this mc's I know that I have to use duplicate movie clip, but the mc as mask isn't working
View 2 Replies
Sep 10, 2010
I 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]...
View 2 Replies
May 15, 2009
I have a textbox that accepts information from the internet, and i turned it into a movie clip. However, when it moves, it goes on top of everything else and ignores the mask i put on it.
View 8 Replies
Nov 28, 2010
Is there a easy way to scale the part of a masked movieclip that the user sees to a specific height? I want to ignore the masked part but scaleX scales using the dimensions of the mask.I'm assuming you can do this using bounds and getting the difference but am having trouble figuring this out.
View 1 Replies
Dec 10, 2011
i made two movies clip movie named (masK_mc) and the other named (over_mc) what i need to do i need when i start drag with (over_mc) and when i moved over the (mask_mc) i need the part of mask_m which moved over by (over_mc) removed and show the bacground of (mask_mc) i made the part of drag and over but i need to know how i can remove part of movie clib when i over by over_mc
View 0 Replies
Aug 31, 2009
I've got a 3D tween I would like to apply a mask to but am having a difficult time doing so. I'm guessing this is as a result of the tween that is happening on the Z-axis..?if this is the case then setting a mask movie clip to one increment higher on the Z-axis and setting the mask MC's layer to Mask should work; it's not, however.
View 2 Replies
Mar 17, 2004
I have a duplicated movie clip and that layer is inside a mask. I would like to mask that but it doesn't work. I have uploaded the fla so you can take a look.
View 6 Replies
Dec 4, 2009
maybe 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.
View 3 Replies
Apr 8, 2010
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].....
View 3 Replies