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
6 matches
Mail list logo