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








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.




Adobe > ActionScript 1 and 2
Posted on: 10/18/2007 05:49:02 PM


View Complete Forum Thread with Replies

Sponsored Links:

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

View Replies !    View Related
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.

View Replies !    View Related
Flip An Object Horizontally
[Flash MX]
Is there a way to flip an object horizontally through action script? I would think it would be under the "properties" actions, but after looking through some of my books I can't find it anywhere...

View Replies !    View Related
Flip Picture Horizontally
I need to be able to flip a picture horizontally (so that it is facing in the opposite direction).
I'd appreciate any thoughts on how to do that...
TIA,
Carolyn

View Replies !    View Related
Flip Movie Clip Horizontally
I'm fairly new to Flash but I'm pretty good at figuring stuff out. Here's my problem though: I have an asymmetrical movie clip on the screen, which is shaped like a person. When the person moves left or right, its front should face forward. What can I use in actionscript to flip the character horizontally? I just need something that I can put into the onEnterFrame statements. Thanks in advance.

View Replies !    View Related
Flip Symbol Horizontally As Mouse Dirrection Changes
I want to be able to flip my arrow movie clip horizontally depending on the left/right dirrection of the mouse, can you help? if so many thanks.

View Replies !    View Related
Can You Flip A Movie Clip Horizontally With Actionscript?
Can you flip a Movie Clip Horizontally with Actionscript? (meaning like a mirror image)

View Replies !    View Related
Lock MovieClip Horizontally
I have a movie clip that drags on press and stops drag on release

I want to lock it so that it can only move up and down not left and right.

I know you can set it to its original x position on an enterframe but this is messy and jerky. Is there another way to lock it??

Many thanks,

Dravos

View Replies !    View Related
Duplicate Movieclip Horizontally With Set Distance?
Hey all!
I've got a movieclip that I'd like to duplicate (1 duplicate every 5 frames, moved 20 pixels to the right of the previous movieclip). Anyone know how to set up the code for that? thanks!

View Replies !    View Related
Drag A Movieclip Only In Horizontally Direction
hi,

i want to drag a movieclip only in horizontally direction. this is my actionscript for a simple drag:
Quote:




on(press){
this.startDrag();
}

on(release){
this.stopDrag();
}

View Replies !    View Related
Scrolling Movieclip With Mouse Movement - Horizontally
Hi everyone:
I am trying to make a movie clip that contains different buttons. Not all the buttons will be visible on the stage always, so I want that when the user moves the mouse arrow left, the movie clip containing the buttons updates and move along with it to the right...and vise versa. I found this great snippet of code from Kglad, and it seems to do exactly what I need!!! The issue I am having is that my pieces update only after I am done moving the mouse...so the movie clip is not moving along with the pointer. Attached is the code. Here is a sample of what I am trying to accomplish:
http://sungard.com/








Attach Code

root.addEventListener(MouseEvent.MOUSE_MOVE,f);
var t:Timer=new Timer(40,0);
t.addEventListener(TimerEvent.TIMER,moveF);
function f(e:MouseEvent) {
t.stop();
t.start();
}
var speed:Number = .9;
function moveF(e:TimerEvent) {
front_mc.x =speed*front_mc.x+(1-speed)*(stage.stageWidth-front_mc.width)*root.mouseX/stage.stageWidth;
back_mc.x = speed*back_mc.x+(1-speed)*(stage.stageWidth-back_mc.width)*root.mouseX/stage.stageWidth;
if (Math.abs(front_mc.x- (stage.stageWidth-front_mc.width)*root.mouseX/stage.stageWidth)<1 && Math.abs(back_mc.x-(stage.stageWidth-back_mc.width)*root.mouseX/stage.stageWidth)<1) {
front_mc.x = (stage.stageWidth-front_mc.width)*root.mouseX/stage.stageWidth;
back_mc.x = (stage.stageWidth-back_mc.width)*root.mouseX/stage.stageWidth;
t.stop();


}
e.updateAfterEvent();
}

























Edited: 11/13/2008 at 12:40:39 PM by rafa@mediatech

View Replies !    View Related
Urgent : How Do I Spin A Symbol Around 360 Horizontally ? (text Made Into Movieclip).
Hi there..

I'm near ripping my hair off at this point

I just want to spin my text around horizontally 360 %..

What i've tried :
Tried to create a keyframe at pos. 30 and then use "FLIP HORIZONTALLY", then create a keyframe at pos. 60 and did "FLIP HORIZONTALLY" again..
Making both of them motion-tween.

But.. when i do that.. the symbol flips 180 degrees horizontally (like it should do) but then.. it rotates _back_ the same way as it came.. (which is wrong..)

I need to continually spin around 360 %.

How do i do this without writing like.. 300 lines of actionscript which i dont know at all ? hehe..

Hope someone can hlep me with this.

Best regards
Terje.

View Replies !    View Related
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

View Replies !    View Related
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.

View Replies !    View Related
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;

View Replies !    View Related
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!

View Replies !    View Related
How Can Flip Horizontal MovieClip With AS3?
hi all,
I'm wondering how I can flip horizontal or vertical MovieClip? Can skew it?

View Replies !    View Related
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;
};]

View Replies !    View Related
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.

View Replies !    View Related
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

View Replies !    View Related
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?

View Replies !    View Related
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?

View Replies !    View Related
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

View Replies !    View Related
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?

View Replies !    View Related
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.

View Replies !    View Related
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

View Replies !    View Related
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

View Replies !    View Related
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

View Replies !    View Related
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?

View Replies !    View Related
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

View Replies !    View Related
Scrolling Horizontally
I have managed to program a MC which contain a skyline to move to the right if the cursor is on the far left, and to the left if the cursor is on the far right. The skyline is bigger than the stage, so this effect gives the illusion of movement. However the skyline I want the skyline to stop moving when its left edge reaches the left side of the stage, and again to stop moving when the right edge reaches the right side of the stage. I've tried some simple If formulas, utilising the _x command, but so far they have not worked.
Canm anybody help with a simple suggestion as to what I should do?
Thanks

View Replies !    View Related
Flipping Something Horizontally
I'm making a 2-D fighter game. I want the players to be able to switch sides of the screen during the game. (like if they jumped on to the right half, they'd face right, and vice cersa)

View Replies !    View Related
Drag An MC Horizontally (only)
Hi again!

I've got an MC, and I'd like to be able to drag it, ONLY horizontally. This is what I got, but it's not working 100%.


Code:
onClipEvent (load){
initx=_x;
maxx=100;
}

on (press){
startDrag(this, false, _y, initx-maxx, _y, initx);
}
on (release){
stopDrag();
}


Look what happens here:
http://atlemo.com/files/test.swf

It's the starting positions I think that are crap. I don't know my X & Y's.

Any tips?

View Replies !    View Related
Scrolling Horizontally A&F Example
Hi I saw this flash player on abercrombie and Fitch's site and wondered how they managed to create it, interested in learning this. Can anyone help me with this.

Heres the link

http://www.abercrombie.com/aftv/inde...005-MAIN-PHOTO
Thankx

View Replies !    View Related
[F8] Best Way To Scroll Horizontally
What is the best way to scroll horizontally?
I have tried several methods but all are slow.

I have tried vcam but that is also slow.

What is the best way that you guys recommend?

View Replies !    View Related
Scroll Mc Horizontally
all I want to do is have a right scroll button and a left scroll button that tell my mc called "bg_mc" to scroll in either direction. It is located on the main timeline along with the buttons, but contains buttons inside itself as well. and I want the scrolling to stop when it reaches the left and right edge of the movie.

I am having a meltdown.

please.

View Replies !    View Related
Scrolling Horizontally
Hi all,
I'm quite new to flash and actionscript and ran into a problem. I'm creating a flash movie with a horizontal scrolltext. However this text is variable in width. So i'm using textFormat to determine the width of my dynamic text box based on a certain font type. Then through a setInterval (set at 40) i decrease the number of pixels by 2.

Works perfectly, however when I go over some links on the website the setInterval causes the animation to get jerky. If I stop moving my mouse over some links then the animation is smooth again.

So basically my setInterval isn't working for this purpose since the animation gets jerky once I hover over (html/javascript) links.

Then I thought I might do the trick by creating a keyframe at runtime but then again I read somewhere you can't create those at runtime..

So does anyone know a solution for my problem?

Btw my animation runs in Flash 8.



Thanks for any help ....

View Replies !    View Related
Scrolling Horizontally
I just made a scroll area with buttons and draggable items. All the code is written for vertical scrolling, the content I need to be scrolled is going to be horizontal. how can I rewrite this code to be horizontal scrolling? it seems like the scroll button (the one you drag along) doesn't stay confined to its scroll line either.

scrolling = function () {
var scrollHeight:Number = scrollTrack._height;
var contentHeight:Number = contentMain._height;
var scrollFaceHeight:Number = scrollFace._height;
var maskHeight:Number = maskedView._height;
var initPosition:Number = scrollFace._y=scrollTrack._y;
var initContentPos:Number = contentMain._y;
var finalContentPos:Number = maskHeight-contentHeight+initContentPos;
var left:Number = scrollTrack._x;
var top:Number = scrollTrack._y;
var right:Number = scrollTrack._x;
var bottom:Number = scrollTrack._height-scrollFaceHeight+scrollTrack._y;
var dy:Number = 0;
var speed:Number = 10;
var moveVal:Number = (contentHeight-maskHeight)/(scrollHeight-scrollFaceHeight);

scrollFace.onPress = function() {
var currPos:Number = this._y;
startDrag(this, false, left, top, right, bottom);
this.onMouseMove = function() {
dy = Math.abs(initPosition-this._y);
contentMain._y = Math.round(dy*-1*moveVal+initContentPos);
};
};
scrollFace.onMouseUp = function() {
stopDrag();
delete this.onMouseMove;
};
btnUp.onPress = function() {
this.onEnterFrame = function() {
if (contentMain._y+speed<maskedView._y) {
if (scrollFace._y<=top) {
scrollFace._y = top;
} else {
scrollFace._y -= speed/moveVal;
}
contentMain._y += speed;
} else {
scrollFace._y = top;
contentMain._y = maskedView._y;
delete this.onEnterFrame;
}
};
};
btnUp.onDragOut = function() {
delete this.onEnterFrame;
};
btnUp.onRollOut = function() {
delete this.onEnterFrame;
};
btnDown.onPress = function() {
this.onEnterFrame = function() {
if (contentMain._y-speed>finalContentPos) {
if (scrollFace._y>=bottom) {
scrollFace._y = bottom;
} else {
scrollFace._y += speed/moveVal;
}
contentMain._y -= speed;
} else {
scrollFace._y = bottom;
contentMain._y = finalContentPos;
delete this.onEnterFrame;
}
};
};
btnDown.onRelease = function() {
delete this.onEnterFrame;
};
btnDown.onDragOut = function() {
delete this.onEnterFrame;
};

if (contentHeight<maskHeight) {
scrollFace._visible = false;
btnUp.enabled = false;
btnDown.enabled = false;
} else {
scrollFace._visible = true;
btnUp.enabled = true;
btnDown.enabled = true;
}
};
scrolling();



I did the tutorial found here.... http://www.kirupa.com/developer/flash8/scrollbar.htm

View Replies !    View Related
Scrolling MC Horizontally With Buttons
I'm trying to make a site for my company that has small pictures of our projects that can be scrolled across the screen horizontally. Instead of having a big scroll bar, I just wanted simple little buttons on one side with arrows pointing to either side. I also want to make the pictures buttons that can go to other scenes with the project descriptions.
I've got everything setup within a MC and I have a rectangular mask so the pictures show through, my only problem is the scrolling. I can find tutorials on how to scroll things vertically with a scroll bar, but what I want is to scroll horizontally with buttons. I don't yet know enough about actionscript to manipulate these to suite my needs. Can anyone help? Thanks so much!!

View Replies !    View Related
Fitting.... Horizontally - But Not Vertically
okay, I get the exactfitting stuff, but what if I wanted the Flash movie to fit the browser window's width.. but not height (leaving the excess swf outside the depth of the browser window) clicking on the thumbnails here will give you an idea of what I'm trying to dohttp://www.randpc.com/marketing/onClick/clicktest.htm

View Replies !    View Related
Follow Mouse Horizontally
Okay, I can't seem to get the actionscript to work the way I want it to. I've used this actionscript on my arrows that I want to follow my mouse.

onClipEvent (enterFrame) {
//The x position of the mouse
xTarget = _root._xmouse;
//This value will deterimine what fraction of the gap to
//cover every time the script is called
fraction = .1;
//these two lines determine the gap between the current
//location of drag and the target. fraction is then used
//to determine how much of the gap to cover.
_x += (xTarget-_x)*fraction;
}

The only problem with this script is it doesn't follow my mouse very closely. It's always lagging behind. I'm sure it's something simple to fix but I have no clue. Does anyone have any suggestions: confused:

