PowerUpMySite.com Forum Index

Forum Index | PowerUpMySite.com Home Page
Log in Register FAQ Search PowerUpMySite.com Forum Index

Peel It Component

 
Post new topic   Reply to topic    PowerUpMySite.com Forum Index » The Lab
View previous topic :: View next topic  
Author Message
teasso



Joined: 27 Mar 2008
Posts: 8

PostPosted: Sun Apr 06, 2008 4:20 pm    Post subject: Peel It Component Reply with quote

How about the ability to have actionlisteners? Or simply the ability to specify a function to call for certain actions like onPeel or onStick.


Back to top
View user's profile Send private message
PowerUpAdmin
Site Admin


Joined: 23 Feb 2007
Posts: 189

PostPosted: Mon Apr 07, 2008 2:08 am    Post subject: Reply with quote

Thank you for the note. The Peel-It actually does have listeners built into it. You can use them in this fashion (assuming your Component Instance is "PeelIt":

var oListener:Object = new Object();
oListener.peeled = function(oEvent:Object):Void {
// go to frame, or whatever you want to happen when the item has been peeled back.
}
PeelIt.addEventListener("peeled", oListener);

The events are "stuck" and "peeled". We hope this helps!



_________________
PowerUpMySite Staff
Power Up Your Site the Easy Way
http://powerupmysite.com
Back to top
View user's profile Send private message Send e-mail
teasso



Joined: 27 Mar 2008
Posts: 8

PostPosted: Mon Apr 07, 2008 2:30 am    Post subject: Nice! Reply with quote

Thanks! Razz


Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    PowerUpMySite.com Forum Index » The Lab All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001- 2004 phpBB Group
Theme created by phpBBStyles.com | Themes Database