Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

beginner:Instance problem 1

Status
Not open for further replies.

Themuppeteer

Programmer
Apr 4, 2001
449
BE
I made a movieclip button (rotating on rollover, you know what I mean),
I have put it 4 times on stage.
On rollOver some text (description of the button) should
appear in a dynamic textbox also on stage.
I gave all the buttons a different name in the instance panel.
The problem is,I double clicked on the first button to enter the instructions for the onRollover (textbox="button1") and ALL 4 the buttons contain that text now! Like I didn't make an instance at all.

Can anyone help me ?
thnx.
(stars to earn on helpful post :))
Greetz,

The Muppeteer.
themuppeteer@hotmail.com

Don't eat yellow snow...
 
You probably have 4 different instances, and could control those 4 instances independently by referring to those instance names, but they are all instances of the same movie clip and edits to any element of one of these instances will be reflected in all instances.
What you have to do is, in the Library, duplicate your first movie clip, rename it, edit it if you want, and drag a new instance of this movie clip on stage.
Furthermore, this also applies to other movie clips, which would be included in this first movie clip. Those too would have to be duplicated and edited individually, so that any change to them, wouldn't apply to all instances of those same movie clips. Regards,

oldman3.gif
 
Just one more question,...
if I want my four buttons to each open a different browser with a different page, should I do it like this ?:

create actionscript code for my movieclip and check
if name=='button1' blabla
if name=='button2' blabla

is that the way ? Greetz,

The Muppeteer.
themuppeteer@hotmail.com

Don't eat yellow snow...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top