[Xerte] Re: Accessing an array from a flash menu
Dave Burnett
d_b_burnett at hotmail.com
Mon Jan 16 02:55:13 GMT 2012
>I notice that I have to use ‘_level0’ not ‘_root’ or ‘rootIcon’ in Flash, but in xerte either works in debug:
_level0 is a Flash object.
rootIcon is a reference that Julian used to create a comfortable feeling for us old AW users.
From: knowledgeware at kccsoft.com
To: xerte at lists.nottingham.ac.uk
Date: Sun, 15 Jan 2012 18:38:58 -0800
Subject: [Xerte] Re: Accessing an array from a flash menu
OK – thanks. I’ll experiment with the clip() trick. I have xerte reading the array data as built in the Flash file: In Flash file:_level0.engine.PMNames = new Array();_level0.engine.PMNames[0] = "zzzzzzzzzzzzzzzzzzz"; //etc. I notice that I have to use ‘_level0’ not ‘_root’ or ‘rootIcon’ in Flash, but in xerte either works in debug: debug(_level0.engine.PMNames);is the same asdebug(rootIcon.engine.PMNames); I assume what I’m doing here is building an array at the ‘rooticon’ level that will persist throughout the application? At least that’s my intent… Any clear definition anywhere of what exactly ‘_level0’ and ‘engine’ are? I notice in some scripts ‘engine.engine’ is used…but in testing I seem to be able to use either one or many ‘engine’ statements strung together with no difference in the ouput. I just succeeded in passing data from xerte back to the SWF file…onward and upwards (and bit sideways). Thanks for the help!!RonM2 From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: Sunday, January 15, 2012 5:52 PM
To: Xerte list
Subject: [Xerte] Re: Accessing an array from a flash menu 1) no _ in front of rootIcon 2) menu is the ID of the Xerte icon that the menu.swf *is loaded in to*. The swf itself is in the clip() object of that icon. e.g. something like rootIcon.menu.clip().PMNames[1] But I can't be sure without the actual rlo and menu.swf. Build it slowly with debug(rootIcon);inspect(rootIcon);thendebug(rootIcon.menu);inspect(rootIcon.menu); etc and keep going as long as you are not getting undefined returned. From: knowledgeware at kccsoft.com
To: xerte at lists.nottingham.ac.uk
Date: Sat, 14 Jan 2012 20:21:09 -0800
Subject: [Xerte] Accessing an array from a flash menuDesktop xerte – I have a flash menu inserted in the flowline (ID = ‘menu’). The Flash menu has an array called ‘PMNames’. Anyone know how can I access the data in that array? I need to pass values back and forth into this array as xerte modules are completed and have them show up on the menu. I can’t seem to find the correct path that lets me ‘debug’ the array values – it just shows as ‘undefined’. What am I missing? RonM2
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.
_______________________________________________
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/20120115/d0bc0a7b/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 26824 bytes
Desc: not available
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20120115/d0bc0a7b/attachment-0001.jpg>
More information about the Xerte
mailing list