Avatar of raulmonda
raulmonda
 asked on

Action Script commands

Hi experts

I have this code:
this.createEmptyMovieClip("line_mc", 1);
line_mc.lineStyle(2, 0x000000, 100);
line_mc.moveTo(350, 200);
line_mc.lineTo(500, 200);
line_mc.lineTo(500, 400);
line_mc.lineTo(350, 400);

Open in new window

How i can switch between visible and invisible?
How I can destroy it when I dont need it?

  Thank you in advance.

  Regards,
  Raul M.
Adobe Flash

Avatar of undefined
Last Comment
raulmonda

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
quizengine

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
quizengine

Oops! second comment should read

// make movieclip visible
line_mc._visible = true;
raulmonda

ASKER
thank you. It works.

regards,
Raul M.
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes