[Xerte] Re: display checkmarks on menu
Kemp Johnathan
johnathan.kemp at ntlworld.com
Sun Jan 1 12:56:33 GMT 2012
Hello Ron,
I don't know how you are building your menu but if each item is a text
object you could assign an image to each text item and then change the
image when the menu item has been accessed.
Create an image icon for each image you will require - it may be you just
use a tick image and a transparent image. In this example I'll call then
imgBlank and imgTick
For each image capture the url data
blankUrl =
imgBlank.XMLElement.attributes.url.substring(16,imgBlank.XMLElement.attributes.url.length
-1 );
tickUrl =
imgTick.XMLElement.attributes.url.substring(16,imgTick.XMLElement.attributes.url.length
-1 );
// Set the image visible properties to 0 to hide them.
imgBlank._visible = 0;
imgTick._visible = 0;
// create a movieclip loader
loader = new MovieClipLoader();
// for each text icon in your menu you can then assign an image
txtMenuItemA.createEmptyMovieClip("myImage", 999);
// then assign the appropriate graphic
loader.loadClip(FileLocation + blankUrl, txtMenuItemA.myImage);
// at a later time you should be able to change the graphic to a tick
loader.loadClip(FileLocation + tickUrl, txtMenuItemA.myImage);
The above is based on a page I created a while back.
I don't have time to test it out now but if you think it looks like it may
solve your problem then give it a try.
If you have any issues getting it to work post back and I will check
everything over to make sure I haven't missed anything out.
Kind regards
Johnathan
On 1 January 2012 04:24, KnowledgeWare <knowledgeware at kccsoft.com> wrote:
> I’d like to turn checkmarks on on a menu when the student has finished a
> section.
>
>
>
> I want to loop through an array to get ‘1’ or ‘0’ then place the checkmark
> and display it if the value is ‘1’.
>
>
>
> How to best do that in AS? Can I create one checkmark graphic, move it
> around with x/y coordinates and make it visible on the fly? Any time saving
> suggestions on how to best handle this? My AW code is not a direct port on
> this one :- (
>
>
> Happy New Year!
>
>
>
> 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.
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20120101/5a395971/attachment.html>
More information about the Xerte
mailing list