Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here



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 66 is field and I want to this with field 67 .
Thank you

RE: field

This will erase the picture (or whatever the Member holds):


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

RE: field

Or you can erase the image of a bitmap cast member by setting it to a blank image:

member(67).image = image(1,1,1)

The above line will set it to a white 1x1 pixel 1-bit image.

- Ben

RE: field

It will, but he wants to erase the image in the 'stopmovie' handler, so you probably aren't going to see this.

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 smile

- Ben

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close