[Xerte] Re: SWF not Functioning in Xerte

Deborah Delin admin at strivney.com
Mon Sep 26 12:06:56 BST 2011


Hi Julian,

Thanks for the guidance.  I am struggling:

- I moved the code on the mc's which were two levels down to the first frame
using on(release) as you suggested.  The on(release) still doesn't function
in Xerte - maybe because the parent mc has onClipEvent (load) { code on it?

Did you mean  to also put the onClipEvent (load) { code on the first frame?
instead of on the mc?   I tried to do this but don't succeed.

Code on clip is:
onClipEvent (load) {
previouslyOver = false;
}

onClipEvent (enterFrame) {
currentlyOver = this.hitTest(_root._xmouse,_root._ymouse,true);
 if(!previouslyOver and currentlyOver) {
previouslyOver = true;
this.gotoAndPlay(1);
}
else if (previouslyOver and !currentlyOver) {
previouslyOver = false;
this.gotoAndPlay(10-_currentframe);
}
}

I don't know how to convert this to code for the main timeline.  I tried:

three_drop.onMouseDown = function ()
 {
previouslyOver = false;
}
 {
currentlyOver = this.hitTest(_root._xmouse,_root._ymouse,true);
 if(!previouslyOver and currentlyOver) {
previouslyOver = true;
this.gotoAndPlay(1);
}
else if (previouslyOver and !currentlyOver) {
previouslyOver = false;
this.gotoAndPlay(10-_currentframe);
}

But that didn't work.

Also, substituting the onEnterFrame which is on the dropdown clip for
onMouseDown
as you suggest below didn't work.

onClipEvent (load) {
previouslyOver = false;
}
onClipEvent (onMouseDown) {
currentlyOver = this.hitTest(blah


Don’t do the hittest in onEnterFrame: ..........Instead run the hittest off
> onMouseDown
>

You said:


Use lockroot to make those components work properly when loaded into xerte.

By this you mean put this._lockroot = true; on the first frame? This indeed
makes the functions work in Xerte but it throws the dropdown out of sync.
and makes the clip unoperable.

 There’s a components example in [xerte]\templates\components

I downloaded the compoments file but I'm afraid it meant nothing to me.

Sorry, as you can see, I'm over my head here.  Your time and patience very
much appreciated.

Deborah
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20110926/6569815c/attachment.html>


More information about the Xerte mailing list