[Xerte] Re: Flash Scoring not Working in Xerte

Julian Tenney Julian.Tenney at nottingham.ac.uk
Fri Jun 10 12:19:23 BST 2011


You don't need to use _root anyway. Use this or something to keep your code in your swf. There is no need to set values on _root.


From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: 10 June 2011 12:17
To: Xerte list
Subject: [Xerte] Re: Flash Scoring not Working in Xerte

I'd be guessing something to do with _root.

Since a loaded swf is no longer _root, it is probably talking to some other clip.





________________________________
Date: Fri, 10 Jun 2011 13:44:54 +0300
From: admin at strivney.com
To: xerte at lists.nottingham.ac.uk
Subject: [Xerte] Flash Scoring not Working in Xerte
Hi,

I have created a swf with a simple scoring system using this code on a movie clip:

on (release) {
_root.total = _root.total+10;
}
onClipEvent (load) {
if (_root.total=0) {
_root.total = _root.total+_root.total;
}
}

And this on the frame:

onEnterFrame = function () {
     if (_root.score >= 50){
          gotoAndStop (2);
     }
}

This all works fine outside of Xerte but when I put the SWF inside Xerte (I'm using Wizards but I don't think that's the issue) the score doesn't register.

Please could anyone suggest what it might be that Xerte doesn't like?

Thanks in advance.

Deborah

This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.
This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.

_______________________________________________ Xerte mailing list Xerte at lists.nottingham.ac.uk http://lists.nottingham.ac.uk/mailman/listinfo/xerte This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20110610/0a74ac4d/attachment.html>


More information about the Xerte mailing list