View Replies !    View Related
*HELP* Making An OSX Bar Scroll Horizontally
Hi, I just threw together an OSX-like scroll bar using some open source fla's that I found on the internet (contact me if you want to know where from).

What I want to do is make the OSX-like bar have about 32 buttons (example only has 20). When you scroll over them the get bigger and fade off and you scroll over more. However, I want this action to be constricted to a semi-small area. Meaning: I want a small area showing only a few buttons at a time and as you go right or left with your mouse the buttons scroll in in a OSX-type fashion.

I've been having a very hard time getting the scrolling / looping of the movie to work out. I would really appriciate it if some of you could take a look at it an help me out.

The FLA can be found here: osx20
A gif of the basic idea of what I want the movie to do:basic idea
(there seems to be a problem with image linking, its at: http://earth.prohosting.com/pshifter/basic.gif if the ling doesnt work -- seems to work if you type it in manually, or something...)


Thanks a lot in advance to anyone who helps me out,

Phase00

View Replies !    View Related
Horizontally Scrolling Text?
Hey does anyone know how to make horizontally scrolling text...I know this link is javascript but this is what I want (made in flash)

http://www.appletcollection.com/ascroll.html

I would also like it to be able to have buttons inside of it like in the example above, but when you scroll your mouse over it I want it to stop...then if you don't click on anything and you scroll out it will continue scrolling. Then the whole thing will loop over and over.

Anything that you can help me with on this issue would be greatly appreciated.
Thanks
Jason

View Replies !    View Related
Centre SWF Vertically And Horizontally
I know the answer to this must be so easy, but how in the world do you centre your swf file on an html page vertically and horizontally? Just smack in the middle, regardless of the user's screen resolution.

View Replies !    View Related
Scrolling Thumbnails Horizontally
I have been through a bunch of tutorials but I can't find one that works. On the main timeline I have button 'left' and button 'right' along with 'imagesMC'. When left or right is pressed I need it to scroll 'imagesMC' left/right. Can someone help? Thanks!

View Replies !    View Related
Scroll Horizontally More Than 2880
I have a set of images that total about 4000 pixels wide. I want to scroll them left and right with a mouseover like this:

http://www.cassbird.com/

I have downloaded the sample movie that has the mouseover scrollbar but I don't know how to get it wider than 2880 pixels. Do I load one movie after another? How do I do that?

View Replies !    View Related
Horizontally Scrolling Movieclips....
I am needing some help with horizontal movie clip movement. I have a flash file that works by itself. The movie clip moves across the screen to the correct spot when you hit the corresponding buttons. But when I try to recreate the action in another flash file, the buttons show, but no movie clip movement. For what ever reason the buttons can no longer talk to the movie clip to move it across the stage.

I have kept everything the same name, kept the actions in the same spot and everything, it just doesn't work.

Does anyone have any idea what could be causing this to happen? I will try and supply more details to anyone who wants to help me with this. It shouldn't be a hard thing to accomplish. If you know of any good tutorials on this I would greatly appreciate it.

View Replies !    View Related
Fill The Browser Horizontally
Hi All,

I have a flash website ive been working on. Its main design is a horizontal bar and i need it to fill the screen horizontally including that little bit of white space at the edges otherwise the design doesnt really work. Im having real trouble with it now. Can anyone offer me advice or a solution to my problem.

is it javascript i need or is it just the export settings?

the website can be seen at www.cgeyeltd.com/Website.html

thanks in advance
Rob

View Replies !    View Related
Horizontally Scrolling Site
I'm not sure if I can explain this too clearly, but I'm sure many of you will know what I mean. There is a type of flash site design that is quite popular, where all the pages of the site are in one long horizontal strip like so:

[ 1 ][ 2 ][ 3 ][ 4 ][ 5 ]

... and when you select a page from the navigation the site scrolls sideways and stops at the page you want. Do you know what I mean?

My questions are, is there a generic name for this layout/navigation, and does anyone know of a good tutorial that could talk me through it?

Thanks!

View Replies !    View Related
Constrain StartDrag Horizontally
So I have a Sprite and if using startDrag(), how do I constrain the movement to x-axis only? that is, move it horizontally?

The free x,y movement code sample is here, directly from Adobe's livedocs:
http://livedocs.adobe.com/flash/9.0/...xamplesSummary

Thx in advance.

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved