[Xerte] Layering...

Tenney Julian Julian.Tenney at nottingham.ac.uk
Tue Apr 29 15:32:50 BST 2008


You need to set up the dragItems property:
 
ic1~leave~0,ic2~leave~0,.....,icN~leave~0
 
It can be easier to build this in script, using a loop. I think I
described tis before,
 
The animate method is a Xerte method of the ICON class (i.e. every icon
type can do it). See the help file.


________________________________

	From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Paul
Beckwith, AC&S Ltd
	Sent: 29 April 2008 15:29
	To: 'Xerte discussion list'
	Subject: RE: [Xerte] Layering...
	
	

	How do we set it up so all the icons can match the area? (line
2)

	 

	Also

	 

	myIcon.animate(myIcon.initX, myIcon.initY,10,'linearTween');  -
Is there a reference for this function call? Can't find it in the flash
8 docs...

	 

	
________________________________


	From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Tenney Julian
	Sent: 29 April 2008 15:22
	To: Xerte discussion list
	Subject: RE: [Xerte] Layering...

	 

	Set up a 'catch all' target area - a target that covers the
entire stage (or the entire area it is possible to drop objects into);

	 

	Set it up so all your icons can macth this area, leave them on
drop and don't end the drag.

	 

	In the response, use yourInteractionIcon.objectDropped to see
which icon was just dropped, and then animate it back to it's starting
position.

	 

	You might need to store the starting positions as properties of
the icons (myIcon.initX = blah) to animate them back -
myIcon.animate(myIcon.initX, myIcon.initY,10,'linearTween');

	 

	Alternatively do it all with onPress / onRelease events, where
you have much finer control.

	 

	HTH,

		 

		
________________________________


		From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Paul
Beckwith, AC&S Ltd
		Sent: 29 April 2008 14:36
		To: 'Xerte discussion list'
		Subject: RE: [Xerte] Layering...

		Thanks Julian, 

		 

		Also, is there a way to capture an event when a target
area icon fails to move a graphic to the correct position?

		 

		In other words I have an image that I want to be dragged
to a target area but if it is dragged anywhere else I want it to be put
back to its starting position (using animation preferably)

		 

		P

		 

		
________________________________


		From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Tenney Julian
		Sent: 29 April 2008 12:03
		To: Xerte discussion list
		Subject: RE: [Xerte] Layering...

		 

		Use iconID.swapDepths(otherIconID); or
iconID.swapDepths(depth) to switch the layers around.

		 

		So myEntryFrame.swapDepths(999); will put your entry
frame page above all other pages on the framework (which I think is what
you want)

		 

		 

		 

		J

			 

			
________________________________


			From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Paul
Beckwith, AC&S Ltd
			Sent: 29 April 2008 10:26
			To: 'Xerte discussion list'
			Subject: [Xerte] Layering...

			Hi all, 

			 

			I have a custom .swf interface in my Xerte file
which is called from the "interface" icon. The problem being that it
overlaps everything else in the piece even though it was added first and
is at the top of the tree. Is there a way of "layering" or sending icons
back/forward?

			 

			Thanks, 

			 

			 

Aerospace Consulting & Services Ltd

Engineering, Training, Consultancy <http://www.acns-gmbh.com/> 

 

Paul Beckwith
Multimedia Developer 

AC&S LTD
35A Victoria Road East
Thornton-Cleveleys
Lancashire
FY5 5BU
UK 

paul.beckwith at acns-group.com <mailto:mark.tomlinson at acns-group.com> 
www.acns-group.com <http://www.acns-group.com/>  

tel: 
fax: : 

+44 1253 855 997
<http://www.plaxo.com/click_to_call?lang=en&src=jj_signature&To=%2B44+12
53+855+997&Email=mark.tomlinson at acns-group.com> 
+44 870 762 6818

 

			 

			 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20080429/9cbbb6a6/attachment.html


More information about the Xerte mailing list