Forum Topic: Movieclip in another movieclip?

(94 views • 5 replies)

This topic is 1 page long.

<< < > >>
Sad

Dakaha

Reply To Post Reply & Quote

Posted at: 4/14/09 04:00 PM

Dakaha DARK LEVEL 04

Sign-Up: 07/29/06

Posts: 27

I have placed some movieclips/buttons/texts in another movieclip so it could fade in the screen when you pressed a button.
But now when I press a button inside the movieclip it just ignores what I tell him to do!
Normally it acts fine when it is alone.
What should I do?
Here is the code of the button:

on(release){
terrain.lineStyle(pensize += 1, curhex, penalpha);
cur_pensize += 1;
if(cur_pensize >= 50){
cur_pensize = 50;
}
}

Thanks to anyone helping me :D


None

Zielak

Reply To Post Reply & Quote

Posted at: 4/14/09 04:08 PM

Zielak FAB LEVEL 17

Sign-Up: 09/21/05

Posts: 865

thats maybe because all your stuff and variables are not in the same moveClip but you left them outside, on _root object:

on(release){
   _root.terrain.lineStyle(pensize += 1, curhex, penalpha);
   _root.cur_pensize += 1;
   if(_root.cur_pensize >= 50){
      _root.cur_pensize = 50;
   }
}

None

Dakaha

Reply To Post Reply & Quote

Posted at: 4/14/09 04:12 PM

Dakaha DARK LEVEL 04

Sign-Up: 07/29/06

Posts: 27

Thanks for the answer but it is still doesn't work


None

Zielak

Reply To Post Reply & Quote

Posted at: 4/14/09 04:16 PM

Zielak FAB LEVEL 17

Sign-Up: 09/21/05

Posts: 865

Ups, I made a typo in the code, thought you got the point and didn't copy/pasted it.
Fix it by yourself, I hope you got my point in the last post.


None

Dakaha

Reply To Post Reply & Quote

Posted at: 4/14/09 04:19 PM

Dakaha DARK LEVEL 04

Sign-Up: 07/29/06

Posts: 27

I don't but I'll go try to fix it :P


Sleeping

TheOutsiders

Reply To Post Reply & Quote

Posted at: 4/14/09 04:58 PM

TheOutsiders DARK LEVEL 05

Sign-Up: 03/13/09

Posts: 155

Maby, you should cheak everything is in the right place first. That usully helps.

"Imagination is more important than knowledge." --Albert Einstein
www.theoutsiders.org.uk < Main
forum.theoutsiders.org.uk <Forums

BBS Signature

All times are Eastern Standard Time (GMT -5) | Current Time: 07:23 AM

<< Back

This topic is 1 page long.

<< < > >>
You need a Grounds Gold Account to post on the NG BBS! If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!