Skip to main content
Participating Frequently
July 7, 2010
Question

how can i use a component twice in the same movie clip

  • July 7, 2010
  • 1 reply
  • 335 views

Excuse me am a beginner in this as2

below is the script used:

PeelIt is a component.

/////////////////////////////////////////////////1st frame contains the below:

PeelIt._visible = false;

PeelIt.init();
PeelIt.Peel();

///////////////////////////////////////////////// then on 2 different buttons:

on (release){
    this._parent.PeelIt._visible = true;
    this._parent.PeelIt.Stick();
}

and

on (release){
    this._parent.PeelIt.Peel();
}

/////////////////////////////////////////////////

1st problem: i need this component to work when the swf loads instead of (on release),

2nd problem: i need to introduce several frames with different movieclips using the component, how can i do so.

thank you

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
July 7, 2010

use:


PeelIt.init();
PeelIt.Peel();

PeelIt._visible = true;

PeelIt.Stick();
PeelIt.Peel();


and just add the component to each movieclip.