Link to home
Start Free TrialLog in
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.
ASKER CERTIFIED SOLUTION
Avatar of quizengine
quizengine
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Oops! second comment should read

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

ASKER

thank you. It works.

regards,
Raul M.