ActionScript 3.0 :: Is An MC Clickable Under A Mask
Aug 27, 2009
I have a movieclip that sits underneath a mask. I have set up an event listener to listen out for the MouseEvent.MOUSE_DOWN on the movicelip in question but the handler doesn't fire whilst the MC is under the mask.. When I remove the mask everything works fine. So my question is this: Is a MovieClip clickable under a mask? If so - how do you do this?
View 4 Replies
Similar Posts:
Jul 26, 2011
I am trying to do panning of a movieclip I have two movieclips on stage. canvasPanel_mc and mask_mc. The former is the maskee for the mask (mask_mc). Inside mask_mc there is a movieclip dragCanvas_mc. The alpha of dragCanvas_mc is set to zero. This is code that I am using:
mask_mc.dragCanvas_mc.addEventListener(MouseEvent.MOUSE_DOWN,onStartDrag);
mask_mc.dragCanvas_mc.addEventListener(MouseEvent.MOUSE_OUT,onStopDrag);
mask_mc.dragCanvas_mc.addEventListener(MouseEvent.MOUSE_UP,onStopDrag);
[code].....
View 2 Replies
Jul 27, 2011
Making a Movieclip which is set as mask clickable and respond to MouseEvents
The structure of your layers that I have on stage looks like this[code]...
View 2 Replies
Sep 11, 2009
I'm having a really strange problem with movieclips that use a mask for reflection. On my main timeline I'm creating two instances of a movieclip named 'item'. In item.as I'm setting buttonmode and cacheAsBitmap to true, then setting a gradient movieclip as a mask. When I run the movie I am only getting the clickable hand icon when I hover over the first clip. However, if I comment out 'this.mask = mask_mc' then both clips are selectable.
Main Timeline
Code:
Select allvar item_mc = new item();
item_mc.x = 0;
item_mc.y = 100;
addChild(item_mc);
var item_mc2 = new item();
[Code] .....
View 5 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
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
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
Nov 26, 2009
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 Replies
Jul 10, 2009
I'm obviously a Flash novice. I have a simple movie that I need to modify. On click (or double click) I need to have a web site open in a new window. I am using CS4. I have tried adding a button and associating action script with it. I usually get a message saying that action script cannot be applied to the highlighted object.
View 5 Replies
Nov 23, 2010
Problem is: right on the top of the site, there is a straight line and then with "x" and a round circle as if it's trying to open.
here is the attachment[url]...
Another thing this lightbox doesn't work in IE 8.
View 2 Replies
Jan 9, 2010
My Error was:
1120: Access of undefined property adclicker.
After I was creating a symbol and writing the following code on to the frame:
Code:
adclicker.addEventListener(MouseEvent.CLICK, callLink);
function callLink(event:MouseEvent):void
{
[Code]...
Solution:
I had to change the INSTANCE name to "adclicker" and not only have the symbol with that name!!!
- Choose the button -> Properties -> Instance name: "adclicker".
View 8 Replies
Jul 8, 2010
I have a MC with a hole in it, graphically speaking. I need something behind it to show through the hole. The MC has a button embedded in it, so its clickable. But where the hole is I am not getting the button finger when I play it.My button hit area covers the hole, but it won't recognize it apparently.URL...Its the 2 bluish polygons on the map.
View 1 Replies
Jul 9, 2009
I am having some difficulty creating a SWF file that had a FLV embedded that is completely clickable at any point during the video. Created a new Flash document and imported the video, using the "Progressive download" option. I have tried everything from adding layers with click instances (http://forums.adobe.com/message/256259#256259) to making a button the size of the video that is set at 0% alpha.Every time I either get the video playing that is not clickable or i get the flv icon flashing (no video) that is clickable, or I get the flv icon flashing and it is not clickable at all.I am using CS3 and just looking for a video banner ad.
View 5 Replies
Dec 3, 2009
On website [url].... you will see a big flash screen and on right 4 small flash images in a small box. How do they make small image clickable to another page? Also how do they have square follow image?
View 1 Replies
Nov 1, 2011
I'm using addchild to load an external swf into a swfContainer, but i realize that all the buttons and text links doesnt seem to be working anymore....
///////////////////////
swfContainer.addChild(loader);
////////////////////
I try not loading it into a movieclip instead i load in on stage addChild(loader); and everything works fine and why is that happening?
View 4 Replies
Aug 2, 2010
Is it possible to load a SWF into another blank SWF file and make it clickable? I have a (parent) flash which has a clickable transparent button on it and i am trying to load another external flash into this to make as clickable.
The external loading is working, but its not clickable. Without the external flash, the parent is clickable.
View 1 Replies
Sep 23, 2010
I was sent an swf ad for my website and when I mouseover it I get the click hand symbol but when I click a page loads with an error saying that the page cannot be found.
I tried to place an a href tag around the entire swf file but I get the same error. Is there a way to fix this without having the flash file?
View 1 Replies
Apr 13, 2007
The PHP script below basically returns variables myImage0, myImage1, and so on. I know how to get the variables (URL's) into flash, and I know how to load the jpegs associated with each URL. What I don't know how to do is make each movie clip clickable, and be able to use geturl so that when they are clicked they can go to whatever.
[Code].....
View 1 Replies
Sep 29, 2011
iam using media display for display video , and media controller for controlling flv video, i want the seek bar to be clickable ,i made the clicking,but how to make the video to jump to the clicked time line. iam editing the mediacontroller.fla in .../en/components/ and coverting it into swc and using it
on(release)
{
var mcli = _parent._tray._xmouse;
[code].....
View 1 Replies
Jul 15, 2002
I was wondering if there was a way to stop a button from being clickable. Lets say the user has been idle on a site for 5 minutes. I want to flash movie to through up a translucent cover on the buttons and make the buttons not clickable.
View 3 Replies
Jun 15, 2009
I'm creating an xml generated gallery/menu, I have the gallery and menu populating fine but my issue arises when I try to make the menu items clickable.
This is inside my populate menu function
_root["mainMenu"+[i]].onRelease = function() {
trace(this);
var splitThis:String = this
var splitThisArray:Array = splitThis.split("Menu");
trace(splitThis)
trace(splitThisArray[1])
};
Now the trace output I get is
_level0.mainMenu1
_level0.mainMenu1
undefined
Although when I set splitThis to "_level0.mainMenu1" manually I get "1" or whatever number comes after "Menu".
View 2 Replies
Jul 29, 2009
So I got this AS3 game thats completely written in Flex without the .fla file and I want to put a clickable button that links back to a webpage to the mainmenu screen.
In the IDE and AS2(which is what I usually work in), it was just simply:
Drag button onto the screen Convert it into a button symbol and then do this:
Code:
on(release)
{
getURL("http://www.urlhere.com",_blank);
}
[Code].....
View 2 Replies
Mar 7, 2011
I created 3 buttons in flash (biography, music, contact). Whenever you hover over them,they animate. Is there a way to make these clickable objects in Dreamweaver? I've searched and found out about the 'invisible button', but this doesn't work for me because it takes away the animation I created.
View 2 Replies
Jun 10, 2011
I have dataGrid that is pulling data from an XML file. How do I make each data row clickable and load 1 of 3 SWF's (depending which you pick) onto the stage.[code]...
View 1 Replies
Aug 27, 2008
trying to bring in a list of people from an XMLdocument when a button is pressed, and once that list is broughtin, I want to make each name clickable so that a reader can findout more information about that person (the text of which wouldalso be from an XML document). The first part seems fairlystraightforward (see coding below; Im not sure if this isthe best way to do it, but it seems to work). Im stumped,though, about how to do the second part (make the names clickable).
View 5 Replies
Aug 24, 2009
I am creating a survey in flash to survey people's opinion about the temperature in a building. What I am hoping to do is have a scale which the surveyee can click on (see attached image) with 5 options from Too warm, warm, just right, cool, and too cold, and record where on the scale they click.
For example, if "Just Right" were correlated to an answer of 3 and "Warm" was correlated to an answer of 2, and a user were to click halfway between the two, I would want the recorded value to be 2.5. If they click closer to "Just Right" I want the recoded answer to be 2.8, etc.
It seems that the quick and dirty way I can think of doing this is to create a serious of invisible buttons over my scale which can then tell me where they click, but then I am limited in the granularity of the answer and it would just be a pain to create that many buttons.
View 3 Replies
Sep 2, 2009
I'm trying to simply dynamically load an image (or movie) and if the user clicks on it a web page is loaded.I have successfully been able to dynamically load an image but nothing happens when I click on it. I'm using Flash CS4 with AS 2. Here's my code
myPlayer.stop();myPlayer.unloadMovie(0)[code]....
View 3 Replies
Sep 21, 2009
I have a layer of buttons and then on top i have this overlay that fades on at times.While that overlay is there all the buttons under it are still clickable and the cursor still changes to a hand. How can i make the buttons not clickable when there is an object on top of it?
View 1 Replies
Dec 29, 2009
Just got started with Flash again after several years of not using it. I am familiar with the layout when I set it to "classic" but for some reason I can see the timeline area, but it is grey and I cannot create any frames or click anything in that area.
View 1 Replies