[Xerte] Component References using ID

Julian Tenney Julian.Tenney at nottingham.ac.uk
Fri Jun 11 08:21:48 BST 2010


>From the one component you can say _level0.engine.component2

Or you can pass the id of component 1 into component 2 via the init
function - I think that's a nicer way,

-----Original Message-----
From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Warren Chu
Sent: 10 June 2010 22:56
To: xerte at lists.nottingham.ac.uk
Subject: [Xerte] Component References using ID

Hi All,

I have 2 Flash components being loaded into my Xerte project.  By using
the first component's id within the Xerte scripting, I can change the
_visible property to true or false, ie myMenuID._visible = false.

My question is, how can I change the _visible property of component 1
from within component 2?  Is there a way to get a reference to component
1 from component 2?

Cheers,
Warren


      
_______________________________________________
Xerte mailing list
Xerte at lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte


More information about the Xerte mailing list