[Xerte] Setting Hotspot Highlights in a sript icon

Dave Burnett d_b_burnett at hotmail.com
Thu Sep 17 15:51:54 BST 2009



Most likely a typecasting issue.

The XML structure is all String.
The function wants a Number.

From: paul.beckwith at acns-group.com
To: xerte at lists.nottingham.ac.uk
Subject: RE: [Xerte] Setting Hotspot Highlights in a sript icon
Date: Thu, 17 Sep 2009 15:41:38 +0100
















Thanks J, 

 

I’ll draw the boxes…

 

One quick question on the same
subject. . . 

 

This comes out with 503 :   debug(icon.parentNode.attributes.x);  


The box spans the entire screen
when icon.parentNode.attributes.x is used here:     hspotID.drawRect(icon.parentNode.attributes.x,100,50,50);

 

But manually putting “503” works
fine

 

Can’t figure out why this would
be any different?

 

Paul

 

 





From:
xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney

Sent: 16 September 2009 16:56

To: Xerte discussion list

Subject: RE: [Xerte] Setting Hotspot Highlights in a sript icon





 

It wouldn’t work in
this case: the unerlying xml is used ot render the page.

 

So, it is used as the
page initalises.

 

After the user has
interacted with it is too late, unless you refresh the page - which is not what
you want,

 





From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Paul Beckwith

Sent: Wednesday, September 16, 2009 4:56 PM

To: 'Xerte discussion list'

Subject: RE: [Xerte] Setting Hotspot Highlights in a sript icon





 

How
do you do it the proper way though? My underlying mission here is to find out
how to change the attributes in the XML via script….

 

Cheers
Jules, 

 

Paul

 





From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney

Sent: 16 September 2009 16:30

To: Xerte discussion list

Subject: RE: [Xerte] Setting Hotspot Highlights in a sript icon





 

I’d just draw the highlight yourself

 

hotSpotID.lineStyle(1,0xFFFF00,100);

hotSpotID.drawRect(0,0,hotspotID._width, hostpotID._height);

 





From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Paul Beckwith

Sent: Wednesday, September 16, 2009 1:44 PM

To: 'Xerte discussion list'

Subject: [Xerte] Setting Hotspot Highlights in a sript icon





 

When a user
clicks on a hotspot, I want  the highlight property to change from 0 to 1
so the highlight is then visible. 

 

I’ve tried a few
different ways but I cant seem to get the code quite right. 

 

Any ideas?

 

Cheers, 

 

Paul

 

 

 

 


_________________________________________________________________
Ready for Fall shows? Use Bing to find helpful ratings and reviews on digital tv's.
http://www.bing.com/shopping/search?q=digital+tv's&form=MSHNCB&publ=WLHMTAG&crea=TEXT_MSHNCB_Vertical_Shopping_DigitalTVs_1x1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20090917/90c34fde/attachment.html


More information about the Xerte mailing list