ActionScript 2.0 :: Detecting If Gray Pieces Surrounded By Red Ones?
Jun 30, 2003
I've been working on this game for a little while and I got stock here. Any way to detect if a movie clip is surrounded by other movie clips as it shows in the above picture. [URL]
I have recently designed a children's educational game that is completed, however; it is a puzzle and the puzzle pieces can be dropped on top of each other and they hide behind eachother which I do not want to happen. I would like the game pieces to automatically get pushed off to the side of the other puzzle pieces that are in use...not stacked on top of each other. The game is complete except for this one problem.
I am facing an issue where the gray box (another version of lightbox) is not displaying over the flash banner. I have added the properties opaque, transparent but it is not displaying properly.
I have a problem when I create flash movies (I have tried Flash slide show maker). The video looks good but when I publish it and view it in Explorer or Firefox it comes with a gray border around it (partly dotted)I have tried to find a solution in different forums but no luck. The gray border is visible even if you havent clicked on the flash movie.
ive been going at this for three days now, and i have no hear left to lose.... it only goes gre in the browser, and usualy takes three playbacks before it goes grey.
I need to create, from a given Bitmap/BitmapData of a PNG file which has transparent and semitransparent pixels, another BitmapData which is a copy of it, but all the pixels (well, the pixels that are not alpha 0% actually) must have a specified grey color value (0xdddddd).
trying to add an asset to an unlocked layer in my Flash project, but File>Import>Import to Stage (Cmd-R on Mac) is grayed out.why is this? is flash telling me that my stage is some how inactive? I am in the scene. I see other graphic elements...my layer (in a group) is unlocked as is the parent of the group.
I am trying to loop through a bitmap and determine if each pixel is lighter or darker than gray using getPixel(). Problem is, I am not sure how to tell whether the value returned by getPixel() is darker or lighter than gray.
Neutral gray is about 0x808080 or R:127, G:127, B:127. How would I need to modify the code below to accurately determine this?
I need to create a color formula converter that goes between HEX, RGB, CMYK and Gray Scale.
With wonderful help from members of this site, I have the HEX to RGB to HEX portion working. Particular thanks to JSEBRECH on color formula conversion and previously to GIBBERISH for helping me master updating arrays from changed input text fields, and with other important help from DEADBEAT, VREELPOWER and PAEREZ. You have all been very helpful and generous.
how to convert either HEX or RGB to CMYK or to Gray Scale?
Is there anyway to create an alpha mask out of a grayscale image in flash?i am using the color adjust filter to create a bleached out kind of image. I would like to make the white transparent.
i have three butons on stage and one empty movieclip container which load the external jpg images. i want that those external images should load in the centre of the big grey box. fla file is included what script do i need to include in this
I am using lightbox++ to load images outside of flash in order to make that work I have to set wmode=transparent in the object properties But doing this lightens the gray color used in the swf.. Without adding wmode=transparent Screenshot with wmode=transparent
When I addChild(<external swf - p2>), I also want to removeChild(<swf that loaded it - p1>). I can't seem to make that work. In p1, I've tried removeChild(this) or removeChild(this.parent), but I get Error #2025: The supplied DisplayObject must be a child of the caller. If I try stage.removeChild(this), it removes everything and I get a grey screen. If I try MovieClip(parent).removeChild(this) I get Error #1034: Type Coercion failed: cannot convert flash.display::Stage@1cd94461 to MovieClip.
In p2, I don't know how to reference it properly because when I trace(this), I get Object MainTimeline and when I trace(this.parent), I get Object Loader. If I try stage.removeChild(this.parent), I get Error #1009: Cannot access a property or method of a null object reference. at allproducts_fla::MainTimeline/frame1().
here is the fla file. it can drag into the green box. i want to count how many grey box already have in the green box. i can drag the grey box into the green box n the code i write is just for count how many time the grey box had click it doesnt use. i want it can count how many grey box already drag into the green box.
I'm trying to cut up a bitmap image into pieces, and then tween each piece away sequentially. Cutting up the pieces and placing those pieces in an array is where I'm at. But to tween each piece on a timer is where I'm stuck; here's the code:
I'm having a big issue getting a string to split into two pieces, and I can't for the life of me work out why. This is a function that is run, with the midText var, being a number between 0-100, spat out from a loader. I've traced it, and it seems fine, but my splitter function just wont work! The function works fine if you simple define a var in the code
I am trying to create a puzzle made up of nine pieces each named piece1, piece2 etc. each is a movie clip with an imbedded button. I am trying to make the pieces scramble upon load and be dragable, but I want to have them return to their original x and y coordinates when the viewer presses a button.
I'm a student currently trying to learn Flash CS3. However I've encountered a problem with the paint bucket. In my assignment I've created a simple rocket, each part with it's corresponding layer. Now I need to go back in and fill the body in a light gray color. I did so successfully with the nose cone. The problem now is that the bucket won't fill any other area no matter what I do, or which layer is selected.
I want to know the actionscript for when hovering over a button which is a picture, the whole screen fades into a translucent grey (with everything else still in the background) and have a larger version of my picture appearing on top of the grey. And when the mouse leaves the button, the grey and the larger version of the picture will fade out and return back to my original.
I am trying to make a toggle button where, when the user clicks it, it changes from grey to red. I am using movie clips rather than "button" symbols because, when switching between states, buttons look kind of bouncy after you click them. I have everything working, however, because I am using movie clips the "hand" cursor does not appear when I hover over the buttons. I am using very basic code:
I just went through the ActionScript tutorial for the jigsaw puzzle found here: [URL] I would like to change the image used for the background and the puzzle pieces, and am running into problems. I can change the background for the work area with no problem, but the puzzle pieces are still displaying the original artwork.
I've been looking for a tutorial that describes how to make it so dragable objects can snap together when one is dropped in the right place next to another, but so far I haven't had much luck. Does anyone happen to know of such a tutorial, or can post something here about how to do it?
For example, how do I make something like this: [URL].. and how do I make it recognise when all the pieces are attached together?