Skip to main content
Participant
April 5, 2011
Question

HELP ASAP: Creating a "reflection" of a movie clip by dragging multiple movie clips

  • April 5, 2011
  • 1 reply
  • 549 views

Hello... semi new to flash, trying figure out how to imitate a reflection of a movie clip in a "mirror." I don't know if I should have the initial movie clip on custom cursor or have it set to drag... but either way I don't know how to make the second clip the "reflection follow along. Obviously it would need to follow at a slightly offset pattern so that you would be able to see both clips (or majority of them) at the same time. Any ideas would be helpful... let me know if you have any questions.  It's for a school project that is due at 9am tomorrow so time is of the essence!! Thanks so much

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
April 5, 2011

pixelfumes, i think, has a reflection class you can use.  google:  pixelfumes reflection flash as3

Participant
April 5, 2011

I have already looked at the Adobe files about creating move clips with reflections and mine is much simpler than that. I literally just need a movie clip to follow/attach itself (with an offset) to the mouse/custom cursor and be visible within a defined space (mask)... I am simply looking for some code that would allow me to do so! Thanks so much

April 6, 2011

Couple of ways... simple enter_frame, or enter_frame TweenLite

addEventListener(Event.ENTER_FRAME, updateReflection, false, 0, true);

function updateReflection(e:Event):void

{

     refClip.x = mouseX;

     refClip.y = mouseY;

}

or using TweenLite to give it a little softer motion:

function updateReflection(e:Event):void

{

    TweenLite.to(refClip, .5, {x:mouseX, y:mouseY});

}