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








Tween Does Not Move To Next Frame


Hi,
Kindly advise why my it does not stop to frame 2, after the onMotionFinished
function is executed. I dont see the green rectangle containing number 2.
Thanks




KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 07-31-2008, 01:00 PM


View Complete Forum Thread with Replies

Sponsored Links:

The First Frame Of My Shape Tween Should Look As The Last Frame Of My Motion Tween...
How do I make a motion tween go over in a shape tween? When breaking apart my instance, I loose all effects. (Gradient fill/tint/alpha (newbie...)). How can I start a shape tweening with an object that at least LOOKS like the instance in the last frame of my motion tween -since I cannot add tint or alpha to it- ?

(a simple star that morphes into a raindrop)
[Edited by spip on 01-05-2002 at 05:59 PM]

View Replies !    View Related
Make Flash Detect Current Frame Then Move To Another Frame Base On A Numeric Value
I need to get the current frame that being displayed and then move to another frame and stop based on a random number.

For example: A person rolls a 4 with a dice. Flash will move 4 frames from it's current frame.

Can anyone help out with this question?

View Replies !    View Related
Actionscrip Playing In Frame One. - But I Eventually Want To Move To Frame 2[MX04]
ok - heres a simple one I'm sure

I have 4 movie clip symbols. - each on a different layer - marching in a row

below is the script I have in a layer name "actions" on the main timeline

one_mc.onEnterFrame = function(){
this._x += 1;
}
two_mc.onEnterFrame = function(){
this._x += 1;
}
three_mc.onEnterFrame = function(){
this._x += 1;
}
four_mc.onEnterFrame = function(){
this._x += 1;
}
this works fine. but when my four_mc gets to 600 px accross the page, I want to move to frame 2 of the main timeline...and continue on with my movie.

Looking about I'm guessing I should maybe use the gotoAndPlay rule...but not really sure how.

I was starting with

four_mc.onEnterFrame = function(){
if (this._x <600){
this._x += 1;
}
}

- trying to say if four_mc is greater than 600px along X...I want to gotoAnd play from frame 2

...am I completely confussed?
PLEASE HELP...I'm very stuck!

thanks
tigercat

View Replies !    View Related
Image Quality Takes A Dive When I Move Everything From Frame 1 To Frame 3.
I'm not sure what's going on here. I decided I need to add a preloader to my site so I moved everything in frame 1 of the main stage to frame 3 so I could add in the preloader. Without the preloader, I tested it to make sure everything was moved over to frame 3 and that everything was working and now when I preview the movie in Internet Explorer all of the images (png format) are really jagged around the edges as if AA is not on anymore. Everything looks fine if its in frame 1, yet in frame 3 it looks bad. Any idea what's up and how to correct this?

View Replies !    View Related
Image Quality Takes A Dive When I Move Everything From Frame 1 To Frame 3.
I'm not sure what's going on here. I decided I need to add a preloader to my site so I moved everything in frame 1 of the main stage to frame 3 so I could add in the preloader. Without the preloader, I tested it to make sure everything was moved over to frame 3 and that everything was working and now when I preview the movie in Internet Explorer all of the images (png format) are really jagged around the edges as if AA is not on anymore. Everything looks fine if its in frame 1, yet in frame 3 it looks bad. Any idea what's up and how to correct this?

View Replies !    View Related
Actionscript To Make A Button Move From Frame To Frame
I'm trying to take a Powerpoint Presentation and put it into Flash. The problem is that I im not sure how I can get a mouse click to advance to the next frame. I want a user to click on the Flash item and go from frame 1 to frame 2 and so on and so on. What would be the best way to do this so it looks and acts like a Powerpoint presentation.

Thanks

View Replies !    View Related
After Tween, Jump To New Frame (using Tween Class)
I need some help with using the tween class (among other things).

See my attached test file. It's clearer than my description.

You're supposed to be able to click the "next" or "prev" buttons and see the movie clip move forwards or backwards. It works, but only on the first click of the button. After the initial click I need the timeline to jump to frame label "2", and after the second click I need the timeline to jump to frame label "3", and so on, so that I can implement a new set of perameters. Is that clear? I'm so annoyed with this. Please help!

Thanks.

View Replies !    View Related
Is It Possible To Move A Tween In One Step?
I want to select everything in a movie and move it down, say 50 pixels, on the stage.

Is this possible to do quickly in one step?

The only way I can see to do this is by movie each keyframe by hand but i feel like there must be an easier way.

any tips for this would be great.

View Replies !    View Related
Looping Sound In Frame Then Move To Next Frame
hello all,

I come to the swf lords for help.

Please look at the following code that I'm trying to use in flash player 9 when trying to use Actionscript 3.0

First let me tell you my objective: I'm trying to play a sound to continually loopwhile in frame 2 plays. When frame 2 finishes playing out I use gotoAndStop(3) and I want the frames 2 sound to stop playing so I can start frame 3 sound.

Now this is what really happens: In some attached code the sound frame 2 will carry over to frame 3 and not stop. Other code, the frame 3 will be called even before frame 2 starts playing.

************************************************** ************************************************** ****************************
stop();


/*
import flash.media.Sound;
var trans:SoundTransform;
var mySndCh:SoundChannel;
var mySnd:Sound = new Sound(new URLRequest("sound/mymusic.mp3"));

function playMusic():void
{
mySnd = new NameOfSound();
mySndCh = mySnd.play();
mySndCh.addEventListener(Event.SOUND_COMPLETE, loopMusic);
}

function loopMusic(e:Event):void
{
if (mySndCh != null)
{
mySndCh.removeEventListener(Event.SOUND_COMPLETE, loopMusic);
playMusic();
}
else
{
gotoAndStop(3);
}
}
*/
-------------------------------------------------------------------------------------------
/*
import flash.media.Sound;
var trans:SoundTransform;

trans = new SoundTransform(1, 0);
var snd:Sound = new Sound(new URLRequest("sound/mymusic.mp3"));

var i:int;
for (i = 0; i < 1; i++)
{
snd.play()
}
*/

--------------------------------------------------------------------------------
/*
import flash.media.Sound;
var trans:SoundTransform;

trans = new SoundTransform(1, 0);
var snd:Sound = new Sound(new URLRequest("sound/mymusic.mp3"));

var i:int;
for (i = 0; i < 2
{
if(i++)
{
snd.play(0, 2);
}
}


*/


************************************************** ************************************************** *****************************

Please let me know what I'm doing wrong

Thank you for your time,

-lexeo602

View Replies !    View Related
How Do You MOVE A Tween Without Having To Redo The Whole Thing?
Just wondering how this is done? When I need to move a tween (ie the first frame, motion tween and last frame, I can't seem to grab the whole thing and move it around?

Thanks,
Andrea

View Replies !    View Related
How To Move An Object Using The Tween Class
Hello everybody.

I have a button inside a MC, when "onRelease" I want to move the MC, let's say from the middle of the Stage to the Top.

I know how to change the size on the object, using:
this.object.tween("_height", 250, speed, "easeoutCubic", 0.005);

But I don't the property to move it.

Does anybody know?

Thanks for your help.

View Replies !    View Related
Motion Tween Won't Resize Just Move
So even going to the basic tut on the custom easing. the very first step of creating a box making it a movie clip pull out to 35th frame and create new keyframe then on the first keyframe resize the box and create motion tween. my box will move but won't resize until the last keyframe it just jumps. I'm using flash 8 if there is a difference cuz i realize the tut is in mx

View Replies !    View Related
[CS3] How To Move An Entire Shape Or Motion Tween
scenario is i've created a motion tween for fading purposes, have my object with alpha 0% at point A and end 100% at point B as normal.

now i want to move the entire sequence to a new location, the way i'm doing it now, is i have to move the beginning graphic, then manually move the ending graphic as well, and try to even match it up so that there's no movement during the fade.

is there anyway to way to just grab the entire thing and move it on the stage?

View Replies !    View Related
[F8] How To Move A MovieClip With Ease In/Out Tween Using Actionscript
I need to move a MovieClip from point A to point B when a user clicks a button.
I currently have a custom function which I pass three arguments: TargetX, TargetY, and the Duration (in frames). I have it working to move the clip linearly, however, I would really like to be able to ease in/out on the tween.
I'm really stuck on the math of it all and need someone to give me the formula.
Here's my function:


Code:
// Function which is called when user clicks button to move the mc
_global.fMoveTheMovieClip = function(iTargetX, iTargetY, iDuration){

// Calculate the distance to the Target position
iTotalDistance = iTargetX - MoveThisClip_mc._x;

// Mover function
MoveThisClip_mc.onEnterFrame = function(){

// If the movie clip has gotten close enough to the target
if((Map_mc._x > iTargetX && Map_mc._x < (iTargetX + 1)) || (Map_mc._x < iTargetX && Map_mc._x > (iTargetX - 1))){

// Snap the movie clip to the target x
MoveThisClip_mc._x = iTargetX

// And stop this function
delete this.onEnterFrame;

// Else, if the mc has NOT reached the target zone
}else{
// Move the clip
// This is where I would like a formula to ease out then in based on the duration
// Right now I have this to move the mc at a constant speed
MoveThisClip_mc._x += (iTotalDistance / iDuration);

}
}
}
Also, everything needs to be AS2 compatible.
AND, I can't use the "tween" or "transitions" classes.
So, please don't post anything with code similar to this:


Code:
import mx.transitions.Tween
import mx.transitions.easing.*;
If I need to add a "power" or "strength" argument to my function, that's fine.

Thanks!!!!

View Replies !    View Related
[F8] How To Move A MovieClip With Ease In/Out Tween Using Actionscript
In Flash 8, I need to move a MovieClip from point A to point B when a user clicks a button.
I currently have a function which I pass three arguments: TargetX, TargetY, and the Duration (in frames). I have it working to move the clip linearly, however, I would really like to be able to ease in/out on the tween. I'm really stuck on the math of it all and need someone to give me the formula.

Here's my function: .....

View Replies !    View Related
Elasticity Tween Edit - From Move To Scale...
Hi everyone I'm looking to create a scaleTo Tween with elasticity from the following moveit Tween code.

This is the original AS:


ActionScript Code:
MovieClip.prototype.moveit = function (centerx, centery, inertia, k) {     vx = -this._x+centerx;    vy = -this._y+centery;    this.xp = this.xp*inertia+vx*k;    this.yp = this.yp*inertia+vy*k;    this._x += this.xp;    this._y += this.yp;}


Called like so:


ActionScript Code:
onClipEvent (enterFrame) {    this.moveit(11, 28, .75, 0.1);}onClipEvent(load) {    var xp = 0;    var yp = 0;}


How do I make this safe for pixel fonts? in other words no blurring during the tween?

View Replies !    View Related
On EnterFrame...scale, Tween, Alpha, And Move To (x,y) ?
Hi,

I am using Flash MX.

I have a Button_mc movie clip on stage that acts as a button to move the playhead to frame lable A.

I have other movie clips on at that frame labled;

icon01_mc
icon02_mc and so on...

What I am trying to achieve is to have icon01_mc, and icon02_mc move to specific (x,y) stage coordinates, tween while moving there, scale and change alpha at the same time... and all this to occur once the playhead moves to FrameA.

The problem is that so far, in order to move the icon01 and icon02 movie clips to a location.... I have had to make other movie clips that act as position markers and tell these ones to move into the same position as the markers....using the following code.

// 'toX' & 'toY' are variables that hold x & y position to move to
// if they change the MC will move to the changed position, etc
Button_mc.onPress=function(){
icon01_mc._x-=(bmCover._x-icon01_positionmarker_mc._x)
icon01_mc._y-=(bmCover._y-icon01_positionmarker_mc._y)
}

The other method uses no position markers to do the same thing

MovieClip.prototype.ease = function(tarx, tary) {
this.onEnterFrame = function() {
this._x = tarx-(tarx-this._x)/1.2;
this._y = tary-(tary-this._y)/1.2;
if (Math.abs(tarx-this._x)<1 && Math.abs(tary-this._y)<1) {
this._x = tarx;
this._y = tary;
delete this.onEnterFrame;
}
};
};
Button_mc.onRelease = function() {
icon01_mc.ease(x,y);
icon02_mc.ease(x,y);
};

The third method is an onEnterFrame code that moves scales the movie clips and changes their alpha values but doesn't move them around.

onEnterFrame=function(){
icon01_mc.tween(["_alpha","_xscale", "_yscale"],[100, 100, 100], 1, "easeOutQuint")
icon02_mc.tween(["_alpha","_xscale", "_yscale"],[100, 100, 100], 1, "easeOutQuint")
}

================================================== =============

Really what I'd like to know is how to encorporate the
_alpha
_xscale
_yscale
_xposition
_yposition
_ease value control
for each movieclip to happen both with an onRelease event and with an onEnterFrame event.

Basically the Actionscript 1.0 code for each...considering that I have installed a tween class already...as indicated in the code above.

Thanks in advance for the help

Cheers.

View Replies !    View Related
Shape Tween Or Frame By Frame Animation?
i want to make a horse morphing into an airplane...
i am not sure what the shape tween can do this or not..?
or i hav to do it using frame by frame animation... ...?
and if shape tween can do... how detailed the horse can be...? or is it just a silhouette?

Anyone can give me any example or reference?

View Replies !    View Related
Shape Tween Or Frame By Frame Animation?
i want to make a horse morphing into an airplane...
i am not sure what the shape tween can do this or not..?
or i hav to do it using frame by frame animation... ...?
and if shape tween can do... how detailed the horse can be...? or is it just a silhouette?

Anyone can give me any example or reference?

View Replies !    View Related
Actionscript Or Timeline Tween Frame By Frame?
Hi just wandering if someone can tell whether this
http://cmd9.m78.com/works/fmxdf3/index.html animation would have been done using actionscript or just frame tweening as it looks very fast and slick compared to the frame by frame stuff I have done! Slowly realising that there seems to be only so far you can go with frame by frame...

Cheers for tips

View Replies !    View Related
Forget How To Make Movie Clips Move And Motion Tween
i just took a flash class at my school like 3 months ago, and i cant remember much from it, since i havent used it in 3 months, i need to make a movie clip, problem is i cant get the clip to move, or get a motion tween, i just took director, and i know the 2 programs are similar, just not similar enough. any help out there?

View Replies !    View Related
Move Frame By Frame In What FLV Player?
I'm in the process of designing a website, and I want to use Flash as well as Quicktime. The site deals with stock footage, so the beauty of Quicktime is that the user can simply move through the video frame by frame and choose exactly the shot he or she wants. But when it comes to Flash, is there a player available that will allow the user to move through the clip frame by frame?

Klein

View Replies !    View Related
Move To A Particular Frame
hi
i am loading a .swf file in a movie clip on the release event of the mouse.When the .swf file is loaded in the MC it stops in the first frame of a the first scene, but i want to goto 20th frame of scene2.how do i do it.pls help me

bye
geethanandh

View Replies !    View Related
Move To Frame
Hi ya all!

I'm new to flash and need some help.
I have created a button witch I want to start my movie.
The button is created in the first layer frame 1
At frame 2 I have put code stop(); and that works fine.

I want when I click the button to start at frame 3
I have tryed with this code:

on (release) {
gotoAndPlay(3);
}

and also:

on (release) {
play(3);
}

What am I doing wrong?


/Richard

View Replies !    View Related
Use XML To Move To Different Frame
I am trying to establish whether or not it is possible to use XML to move my main movie clip to a different frame? Does anybody know if this is possible?

any help greatly appreciated.

View Replies !    View Related
Move To Next Frame
hi all

The following code is 4 loading an external movie or image which i wrote in first frame of falsh movie
the following code is working fine:


ActionScript Code:
var flag = false;var percent = 0;function preload(MyCache) {    if (!MyCache.doneLoading) {        if (MyCache._framesloaded>0 && MyCache._framesloaded == MyCache._totalframes) {            MyCache.doneLoading = true;        }        var outputLoaded = MyCache.getBytesLoaded();        var outputTotal = MyCache.getBytesTotal();        this.percent = int((outputLoaded/outputTotal)*100);        Percantage = percent+" %";        setProperty("Bar", _xscale, percent);    } else {        flag = true;    }}
but error on the followin code i dont whats wrong with the following code....

actually i want to move on the nextframe after a certian amount of time (like when perent values equlas to 100)


ActionScript Code:
// i want 2 move on next frame afterif (flag == true) {//next frame's labelgotoAndStop("mc12");}or if (this.percent == 100) {//next frame's labelgotoAndStop("mc12");}
help me i'm stuck!!!

thanx
amjad

View Replies !    View Related
Move To Next Frame
hi all

The following code is 4 loading an external movie or image which i wrote in first frame of falsh movie
the following code is working fine:


ActionScript Code:
var flag = false;var percent = 0;function preload(MyCache) {    if (!MyCache.doneLoading) {        if (MyCache._framesloaded>0 && MyCache._framesloaded == MyCache._totalframes) {            MyCache.doneLoading = true;        }        var outputLoaded = MyCache.getBytesLoaded();        var outputTotal = MyCache.getBytesTotal();        this.percent = int((outputLoaded/outputTotal)*100);        Percantage = percent+" %";        setProperty("Bar", _xscale, percent);    } else {        flag = true;    }}
but error on the followin code i dont whats wrong with the following code....

actually i want to move on the nextframe after a certian amount of time (like when perent values equlas to 100)


ActionScript Code:
// i want 2 move on next frame afterif (flag == true) {//next frame's labelgotoAndStop("mc12");}or if (this.percent == 100) {//next frame's labelgotoAndStop("mc12");}
help me i'm stuck!!!

thanx
amjad

View Replies !    View Related
Move More Than 1 Key Frame On A Layer
How do you move more than 1 keyframe on the same layer? I want to move a movie clip, but when I try, it only effects one keyframe and all of the others stay the same on that layer, even though I had selected all of them. Is there away around having to move each keyframe ? Please tell me there is...

GL

View Replies !    View Related
Button To Move To The Third Frame Of A Different Swf.
Sorry, I know this has been asked before but the search engine keeps returning a blank page. I would like to a button which when clicked will go from an intro.html which plays intro.swf to main.html which plays main.swf. I have that working but I would like it to go to the 3rd frame in main.swf. Is there any way to make that happen? The key is that I still want to go through the main.html when going to the third frame of main.swf

Thank you

View Replies !    View Related
Move To Next Frame On Keystoke?
how would i what what code would i use to make my flash move stop on a frame and not advance to the next frame until it recieves a keystroke? its an easy question, but please be as specific as possible. i'm using flash 5

View Replies !    View Related
Move To Another Frame In A Movie
I have created a movie where another movie inside of it that plays the first three frames during some tweening.

When it gets a particular frame in the root timeline I want to change the color of the nested movie. What is the most optimal way to do this?

I have created another instance of the same movie and colored it differently, but I thought I might be able to make the color change in the same movie and use a goto...but I'm new at actionscripting.

Any advice?

View Replies !    View Related
Using A Button To Move To A Frame
hi

Im getting a problem when I want to move between two frames using a button, and Ive read that this is how it is to be done:

on(press)
{ gotoAndPlay(10);
}

My problem is that on testing/publishing the movie the frame moves from one to another on its own!! The user is not even clicking the button here!! I have made sure the action is assigned to the button not the first frame, what is wrong? Please help...

Thank you..

View Replies !    View Related
How To Move To A Different Frame Through A ComboBox?
I'm using Flash 8. I have a ComboBox MC with its own timeline. When a user changes the selected ComboBox field, it must move to a different frame in the same timeline. Below is my code attached on the ComboBox itself. The trace commands are executed, however the movie does not change its current frame.

on (change) {
if (this.text == "1") {
gotoAndStop("1");
trace("hi");
} else if (this.text == "2") {
gotoAndStop("2");
trace("hi");
} else if (this.text == "3") {
gotoAndStop("3");
trace("hi");
} else if (this.text == "4") {
gotoAndStop("4");
trace("hi");
} else {
gotoAndStop(0);
trace("None");
}
}

View Replies !    View Related
Move To A Frame After A Set Time?
Hi.

I'm having trouble moving to a different frame in my scene after a certain period of time. I want this to occur after several things have happened which are also time based.

I tried this code:


Code:
if (getTimer()-startTime>80000) {
stopAllSounds();
_root.gotoAndStop("gameFinishedEasy");
}


This is put at the end of all the time events, but it does nothing...However if I change the amount of time to the same or under the last timed event it works, which I'm a little confused about. (I also tried putting it inside the onEnterFrame part where these clips are made to spawn at certain times, but this causes a stranger error where the last movie clip spawns frozen).

So basically all these movie clips are spawned at different intervals, shortly after the final clip spawns I want to move to a different frame. At the moment all it lets me do is move to a different frame just before the last clip is spawned (at 78500).

Any ideas what to do? Possibly a better piece of code? Perhaps put that code in a completely seperate object on the scene?

Hope you can help, thanks.

View Replies !    View Related
[F8] Need One Click To Move One Frame Over
nothing is working, 8hrs of trial and error...please help

View Replies !    View Related
Move To Next Frame After A Few Seconds
Hi everybody,
Even though my question is already clear from the title, I would like to jot down my query.

What I want to do in my animation is to move to next frame after a few seconds (let's say 5 secs).

How can this be done? I know that setTimer is used but I don't know how to start.

Plz help.

Thanx in advance.

Regards,
Soulfly

View Replies !    View Related
Using A Button To Move To A New Frame
I'm trying to build a simple game. So far, all of the action takes place in frame one. I would like to have a button which takes you to a new frame in order to display instructions. So far I have been unable to do this without turning the whole thing into a two or three frame movie which then cycles and flickers.

I have tried putting a gotoAndStop action on the button. I have tried putting in a blank keyframe with a stop action. I have tried adding a stop action to the first frame. I have tried creating a whole new scene.

Each time, I get the same result.

Help please!

View Replies !    View Related
Need To Find End Of Script To Move To Next Frame
Can anyone tell me how to find the end of this animation. I want to be able to move on to the next frame once the word is finished displaying. It's a really cool effect I found on Flash Kit but can't figure out how to end it.

I am providing the file in question.

thanks

View Replies !    View Related
[F8 Or CS3]move To Next Frame After FLVPlayback Completes
this should be so simple, but i can't figure it out ...

i would like to play an external FLV, and at the end of the playback, move to another frame and play a movie clip which essentially just a frame with a text area in it.

i have the FLV in frame one of my timeline in it's own layer (video)
in frame one of the actions layer, and have entered stop(); and the nextFrame(); behavior to move to the next frame, where the new movie clip resides in it's own layer. i have inserted a blank keyframe in the video layer in frame2.

when i test the swf, the video plays, but is covered by the frame with the text area in it ...

any thoughts?

View Replies !    View Related
How To Move To Nextframe Using Frame Labels
I too am also a nOOb - especially AS3.
Have a simple 7 frame project - where we start with frame one, and after frame one is finished by clicking ENTER, the movie shoud got to frame two via: nextFrame ();

It does it for going to frame 2 and 3 and 4 and 5 - but it always skips frame 6, and goes on to the last frame 7.

It makes no sense. So want to know how we can change it so that if each frame has a Frame Label, we can do the same process of moving from frame to frame ( one frame at a time).

All help welcome ! Thanks !!!

View Replies !    View Related
How To Click And Drag To Move A Frame?
I'm new to Flash and I apologize for the basic question but I cannot seem to consistently move a frame to another spot on the timeline. Sometimes I'm able to click on the black dot and move it up or down the timeline. Other times I am only able to highlight the frame. If I can master this it will speed up my time in creating my Flash movie. Does anyone have any tips ot tricks regarding this? There must be a sure fire way to click and drag a frame every time.

Mucho gracias.

View Replies !    View Related
How To Move Frame Content Flash Cs4
i feel really stupid asking this, how do i move all of the content on all my layers without creating a motion tween.
my movie is not correctly positioned on the movie stage so not all of the content is viewable when the movie is tested, when i try to move all the content on all frames at once it makes the move part of the movie.
i have alos tried changing the document size to fit content but no joy i have spent hours on this project and now am stuck on somthing like this
thanks
dan





























Edited: 01/20/2009 at 12:48:41 PM by Dan 21

View Replies !    View Related
PrevFrame(); --> How Do I Move More Than One Frame Back?
ActionScript Code:
onClipEvent (enterFrame) {        if (_root.mario.hitTest(this)) {                if(!this.addtohealth){                        _root.health.prevFrame();                        this.addtohealth ;                }                this.gotoAndStop("done");        }}


I have this code...And it works fine only I want to move say 3 frames back instead of one. So I tried the below script


ActionScript Code:
onClipEvent (enterFrame) {        if (_root.mario.hitTest(this)) {                if(!this.addtohealth){        _root.health._currentframe -  3                                   this.addtohealth ;                }                this.gotoAndStop("done");        }}


But that didn't work...So If anyone knows how I can move more than one frame back it would be a big help! Thanks in advance .

View Replies !    View Related
Stuck Trying To Get A Button To Move To The Next Frame.
in school here working on a flash project, i really hate mx 2004


any help on this code?

on (release) {gotoAndPlay(nextFrame();
);
}

View Replies !    View Related
Actions To Play Mc-move To Next Frame?
This may be a rather silly question but can somebody help me with this. I have a movie clip in frame 1, then my site starts in frame 2. What actions do I need to place in frame 1 to tell it to play the movie clip then once the movie clip has finished move onto frame 2? I just have the mc sitting in frame 1 and it plays then stops but doesn't move onto frame 2. Thanks in advance for any help.

View Replies !    View Related
When I Move Code To Next Frame, It Does Not Work
I have a long stretch of AS in the 3rd frame of my main movie. I would like to start some more code in frame 4 (for preview purposes, I can use a gotoAndPlay action for that frame so I don't have to watch entire movie each time)

The code works fine when placed at the end of all code in the third frame, but when I move it to the fourth it does not work at all. (right now it is just attaching a testMC) I have been trying adding stops and anything else I can think of which may be the cause for this but I cannot figure it out.

I feel as though it is something really simple I must be overlooking or possibly just don't know. Earlier in the movie, I have content in frame 2 and it moves to the content in frame 3 just fine???

Here is the actual movie so that it can be opened to look at the code, though if it is played there are many loaded movies which will cause a lot of errors.

I would really appreciate if someone could see what I am or am not doing!

View Replies !    View Related
PrevFrame(); --> How Do I Move More Than One Frame Back?
ActionScript Code:
onClipEvent (enterFrame) {        if (_root.mario.hitTest(this)) {                if(!this.addtohealth){                        _root.health.prevFrame();                        this.addtohealth ;                }                this.gotoAndStop("done");        }}


I have this code...And it works fine only I want to move say 3 frames back instead of one. So I tried the below script


ActionScript Code:
onClipEvent (enterFrame) {        if (_root.mario.hitTest(this)) {                if(!this.addtohealth){        _root.health._currentframe -  3                                   this.addtohealth ;                }                this.gotoAndStop("done");        }}


But that didn't work...So If anyone knows how I can move more than one frame back it would be a big help! Thanks in advance .

View Replies !    View Related
Stuck Trying To Get A Button To Move To The Next Frame.
in school here working on a flash project, i really hate mx 2004


any help on this code?

on (release) {gotoAndPlay(nextFrame();
);
}

View Replies !    View Related
Loade Move And Play From Specfic Frame
i am working on a project in which i have divided the entire site into different swf files. For example i have a main file which contains links like about us, contact us etc..
First i am loading the main file and on cilck of any link i loade the the pirticular movie on to level0 of the main movie. to naviget in the sub pages i am doing the same thing i am loading the movie on to level0 again. now my problem is if i have to go back to the home page. i loade the main.swf file. but this file contains a small animation in the starting. i dont want the user to see the animation every time he comes back to the the home page form the sub pages. Is there a possibility to say loademovie(main.swf,0) and _level0.gotoAndPlay("endofanimation");
i tried givingthis code on a button, but it dose no work.

on (release) {
loadMovieNum ("main.swf", 0);
_level0.gotoAndPlay(1);
}


some one plese help me..

View Replies !    View Related
How Can I Make A Combobox Move The Playhead To A Certain Frame?
Ok, I am very new to Flash, so please bare with me.

What I am trying to do it create a map of an office building with a combobox under it that lists all the employees names. When you select one of the employees is shows an arrow on the map pointing to that persons office. I have the map done with the arrow set at a different office for each frame of the movie. I basically have two questions, one, how do I make the combobox jump to a certain frame? and two, is there a way to use an XML file or something for the labels in the combobox so that as people come and go I don't have to keep recompiling the flash movie?

Thanks for any help,
John

View Replies !    View Related
Click And Move To New Playhead Frame In Another Movie
Hi There,

What are the basics of having a clicked button in one movie move the playhead of another movie (i.e., another movie in a different <FRAMESET>/html) to a new frame, i.e., if the movie is currently at frame 1, have the clicked button in the other movie move the first movie to the frame 2?

Do I need backend/server scripting for that?

Thanks all.

Shawn

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