Reversing AND Unloading A Movieclip?
Sorry for reposting this question but I think I had put it in the wrong forum before.
I have this problem that's been stumping me for days. I have a button that loads a movie into an empty movieclip on the stage. When the movie clip fully loads another button pops up that says "close." What I want is when you click the "close" button the movie plays in reverse and then unloads itself. Is this possible? If searched but I couldn't find anything useful.
FlashKit > Flash Help > Flash Newbies
Posted on: 12-01-2004, 08:14 PM
View Complete Forum Thread with Replies
Sponsored Links:
Reversing AND Unloading A Movieclip?
Hi, I have this problem that's been stumping me for days. I have a button that loads a movie into an empty movieclip on the stage. When the movie clip fully loads another button pops up that says "close." What I want is when you click the "close" button the movie plays in reverse and then unloads itself. Is this possible? If searched but I couldn't find anything useful.
View Replies !
View Related
Reversing A MovieClip (Fla Attached)
I know that I have asked this question before, but when trying to apply the code I just can't get it to work. In the example I was given they used gotoAndPlay prevFrame(), but i don't have a bunch of single frames like used in the example, I have tweens.
anyways my question is pretty easy. I have a name, "services", when you rollover it i have a blue bar come from the left and cover the word. on the roolout i want the bar to go back to the left. i know that i can just re-mak the tween, but i am sure that there is some script that will play my movieclip backwards. let me know.
http://babel.massart.edu/~jantonucci...AndReverse.fla
View Replies !
View Related
Reversing A Movieclip In Actionscript (Flash 5)
I want to reverse a movieclip using Actionscript (Flash 5).
not movieclip_rotate;
I want it to be a mirrorimage. Like when you manually scale an object
during construction, grabbing it with the mouse, and pull til it reverses.
How is that done? I thought it might be
movieclip._xscale= -50;
movieclip._yscale= -50;
(that is, negative numbers), but that just makes the movieclip vanish.
In other words, say I have a movieclip animation of someone walking right, I
want to make it so they're walking left by an actionscript command without
having to construct a new movieclip.
Thanks in advance for your knowledge.
View Replies !
View Related
After Reversing MovieClip How Do You Make It Display A Different Scene?
Hi, I have added the following code to my mc, but how do I get it to display scene 1 frame one when it is done. After it is done reversing I need it to immediately go to that scene because it has all of my buttons showing. Here is my fla file: http://www.encap.net/Portals/0/ALL-3...ONE-edited.fla:
on (rollOver) {
gotoAndPlay("over1");
}
//this tells the button movie to goto and play the frame label called out
on (rollOut) {
this.onEnterFrame = function() {
if (this._currentframe>1) {
this.prevFrame();
} else {
delete this.onEnterFrame;
}
};
}
on (release) {
getURL("http://www.encap.net/retail", "_blank");
}
Thank you for your help!
View Replies !
View Related
After Reversing MovieClip How Do You Make It Display A Different Scene?
Hi, I have added the following code to my mc, but how do I get it to display scene 1 frame one when it is done? After it is done reversing I need it to immediately go to that scene because it has all of my buttons showing. Here is my fla file: http://www.encap.net/Portals/0/ALL-3...ONE-edited.fla. I am sooo close to having this file done, I have been working on it for two weeks now!:
on (rollOver) {
gotoAndPlay("over1");
}
//this tells the button movie to goto and play the frame label called out
on (rollOut) {
this.onEnterFrame = function() {
if (this._currentframe>1) {
this.prevFrame();
} else {
delete this.onEnterFrame;
}
};
}
on (release) {
getURL("http://www.encap.net/retail", "_blank");
}
Thank you for your help!
View Replies !
View Related
Reversing Movieclip To Play Backwards At Same Speed As It Plays Forward..
Hi all sorry for my spam post i just typed all this once and it didnt show up!!!!
here we go again..
I am new to flash and am making a page selector for the my site..it has two buttons one next and one prev. when you hit the next button it plays an animation swaps graphic to the page two graphic behind a layer to hide the swap then pops back up with the new number on it. press it again and it moves down the movie clip playing to the next stop point and showing new page three graphic.. this all works but now i want the prev button to make it so i can go back a forth between stop points in the clip, playing the movie not frame by frame but as it does when played forwards..when each new page number pops up a select button is also animated to show up with each pages link so that when say you scroll through to page 2 then hit select it goes off and loads that url for page 2 in an i frame leaving the selector at the top of the page..but i cant seam to get my url to open in an iframe in dreamweaver...am i doing this all wrong or is there a simpler way of doing this.. i must say that the animation is a rotation of the graphic is drops down like a clapper board behind a mask changes number with swap graphic then pops up again with the new page number graphic and link...
any help on reversing the playhead and making links work in iframes would be great..
Thanks in advance...
View Replies !
View Related
Unloading A Movieclip
Hi there. I'm trying to load an .swf at the end of one of my movie clips. What coding can I put on the last frame of my MC, to unload the movieclip, so that when the new .swf loads up, the movieclip isnt in the way.
I've tried using: unloader.unloadMovie();
But that only works if you are loading another movie clip on your last frame instead of a .swf, which makes absolutely no sense at all, but OOOk flash.
In desperate need of help.... getting frusterated.
Thanks.
View Replies !
View Related
Having Issues Unloading MovieClip That Contains XML...
Hi,
I have xml which is loaded in a movie clip but i can't seem to be able to unload that movie clip when i need to. I tried everything and the code seems right. I'm guessing it's because of some kinda path issue.
Could someone take a look and help me out. Maybe someone else might see something i'm missing.
This is the code i am using to load the xml in the movie clip:
Code:
var r = _root;
r.clipArr = new Array();
r.menuXml = new XML();
r.menuXml.ignoreWhite = true;
r.menuXml.onLoad = function() {
menuItem = this.firstChild.childNodes;
for (var i=0; i<menuItem.length; i++) {
item = _root.attachMovie("itemClip", "itemClip" + i, i);
r.clipArr.push(item);
item._x = 30;
item._y = 30*i;
item.itemLabel.text = menuItem[i].attributes.name;
item.myUrl = menuItem[i].attributes.url;
item.onRelease = function() {
getURL(this.myUrl,"_blank");
}
}
}
r.menuXml.load("pdf_menu.xml");
stop();
// new stuff--------------------------
deleteClips = function(){
for(var i = 0; i<r.clipArr.length; i++){
r.clipArr[i].removeMovieClip();
}
r.menuXml = null;
};
// new stuff--------------------------
This is what i am using to unload the movie clip:
Code:
_root.deleteClips()
Here is the file that i am working on. Just download it from my server and take a look:
http://216.194.72.230/~denis/Unload_Movie4.zip
Thank you, I appreciate it!
View Replies !
View Related
HELP Unloading An Image From A Movieclip
Hi, i am having trouble unloading an image from a movieclip.
Currently a button is pressed and an image loads into a movieclip. I have 10 buttons each loading a seperate image.
When you click the first button the image loads, however when i click the second button the image does not load and the previous image is still shown.
How can i unload the existing image from the movieclip when the next button is pressed??
I am using MX 2004pro
Some quick help would be great. Is there some kind of unloadMovie....etc??
THANKS
PHill
_____________________________________-
(this is the code for the button)
this.But2_btn.onRelease = function() {
trace ("image2");
_root.patchContainerMC.clothingPatchMC1.topClothin gMC.TOPLOAD("tee2.jpg");
};
______________________________________
(this is the code within the movie clip)
function TOPLOAD(topToLoad_str){
trace("function called");
this.loadMovie(topToLoad_str);
}
View Replies !
View Related
HELP Unloading An Image From A Movieclip
Hi, i am having trouble unloading an image from a movieclip.
Currently a button is pressed and an image loads into a movieclip. I have 10 buttons each loading a seperate image.
When you click the first button the image loads, however when i click the second button the image does not load and the previous image is still shown.
How can i unload the existing image from the movieclip when the next button is pressed??
I am using MX 2004pro
Some quick help would be great. Is there some kind of unloadMovie....etc??
THANKS
PHill
_____________________________________-
(this is the code for the button)
this.But2_btn.onRelease = function() {
_root.patchContainerMC.clothingPatchMC1.topClothin gMC.TOPLOAD("tee2.jpg");
};
______________________________________
(this is the code within the movie clip)
function TOPLOAD(topToLoad_str){
this.loadMovie(topToLoad_str);
}
View Replies !
View Related
[F8] Unloading And Loading Movieclip
In the attatched .fla, the top button plays the movieclip called 'homeclip' which is located on the layer 'homeclip'.
However, when I press the second button, the action tells it to unload the MC of the first button and load a new one. This works but the TOP button doesnt seem to be working, maybe a conflict in the code.
Please help!
View Replies !
View Related
Transition When Unloading Movieclip...
Hi,
I have a few movieclips which are gonna be loaded into a blank movieclip container (place holder) depending on which button the user presses.
Now, the good thing is that with this technique the movieclip automatically unloads...
The bad thing is, that I wanna control the transition between the two clips (alpha fade out, moving off screen etc.)
Is there any way of doing that ?
Thanx for your help in advance !
Mike
View Replies !
View Related
Unloading A Movieclip Loaded In As2
Hi guys...First of all I meant to say unloading an "external SWF" in the title sorry
I've just loaded an external xml driven gallery.swf in my flash site using the following script:
createEmptyMovieClip("anim", 0);
anim.loadMovie("gallery.swf");
I've pasted this code straight into a frame in one of my movieclips. So when i press a button inside this movieclip (this mc is a submenu where the link to gallery is displayed) it loads the gallery and it seems to work.
My problem is that I cannot get it to unload ive tried unloadmovie function but i must not be pasting the code in the right place or am having problems defining the path (_root / _level0) ?? i dunnno.....help please????
many thanks in advance!
View Replies !
View Related
Transition When Unloading A Movieclip
Hi,
I have a few movieclips which are gonna be loaded into a blank movieclip container (place holder) depending on which button the user presses.
Now, the good thing is that with this technique the movieclip automatically unloads...
The bad thing is, that I wanna control the transition between the two clips (e.g. alpha fade out, moving off screen etc.)
Is there any way of doing that ?
Thanx for your help in advance !
Mike
View Replies !
View Related
Unloading A Dynamic Movieclip?
I'm having issues figuring out this once simple command. Below is my code, how can i create an unload function that works for all my buttons? I've been researching but can't find something clear enough for me to understand. I feel like there's an easy fix, but i'm fried from staring at it. Thanks!
var home:Loader = new Loader();
var contact:Loader = new Loader();
var cont:MovieClip = new MovieClip();
//1st button:::::::::::::::::::::::::::::::::::::::::::: :::::::::::::::::::::::
home_btn.addEventListener(MouseEvent.MOUSE_OVER, homeOver);
function homeOver(evt:MouseEvent):void {
home_btn_mc.gotoAndPlay("on");
}
home_btn.addEventListener(MouseEvent.CLICK, homeLoad);
function homeLoad(Event: MouseEvent) {
home.load(new URLRequest("home.swf"));
cont.x = 0;
cont.y = 20;
stage.addChild(cont);
cont.addChild(home);
}
home_btn.addEventListener(MouseEvent.MOUSE_OUT, homeOut);
function homeOut(evt:MouseEvent):void {
home_btn_mc.gotoAndPlay("off");
}
//2nd button:::::::::::::::::::::::::::::::::::::::::::: :::::::::::::::::::::::::::::
contact_btn.addEventListener(MouseEvent.CLICK, contactLoad);
function contactLoad(Event: MouseEvent) {
contact.load(new URLRequest("contact.swf"));
cont.x = 0;
cont.y = 20;
stage.addChild(cont);
cont.addChild(contact);
}
contact_btn.addEventListener(MouseEvent.MOUSE_OVER , contactOver);
function contactOver(evt:MouseEvent):void {
contact_btn_mc.gotoAndPlay("on");
}
contact_btn.addEventListener(MouseEvent.MOUSE_OUT, contactOut);
function contactOut(evt:MouseEvent):void {
contact_btn_mc.gotoAndPlay("off");
}
View Replies !
View Related
Unloading A Dynamic Movieclip?
I'm having issues figuring out this once simple command. Below is my code, how can i create an unload function that works for all my buttons? I've been researching but can't find something clear enough for me to understand. I feel like there's an easy fix, but i'm fried from staring at it. Thanks!
var home:Loader = new Loader();
var contact:Loader = new Loader();
var cont:MovieClip = new MovieClip();
//1st button:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
home_btn.addEventListener(MouseEvent.MOUSE_OVER, homeOver);
function homeOver(evt:MouseEvent):void {
home_btn_mc.gotoAndPlay("on");
}
home_btn.addEventListener(MouseEvent.CLICK, homeLoad);
function homeLoad(Event: MouseEvent) {
home.load(new URLRequest("home.swf"));
cont.x = 0;
cont.y = 20;
stage.addChild(cont);
cont.addChild(home);
}
home_btn.addEventListener(MouseEvent.MOUSE_OUT, homeOut);
function homeOut(evt:MouseEvent):void {
home_btn_mc.gotoAndPlay("off");
}
//2nd button:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
contact_btn.addEventListener(MouseEvent.CLICK, contactLoad);
function contactLoad(Event: MouseEvent) {
contact.load(new URLRequest("contact.swf"));
cont.x = 0;
cont.y = 20;
stage.addChild(cont);
cont.addChild(contact);
}
contact_btn.addEventListener(MouseEvent.MOUSE_OVER, contactOver);
function contactOver(evt:MouseEvent):void {
contact_btn_mc.gotoAndPlay("on");
}
contact_btn.addEventListener(MouseEvent.MOUSE_OUT, contactOut);
function contactOut(evt:MouseEvent):void {
contact_btn_mc.gotoAndPlay("off");
}
View Replies !
View Related
Unloading A Movieclip In Holder Mc From An External Swf
I've read read posts and must be doing something stupid at this point.
I created and emty mc in my main timeline "introhold"
I have it play the intro (so is that level 1?)
I kept the intro in an emty mc so I can go back to it and target a specific frame.
Basically I am having trouble removing it from an external swf on enterframe
the other menus are sucessfully replacing each other but this one just stays there. I have gotta rest.
anybody do this one before?
View Replies !
View Related
MovieClip/MovieClipLoader Unloading Problem
Based on Kirupa's wonderful tutorial:
http://www.kirupa.com/developer/mx2004/thumbnails.htm
I've created a portfolio site for myself:
http://mobie.us
It is basically working very nicely and I am quite happy with my results. I have created 'categories of thumbnails' and thus I also now have buttons to swap between the categories of thumbnails. In order to get this to work I had to remove the movie clip, unload the movie clip loader, and remove the listener.
Below is my function for doing this:
Code:
function clearthumbStrip() {
thumbnail_mc.removeMovieClip();
for (z=0;z<countOfThumbnails;z++) {
image_mcl.unloadClip("thumbnail_mc.t"+z);
}
image_mcl.removeListener(tlistener);
}
(I've kept all the names from Kirupa's original sample)
Anyways, the site works well in IE6, where I've done most of my work. However, today I've noticed problems with the unloading (I assume) on Firefox and Netscape. I can't seem to figure out what is going on. If anyone has any ideas or sees anything wrong with this code, please let me know.
By "problems", I mean: thumbnails that overlap slightly or thumbnails that appear as phantoms behind the current ones (phantoms are from the wrong category).
Thanks in advance! I appreciate your time.
Chris
View Replies !
View Related
Unloading A Generic Movieclip Completely
So I thought all the errors in my site were gone . . . I have certain generic sounds that play in a various dynamic clips. When I unloaded them their timelines continue in the background and trigger sounds long after they are gone.
The only examples I can find of unloading all streams when unloading a clip specifically name the instances of the sounds and netStreams.
I need to just clear all aspects of these dynamic clips without specifically referencing the instance names of their sub properties.
This is the direction I'm going in:
var clipLoader:Loader;
Code:
function closeAllStreams(evt:Event) {
clipLoader.SoundMixer.stopAll;
}
clipLoader.loaderInfo.addEventListener(Event.UNLOAD, closeAllStreams);
function loadNextClip():void {
if (clipLoader != null) {
unloadClip();
}
clipLoader = new Loader();
addChild(clipLoader);
var clipName:URLRequest = new URLRequest(parent.nextClip);
clipLoader.load(clipName);
parent.transition_mc.gotoAndPlay("clear");
}
function unloadClip():void {
var count:int = this.numChildren;
for (var i:int = 0; i <count; i++) {
this.removeChildAt(0);
this.clipLoader.unload();
//this.removeChild(clipLoader);
}
}
Again, unloading a movie is a crucial part of Flash and Actionscripting. The lack of information out there on this is frightening.
PS the code above unloads the clip, but doesn't destroy the clips timeline. I could simply stop the clip before unloading it. But I'm worried about that taking up too many resources.
Jake
View Replies !
View Related
Unloading Movieclip Inside Emptymovieclip
Hello, i'm new to AS... so maybe this is really simple or i'm using the wrong method.
I have 3 picture slideshows usings XML, the pictures will be changing form time to time that's why i needed it like this.
Every slideshow is inside a folder, ej: gal1, gal2, gal3.
In every folder i have the images, the flash file (gallery.swf) and the xml file.
I have the main movie in wich i have a container where most data shows... and in wich i made an emptymovieclip, called "galMC" (now i know i could have used createEmptymovieclip, but maybe next time)
So, i load the gallery.swf inside galMC:
loadMovie("gal1/gallery.swf", "galMC");
¿How i the world can i unload "gallery.swf" from galMC?
I have tried various methods but i always end up unloading "galMC"...
the problme i think is that if i reload the container and click on another slideshow (gal2 or gal3), i see only the first image of the selected slideshow and then and then it starts showing the first slideshow that was loaded, so i guess i need to really UNLOAD that slideshow to load another and this is not hapenning.
Hopefully, i made myself understand enough to get some guiadance with this.
Thanks.
View Replies !
View Related
Unloading MovieClip And Playing The Main Timeline
Hi
I seem to be having issues contolling the main timeline from a child timeline. I'vr poked around on the forms to the point of confusing myself.
Here's the sequence of events I'd like to occur:
1. Child MovieClip that's loaded into the maintime on level 12 unloads itself once a button is pressed on the child's timeline.
2. On the last frame on the the child's timeline it tells the parent movie to go to frame 12.
Here's the code I placed on the last frame of the Child's timeline.
_parent.gotoAndPlay(12);
this.unloadMovie()
Right now the Child mopvie unloads successfully but it does not go back to frame 12 of the parent ( main) timeline???
Any suggestions?
View Replies !
View Related
Loading/Unloading Internal MovieClip Instances?
Is that even possible?
I'm creating an optional menu bar that should be loaded when a button is pressed.
currently, the menu bar is a movie clip instance on stage, my question is, can you write script to load and unload the movie clip instance?
I'm aware that you can load existing movies from an external swf file into another, but I'm finding it hard to work that way, I cant set the location of the menu without creating all this extra space on the external file to position it, plus I cant seem to manage to unload the movie once its on.
does anyone know how to make a movie clip instance dragable?
Thanks!
View Replies !
View Related
Reversing Only If...
Hi All,
Ive been messin with this for quite sometime and i just cant quite get it. On a menu I have a list of buttons and when you click one a movie clip shows up, but when you go to click another button from clicking the previous one i want the prevous movie click to reverse...
i have this code on the menu button.
on (press) {
root_.pictureMC.onEnterFrame = function() {
// root_.pictureMC. being the mc that i want to reverse.
if (root_.pictureMC._currentframe>1) {
root_.pictureMC.prevFrame();
} else {
delete root_.pictureMC.onEnterFrame;
}
};
}
Thanks in advance
View Replies !
View Related
Please Help Reversing This AS.
Hello all!
What I need help with is to create a prev button for this slideshow. I have copied the below AS from the nextImage button, and changed all the things I can think of, but it always does something wrong… like the “pos_txt” will go backwards, but the image and description go forward on first prev click, then start going backwards… and other weird things like that.
So below is the "nextImage" code and below that is what I changed for the "prevImage" button.
code:
function nextImage() {
pos_txt.text = a+1+" / "+total;
for (var obj in movies) {
if (movies[obj].p != a ) {
if (movies[obj]._alpha>0) {
movies[obj].onEnterFrame = fadeout;
}
} else {
movies[obj]._alpha =0
movies[obj]._x = 10
movies[obj]._y =10
movies[obj].onEnterFrame = fadein;
}
}
desc_txt.text = description[a];
a++;
a %= image.length;
}
So the code below is the closest I could get the prev button to work. What it does is reverse the counter(pos_txt) right, but makes (description) and the images go up one, then reverse... wierd, wierd.
Also, in the code is "a %= image.length;" which makes it cycle from the last image to the first image once you get to the end, but when using the "prevImage" button with the code below it goes to 1 then -1, -2, -3, -4 and so on, instead of cycling to the last image.
code:
function prevImage() {
pos_txt.text = a-1+" / "+total;
for (var obj in movies) {
if (movies[obj].p != a ) {
if (movies[obj]._alpha>0) {
movies[obj].onEnterFrame = fadeout;
}
} else {
movies[obj]._alpha =0
movies[obj]._x = 10
movies[obj]._y =10
movies[obj].onEnterFrame = fadein;
}
}
desc_txt.text = description[a];
a--;
a %= image.length;
}
Thanks,
Dale!
View Replies !
View Related
[F8] Reversing X Or Something
Hi all,
I've been wondering about a little piece of code:
PHP Code:
var stars = 40;
var maxSpeed = 16;
var minSpeed = 2;
for (var i = 0; i<stars; i++) {
var mc = this.attachMovie("star", "star"+i, i);
mc._x = random(Stage.width);
mc._y = random(Stage.height);
mc.speed = random(maxSpeed-minSpeed)+minSpeed;
var size = random(2)+0.6*(random(4));
mc._width = size;
mc._height = size;
}
function moveStars() {
for (var j = 0; j<stars; j++) {
var mc = this["star"+j];
if (mc._x
<Stage.width) {
mc._x += mc.speed;
} else {
mc._x = 1
mc.speed = random(maxSpeed-minSpeed)+minSpeed;
mc._x = random(Stage.width);
}
}
}
At the moment, the stars (little movieclip with linkage) go across the screen from left to right.
I want them to go from right to left. I've tried editing the line:
PHP Code:
mc._x += mc.speed;
to:
PHP Code:
mc._x -= mc.speed;
It makes one "batch" of stars, and then just stops.
Does anyone have any ideas?
View Replies !
View Related
Reversing The Vx
I am trying to reverse this at a random vx when it reaches one side of the movie. Then when it reaches the other side it reverses the vx again at a random vx.
////////////////////////////////////////////////////////////
spdText.damp = .95;
centerx = 4.3;
leftside = -258;
spdText.vx = Math.random()*8+6;
spdText.onEnterFrame = TextMove;
function TextMove() {
this._x += this.vx;
if (this._x>318) {
this._x = 318;
this.vx -=Math.random()*8+6;
}
if (this._x<leftside) {
this._x = leftside;
this.vx +=Math.random()*8+6;
}
this.vx *= this.damp;
this.vy *= this.damp;
}
///////////////////////////////////////////////////////////////
right now it gets to the right side but it won't reverse the vx
View Replies !
View Related
Reversing An Mc
i've got a button that when you click on it the insides of the button jump/walks out and forms a square. I want to know how to, when clicking off the mc, make the mc step backwards to it's origional state. Is ther anyway you can do this with ActionScript?
Actionscript would be great for this if there's a way as if the box was coming out, you could make it go back in from it's current position/frame.
Thanks heaps for your help!
josh
View Replies !
View Related
Reversing SWF
:x
Hi
Please solve my small problem
1 have three btn. which will load external swfs onRelease. and i have also one mc on main timeline (10 frames animation)
what i want if user click any of these btns first mc play all its 10 frame and then load the external swf.
thanx
View Replies !
View Related
REVERSING KEYFRAMES
Hello,
My particular problem is how to reverse KEYFRAMES. So basically I can have a script that when the user preses something it reverses the action (I have a 3D sequence, and basically when the user gets out of that section, I would like the 3d to reverse).
I can do this without an actionscript, but hoping a script is available.
Thankyou.
View Replies !
View Related
Reversing Frames
I am extremely new to actionscript, so I am not really sure how to get started on what I want to do.
I have a page up at: http://www.iown.org/flash.htm
It is barebones at the moment but I thought I would put it up as it would be rather hard to describe what I want to do without it. I am looking to have it recognize that one button has been pressed and the page is being displayed if another button is pressed, so before the second buttons action occurs it reverses the frames from the first appearance so it "fades out" before the next one fades in.
Am not sure if there is an easy way to do this or not. Any help would be greatly appreciated.
Thanks.
View Replies !
View Related
Reversing The Tween? Pls Help
lo all. basically each page of my site tweens in and then out again before the next page is loaded. i have done the tweening in, but am now having to copy all my scenes again but in reverse so that it tweens back out again... any easier way this can be done???
thx
lev
View Replies !
View Related
Reversing Question
If you have an intermediate or above knowledge of actionscipt, I hope u can help me with this problem I've had for years.
The situation is that Im making a game in flash and say for instance I have a player, instance name 'player'.
Also say for instance I have a car, instance name 'car'.
The game is birds eye view.
The player moves forwards with the up key and backwards with down, the left and right keys rotate the player on the spot.
To do this the player has the code:
onClipEvent (enterFrame) {
_y += acelerar*Math.sin(_rotation/57.3);
_x += acelerar*Math.cos(_rotation/57.3);
acelerar *= 0.8;
}
And can be moved forwards by increasing the acelerar or backwards by reducing the acelerar. The problem is I want him to be prevented from walking through the car when either the car or the player is at any angle. I have tried making him bounce back off it by reducing the acelerar when the player hits it but obviously if he's walking backwards, he'll go through the car.
Anyone have a solution?
View Replies !
View Related
Reversing Timelines
*EDIT* It would help if I attached the FLA, hmmm...? OK FlashKit... after futile searching to *almost no avail... I needed to reverse playback of my MC. Came up with some code that did the trick. NOW, I need the same action that calls the reverse function originally, to call the same reverse function of another MC on that same timeline. Should be a simple rewrite somewhere Im sure... Id appreciate any help. Thanks. heres a little snippet:
(on first frame)
Code:
stop();
closedMC.onRollOver = function(){
gotoAndPlay(2);
}
function doReverse(){
_root.onEnterFrame = function(){
if(_currentframe > 1){
gotoAndStop(_currentframe - 1);
} else {
_root.onEnterFrame = null;
_root.play();
}
}
}
(on last frame)
Code:
stop();
openMC.onRollOut = function(){
doReverse();
}
I need the openMC function to call ringsMC timeline to reverse playback as well. Ive tried several different variations and just cant seem to hit the nail on the head...
Thanks again,
Geoff
View Replies !
View Related
Reversing Playhead In MC?
Hi,
I have an MC with four links revolving around a graphic. I used a button with an on rollover action to play and rollout to stop. Looks great. The problom is I would like to have another button reverse the links and have them revolve the opposite way. I've tried using prvouse fame but have had troube getting it to work on the root timeline. I'm usng MX. any help would be appreciated. Thanks
View Replies !
View Related
Reversing A Timeline
Hi there:
Is there anyway to reverse an animation. I have it playing at the beginning of the movie where it implodes a logo into different shapes. At the end of the intro I would like it to explode instead of implode which means I need to reverse it. The only way I can think of is by taking each individual frame cutting and pasting each one in a reverse order in a new movie symbol. Time consuming. Is there another way?
Thanks
View Replies !
View Related
About Reversing The Timeline
Hi folks !
I want to know the method for animated timeline goes reversly. Please let me know the action script code for reversing the timeline. I hope a kind folk who has idea on it will definately mail me as soon as possible. Thank you...
Ishwor
View Replies !
View Related
Reversing A Movie
Hi
Hope someone can help.
I have a movie clip made from an image sequence. When it gets to the end of the sequence, it returns to the start and loops. I would like it to start playing in reverse A-B, B-A and so on!
I presume it's a simple script, but cant seem to find it anywhere.
Thanks very much
View Replies !
View Related
Reversing Movies
i read a while ago on some post that theres some code to reverse the movie so it plays backwards
i acnt find the post anymore so could someone tell me how you do this without copying each frame one by one?
View Replies !
View Related
Reversing Animation
This must be easy...
I have an animated movie with graphics and buttons coming out towards the screen from out of the centre of the screen and disappearing off screen. There are around 50 images, so as one fades off screen another will fade in at the back of sequence etc.
The user activates the animation by rollover button and can stop the animation by rollout as some of the images in the animation are animated buttons.
But how do I reverse the sequence ie if I include a "back" button as well as "forward" button, so that the user can reverse the animation and see images that have already passed them and disappeared off the screen.
I want the reverse sequence to take place from the frame that it is currently at rather than starting the reverse at the beginning.
I know that in Director you can reverse the sequence but have no idea how to do this. Got the idea from www.hypegallery.com.
Any help much appreciated as part of my final year project due in 4 weeks!
Aly
View Replies !
View Related
Reversing .mov File
Can anyone help me -- i would like to know if i can reverse a .mov
i cant seem to do this nor am i sure its even possible to do...if you know how, can you please tell me. fireelement@hotmail.com
thanks
View Replies !
View Related
Reversing Frames....
hi,
i was wondering how can i reverse the frames...
what i mean is if for example u have a motion tween of a circle sliding to the right..
what should i write in the last frame of the motion tween so the circle will go back...
_current frame--?!
or what..
if it's possible...
thanks ahead...
View Replies !
View Related
Reversing Frames?
well i've seen it in couple of websites but i'm not sure if its possible at all, lets suppose you have a button and when its press it makes a movie_mc play and it goes from frame 1, 25. but then the movie_mc, would have a close button in it so when i press it, it would play the movie_mc backwards so for example if the movie_mc is a circle that goes from left to right at the beggining when you close it it should go from right to left and then it should unload the movie_mc...
View Replies !
View Related
|