Erasing Graphics...simple Question
Hello gurus,
I'm trying to make a button. I imported a graphic to use with my button.
Now, when I use the eraser to remove a few things on the graphic, the graphic restores itself! Right when I thought I've erased it, the erased portions appear to return.
how can this be easily solved?
cadmiumgreen
KirupaForum > Flash > Flash 8 (and earlier) > Flash MX 2004
Posted on: 10-13-2004, 04:33 PM
View Complete Forum Thread with Replies
Sponsored Links:
Erasing Graphics...simple Question
Hello gurus,
I'm trying to make a button. I imported a graphic to use with my button.
Now, when I use the eraser to remove a few things on the graphic, the graphic restores itself! Right when I thought I've erased it, the erased portions appear to return.
how can this be easily solved?
cadmiumgreen
View Replies !
View Related
Simple Graphics...
hey i got a small problem actually stupid problem.... take a look at http://www.blitzds.com/Flash/Clients...mepage_ie.html . There is a picture to the right showing a girl smiling, there is a kind of effect on it like very thin lines on it making the picture look more like a television screen. HOw do u guys do that ??? Is it done in photo shop or can it be done in flash itself??? Answer me ASAP thanks!!!!
View Replies !
View Related
Erasing
Can any of you help me?
I need to make one image partially disappear while the other image surfaces...
If any1 can teach me how to use it with mouse as well, better
thanks in advance...
ps. It has to appear like its erasing to 1st picture then under that the 2nd picture appears kinda like layers in photoshop...
View Replies !
View Related
Erasing
I need to erase a part of a picture that I imported into my movie so that but I can't figure out how to do it! I'm new to Flash but how hard could it be? When I try to erase with the Erase tool, nothing happens. When I try to make a selection with the Lasso tool so I can delete it, nothing happens. Please help! Thanks.
View Replies !
View Related
Erasing
Hey guys,
When using the eraser in "erase normal" mode, it insists on "smoothing" or erasing only a portion of what I've erased. How can I persuade my eraser to erase the entire surface as intended???
Thanks mates!
View Replies !
View Related
Dynamic Erasing?
I'm trying to make a simple scratch off game. I want the user to be able to click and drag over a gray shape to reveal the prize underneath. What would be the bet way to get this kind of look, with smooth functionality???
View Replies !
View Related
Outside Stage Erasing
Hey everyone!
Sorry I've asked this one before but I got no reply and I'm still stumped.
But I have managed to change the settings so that any drawing outside the stage isn't erased. Where as it usually is. The downside with this is that when I view the movie it is on a huge screen. Any ideas as how to sort this out?
Thanks!
View Replies !
View Related
Erasing Effect
hey peeps, i am having a bit of trouble with a small project im working on at the moment.
basically, what i want to do is load two images in a flash movie, one on top of the other, and be able to use a customised 'eraser' to take off the top image to reveal the one underneath it.
so the end effect would be similar to what you use the eraser tool in most graphic appz, where the area erased is a preset shape and size, and follows the mouse. i also need to have a custom mouse pointer to complete the effect, but i think there are a few tutes on that lying around, so its not my main concern atm.
does anyone have any ideas on the functions for this kind of scripting?
Cheers,
BM
View Replies !
View Related
Automatic Erasing
How can I prevent content (graphics, text and the last frame of a movie that has finished playing) to not automatically erase when my Flash project advances a frame? Also, how can I then later erase this content that I had prevented from being erased?
View Replies !
View Related
Erasing At Runtime
hi there,
can anyone help me in this ?
i have 2 images on separate layers. i need to work it in a way that if somebody click & erase on top layered image, it should disappear slowly slowly (as somebody erase words on blackboard - need same effect) ... and bottom layer image should be visible in the end
am using flash cs3 (actionscript 2).
any help appreciated.
thanks
View Replies !
View Related
Drawing And Erasing
Hi
I'm creating a program where I want to be able to draw and erase (using the Drawing API) over a background movieclip that I want to be unaffected. I've got the drawing aspect working, but the only "erasing" method I know is to set the line colour to white, which obviously also "erases" or paints over the background image with white. Does anyone know how to erase only the content that is drawn at runtime? I'd rather not use the "clear" method as it erases everything and I want the user to be able to have control over what gets erased.
Thanks for any help!
View Replies !
View Related
Erasing A Shape
I have creating a shape at each frame using frameevent .. the movie runs for almost 1900 frames and at the end the movie start repeating ..
I want to know how can i erase the already drawn shape after the last frame of the movie, so that on repeating it start drawing new one ..
View Replies !
View Related
Erasing Text
Hello,
Can anyone tell me if its possible to erase parts of text in Flash. For example, if you have the word 'NEWS!" and you wanted to maybe erase the bottom half of the word, can you do this.
I've converted it to a graphic and then tried to use the eraser tool to rub out half the word but it doesn't do a thing.
anyone any suggestions on how you can do this?
Thanks
View Replies !
View Related
Picture Erasing
Hey guys! This is my first time on your forum and I have a project I need help on. Im working on a site that has a flash intro. The Intro is going to be a greasy, rusty piece of metal I made in PS. The metal is going to get "powerwashed" clean and it will be a nice clean piece of metal.
Ok. Im pretty familiar with flash and can do some basic tweening and animations. But I just dont know how to get this "cleaning" effect. I assume you need to erase the picture gradually over the timeline. But the erasing tool seems to not erase the picture.(I guess it only erase fills and lines etc). Any suggestions guys?
-Andrew Kanieski
Amateur Web Designer :-P
View Replies !
View Related
Erasing BitmapData
Last edited by Nutrox : 2005-10-26 at 17:55.
Hi guys.
If I have a BitmapData object and I want to delete a specific area of that bitmap, is the quickest (less CPU intensive) way of doing it to use fillRect() with a transparent colour?
ActionScript Code:
var areaToDelete:Rectangle = new Rectangle(10, 10, 100, 100);
myBitmap.fillRect(areaToDelete, 0);
I can't seem to find any built-in "erase" methods in the Flash Help docs.
View Replies !
View Related
[help]erasing Mask
Last edited by toddersbud : 2003-12-15 at 13:37.
k, here goes.
check this out first:
sample swf
very basic, but assume many flakes coming down, and this is what i want to do. In each window i will create a "fog". I want to have a mask, that is draggable that reveals clearly the "outdoors" and flakes falling in full color. But i want the mask to keep whatever has been dragged revealed. Imagine how you blow on a cold window and fog it, then with your finger, write something or draw a picture. So the mask would reveal on mouse down, and stay revealed until they hit, let's say a reset button.....
any ideas?
View Replies !
View Related
Dynamically Erasing Fills
I was going to make a generic version of the game "Worms" in MX 2004 but want to know if this would even be possible. I would need to be able to erase parts of the ground whenever a missile hits it. Is there any way to do this? I know there is no way to fill a shape with a blank color, so hopefully someone out there has a good trick up their sleeve.
My idea was just to create a shape as a cookie-cutter, and then erase that shape as well as everything it overlaps. Very tough stuff perhaps.
View Replies !
View Related
Erasing Things On The Stage
I have something like:
code:
#include "drawing.as"
etc....
etc....
on the frame where included .as file need to draw something.
After on same frame i have button that need to back me on start frame and all things that are drawn needs to be erased, but it stays on stage. I guess have higher level depth than start frame things.
So what i need to resolve my problems, i know that i need to write some code that would control my level depth to undraw - hide or swapDepth on the stuff i have dynamically written. swapDepths(); maybe?
hanks in advance
View Replies !
View Related
Erasing To Reveal Image
Hi,
I need some help and was wondering if anyone have alreayd figured out how to do this properly.
I looked at this:
http://www.flashkit.com/movies/Utili...8800/index.php
and its perfect to describe what i want done, but its not working the way I would like it to
Basically, i have several "buttons" that need to be "hidden" and then "rubbed/erased" to reveal them. Once revealed they will be active to use.
Is there a way to do this for an individual item? How do i create the action script to simulate the "erasing" of an area?
Help greatly appreciated.
View Replies !
View Related
Pop Up Swf / Erasing Title/header
Hi
I have a website with a javascript that triggers a pop up window/swf file.
I was wondering if it is possible to erase the title of the pop up swf?
Right now it says: "http://www.blabla - index.swf (application/x-shockwave - flash object - Mozilla firefox" in the title of the pop up window. What to do?
Thnx.
View Replies !
View Related
Erasing Drawn Pixels
I have this code that allows me to make an area that I can draw on. I know there is a way to clear the entire screen but I want to be able to change it to an eraser tool and remove the pixels. I have thought about the option of just colouring over the existing pixels with the same colour as the background but that will not work for what I am trying to do. Any advise will be helpful.
heres the code
var down:Boolean = false;
_root.onMouseDown = function () {
if(_root.canvas_mc.hitTest(_root._xmouse, _root._ymouse)){
var x:Number = _root._xmouse;
var y:Number = _root._ymouse;
_root.holder_mc.moveTo(x,y);
down = true;
}
};
_root.onMouseUp = function () {
down = false;
};
var currentColor:String = "CCCCCC";
function draw(){
_root.holder_mc.lineStyle(2,parseInt(currentColor, 16),100);
var x:Number = _root._xmouse;
var y:Number = _root._ymouse;
_root.holder_mc.lineTo(x,y);
}
_root.onMouseMove = function () {
updateAfterEvent();
if(down && _root.canvas_mc.hitTest(_root._xmouse, _root._ymouse)){
draw();
}
};
View Replies !
View Related
Erasing Images Dynamically
Hello
I'm trying to create a painting type application. I've managed to get most of it working but I need to allow the user to erase parts of an imported image one small piece at a time.
(If you imagine the effect of using an eraser tool on a photograpgh in photoshop you'll understand what I mean)
Can anyone think of an effective way to do this? I thought of using masks, but it's difficult to change the shape of them on the fly and and I can't see a way to make them change to the shape of the users eraser stroke. There must be a way to do this somehow.
Thanks in advance for your help
View Replies !
View Related
PAINTING/ERASING (mx 2004)
hi guys,
i have a question about the drawing api in flash mx 2004
i would like to draw e.g. a rectangle and then i want to erase a specific part of the rectangle.
one good example for what i am looking for is the BLAST A FOOTER game from McGiver.
View Replies !
View Related
Cursor Erasing Graphic - How To?
Hi,
A manager at work has agreed to shave his head if we meet the quota he set out. I would like to make a gag of this in flash. Here is what I though…
Take a picture of his head with hair and erase it with a cursor hair shaver to show a shaved head in the part the shaver went over. My question is how to make the hair part go away where the shaver had been and how to do a cursor buzzer. Any ideas would help.
Thanks!
View Replies !
View Related
PAINTING/ERASING (mx 2004)
hi guys,
i have a question about the drawing api in flash mx 2004
i would like to draw e.g. a rectangle and then i want to erase a specific part of the rectangle.
one good example for what i am looking for is the BLAST A FOOTER game from McGiver.
View Replies !
View Related
Erasing Animation Effect?
Hello, I'm just wondering if this is possible. It's similar to a scratch and win effect. But i just want the scratch effect to be animated so all you do is click a button and it scratches for you.
Does this make sense?
Thanks for any help.
View Replies !
View Related
Timeline Erasing Variables
i occasionally run into the following problem:
i have an instance on my timeline. there are a couple keyframes on the layer on which this instance sites. i create and initialize a new variable on that instance in one keyframe, with code sitting on the same timeline as the instance, for example:
ActionScript Code:
box.num = 10;
however, the variable i just created no longer exists in the following keyframe.
the instance is named properly on all keyframes, but no matter what i do, i can't get the variable i created to persist beyond the frame on which it's created.
i feel like sometimes this happens, and other times it does not. i haven't been able to figure out what causes this exactly, or how to avoid it. as i'm writing code more and more in external .as files / classes, and doing layout+design with instances in the authoring environment, this is causing untold problems for me when i try to create more advanced UIs....
any thoughts on the issue?
View Replies !
View Related
Erasing A Symbol With Mouse Pointer
I want to have something like a scratch and win ticket. I want just a simple background over top of some numbers or something.
When the user puts his mouse over this symbol I want it to start to dissapear, Is this possible?
Is it also possible to determine when the whole area has been erased as I want to add some animation as they finish?
View Replies !
View Related
Slow Performance With Bitmap Erasing
Hello, for the past couple of weeks I've been learning AS3, and for a school project I'm doing a remake of the popular DOS game Liero. Everything is working fine, I got a layer of dirt that I am shooting away, but the problem is that after a few hundred bullets, the game starts to lag heavily whenever a shot is fired.
I'm using a simple bitmap and a brush to erase the parts where the bullets hit.
// Drawing stage
bmap = new BitmapData(1100,800, true, 0);
dispBmp = new Bitmap(bmap);
addChild(dispBmp);
brush = new Shape();
erase = new Shape();
brush.graphics.beginFill(0xBA7001);
brush.graphics.drawRect(0,0,1100,800 - 183);
brush.graphics.endFill();
bmap.draw(brush, null, null, "normal");
// Erasing place where bullet hits, I repeat this for all pixels surrounding the area in a certain radius
erase.graphics.drawRect(Math.round(bullets[i].x), Math.round(bullets[i].y), 1, 1);
Any thoughts? Am I going about this all wrong? I've been searching the internet for days trying to find some legible information on this, but I'm about to give up. Any help would be greatly appreciated!
View Replies !
View Related
Help Please...Dynamic Wipe/Erasing Effect?
Hi there,
I would like to crate the effect of wiping or erasing something off the screen and have it be dynamic and linked directly to the mouse movement.
Basically the effect would appear and actually be the user erasing the image to reveal a message on the layer underneath.
I am completely stumped.
I would grately appreciate any help that is given.
All the best ans thanks,
-J.
View Replies !
View Related
Erasing Unclosed Shape Using RemoveMovieClip
hi ,
when creating i am using like this
///////////////////
mcName1 = (mcName1 != undefined ? mcName1 : ("part_"+movieCount+"_mccc"));
_root.content_mc.createEmptyMovieClip(mcName1, movieCount);
//...............................................
for deleting i am using like this
removeMovieClip(mcName1);
/////////////////////////////////////
Is this right or how to delete the Movie ????????????????????????????
Thanks in Advance......
friendly
Denesh
View Replies !
View Related
Help Please...Dynamic Wipe/Erasing Effect?
Hi there,
I would like to crate the effect of wiping or erasing something off the screen and have it be dynamic and linked directly to the mouse movement.
Basically the effect would appear and actually be the user erasing the image to reveal a message on the layer underneath.
I am completely stumped.
I would grately appreciate any help that is given.
All the best ans thanks,
-J.
View Replies !
View Related
How To Test Preloaders Without Erasing The Cache?
When I test preloaders and stuff, I sometimes use an abosulute url (e.g. http://www.daurl.com/...). The first time it gets loaded the second one it reads from the cache, so I erase the cache and start all over again...
All this process sucks badly. I saw a post somewhere where this person used an absolute url, but the image was always reloaded and you didn't have to clear the cache. I think it was php code, the image shown was always the same...
Do you guys know of such an URL or know how to build that code?
thanks!!
View Replies !
View Related
Drawing Line And Erasing It Without Creating New MovieClip
Hi!
I need to draw a line from point where mouseDown was initiated to point where mouse cursor is, but there must be only one line on the MovieClip.
This piece of code works great if the background is single colored.
Code:
var pointClick_x = Stage.width/2;
var pointClick_y = Stage.height/2;
var oldLineTo_x = Stage.width/2;
var oldLineTo_y = Stage.height/2;
createEmptyMovieClip("Line",1);
onMouseDown = function(){
Line.lineStyle(1,0xFFFFFF,100);
Line.moveTo(pointClick_x, pointClick_y);
Line.lineTo(oldLineTo_x, oldLineTo_y);
pointClick_x = _xmouse;
pointClick_y = _ymouse;
onMouseMove = function(){
Line.lineStyle(1,0xFFFFFF,100);
Line.moveTo(pointClick_x, pointClick_y);
Line.lineTo(oldLineTo_x, oldLineTo_y);
oldLineTo_x = _xmouse;
oldLineTo_y = _ymouse;
Line.lineStyle(1,0x000000,100);
Line.moveTo(pointClick_x, pointClick_y);
Line.lineTo(oldLineTo_x, oldLineTo_y);
};
}
onMouseUp = function () {
onMouseMove = null;
}
Background which I have contains text so erasing like that don't work for me.
There is also another constraint. If the line is drawn from area a to another area a the line must stay there till the end. So creating new MovieClip is trouble.
Code:
Line.lineStyle(1,0xFFFFFF,0);
which was suggested on some thread, does not work :/.
Any ideas?
View Replies !
View Related
Erasing App Doesn't Draw Correctly To Rotated Bitmapdata
Hey Everyone,
Sorry for the crappy title, didn't really know how else to explain it. Basically I'm creating an application that is much larger than the file i've provided but the problem I run into is that the eraser bugs out when I rotate the image that is being erased. You'll see in the example provided what I mean, it kind of makes the eraser a bit rectangular as well as chops up the image as you erase a bit. If you comment out line 19, you'll see it working perfectly on the non-rotated image. I'm DYING for a fix for this as I seem to have tried everything and this is really holding my progress on the whole app up. If anyone can fix this or at least point me in the right direction, I'd be forever grateful to you and your offspring.
Here is the file:
http://www.reintroducing.com/apnw/rotatedEraser.zip
- Matt
View Replies !
View Related
Importing Pics Into Flash ..and Wasting Time Erasing Backgrounds
Hi,
I'm sick of importing images into flash and zooming into erase backgrounds. Even when I erase background in PS and import into Flash it is not super transparent so i have to re erase some background.
1) How do I quickly delete the background in PS? Is there a quick way to do it?
2) How do i import it into flash so i dont have to re do it as the edges are rough?
Any help much appreciated.....
Tnx
View Replies !
View Related
Erasing "dynamically Created" Movie Clips
hey all,
sorry for all the questions, but i have yet another one. how would one get rid of movie clips put on the stage with attachMovie. I've tried removeMovieClip and clear but they remain on the stage. I remember doing this last year in a class but I've lost the project files for that and can't remember how to do it. Is there some screen refresh or something that I'm missing? Thanks.
View Replies !
View Related
Erasing The Top Layer With A Line To Show The Layer Beneath It
I was curious if anyone would be able to help me out. I have a layer that is a menu with some buttons. When a button is hit, I'd like to do this: A line from above the menu will go down the page, and as it goes down it apperas to erase the menu layer and show the layer beneath it. So as it goes down, what is beneath the line is still the menu page but above the line is the information (movie clip) that should be shown to that corresponding button. Any one have any ideas?
Thanks
Have a Happy New Year
Ty
View Replies !
View Related
|