field
field
(OP)
How can I remove picture from the stage whene I click on the stop. I know to this with text but with picture i dont know.I do something like this:
on stopMovie()
member(66).text =""
member(67).picture=""
end
Member 66 is field and I want to this with field 67 .
Thank you
on stopMovie()
member(66).text =""
member(67).picture=""
end
Member 66 is field and I want to this with field 67 .
Thank you
RE: field
member(67).erase()
But if you just want to remove your picture from the Stage, instead of destroying the Member you can remove it from the Sprite channel:
sprite(1).member = 0
Kenneth Kawamoto
www.materiaprima.co.uk
RE: field
member(67).image = image(1,1,1)
The above line will set it to a white 1x1 pixel 1-bit image.
- Ben
RE: field
Kenneth Kawamoto
www.materiaprima.co.uk
RE: field
Incidentally I often do this myself in 'stopmovie' if my movie dynamically creates images using copypixels, but I don't want them saved when saving my movie.
Eg, I have a placeholder image for a tile-mapped game. During play, I build a large tile-map image and display it using a cast member, and when I stop the movie in authoring mode, I want my placeholder image to revert back to a tiny blank image so as not to bloat my .dir source file
- Ben