SwishTalk.com
 

Go Back   SwishTalk.com > .:: THE HELP DESK ::. > » Actionscript Help

Reply
 
Thread Tools Display Modes
#1   Before and after question  

Name: 
joenowhere
Status: Offline
Rank: Registered User
Posts: 3
Old 04-29-2012, 08:17 AM Reply With Quote


I'm new in Flash, now I want to make a before and after photo gallery, and each set of photo have a bar in it, so user can click on the bar and slide left and right to see the effect before and after, but the problem is I only know the AC for moving the bar but not with the mask, so did any one know how to make the mask move with the bar? Thanks a lot!

Below is the code I have and the SWF file, please help and thanks!

Code:
slider_mc.addEventListener(MouseEvent.MOUSE_DOWN, drag);
stage.addEventListener(MouseEvent.MOUSE_UP, drop);

function drag(e:MouseEvent):void
{
     e.target.startDrag(false, new Rectangle(0,300,800,0));
}

function drop(e:MouseEvent):void
{
     stopDrag();
}
4shared.com/document/HgJSIDce/Before_and_After.html




               
 
View Public Profile Find all posts by joenowhere Add joenowhere to Your Contacts
Advertisement:





Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump