[Xerte] Layering...

Tenney Julian Julian.Tenney at nottingham.ac.uk
Tue Apr 29 15:21:37 BST 2008


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/7958bf53/attachment.html


More information about the Xerte mailing list