Forum Topic: Bring Movieclip to main stage

(66 views • 5 replies)

This topic is 1 page long.

<< < > >>
None

kizza0

Reply To Post Reply & Quote

Posted at: 10/4/09 11:53 PM

kizza0 NEUTRAL LEVEL 08

Sign-Up: 10/13/07

Posts: 276

Ok, iv posted a couple times. No help. So i guess ill simplify my question. I need a way to grab a movieclip from within another movieclip, and bring it to the main stage so it can be moved around etc.

BOOM HEADSHOT

BBS Signature

None

Hellraiser

Reply To Post Reply & Quote

Posted at: 10/5/09 12:11 AM

Hellraiser DARK LEVEL 14

Sign-Up: 01/04/05

Posts: 6,399


None

kizza0

Reply To Post Reply & Quote

Posted at: 10/5/09 02:13 AM

kizza0 NEUTRAL LEVEL 08

Sign-Up: 10/13/07

Posts: 276

Ok, I knew someone would refer to something like adding a new copy form the library.
Im using actionscript 3.0, The movieclip has over movieclips added within it during the movie.
So adding it from the library with addChild would not add the same Movieclip with all of the other movieclips nested within.

BOOM HEADSHOT

BBS Signature

None

tcc85811

Reply To Post Reply & Quote

Posted at: 10/5/09 10:37 AM

tcc85811 DARK LEVEL 03

Sign-Up: 10/12/08

Posts: 198

At 10/5/09 02:13 AM, kizza0 wrote: Ok, I knew someone would refer to something like adding a new copy form the library.
Im using actionscript 3.0, The movieclip has over movieclips added within it during the movie.
So adding it from the library with addChild would not add the same Movieclip with all of the other movieclips nested within.

I promise you, it will.


None

UnknownFury

Reply To Post Reply & Quote

Posted at: 10/5/09 10:53 AM

UnknownFury EVIL LEVEL 26

Sign-Up: 08/10/05

Posts: 6,027

This should work, although I haven't tested it and there might be a better way of handling it:

var inside : MovieClip = outside.inside;
addChild(inside);
inside.x += outside.x;
inside.y += outside.y;

This will essentially grab 'inside' MC from 'outside' MC and insert it onto the stage.

Portfolio(Under construction): UnknownFury.com |
Msn: giant_ak_47@msn.com | Contact: me@unknownfury.com
Follow me on twitter!


None

geterkikzkid

Reply To Post Reply & Quote

Posted at: 10/5/09 11:28 AM

geterkikzkid LIGHT LEVEL 09

Sign-Up: 07/18/04

Posts: 1,274

At 10/5/09 02:13 AM, kizza0 wrote: Ok, I knew someone would refer to something like adding a new copy form the library.
Im using actionscript 3.0, The movieclip has over movieclips added within it during the movie.
So adding it from the library with addChild would not add the same Movieclip with all of the other movieclips nested within.

You must have a problem with flash or some shit. Unless your using that shitty freeware, what's it called? Snitty, shitty, somethin.


All times are Eastern Standard Time (GMT -5) | Current Time: 07:36 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!