[Xerte] Re: SWF not Functioning in Xerte

Julian Tenney Julian.Tenney at nottingham.ac.uk
Mon Sep 26 09:48:30 BST 2011


Don't do the hittest in onEnterFrame: you are constantly polling for the test. Instead run the hittest off onMouseDown - then it only needs to check when the mouse goes down, not 24 times a second.

From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Deborah Delin
Sent: 24 September 2011 09:11
To: Xerte discussion list
Subject: [Xerte] SWF not Functioning in Xerte

Hi,

I have created an SWF which I am displaying via Xerte Wizards Text Flash SWF template.

The SWF has several dropdown menus using this code:

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);
            }
}

Students are required to click the right movie clip on the dropdown menu.  The movie clips have on (press) code which alters the score and re-directs them according to their answers.  This all works perfectly outside of Xerte but once in Xerte the dropdown menus are working but nothing happens with the on (press) commands.

Thanks in advance for your help.

Deborah

p.s.  I didn't want to post the SWF publicly but if anyone is prepared to have a look at the RLO I'd be happy to mail it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20110926/5cd8d7ce/attachment.html>


More information about the Xerte mailing list