Forum FAQForum FAQSearchSearch MemberlistMemberlist Forum ignore listForum ignore list RegisterRegister ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in
kako ponovno ispraznit nekoc empty mc holder?

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Flash
View previous topic :: View next topic  
Author Message
nemogirl



Joined: 27 Oct 2004
Posts: 386
Location: istra

PostPosted: 05.09.2008 14:33    Post subject: kako ponovno ispraznit nekoc empty mc holder? Add user to your forum ignore list Reply with quote

pitanje je jednostavno iako mozda na prvo oko/uho zvuci kompleksno. Very Happy
imam jednu varijablu mcHolder koja je tipa MoviClip. u njega stavljam druge mc - po potrebi
Code:

var mcHolder:MovieClip;
mcHolder = nekiMuvi;


e sad, ja zelim ipraznit taj holder ali da ga ne moram obrisat!!, isto tako ne zelim obrisat nekiMuvi nego samo ga maknut iz tog holdera...
probala sam sa
Code:
mcHolder = null;

ali mi se ponasa dosta cudno.. Rolling Eyes
mozgam... Brick wall
al uzalud
Back to top
View user's profile Send private message
hrvoje_86



Joined: 06 Dec 2006
Posts: 107
Location: Zagreb

PostPosted: 05.09.2008 15:24    Post subject: Re: kako ponovno ispraznit nekoc empty mc holder? Add user to your forum ignore list Reply with quote

Code:

var mcHolder:MovieClip;
mcHolder = nekiMuvi;

Ovdje dodala nekiMuvi u mcholder


Code:
mcholder.addChild(nekiMuvi)
mcholder.removeChild(nekiMuvi)


ili brisi sve iz holdera

Code:
while (mcholder.numChildren != 0)
   {
      mcholder.removeChildAt(0);
   }
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
nemogirl



Joined: 27 Oct 2004
Posts: 386
Location: istra

PostPosted: 08.09.2008 07:59    Post subject: Add user to your forum ignore list Reply with quote

hvala puno... ali zar to nije AS3? ja sam jos stuck na AS2, tako da ovo kod mene ne pali...
Crying or Very sad
Back to top
View user's profile Send private message
Vj3k0



Joined: 12 Jul 2007
Posts: 185
Location: Zagreb

PostPosted: 08.09.2008 08:44    Post subject: Add user to your forum ignore list Reply with quote

http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/migration.html
Back to top
View user's profile Send private message Visit poster's website
nemogirl



Joined: 27 Oct 2004
Posts: 386
Location: istra

PostPosted: 08.09.2008 09:14    Post subject: Add user to your forum ignore list Reply with quote

ok, hvala na linku, ali... jos ne prelazim na AS3 Razz
ekvivalnet addChild() bi bio attachMovie().
problem je da ja zelim maknuti nekiMuvi iz mcHoldera bez da ga referenciram po imenu!
znaci, zelim obrisati stogod se nalazilo u mcHolderu.
ideje?
Back to top
View user's profile Send private message
hrvoje_86



Joined: 06 Dec 2006
Posts: 107
Location: Zagreb

PostPosted: 08.09.2008 10:02    Post subject: Add user to your forum ignore list Reply with quote

http://www.actionscript.org/forums/archive/index.php3/t-102768.html
Probaj ovak
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Flash All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group