ActionScript 2.0 :: Transparent Areas Of Movie Clips - Clicking Buttons Underneath

Jan 23, 2004

I've got a movie clip with masked-out areas. It's placed on top of various buttons. The idea is, the user rotates the top movie clip to reveal stationary buttons beneath it. Where there's a hole in the top movie clip, i'd like the user to be able to click the button revealed below.

It's looking like that's not possible. The buttons underneath cannot be activated, because the top movie clip is in the way, despite the transparency from the mask. I'll begin thinking of a Plan B workaround, but first I wanted to ask if there's a way I'm not thinking of to do my Plan A.

View 2 Replies


Similar Posts:


ActionScript 2.0 :: Transparent Areas Of Movie Clips -- Clicking Buttons Underneath?

Jan 23, 2004

I've got a movie clip with masked-out areas. It's placed on top of various buttons.The idea is, the user rotates the top movie clip to reveal stationary buttons beneath it. Where there's a hole in the top movie clip, i'd like the user to be able to click the button revealed below.

It's looking like that's not possible. The buttons underneath cannot be activated, because the top movie clip is in the way, despite the transparency from the mask.

I'll begin thinking of a Plan B workaround, but first I wanted to ask if there's a way I'm not thinking of to do my Plan A.

View 2 Replies

ActionScript 2.0 :: Buttons 'underneath' Movie Clip Still Clickable?

Apr 12, 2010

I made a help screen that pops up when the user clicks the "help" button. To accomplish this, I place the movieclip on the top layer, and set it's _visible to false. When the user clicks "help", visible = true, and BAM, help screen appears. The problem is that all of the buttons underneath my helpPage movieclip are still clickable.

View 2 Replies

ActionScript 3.0 :: Put On The Stage A Png File With Some Transparent Areas?

Dec 24, 2011

I wanted to put on the stage a png file with some transparent areas, unfortunately it weight too much.So instead I thought I'll create a shape object and use jpeg image as it's mask...

This is my code:

Code:
package {
import flash.display.Bitmap;
import flash.display.Shape;

[code]....

And it doesn't work, can I use jpeg images to mask the shape at all?

View 2 Replies

Multiple Movie Clips On Stage - Buttons Not Working In Movie Clips?

Jul 15, 2009

I have multiple movie clips on stage (all in separate layers, of course) as well as buttons on stage to play each movie clip. There are buttons inside each movie clip. The problem is that the buttons inside the top layered movie clip work, but the others in the movie clips below don't.

View 2 Replies

ActionScript 3.0 :: Transparent Pngs In Movie Clips Used As Masks

Dec 3, 2009

i have a transparent (in places) png in a movieclip, can i use that png in the movie clip as a mask? i have seen lots of ways of creating compositions but i need the mask movieclip on the top to be able to mask a movieclip underneath that has lots going on animation wise? is this possible. i dont need answers i just need the right direction or a yes or no, i fail to believe i cant copy the bitmap data of a movieclip (and the transparent png images in it) and then use that as a mask

View 4 Replies

Ignore Mouse Actions On Transparent Areas Of A PNG Using Flex Image?

Jan 5, 2012

I made a simple test Air application to try different approaches to masking or using hitArea to ignore mouse events over transparent areas of a PNG. Can't seem to find the right mix of things to make it work, nor could I find a succinct example on the web.Clicking on the transparent areas of any of these methods don't result in the click getting handled by the background.Here's the code I have:

<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark" [code].......

View 2 Replies

ActionScript 3.0 :: Getting Display Object Dimensions Including Transparent Areas

Dec 20, 2010

I'm having troubles getting the dimensions I'm looking for for a given display object. This display object has some transparent area to the top-left of the opaque content but to the bottom-right of 0,0. As such, the display object's reported width ONLY includes the opaque area, not the transparent area. For example:

Code:
var myChild:Sprite = new Sprite();
myChild.graphics.beginFill(0xff0000);
myChild.graphics.drawRect(100, 100, 100, 100);
myChild.graphics.endFill();
trace(myChild.width);

This reports 100 as the width and height. I need to somehow retrieve 200 as the width and height.

I'm trying to take a bitmapdata snapshot of the display object, but when I do new BitmapData(myChild.width, myChild.height) and then draw into it I don't get the full opaque content of myChild drawn because the dimensions are too small.

View 3 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

Using Multiple Movie Clips For Separate Buttons And Mouse Over Buttons?

Nov 24, 2009

I am using Flash CS4 with ActionScript 3 and I am fairly new at it. I am struggling with two things.
 
1. How can I start a movie clip while scrolling over a button? I know how to start a movie clip when a button is clicked.
 
2. How can I use multiple movie clips for seperate buttons?

[URL]

View 3 Replies

ActionScript 2.0 :: Unload/Load Movie Clips In Parent Movie From Buttons In Child Movie?

Feb 12, 2009

I Have 3 Movies:MAIN.SWF, contains loading movie actions for Nav.swf and Home.swf.NAV.SWF, contains navagation menu loaded on Level 2 in Main HOME.SWF, contains slideshow for home page loaded on Level 1 in Main In NAV.SWF, there is a MOVIE CLIP "graphmc", which contains a BUTTON "graphicbtn", When this button is clicked, I'd like the HOME.SWF (which is loaded into Main.swf on Level 1) to fade out and unload, and load and fade in Graphics.SWF in place of it.

View 6 Replies

ActionScript 2.0 :: Disabling Buttons Underneath?

Apr 15, 2009

scenario: user rolls over a button, "something_mc" covers the entire flash movie, but buttons underneath that "something_mc" are still active. how would i disable the buttons underneath until user rolls off of "something_mc" (and in doing so reactivates the buttons).looks like most search options here bring up when another .swf is loaded ontop of another. my situation is if everythings in the same movie.

View 1 Replies

How Are Buttons Working Underneath A Layer

Dec 3, 2009

I am really struggling, I have some buttons on layer 0 I then have a pop up box on layer 1 that covers the buttons. However the buttons are still active underneath.

View 9 Replies

Movie Clips And Buttons

Mar 12, 2009

i just started tackling Flash and Actionscript 3.I know how to have a button react to a click by going to and playing (gotoAndPlay) a certain set of frames within the same scene [code].themselves are in a movie clip, and the "aboutpage" frames are in another movie clip back outside in the main timeline... How do I tell it to target that other Movieclip thats on the main timeline and contains the frames called "aboutpage"?Ive seen somethign like: currentTarget.gotoAndPlay ("aboutpage");But currenttarget i think looks for stuff within the target/Movieclip it lies in.. what is the code to do this:

View 2 Replies

ActionScript 3.0 :: Cant Use Underneath Buttons Because LAYER1 Button Is Blocking Their Functionality

Oct 28, 2010

lets just say in simple words that i hve on a layer(lets say LAYER1) a button that on rollover moves an other set of buttons which are on an other layer underneath the first layer(LAYER1).the problem is that i cant use the underneath buttons because the LAYER1 button is blocking their functionality

View 3 Replies

AS2 :: Connect Swf With Buttons And Movie Clips

Mar 14, 2009

I have connected 2 pages to the index page with movieclips and buttons. I have used this action script on the button "fotoalbum"; [code]This takes me to the page called "bilder".My question is: how do i get from the flashpage "bilder" directly to the other page called " tekst" using the button "om meg"? As it is now i have to use the Home button to go back to the index page...and from there to the other pages.I have attached some test files as im sure my explanation is a bit akward.

View 3 Replies

ActionScript 3.0 :: 50 Different Buttons With 50 Different Movie Clips?

Mar 5, 2009

I'm creating a timeline of events with about 50 different points to click on. When each event is clicked on, a movie clip needs to appear (or tween onto) the screen. Then, when another event is clicked on, the previous content needs to go away so that the new content can appear.

A prefect example of what I'm talking about can be seen here:

[URL]

I've created a custom class of "TimePoint" that has a public property of date, so that I can assign a date to each individual instance of my TimePoint class.

In my fla, he timeline itself is a movie clip that needs to scroll back and forth as the mouse is moved. It contains the nested instances of my TimePoint class. I already have the scrolling movement taken care of, and I also have a tooltip date appearing over each point in time. Now I just need to figure out how to manage 50 different movie clips, each with and without graphics, bitmaps, etc.

I'm just wondering if there is any way to do this without having to create 50 different event listeners and 50 different classes just so that I can add/remove children. I'm thinking I need to use an array, but I don't know how I would implement it. I'm also not very familiar with XML.

My progress so far can bee seen here:
Timeline
version 2

View 4 Replies

Using Movie Clips As Buttons To Navigate?

Jul 13, 2009

For my online gallery, I'm using movie clips as buttons to navigate. I was having the movie clip play when you scrolled over it and off of it. Now i have it so when you click on it, it stops at the mid-way point. What on is to get it to go back to its original state when I click on something else. So basically I'm looking for a way to go back to frame 1 when a different movie clip/button is clicked on. I want it to revert back to what it was in an inactive state when I click on a different part, but I don't know how to do that

View 1 Replies

Professional :: Buttons And Movie Clips (on And Off)

Jul 15, 2011

I'm working on my own personal website for my graphic design work and I'm using flash for the intro movie, which you can either skip or after an elapsed time, sends you directly to the home page. On that intro movie (which ill call animatedface_mc) i've put two other movie clips with the eyes blinking (left and right). The eyes would be constantly blinking, as this page is open. That one is working. Off to the side are buttons of names of famous celebrities and once clicked it adds movie clips to the main animatedface_mc. For example if i clicked on the monroe_mc, it adds that famous Marilyn Monroe mole (using either mask or opacity, depending on the facial feature) on the animatedface_mc. If I clicked on tyson_mc, it adds his face tattoo. I've used the following code for this:

[Code]...

View 6 Replies

ActionScript 2.0 :: Buttons In Movie Clips?

Jul 10, 2009

I have 2 movie clips on my main timeline (let's call them MovieClip1 & MovieClip2). I have buttons inside MovieClip1 that I'm trying to (on release) direct to a specific frame in MovieClip2. Is this possible? I've tried COUNTLESS different gotoandplay and gotoandstop codes, but nothing works.

View 5 Replies

ActionScript 2.0 :: Concerning Buttons Within Movie Clips?

Jan 14, 2004

Being rather "green" with actionscripting, I am having difficulties using a sliding menu (very similar to the "infinite menu" tutorial here on kirupa) in conjuction with some actionscripting to interact with some external movies outside the main movie I am working with. What I want to do is to use each button within the menu to reference a flash movie outside the menu bar (which is a movie clip). Before I sound even more vague let me show you the code first....

aboards.onRelease = function() {
loadMovie("aboard.swf", "target");
};

So here I have a button instance (aboards) of one of the 10 buttons in the menu. I want to then reference a movie clip called "target" in the main scene of my movie to then load and display the movie aboard.swf at this reference point.

This code works well with static buttons on the main scene, but here each of the 10 buttons are located within the movie clip that makes the sliding menu work. The instance "aboards" of course works if I assign the instance to the movie clip, but then that of course means that ALL 10 buttons then will be assigned "aboards". What code change can I make to fix this issue so that each of the 10 buttons (within the movie clip) carry their own instance that can be referenced from the main scene?

View 14 Replies

ActionScript 2.0 :: Movie Clips And Buttons?

Apr 5, 2005

I have assigned a movie clip to a hit state of a button, but alas, it refuses to work. Can anyone suggest a way of using actionscript to play a short movie clip on release of the mouse?

View 4 Replies

ActionScript 2.0 :: Buttons Within Movie Clips Does Not Work?

Feb 3, 2009

im having an issue with a cursor i made following this tutorial...http:[url]........the cursor works fine with a regular button however i have buttons inside movieclips, i tried it but it isnt working, i keep getting an error in the output...

Error: A 'with' action failed because the specified object did not exist.

View 1 Replies

Buttons In Movie Clips Arrays, SwapDepths?

Jan 28, 2010

I am a Flash newbie and I've probably bitten off more than I can chew with this one...it sounded so easy!
Okay, so here's what I want to do: There are 5 people layered across the screen. When you rollover the person, they change color and come to the foreground (over the other pictures). On rollout, they go back to the background and change back in color. On click, they go to a new screen with just their picture and some information.

I first started setting this up and did each person as a button. Then I realized that in doing that, the button would not come to the foreground on rollover if it was below other buttons in the layers. So I put all of the buttons in movie clips and applied AS to the buttons (inside the movie clips, with the buttons on the main scene) and the AS2 looks like this:

[Code]...

View 15 Replies

ActionScript 2.0 :: Targeting Movie Clips From Buttons Within Other Mcs?

Feb 27, 2010

I'll try and make this as clear as i can, so as not to waste your time. I think it's something really simple i'm just missing...On the main timeline, i've got a movie clip ("mc_A") that contains two other movie clips ("mc_1" and "mc_2").at the end of it's timeline, I put a button in "mc_1" to play "mc_2". I'm using

on (release) {
telltarget ("_root.mc2") {
play () ;

[code].....

View 1 Replies

ActionScript 3.0 :: Triggering Movie Clips With Buttons?

May 28, 2009

I'm taking an intro Flash and Action Script class and for my final I need to create a portfolio project that contains 5 unique buttons that trigger 5 unique movie clips. I'm having a hard time with this. I've been able to trigger the 1st movie clip with the first button (although I can't stop it) but I can't trigger any ohter movies with any other buttons.

Here's my code:
stop();chuck1_btn.addEventListener(MouseEvent.CLICK, playMovie);
function playMovie(event:MouseEvent):void

[code].....

View 12 Replies

Buttons Inside Movie Clips Does Not Work

Dec 6, 2009

I've created a button and placed it inside a movie clip. I've added the below script (as2) on the button however when I Test Movie, the button does not work.

[Code]...

View 1 Replies

Professional :: Buttons Actioning In Different Movie Clips?

Nov 22, 2010

So ive set up some buttons into a movie clip, but i want to get them performing actions in a movie clip that is within another clip.For example, the code below is what I have attached to one of my buttons. The Movieclip 2photosMC2 is inside a DIFFERENT movie clip to the ones where the buttons are stored. How can I script so that the button actions activate the correct clip?
 
on(release){
photosMC.gotoAndPlay("img 02");
}

[code].....

View 3 Replies

ActionScript 2.0 :: Buttons Control Movie Clips?

Jan 11, 2009

This is quite complex, in simple English, I have some folders (mc's) which I need to enter the stage when a button is clicked, when a different button is clicked I need the previous folders to animate out, before the new ones animate in! The folders feature there own functions and animations, which are viewable when clicked (they bring in external imagery and text)?

View 3 Replies

ActionScript 2.0 :: Buttons Inside Movie Clips?

Jul 31, 2007

I've got a scrolling thumbnail movie clip.Inside the movie clip are 5 buttons.I can't get the buttons to work.I know to put the actionscript(2.0) ON the button and not IN the button.The sripting is a simple on press gotoandplay frame# command.yet it won't work.Is there something specific I'm missing when putting buttons inside a movie clip?

View 5 Replies







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