ActionScript 3.0 :: Proper Way To Mask/cover Something

Jul 23, 2010

I'm having a bit of a problem with - what I assume to be - a masking issue. Apparently I can't post images. This may hinder my ability to explain the problem. Oh well, I'll try to make do with just words.

I have four "ground" sprites, each one shorter than the last, that are layered on top of each other. References to them are stored in an array groundLayers[], for easy reference. When a new [not ground] sprite is created - it's given a number which tells it which layers it is between. Herein lies the problem: how do I conceal the new sprites properly?

Without doing anything, they wind up all in front, not layered. My initial solution was to just change their indexes with setChildIndex(), but this proved to be disastrous when I tried to add mouseEvents to the objects. I tried to set the objects' masks to these objects, but that didn't seem to work. I also created separate layers which just contained the "sky" parts of each ground layer and setting the object masks to shoe sky layers, but that didn't work, either.

View 2 Replies


Similar Posts:


Cover Up A Flash Intro?

Aug 1, 2009

I have this world map (.swf file) that I want on my home page(black background). It's up and working fine, but it flashes a white blank map for about 2 seconds when it first loads and then it goes away. It looks very ugly on a black background and gives off a sense of "cheapness". Anyway, it has got to go. I purchased the world map and they don't offer access to the original .fla file. So basically I want to know how to cover up the first few seconds of the video with black and then have the black cover disappear and let the flash file do its thing.

View 1 Replies

ActionScript 2.0 :: Cover A 800 X 600 Scene?

Apr 5, 2006

can you do this in actionscript i need it to cover a 800 x 600 scene and if it could have a rollover of light grey very faint

View 2 Replies

Implemented A Cover Flow Ui In Web Browser?

Aug 5, 2009

Something that is similar to the Cover Flow in iTunes.

I can use Adobe Flash, Flex, or pure html/javascript.

HOWEVER, I need a pointed to production ready code. I've looked at plenty of examples in both Flex and HTML that aren't ready for prime time. No demo code needed.

Here's my requirements for production ready:

1) Memory leaks are under control.

2) Works like a river with larger data sets, paging in sub-sets in some set number. The component/code needs to be able to handle 100+ items to flow through, preferable up to 500.

View 3 Replies

Actionscript 3 :: Cover A Flash With A Div When Wmode Is 'gpu'?

Feb 13, 2010

i know this can be done by changing wmode to "transparent or opaque". But is there any way to show the div over the flash file using wmode "gpu" ..

View 1 Replies

Flex :: Cover Exactly 24 Hours On DateTimeAxis?

Apr 10, 2011

I want to show a full 24 hours along the datetimeaxis wherever the values fed into it happen to fall. I thought that setting the minimum and maximum of a datetime axis on the chart would have that effect.

so I have private function loadDayComplete():void{ //called when data is reloaded. also includes reassigning the dataprovider of the chart.

[Code]...

When I load up the function though it doesn't plot any points when the min and max are set. If I take out the minimum and maximum they show up fine! I double checked in debug mode that the minChartDate and maxChartDate are what they should be.. but maybe I'm misunderstanding how minimum and maximum are supposed to function... I also tried widening the min/max to include several days and still no luck. I also tried assigning the min/max when the chart data changes like so:

View 1 Replies

ActionScript 3.0 :: Inserting BitmapFileMaterial In A Cover?

Sep 3, 2009

I have created a Carousel with CoverFlow where images are imported from Flickr. Now I would like to import images from an XML file so I replaced the relevant code with code from a past project that consisted of designing a Papervision 3D Carousel. The problem is that my CoverFlow Carousel consisted of a Cover with Bitmap images while my Papervision 3D Carousel consists of a plane that loads/saves images through BitmapFileMaterial. Flash does not seem to accept that I insert a BitmapFileMaterial into a cover.

It gives me error 1067 (translated from German to): Implicit change of a value of type org.papervision3d.materials:BitmapFileMaterial into an unrelated type flash.displayisplayObject. In my code below I commented next to the function that causes the problem.

PHP Code:

package {
import flash.display.*;
import flash.events.*;
import flash.display.Loader;

[Code].....

View 1 Replies

ActionScript 3.0 :: Alpha Mask - Area Of The Loader Outside Of The Mask Will Visible When The Mouse Is Down

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

ActionScript 3.0 :: Video Can't Cover Whole Screen Area

Nov 27, 2009

I am playing a video and created a button which displays video area in fullscreen but video doesn't cover whole screen area, there are blanks left and right of the video. I searched a bit and every flash player i found with full screen option in fact resizes the video the same way, it just doesn't cover whole area. Why is that? Can video in full screen mode be resized to cover whole screen area without those blanks at sides?

View 6 Replies

Actionscript 3 :: Flash - Randomize A Picture Under A Cover?

Mar 30, 2012

I'm making a flash game for practice and I have my stage set up so there are 9 boxes. When the game is started, one of the boxes is randomized as the one with the start underneath, if you pick the box with the star underneath, you win.

The randomizing code is

var star = 1 + Math.Round(Math.Random()*8.0)//generate a number between 1 and 9

What i dont know is how to attach this code so that it assigns the star to one of my 9 boxes made as buttons. How can I hide the star underneath the box as a cover.

View 2 Replies

ActionScript 2.0 :: Make MC Cover A Percentage Of The Movie?

Apr 1, 2010

I want to make a MC called bgFade cover a percentage of the flash movie. So the MC starts at the bottom and covers 80% of the vertical space of the Flash movie. So theres 20% at the top that isn't covered. At the moment i have:

ActionScript Code:
bgFade._y = Stage.height;
bgFade._x = 0;
bgFade._width = Stage.width;

...Which places the MC at the botton of the movie, and makes it fill all the horizontal space. So what can i add to that to make it fill 80% vertically?

View 3 Replies

ActionScript 2.0 :: XML Cover Flow Won't Leave Stage?

Jun 14, 2010

I've got 4 button images that drop in when the movie starts, and when you click on an image it loads in an XML image flow. Problem is, when I click the "go back" button, it goes to frame 2 to start over, but the XML gallery/image-flow won't leave the stage. Link is below, code is attached.I've been pulling my hair out for a few days now

View 0 Replies

ActionScript 2.0 :: Box To Expand Its Sides To Cover The Whole Screen?

Jul 15, 2005

Ok, so i can get my box to move up, but now i want the box to expand its sides to cover the whole screen.

View 12 Replies

IDE :: Way To Make Objects Not Cover Button Hit Area?

Dec 5, 2009

Of course, when the mouse rolls over the graphic, the button beneath it is not clickable.Without going into all the reasons why I can't incorporate the graphic into the button itself... is there a way in AS3 to programmatically make that graphic virtually "transparent" - so that it doesn't interfere with the button's rollover and hit states?

View 2 Replies

ActionScript 2.0 :: Scriptable Mask - Large Mask Behind The Whole Of Flash Site?

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

Professional :: Background Image To Cover The Whole Browser Window?

Aug 12, 2010

I have a white stage and my background is non-solid/non-uniform.  My flash project will be my whole website, therefore when a browser window is larger than my stage, the stage color (white) shows in the background.  Its basically a white border on the left and right.  I wish I could continue my background image to cover the whole browser window.  What I want to do is:  if needed (if the browser window is larger than my stage) continue my background on both sides by taking a copy of my background image, flipping it horizontally, and placing it on both sides of my background.  If you can imagine it, this will give a more uniform continuation of the background. I'm guessing actionscript would be the best bet?

View 2 Replies

Flash :: Xspf Player Remove Album Cover?

Feb 13, 2011

I'm trying to embed this player to a web page:

[URL]

It's working fine, but I would like to remove the album cover from the player so it looks like on this page:

[URL] (The gray player in the right column, not the player in the center of the page)

I looked at the documentation and also the source of this page

View 2 Replies

ActionScript 2.0 :: Flash Gallery With Cover Flow Effect?

Jan 30, 2009

I have downloaded free version of itunesViewer and working on it. I found it was extensively using onEnterFrame which is taking lots of CPU, slowing the system.there's function 'controlTheObject' which contains onEnterFrame code. eliminate the use of onEnterFrame. Can there be other alternatives??

View 0 Replies

ActionScript 3.0 :: Way To Extend Internal Namespace To Cover Subpackages?

Sep 12, 2009

Is there a way to extend internal namespace to cover subpackages?The current solution is defining custom public namespace and import it in 'root' and 'children' packages, but that namespace also could be used outside of 'root' package.

View 2 Replies

Create Own Mask Around A Jpg Image By Drawing Around It On The Mask Layer

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

ActionScript 3.0 :: Shape.mask=mc.mask In As File Not Working

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

ActionScript 2.0 :: Disable / Cover Background When External Page Loaded

May 3, 2011

I have a full screen webpage with an elastic bg that is created mostly through AS, XML, and external .swf's. The main menu links to pages (other external .swf's with dynamically loaded content) that look sort of like popups over the graphic content of the main background (img2). There are two problems, 1) there are other buttons on the main page that the user can click when viewing a page and 2) the popups come down directly on the content and make the whole site look rather flat.

I am trying to create a background for each of the pages that has the same elastic qualities as the main page (so that no matter what it will cover the user's entire screen) and will disable all of the buttons beneath it. I tried adding a rectangle beneath the pages other layers, however any script I write for that mc (such as the onResize _mc.width and _mc.height or ._x and ._y) is completely ignored in the main timeline and the rectangle messes with the popup page position -- img3. Also the buttons beneath the rectangle are still active.

View 2 Replies

Html :: Get An Element To Cover A Flash Video (tried Wmode=transparent)?

Aug 17, 2010

I have a Youtube video on my homepage, and now I need a modal to display on certain events.For some reason, even when adding <param name="wmode" value="transparent"> to the Flash object, it still covers the HTML elements (with higher z-index too).I've got it on JSfiddle.I figured maybe an iframe could solve this, but that would require me to make a new page just to put the video on.

View 2 Replies

Flex :: Listview - List - Scrollbars Become Visible And Cover The Itemrenderer?

Sep 22, 2011

I have a list inside a VDividedBox. When the box is resized so the vertical scrollbar shows on the list, it covers some of the itemrenderers. How do I get the list to resize horizontally so that the scrollbar does not cover the renderers?

View 1 Replies

ActionScript 3 :: Telling MovieClip To Tile / Stretch To Cover Whole Window?

Feb 28, 2012

I have a movieclip on its own layer, with the intention of using it as a background to all the other layers. It is simply a black square with the alpha at 60%. There must be a relatively simple way of telling this movieclip to either tile or stretch to cover the whole of any page it loads into.

View 1 Replies

ActionScript 3.0 :: How To Get Shape (Black Rectangle) To Cover Full Stage

Aug 26, 2009

I need to have a shape (black rectangle) that will cover the stage. It should resize with the stage when needed. I'm trying it with the following code, but when it's resizing, there is a clipping effect that is visible and it is not fluid. How can I prevent this?
Code:
Select all
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;
stage.addEventListener(Event.RESIZE, resizeHandler);
var blinder:Shape = new Shape();
[Code] ......

View 4 Replies

ActionScript 2.0 :: Flash Magazine Front And Back Cover On Website

Nov 16, 2006

I'm looking to slideshow or flash my magazine front and back cover and some interior pages on my website. So they will show the different pages back and forth.

View 1 Replies

ActionScript 3.0 :: Possible To Mask Multiple MC Or Sprites Under One Mask?

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

Javascript :: Script Not Allowing Lightbox To Cover Embedded Youtube Videos?

Feb 18, 2012

I had problems covering videos on Youtube itself but solved that with a design change (don't need to cover them any more).

So I have a script the user can run and it calls a javascript file to do other stuff on the current webpage. One thing it does is bring up a lightbox that covers the page. Of course it won't cover embedded Youtube videos and so I need to do a few changes. I did the necessary changes and it didn't work. I kept trying and trying and eventually made a page with just an embedded video and a .jpg (my script won't run if there are no images).

I looked to see what the Pinterest script added to the embedded video portion and while it was almost identical they did have an autoplay=0 in there so I added it just so I could see for myself that it is exactly the same. If I run the Pinterest script and close it, then run mine, mine works fine. If I run mine, then the Pinterest script, then mine again, mine works. So I believe this means I'm not adding anything that tells the page "Go ahead and put the video on top anyway."

My portion of the script that adds the wmode:

var players = document.getElementsByTagName('embed');
var len = players.length;
for(var i=0;i<len;i++){

[Code]....

View 1 Replies

ActionScript 2.0 :: Carousel / Cover Flow - Doesn't Scroll When Click Left Or Right

Jan 16, 2009

I have file that doesn't work at all it doesn't scroll when click left or right .. here is the file. [URL]

View 0 Replies







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