Here is my actionscript:
stop();
//this will be the function for stoping/starting the animation
function clickHandler(clickevent:MouseEvent):void
{
if (clickevent.target == btnplay)
{
play();
}
if (clickevent.target == btnstop)
{
stop();
}
}
function buyHandler(event:MouseEvent):void {
navigateToURL(new URLRequest("http://www.amazon.com/Survival-Skills-Explicit/dp/B002NHH4PW/ref=dm_cd_album_lnk?ie=UTF8&qid=1268006200&sr=8-3-fkmr0"));
}
btnplay.addEventListener(MouseEvent.CLICK, clickHandler);
btnstop.addEventListener(MouseEvent.CLICK, clickHandler);
btnbuy.addEventListener(MouseEvent.CLICK, buyHandler);
And here is the preview of my project:
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.