Page 1 of 1
How to erase..
Posted: Fri Apr 23, 2010 6:56 pm
by mario baccheschi
Goodevenig to everybody
may YOU help me to erase part of an img from a script?
I would have a btn with a script which could erase a part of an image
Many thanks
mario
Re: How to erase..
Posted: Fri Apr 23, 2010 11:24 pm
by Mark
Hi Mario,
Here's a simple way:
Code: Select all
on mouseUp
lock screen
choose select tool
drag from the topleft of img 1 to the loc of img 1
cut
choose browse tool
unlock screen
end mouseUp
Best,
Mark
Re: How to erase..
Posted: Sat Apr 24, 2010 2:07 pm
by mario baccheschi
Many thanks Mark
but it doesn't run
On my project i have srveral btns and i need to erase the part of the img which is the area of the btn..
mario
Re: How to erase..
Posted: Sat Apr 24, 2010 2:58 pm
by Mark
Hi Mario,
Of course it runs. Probably, you mean that it doesn't do what you want.
Why exactly do you want to delete an area of an image that's covered by a button?
Best,
Mark
Re: How to erase..
Posted: Sat Apr 24, 2010 3:55 pm
by mario baccheschi
..some btns are transparent... and only the img over them is visible...
by clicking on a different btn ... it should be possible to erase a part of the img...
mario
Re: How to erase..
Posted: Sat Apr 24, 2010 4:03 pm
by Mark
Dear Mario,
Why? Maybe there's a different way to do it, but I need to know why.
Best regards,
Mark
Re: How to erase..
Posted: Sat Apr 24, 2010 4:30 pm
by mario baccheschi
Dear Mark
some times the procedure you told me runs ... and the corrispondent part of the img is erased...
some times it doesn't happen nothing...
perhapse it depends from the img data... i use imgs taken from web..
i'm studying it..
best,
mario
Re: How to erase..
Posted: Sat Apr 24, 2010 5:13 pm
by mario baccheschi
Hi Mark
I' thinking also that it may be impossible to drag ,within an image, if the point from which the drag action begins is not within the img itself....
mario