This content has been marked as final. Show 8 replies
your_mc._yscale *= -1
Do I attach the code to the first frame of the movie clip? or do I place it on a another layer?
Do I place it after some other code like, onClipEvent? or is that the only code for that image?
Sorry for the questions...hopefully I'm on the right track
if you want your image to be flipped on frame one, then yes, place it on frame one.. and change your_mc to the instance name of your movie clip. by placing that code on frame one, your image will be flipped on the vertical axis.. you will more than likely need to change the _y position to get it back to the desired location.. EX:
your_mc._yscale *= -1;
your_mc._y = 200; //thus bringing down the mc to its original location, change 200 as needed.
also, if you are nesting the movie clip inside another movie clip, then you'll need to target it like
if you are placing this inside the movie clip, then you'll need to use
if it's on the main timeline, and the movie clip is not nested, then the code i provided first will work
I might be asking too much but, here is my code:
this._xscale += -10;
My question is how do I reveal the back side of the flip (a different picture or layer) half way thru the turn while making the front dissappear at the same time? and it seems the current code flips the front side around and just keeps stretching the image and not keeping the current dimension of the picture.
what are you trying to do here... what i gave flips it on the vertical axis, and doesnt stretch it.
Sorry for the confusion with the vertical axis. I'm trying to flip the image not like a flip book and reveal an image underneath, but rotate the front one around on the x axis to reveal its backside which is a different picture.
Whatever I was doing was stretching the picture off the document . I wanted the dimensions the image to stay fixed.
I got this far without any success. My movie clip are now called first_mc and second_mc. the first being the top image and the second being the back image.
second_mc._xscale = 0;
first_mc._xscale -= 10;
if(first_mc._xscale = 0)
first_mc._visible = false;
second_mc._xscale += 10;
Nothing is happening
Hopefully I'm on the right track with a little help
what you're trying to achieve would require a lot of scripting... what you have now isn't going to transition it smoothly, it's going to be jumpy, doing the xscales at the same rate as your document's fps.. you would need a 'z' axis to do what you want to do, therefore, making it 3d. look up flashsandy.org, but i think you're way over your head.
Thanks for all your help... I think doing this the old fashion way with shape tweens is the best option.