[Xerte] Depth issue

Marc Torruella Altadill mtorruella at viguera.com
Thu May 28 16:21:37 BST 2009


Hi all,

Thank you one more time. I tried to identify the NCF (Nearer Common Father)
of “interfaz” and the templates and I failed miserably. But, nevermind, this
time I’ll just switch pageIcon’s visibility to false. It’s fine in this
case
 I’ll come back to this hell in the future, I’ll defeat my Nemesis next
time, I swear!.

 

De: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] En nombre de Julian Tenney
Enviado el: jueves, 28 de mayo de 2009 14:14
Para: Xerte discussion list
Asunto: RE: [Xerte] Depth issue

 

you can only swap depths on mcs with a common parent. That is the problem.
So you need to look up the tree structure and find where you can swap them,
probably by swapping the pages, or creating a structure that will allow you
to do what you want - perhaps by breaking up the content of a page into a
decision icon with additional pages, and then swap depths on those?

 

I've had a few tricky ones like this, but you can usually find a way to do
it.

 

  _____  

From: xerte-bounces at lists.nottingham.ac.uk on behalf of Marc Torruella
Altadill
Sent: Thu 28/05/2009 13:10
To: 'Xerte discussion list'
Subject: RE: [Xerte] Depth issue

Ok, thank you very much, now i know for sure the solution will be hard to
find.

 

_level0.engine.pageIcon is the movieClip of the xerte’s current page, I
verified it with a textfield. (thank you Patrick)

_level0.engine.pageIcon.getDepth() says its depth is 2
 2? Cmon!!! It can’t
be 2!... but it is.

 

And as expected after finding this, the swapDepths doesn’t work

 

this["dragObj"].swapDepths(_level0.engine.pageIcon.getDepth());

 

pageIcon continues being displayed over dragObj.

 

So as I feared at the beginning, I think I cannot swap depth between
components of different movieClips loaded in Xerte.

Not easily at least.

 

I also tried this from the interface: 

_level0.engine.interfaz.clip.swapDepths(_level0.engine.pageIcon.getDepth());

 

Then I though
 let’s let Xerte do this:

I added this function in the first script icon we have in Xerte:

function interfacePopup(){  

    debug("interfaz previous Depth: "+interfaz.clip.getDepth());

    interfaz.clip.swapDepths(pageIcon.getDepth()+1);

    debug("interfaz actual Depth: "+interfaz.clip.getDepth());

}

 

And in the interface I call it: _level0.engine.interfacePopup();

 

The depths from xerte has a different numeration than from the interface, so
seems that letting Xerte do it has some sense
 but it doesn’t work :p.

I’ll let you know if we find whats going on.

 

De: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] En nombre de Patrick Lockley
Enviado el: jueves, 28 de mayo de 2009 11:49
Para: Xerte discussion list
Asunto: RE: [Xerte] Depth issue

 

It seems to me that _level0.engine.engine is where things live for example -
Text_box – which is the id of the text field on the xerte piece lives in
here. 

 

If you change the button code (in the swf to be)

 

For(x in _level0.engine.engine){

 

          Debug(x);

 

}

 

You might see more of your stuff? The flash app sets the xerte script
variables (well it sets the text field) and it you click on the button it
calls a xerte function as well.

 

It’s worth noting that _root and _level0, behave differently (excuse my
flash if that’s obvious).

 

I would suggest you make some xerte textfields on the interface you have,
then add a line to the bottom of each of your swfs like

 

_level0.engine.engine.textfieldid = this.getDepth();

 

From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Marc Torruella
Altadill
Sent: 28 May 2009 10:39
To: 'Xerte discussion list'
Subject: RE: [Xerte] Depth issue

 

Oh, it seems you are poiting me to the right direction J.  

 

_level0.engine what is that? J the engine, yes
 but what do you mean by
engine? Can I acces Xerte script variables from here? Can I acces pages
movieclips from here? Is _level0.engine the same as rootIcon from Xerte
script?

 

I feel a bit disoriented right now, sorry if I ask something stupid.

 

De: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] En nombre de Patrick Lockley
Enviado el: jueves, 28 de mayo de 2009 11:08
Para: Xerte discussion list
Asunto: RE: [Xerte] Depth issue

 

I’m not sure this’ll help, but its basically a swf that xerte loads and lets
you examine the engine.

 

It shows the depths, and as you can see, it should allow you to check in
Xerte what depth clips are.

 

Swap depths seems a tad unreliable / unpredictable though.

 

Hope this helps.

 

From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Marc Torruella
Altadill
Sent: 28 May 2009 09:06
To: 'Xerte discussion list'
Subject: RE: [Xerte] Depth issue

 

Here i am again, Champions league celebrations did not affect our office

damn


 

Ok, thanks for the info you two. I already did know about swapDeapths(), I
tried to use some imposible depths like 1500 or 10500, even 100500, but
Xerte’s movieclips seems to have higher depths which I think is not
possible.

 

I got the rootIcon on a flash variable “fw” I can acces from interface,  I
can call fw.navigate(), for example.

But I don’t know how to get to the current pages clip, nor access the script
variables on Xerte.

 

Is there anyway I can access them? I have a variable called PageIcon in
xerte’s templates which points to the currents page  movieClip, but I don’t
know how to get to it.  

fw.PageIcon doesn’t work.

 

Any ideas? J.

 

P.D: the depths problem still occurs after publishing and viewing it in a
browser

 

Marc.

De: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] En nombre de Paul Swanson
Enviado el: miércoles, 27 de mayo de 2009 18:14
Para: Xerte discussion list
Asunto: RE: [Xerte] Depth issue

 

You can use swapDepths() to set the stacking level:
http://livedocs.adobe.com/flash/8/main/00002519.html

 

Paul

 

From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Marc Torruella
Altadill
Sent: Wednesday, May 27, 2009 8:56 AM
To: 'Xerte discussion list'
Subject: [Xerte] Depth issue

 

Hi all again,

As some of you know, we have implemented a custom interface, we have a top
and a left menu, which are controlled by an external .swf, then the Xerte
pages are loaded over it.

 

The links on the top menu load a movie clip simulating a pop up window. The
problem comes when the Xerte page is always displayed with a highest depth
than the “pop up”
 I guess is something about how Xerte loads de interface
which makes impossible for a movie on it to get a higher depth than a
movieclip from Xerte.

 

Sorry, I’m not explaining this well enough, but I’m doing my best.

 

Just let me know if my explanaition is understandable :_), and if there is a
simple solution to  the problem.

 

Thank you in advance for the help.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20090528/3f5c8bab/attachment.html


More information about the Xerte mailing list