[Xerte] 2 questions: popup and RTE text entry

Paul Swanson Paul.Swanson at harlandfs.com
Thu Oct 1 16:58:27 BST 2009


About 1:

If you are looking for a text box type pop-up, here's what I've been
doing:
	
a) Add a graphic icon, and give it an id (I'll use txtBoxRect as the
id).
b) Add a text icon, with the text you want to display, and position it
where you want it. I'm going to use a red filled rectangle for the
background, so I set my text color to '#ffffff' (white).
c) In a script icon, draw the rectangle:
	// draw txtBoxRect
	txtBoxRect.lineStyle(2, 0xFF0000, 100);
	txtBoxRect.beginFill(0xFF0000, 80);
	txtBoxRect.drawRect(300, 227, 200, 111, 10);
	txtBoxRect.dropShadow(2, 45, 0x000000, .8);

	// fade it in
	txtBoxRect.fade('in', 1);

Note: I used an 80% transparent fill for this, if you want completely
opaque, set the second parameter of beginFill to 100. I also used
rounded corners for the rectangle. The syntax for drawRect is
drawRect(X, Y, Width, Height, CornerRadius).

Paul

> -----Original Message-----
> From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-
> bounces at lists.nottingham.ac.uk] On Behalf Of John Lannon
> Sent: Thursday, October 01, 2009 7:40 AM
> To: Xerte discussion list
> Subject: [Xerte] 2 questions: popup and RTE text entry
> 
> Hi all,
> 
> I have been working on a project using my own template and have 2
> questions that some of you might help me out on:
> 
> 1. I want to present a popup in the foreground hiding whats behind it.
> However it always appears as a transparent flex type object - even if
I
> use a jpg graphic. Is there a convenient way to do it?
> 
> 2. I'd like to incorporate a rich text editor into my learning object
> for text entry. Any experience of doing this?
> 
> With thanks,
> 
> John Lannon
> Systems Developer, Human Rights Impact Resource Centre
> Aim for human rights
> 
> Aim for human rights is working towards a world in which everyone's
> rights will be respected.
> 
> PO BOX 114
> 3500 AC Utrecht
> The Netherlands
> E: j.lannon at aimforhumanrights.nl
> 
> Please see our websites www.aimforhumanrights.org,
> www.humanrightsimpact.org and www.ediec.org.



More information about the Xerte mailing list