Re: [Flashcoders] Flip movie clip
thank you Willem I tried var rotate:String = cw; function rotat(event:MouseEvent):void { if (rotate== cw) { rotate = cww; this.mainmov.scaleY *= -1; this.mainmov.y = (this.mainmov.stage.stageHeight / 1) - (this.mainmov.height / 1); } else if (rotate == cww) { rotate = cw; this.mainmov.scaleY *= -1; this.mainmov.y = (this.mainmov.stage.stageHeight / 2) - (this.mainmov.height / 2); } } ro.addEventListener(MouseEvent.CLICK, rotat); I change the movie clip name to this.mainmov but the problem if I change the movie size of make it full screen it will change the potion is there anyway to flip it in same postion Bassam On 6/13/08, Geografiek [EMAIL PROTECTED] wrote: Hi Bassam, How about: function filp(event:MouseEvent):void { mySampleMC.scaleY *= -1; mySampleMC.y = mySampleMC.y - mySampleMC.height; } Willem Op 12-jun-2008, om 14:44 heeft Bassam M het volgende geschreven: Hi I have Video playing in the center of the stage and I'm using button to filp it function filp(event:MouseEvent):void { mySampleMC.scaleY *= -1; } mySampleMC.addEventListener(MouseEvent.CLICK, flip); but the problem when I flip it change Y postion and go up , I wnat to flip it and keep it in same postion Help please Thanks Bassam ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= Geografiek is a Dutch, Utrecht-based map and chart design company. Willem van den Goorbergh can be contacted by telephone: (+31)30-2719512 or cell phone: (+31)6-26372378 or by fax: (+31)302719687 snail mail: Hooghiemstraplein 89 3514 AX UTRECHT Visit our website at: http://www.geografiek.nl =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Flip movie clip
Need help here please On 6/12/08, Bassam M [EMAIL PROTECTED] wrote: yes it's On 6/12/08, Jiri Heitlager [EMAIL PROTECTED] wrote: Is the center point in the middle? Jiri Bassam M wrote: Hi I have Video playing in the center of the stage and I'm using button to filp it function filp(event:MouseEvent):void { mySampleMC.scaleY *= -1; } mySampleMC.addEventListener(MouseEvent.CLICK, flip); but the problem when I flip it change Y postion and go up , I wnat to flip it and keep it in same postion Help please Thanks Bassam ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Flip movie clip
Hi Bassam, How about: function filp(event:MouseEvent):void { mySampleMC.scaleY *= -1; mySampleMC.y = mySampleMC.y - mySampleMC.height; } Willem Op 12-jun-2008, om 14:44 heeft Bassam M het volgende geschreven: Hi I have Video playing in the center of the stage and I'm using button to filp it function filp(event:MouseEvent):void { mySampleMC.scaleY *= -1; } mySampleMC.addEventListener(MouseEvent.CLICK, flip); but the problem when I flip it change Y postion and go up , I wnat to flip it and keep it in same postion Help please Thanks Bassam ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= Geografiek is a Dutch, Utrecht-based map and chart design company. Willem van den Goorbergh can be contacted by telephone: (+31) 30-2719512 or cell phone: (+31)6-26372378 or by fax: (+31)302719687 snail mail: Hooghiemstraplein 89 3514 AX UTRECHT Visit our website at: http://www.geografiek.nl =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Flip movie clip
Try looking into the transform matrix. I use AS2, not sure if it's the same in AS3, but with that, you can flip it, and offset it back to its original position. - MM ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Flip movie clip
Hi I have Video playing in the center of the stage and I'm using button to filp it function filp(event:MouseEvent):void { mySampleMC.scaleY *= -1; } mySampleMC.addEventListener(MouseEvent.CLICK, flip); but the problem when I flip it change Y postion and go up , I wnat to flip it and keep it in same postion Help please Thanks Bassam ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Flip movie clip
Is the center point in the middle? Jiri Bassam M wrote: Hi I have Video playing in the center of the stage and I'm using button to filp it function filp(event:MouseEvent):void { mySampleMC.scaleY *= -1; } mySampleMC.addEventListener(MouseEvent.CLICK, flip); but the problem when I flip it change Y postion and go up , I wnat to flip it and keep it in same postion Help please Thanks Bassam ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Flip movie clip
yes it's On 6/12/08, Jiri Heitlager [EMAIL PROTECTED] wrote: Is the center point in the middle? Jiri Bassam M wrote: Hi I have Video playing in the center of the stage and I'm using button to filp it function filp(event:MouseEvent):void { mySampleMC.scaleY *= -1; } mySampleMC.addEventListener(MouseEvent.CLICK, flip); but the problem when I flip it change Y postion and go up , I wnat to flip it and keep it in same postion Help please Thanks Bassam ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders