Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




How Can Flip Horizontal MovieClip With AS3?



hi all,I'm wondering how I can flip horizontal or vertical MovieClip? Can skew it?



KirupaForum > Flash > ActionScript 3.0
Posted on: 02-03-2008, 08:48 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Horizontal Flip Of Movieclip
Usually in most environments, a scale of -1 equals a horizontal flip. Not the case in AS3, as it doesn't seem to do anything. Anyone know off hand how to flip a MC horizontally? Thanks!

Flip Horizontal / Vertical In Actionscript (flipping MovieClip)
I need to know how to flip a movieclip vertically / horizontally like in

modify - flip horizontal
modify - flip vertical

But in actionscript, and i've tried ._rotation, and it doesnt work properly, it messes it up

Flip Horizontal
Has anyone got a quickie code to horizontally flip an MC?

How To Do A Flip Horizontal On A MC
Can one use actionscript to flip a movieclip horizontally? If so, what is it? Hopefully this is an easy question.

Flip Horizontal
as most of you know how to rotate a movie but, how can i do a flip? My code would be:

onClipEvent (enterFrame) {
if (Key.isDown(Key.RIGHT)) {
this._y -= 10;
}

what can i do to this code to tell my movie flip horizontal?

Horizontal Flip
How would one horizontaly flip a movie clip with as 2.0 ? second dumb question i've asked today

[F8] Flip Horizontal
I am attempting to create a Learning Interaction to use in e-learning. I want to create a card on the screen that can be clicked, and it will rotate (flip) horizontally to display text on the back side.

I created a Rectangle and converted to mc. I inserted a keyframe in frame 12 and flipped the rectangle horizontally. I then created a motion tween. That works perfect.
I added a layer above the rectangle with text for the front of the card and performed the same steps as with the rectangle.

When I animate, the text reverses as the rectangle did, though now I have reverse text showing, even though I would have thought that you could not see the text through the card. As the text is on the upper layer, I assume that is why it is showing.

What I want is to be able to see text on the opposite side of the card (rectangle) that is new. That means it needs to be rotating at the same time to look realistic. So I added another layer with the reverse side text.

I tried to change the alpha on the text and have it fade out when the card is flipped 50%. That works fine for the text on the front of the card but the rotation appears not to be in sync with the text for the reverse side.

Can anyone give me a clue as to how to proceed?

How To Flip Horizontal?
Hi,

How can i flip a movie clip hotizontaly using actionscript 3.0

Thanks.

Horizontal Flip In Actionscript >> HELP
ok, real quick, its late, ive got a MC of a character who runs forward, but when you press the back arrow he runs, but backwards. So, I can rotate him, but not correctly, what I need is a horizontal flip >> how can i do this in actionscript? please help, urgent!!

-Tman_Productions...

How Do I Flip This Scrollbar Horizontal?
I want to use a scroll like Drag and Drop Scroller with buttons v2 (http://www.flashkit.com/movies/Scrip...3033/index.php) for scrolling a row of thumbnail buttons. How can I flip it from vertical to horizontal?

_xscale Flip Horizontal
I'm trying to make my object flip horizontally when it travels to the right and flip back when it travels to the left.

this._xscale *= -1; This is the code I used, all it does is flip back and forth.

anybody know whats wrong.


onClipEvent (load) {

width = 900;
height = 388;
speed = Math.round(Math.random()*3)+1;
//initial positions
x = this._x=Math.random()*width;
y = this._y=Math.random()*height;
x_new = Math.random()*width;
y_new = Math.random()*height;
this._xscale = this._yscale=30+Math.random()*40 ;

}
onClipEvent (enterFrame) {

//x movement
if (x_new>this._x) {

sign_x = 1;
} else {
sign_x = -1;

}
dx = Math.abs(x_new-this._x);
if ((dx>speed) || (dx<-speed)) {

this._x += sign_x*speed;
} else {
x_new = Math.random()*width;

this._xscale *= -1;


}
//y movement
if (y_new>this._y) {

sign_y = 1;
} else {
sign_y = -1;

}
dy = Math.abs(y_new-this._y);
if ((dy>speed) || (dy<-speed)) {

this._y += sign_y*speed;
} else {
y_new = Math.random()*height;

}

}

Thanks vxd

Flip Horizontal With Actionscript?
Can anyone help out with a script to horizontally flip a movieclip? I could use Modify>Transform> Flip Horizontal, but I need to do it thru Actionscript. Any help would be much appreciated.

OnCLip Event With Flip Horizontal
I am having trouble flipping a movie clip. I have a movie clip of a guy walking and when he hits the side wall he is suppose to flip around.
what I am using right now is

this._xscale = -this._xscale;

it flips the movie but since its inside a
onClipEvent (enter)

it flips back and forth. How would I make it only flip once, and then flip back when it hits the other wall.

Thanks MikeMadman

Flip Horizontal Using Actionscript, Is There A Simple Way?
Hi everybody. I have a movieclip of legs that run when the left or right arrows are pressed. I want the legs to flip horizontally when the arrow of opposite direction is pressed, that way the legs run in the correct direction.

So is there a simple property or method or something that I can apply to the movieclip to flip it horizontally each time the opposite direction key is pressed?

I could probably set the movieclip up so that on a certain frame it is switched and have the arrow key go to the appropriate frame, but that may get complicated and well I wouldn't mind learning the answer to the above question.

Thanks.

Lazer

Transform Flip Horizontal At Runtime
Hi there

i have a bug that follows the users mouse, it currently faces left, but if it is to the left of th emouse, i would like it to flip horizontally so it is facing right

i cant seem to find how to do this

any ideas

cheers

jmie

Simple Page Flip From Horizontal
I know there has been a million threads on page flip but i promise this one is different .. and this seems much simpler but i've been stuck trying to achieve a booklet just like this one

http://www.artpartner.com/
(click photography, than an artist for book to appear)


if anyone could help, real highly appreciated!

Horizontal Flip With Front And Back
Anyone know how this is done?

http://www.bannerblog.com.au/2007/09...technology.php

Actionscript To Horizontal/vertical Flip Loaded Movies
i need to make a button that flips a movie i've loaded, then flips it back. so basically, a command that toggles the horizontal and vertical flip. please let me know if you know how to do this. thanks.

How To Flip Movieclip :) Is It Possible?
Hi Guys,

How to flip movie clip if certain condition is match?

onCliponClipEvent (load) {
accelaration = 10;
rotation = 10;
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.RIGHT)) {
this._x += accelaration;
_root.xposition = this._x;
************************************************** *******
like if _root.xposition >= 400
flip this movie!!!

Where _root.xposition is dynamic text field on main time line.

I think this is very very stupid question!!
but is this thing really achivable?
************************************************** *******

Secondly how to restrict rotation angle.
this._rotation += rotation;
above equation will not allow movie clip to have full 360 degree rotation.



ref. fla.
http://www.geocities.com/bhupha/paratrooper.fla

Thanks
Bhushan

How Can I Flip The MovieClip Using AS
Hello...

Could any one help in writing an action script for Fliping the MovieClip horizontal

we have in the Modify---->Transform----------->flip horizontal is the core method to flip the object, but what i need is for an instance i need to flip horizontal....Please Help me..


Thanks,
Mohan.

Flip Movieclip
How can I make my mc flip horizontally?
what I want is when I press the left arrow key my mc will face to the "left"
(facing right by default). Then when I press right arrow key it will face to the right... pls help me .. thanks..

code:

function moveStuff() {
if (Key.isDown(Key.LEFT)) {
this._x -= 5;
}
if (Key.isDown(Key.RIGHT)) {
this._x += 5;
}
}
soldier_mc.onEnterFrame = moveStuff;

Flip Movieclip Horizontally
Hi. I'm trying to flip my movie clip horizontally so it will point in the opposite direction.

Any ideas?

Thank you.

How To Flip A Movieclip Horizontally Using AS
I tried things like changing _width and _xscale. nothing works.
flipping vertically is possible by changing _rotation. but how do i flip the clip horizontally??
please please help

Flip Tween Movieclip
Howdy! I know how to flip with AS but how do you tween it like this example: http://www.eleveninc.com/11/frames.html ? I gots to know please.

Code:

flip1.onRollOver = function() {
    this._xscale *= -1;
};]

Flip An Image On Attach Movieclip?
I'm attaching a movieclip to the stage and then setting certain variables to create a rondom feel. I want flash to randomly select NORMAL or MIRRORED. The effect is just a horizontal flip of the original movieclip. I know this is easy for someone, please help.

Flip/rotate Movieclip (rectangle)
Hi there

How can i flip/rotate a movieclip around it's own axis (a rectangle) with actionscript? I have been playing around with _width but i can't make it look good. :(

Simular to this one: http://www.templatemonster.com/flash-templates/16467.html

Flip Movieclip Horizontally Or Vertically Using AS
Hi,

is it possible to flip a (duplicated) movieclip horizontally or vertically using AS?

I don't mean rotating it 180 degrees, that's something else, I mean a flip comparable to
Modify > Transform > Flip Horizontal.

Thanks!

Jerryj.

Rotating A Movieclip To Flip Vertical
Imagine the movie clip is a business card. The text and images are dynamic

I want to 'flip the card' (bring the top of the card towards me and the bottom away) to rotate the card around to see the back of the card

I would really like to do this in actionscript. Can anyone point me in the right direction?

How To Make Actionscript Mirror Or Flip A Movieclip With Keys
How can I make a movieclip flip (not rotate) to the opposite direction using an actionscript when someone presses a key?

Example:
Left key pressed > Clip flips in that direction
Right key pressed > Clip flips in that direction


Got it?

Horizontal Moving Movieclip
I have a movieclip that I am moving behind a mask to achieve a panning effect. I am able to move my movie clip onRollOver and stop onRollOut. So far so good, except that I have no boundaries or margins on my movie clip so when I keep my mouse on my button, my movieclip continues to move indefinitely forever. Can someone please tell me how to set boundaries on the left and right or how to limit the scrolling to an X -1000 and X +1000?

Here is the code I am using. Any help would be appreciated.


Code:
left.onRollOver = function(){full.onEnterFrame=function(){this ._x+=30}}
left.onRollOut = function(){full.onEnterFrame = null}
right.onRollOver = function(){full.onEnterFrame=function(){this ._x-=30}}
right.onRollOut = function(){full.onEnterFrame = null}

Horizontal Scrolling MovieClip
NEWBIE needs help.

Can anyone point me to a tutorial on making a horizontal scrollbar to control a movie clip like the one used in this link?

http://www.thechieftains.com/timeline/

Thanks in advance for any help.

Sliding A Movieclip (horizontal) With Buttons: How Did They Do This?
I really want to learn how to do this cool effect..to see what I mean have a look at:

http://www.cocacola.no/action/Go/page/frontpage

Down on left hand side on the home page you can scroll throgh through some of the products ( sprite zero, bonaqua and powerade). Thats exactly what I want to learn

I am using "regular" buttons on the site I am making..So, what im basically after is: action script for buttons, action script for slider/ MC (and maybe length of the slider) - so that it scrolls horizontal when I push the buttons..

Tried to figure this out for a while now, with no luck ( disatvantage by being blond)..If anybody have a tutorial or whatever....I will be more than greatful

Movieclip Vertial And Horizontal Scrolling
Hi,

Is there any script available to scroll a movie vertical and horizontally by adding a mask. The visible area can be scrolled vertically and horizontally.


thanks in advance..

Drag Movieclip Along Horizontal Path
I know this is easy but, for the life of me, I cant find it

I have a mc called reddot. I want to move reddot along a horizontal line, and only a horizontal line.

My Code:

Code:
//drag red dot
_root.content_mc.content1_mc.reddot_mc.onPress = function(){
this.startDrag();
this.onMouseMove=function () {
this.moveTo(40, _ymouse);
}
}
_root.content_mc.content1_mc.reddot_mc.onRelease = function(){
stopDrag();
}
Its not working and i know i need to do something simple. I've been away from actionscript for a year and man I'm rusty!

Thanks for any help

Greg

Flipping (Horizontal Or Vert) A MovieClip With Actionscript. Is It Possible?
Just wondering.
An actionscript equivalent of "Transform>Flip Horizontal/Vertical. Is there such a thing?

I sure hope there is, cause it's gonna save me alot of headaches if I can learn how to pull it off.

Looking For Page-Flip/Flip-book With Spiral Binding?
Hi there,

I'm wondering if anyone has come across a Page Flip application (like this: www.iparigrafika.hu) that uses a Spiral ring binding, like a notepad?

Pixelwit Page Flip - CLICK To Flip Instead Of Drag
I love pixelwit's page flip script, but I'm hoping someone could teach me how to modify it so that instead of having to drag the page across the screen, the user only has to click the corner of the page in order to get the page to turn.

Here's an example: http://www.luckymag.com/magazine/flipbook

It may be too much of a departure from the current script, but I thought I'd put it out there.

You can download my test file here: http://www.jessicaberardi.com/pageflip/test.zip

I know there are pre-made scripts out there that do this, but I hate the way they look (too high-tech and over designed). I'd really like to use the script I have or find another one that also has a simple, clean and modern look.

I'd really appreciate any help on this.

Piece Of Paper Flip, Not Page Flip In A Book
Could any body direct me to a tutorial or just give me advice on how to go about doing this: i want to make a letter come out of a envelope and flip around and then show what is on it, i am not sure how to create the paper flipping around , i did see some page flip tuturoials but i dont think that is what i want technically, any help will be greatly appriecated, thx

Flip Horizantol And Flip Vertical Problem
hi to all
i have a movieclip (rectangle converted into symbol) then i add a uiloader to it and load dynamic image to uiloader at runtime then i have two buttons.
flip horizantol button and flip vertical button. both works fine but after flipping the x and y position of movieclip changes when i view the flipped image to next frame it moves to left if i flipped vertical and moves to upside if i flipped horizontal.. how can i change the flipped movieclips x and y to original x and y of unflipped movieclip?


regards
..maani

Page Flip Won't Flip On Revisit.
Here's the test link:

http://www.dfhdesign.com/routt_testsite/home.html

On this page click the link at the bottom right that will take you to the wedding albums page.
This page loads fine, the page flips....
Then click the weddings link, engagements link, or bridals link. (either one will work)
On either of these pages click on the albums link, this will take you back to the wedding albums page.

Here's the problem:
On the revisit of the albums page, the page won't flip.

I can't figure out why.
Thanks for any help you can offer.

Dave

Flip Effect - NOT PAGE FLIP
I've searched for tutorials on this but I can't seem to find anything on how to create simple flip effects. I'm not sure if it's some other program than flash or just someone with awesome animation skills - here are a few pages I found on Monster that has this effect.

This looks like its done straight in flash:
http://www.templatemonster.com/flash...tes/15402.html

This looks more like some kind of 3d program:
http://www.templatemonster.com/flash...ates/9369.html

Either way, I'd like to learn - Any Ideas?

Page Flip Won't Flip On Revisit.
Here's the test link:

http://www.dfhdesign.com/routt_testsite/home.html

On this page click the link at the bottom right that will take you to the wedding albums page.
This page loads fine, the page flips....
Then click the weddings link, engagements link, or bridals link. (either one will work)
On either of these pages click on the albums link, this will take you back to the wedding albums page.

Here's the problem:
On the revisit of the albums page, the page won't flip.

I can't figure out why.
Thanks for any help you can offer.

Dave

How Do I Flip This?
Hi all,
In my quest to learn how to use flash I find myself needing to flip a rectangular shape.
Its a menu Interface and when activated it hopefully will spin horizontally from top to bottom untill it gets to the desired spot.
Firstly can I do this?
And secondly How?
Ive tried a short of horizontal shrink to the center and motion tweened it back and this looks ok but is not a spinning filp.
Im not sure how practical this effect will be for file size etc, but I would like to know how to do this now its in mind!! You know what its like im sure!
Anyway I will puddle away and give thanks in advance to anyone who can help.
Regards
Les_d

Flip All The Way
Hey, very stupid question here.

I'm trying to make an object flip all the way. The way I tried was a keyframe on frame 1, another on frame 10 and another on frame 20.

In keyframe 10 i flipped the object horizontaly.
Then I made a motion tween between all the frames.

But now it just flips one way, and then it flips back.
Any help?

Flip MC Over The Y
Is there any way to flip a movie clip over the y axis using actionscript? I'm making a street fighter type game and after the player moves past the computer, i want him to flip over and face him again...get it? I know how to test if he passed the computer, but i don't know how to make the MC flip over...can someone help me?

I Need To Flip
Hi i need to flip an object along the x or y axis. i want to be able to flip the 2D object in one of the 4 directions each time the user clicks. (like a scale -100%) but that dosent seem work

Hope some one can help before i lose sleep over this

Regards

Flip
How do I flip an object?

Betsy

Flip An Mc
is there a way to flip a movie clip so if there is an arrow pointing left I could flip it so it would face left. is there a way to do this.

Flip Bok
So I created this flip book to distribute as Windows Projector. My problem is that the end user has to zoom in to see the text. When the book opens it looks life a 'FitPage' in Adobe. So I need my end user to zoom in and actually be able to read the text. They can right-click and go to zoom in, but I would rather if there was a magnifying tool there or even a bar that I they could raise to zoom in and zoom out.

How can I get this done?

Copyright © 2005-08 www.BigResource.com, All rights reserved