Try iterating / looping through the main timeline (the old AS2 _root)
clip. I don't think you can rename that one.
I think if you are using timeline ActionScript and adding children to
something, it is always the clip your code is in - so in this case, you
are probably adding to the root clip
Hi Glen, I did as you said and this is the result of the first
part:clip is [object MainTimeline] name root1 how can I rename the
object?True is I don't know how.
I tried using :
var newWindow:AboutUsWindow = new AboutUsWindow();
newWindow.name = "newWindow";
but it returns nothing, I onl
Hi,
Sorry, I am a little confused - I may have looked at your question wrong...
Your error says
"1120: Access of undefined property contactWindow"
etc.
Where is "contactWindow" created - if you have no variable called
contactWindow in the scope of your removerChild function, it will
complain
Hi Glen, the problem is not the creation of the window(which is movie
clip exported to actionscript), is to removing then in a function.
Regards,
Gustavo
On Jun 3, 2009, at 11:04 AM, Glen Pike wrote:
function click(e:MouseEvent):void{var newWindow:AboutUsWindow = new
AboutUsWindow()://??addCh
function click(e:MouseEvent):void{
var newWindow:AboutUsWindow = new AboutUsWindow():
//??
addChild(newWindow)
}
Gustavo Duenas wrote:
Hi Matt I did as you sent me, but something wrong happened this is the
warning flash gave me:
1120: Access of undefined property contactWindow.
and so on with
Hi Matt I did as you sent me, but something wrong happened this is
the warning flash gave me:
1120: Access of undefined property contactWindow.
and so on with the other parts of the code , code is:
function removerChild():void{
if(stage.contains(contactWindow)){
stag
sure Matt, I'm using as3...:)
also can I use
stage.removeChildAt(0);
since the newly created movieclip instance appears always on 0 or at
least I think based on the link Glen pike send me about.
Gustavo
On Jun 2, 2009, at 2:02 PM, Matt Gitchell wrote:
The container would be the stage in t
The container would be the stage in that instance, yes. I used it because
Stage extends DisplayObjectContainer, and you could use that chunk of code
for any DisplayObjectContainer (MovieClip, Sprite) as well.
I should also mention that we're talking AS3.
--Matt
On Tue, Jun 2, 2009 at 10:38 AM, Gu
Hi Glen, thanks do you think can I use:
stage.removeChildAt(0);
gustavo
On Jun 2, 2009, at 12:08 PM, Glen Pike wrote:
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/
display/DisplayObjectContainer.html#getChildByName()
Gustavo Duenas LRS wrote:
Hi I have movie clips, that a
in this case what is container? is stage.?
like this
if(stage.contains(contactWindow)){
stage.removeChild(contactWindow);
}
is like this, if not please explain me what this container is about.
Gustavo
On Jun 2, 2009, at 12:07 PM, Matt Gitchell wrote:
if (container.contains(itemToRemove)){
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/DisplayObjectContainer.html#getChildByName()
Gustavo Duenas LRS wrote:
Hi I have movie clips, that are created one I click a button, I'd like
to know how could
I remove then, something to put in the buttons, problem is when
if (container.contains(itemToRemove)){
container.removeChild(itemToRemove);
};
On Tue, Jun 2, 2009 at 8:45 AM, Gustavo Duenas LRS <
gdue...@leftandrightsolutions.com> wrote:
> Hi I have movie clips, that are created one I click a button, I'd like to
> know how could
> I remove then, something to
Hi I have movie clips, that are created one I click a button, I'd
like to know how could
I remove then, something to put in the buttons, problem is when I try
to remove
the movieclip from the stage(I put the orders en every single button
I have there), it says that is not created yet, there i
13 matches
Mail list logo