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








Stop Action Doesn't Work, My Animation Keeps Looping


Help!
Can anyone identify why my movie is looping even though I placed stop(); code at the end of my main timeline frame?
I just want my main stage to play a movie for a few sec. then stop the movie.
And on button click to fade out (btn including 3 movies at the same time) and go to the second stage.
But my movies keep looping twice and it will play through stage 2 and stop at stage 3.
At the end of each movie clip, I placed stop(); and this plays fine by itself when I was eliminating the problem.

Here's my code:
Code:

import fl.transitions.Tween;
import fl.transitions.easing.*;
import fl.transitions.TweenEvent;
var btnTween:Tween = new Tween(btnEnter, "alpha", Strong.easeOut, 1, .0, 15, true);
var topTween:Tween = new Tween( bg_top, "alpha", Strong.easeOut, 1, .0, 15, true);
var mTween:Tween = new Tween( m, "alpha", Strong.easeOut, 1, .0, 15, true);
var introTween:Tween = new Tween( intro, "alpha", Strong.easeOut, 1, .0, 15, true);
btnTween.stop();
topTween.stop();
mTween.stop();
introTween.stop();

import flash.events.MouseEvent;
btnEnter.addEventListener(MouseEvent.CLICK, advance);
function advance(e:MouseEvent){
btnTween.start();
topTween.start();
mTween.start();
introTween.start();
btnTween.nextFrame();
}


Above action is on the 1st frame of the button when it's fading in from 0 (fading in animatn done on main timeline)
to activate the button function, that when clicked it will stop fading in and start fading out to 0 again and play next stage.

Thanks!




Actionscript 3.0
Posted on: Mon Nov 03, 2008 8:19 pm


View Complete Forum Thread with Replies

Sponsored Links:

Stop Action Doesn't Work
I have a simple website with five pages set up. There is no code other than the code on the first frame, plus a stop action on each section. The first thing in the code is the stop action, but it still keeps running through all the frames when I test it, and a movie clip set up in a similar way does the same thing. What could be causing this? I tried taking all the code out of frame 1 except the stop action but it didn't make any difference. I am starting to work with actionscript 3.

thanks







Attach Code

stop();

//LINKS FOR MAIN BUTTONS - ACTIONSCRIPT 3 CODE
//home button
//make new function called home which sends to home page
function goHome(e:Event)
{
gotoAndStop("HOME")
}
//make listener for home button,
//tells it to use goHome function on mouse click
btnHome.addEventListener(MouseEvent.CLICK, goHome);

//group button, name of button is btnGroup,
//name of page is "GROUP", name of function is goGroup
function goGroup(e:Event)
{
gotoAndStop("GROUP")
}
btnGroup.addEventListener(MouseEvent.CLICK, goGroup);

//reviews button
function goReviews(e:Event)
{
gotoAndStop("REVIEWS")
}
btnReviews.addEventListener(MouseEvent.CLICK, goReviews);

//clientlist button
function goClientlist(e:Event)
{
gotoAndStop("CLIENTLIST")
}
btnClientList.addEventListener(MouseEvent.CLICK, goClientlist);

//listen button
function goListen(e:Event)
{
gotoAndStop("LISTEN")
}
btnListen.addEventListener(MouseEvent.CLICK, goListen);

//END LINKS FOR MAIN BUTTONS

View Replies !    View Related
Animation + Action, Doesn't Work....:(
Hi, I have some animation going on in my movei like first 100 frames, and then I have 3 buttons at 101 frame, but when I give my btn at 100 frame a onRelease command, it doesn't work...why is that?

the movie is like this

frame1 - frame 100 is all animation, and then have a btn sit on frame 100, the code in frame 100 is


ActionScript Code:
stop();
btn.onRelease = function(){
    trace("why don't you work?"); //this line doesn't work...:(
}


does is because there's a stop(); on this frame?? or what...woo..please help..

View Replies !    View Related
Stop Action Doesn't Work Inmovie Clip In A Movie
I have a movie clip that has a stop action at the end of it. I imported it into the library of the movie I want to view it in. Yet when I play the host movie, the stop action in the imported movie clip does not work. It just loops. What's up with that?

T.

View Replies !    View Related
[F8] Help My Flash Page Doesn't Stop Looping.
http://www.abccreativegroup.com/optimized/main.html

This is a website I am working on right now, and for some reason, it keeps looping!

There is a main page, and each link loads a new .swf onto a blank movie clip. I have the stop(); action at the end, but after I click on a few links, it keeps looping for some odd reason.

I need help pronto, since our client needs to loop at this asap, and I don't want to send it to him like it is!!

-Manny

View Replies !    View Related
Why Is It Looping, Only Once, And I Have A Stop Action In It.
Helllooooooo it's been forever since I posted.

I am having one heck of a time here.

I have a main timeline with 25 frames, with a stop action on the last frame.

On this timeline I have a movie clip which is 15 frames long.
This movie clip contains a tween, and also contains a stop action in its last frame.

WHen I play my movie, the movie clip loops ONCE, then stops.
It is looping back to frame one of the movie clip (i did a test and found this out.)

Sooo i created a new flash movie and did the same thing, and that one is working fine.

What on earth can be going on here?? Thanks for any help!

Sam

View Replies !    View Related
Looping A MC Then Stop Action
My file size was tiny then I added an animation of a worm jumping from one end to the other over 50frames!!! - the worm was drawn in Flash

and the size went huge...is there anyway of looping a movieclip approx 20times and then applying a stop action to it after the loop?

if there is can anybody show me how its done as I'm sure that would help me out?

cheers

Dips

View Replies !    View Related
Animation Will Not Stop Looping
I have a animation that is about 50 frames with sound. I made it in photoshop put it into fireworks then i put it into flash because i didnt understand flash that well. problem is it was looping in fireworks so i took it off, imported it into flash (with no loop) and tested movie in flash. Everything was fine no looping. Once i upload to my site it was looping. What do i need to do in order to make it stop looping. In flash and fireworks it says no looping, but when i hit play it loops, even though it says no looping. Why is it looping? Thanks

View Replies !    View Related
Can´t Get This Animation To Stop Looping
Its Flash MX...
I didn´t create this animation, however, I have the file now...
It keeps looping after a 5 second delay or so...
I followed the help suggestions with action scripts... but nothing seems to work, it just keeps looping...

can you help?

View Replies !    View Related
Stop Animation Looping.
Hi all!
When i push a button, i want my animation to stop looping when it has played 1 time. Then skip to scene 2 (wich will contain the last image of that animation) then from there pressing a button to go back or play another animation. But that would be easy if my animation just stops looping. I think i have unchecked every loop option, This is what i have now and this is my code for scene 1:

Quote:





//stops the playhead at Frame 1
stop();

//this script takes the user to scene 2 (zoom in on closset) when zoominclosset_btn is released
zoom1btn.onRelease = function (){
gotoAndstop ("Scene 2", 1);
unloadMovie ("zoomclosset_in");
};

//function plays zoomclosset_in when zoom1btn instance is released.
zoom1btn.onRelease = function(){
_root.attachMovie("zoomclosset_in", "zoomclosset_in", 1);
};






Scene 2 is empty so the problem shouls lie here i think. So i just want to play that zoomclosset_in animation and after that go to a new scene when a button is pressed.

I hope someone can help me out. thnx!

View Replies !    View Related
How Do I Stop An Animation From Looping?
yes i am a noob at flash - but after having it under a week im doing ok!

how do i stop my letters animation from looping - i want it to play once - then stop and then i can link it to the next page of my site or make a button so you can enter

but i cant put stop(); in action script says that this selection cant have actions.

Please help!

Thanks in advance

Kris

View Replies !    View Related
Looping Doesn't Work Anymore
Hi please give me your thought's if possible i'm stuck at the moment.

I have made a scrollbar, "a year ago", which automaticly creates it'self (with duplicateMovie etc) after reading the number of thumbnail/buttons from a config.txt which i call with loadVarsText.

---eplaination---

In the root it reads in the number of thumbnail/buttons with a loadVarsText command.

Code:
loadVarsText = new loadVars();
loadVarsText.load("tekst/content.txt");
loadVarsText.onLoad = function (){
_root.aantal_showroom_keukens = this.aantal_showroom_keukens;
};
Then the scroller takes the number of thumbnail/buttons

Code:
this.scroll_thumbs.thumbs.buttons = [];
this.scroll_thumbs.thumbs.buttons.length=_root.aantal_showroom_keukens ;
After that the scroller generates the thumbnail/buttons
( I created 1 which call's it's button functions from the _root and it duplicates / the thing i'm stuck with is to let the button know which number he is, so he can load the good number of swf)

The script below is the script for creating/looping the thumbnails, but for somereason the last line gives: Left side of assignment operator must be variable or property.
Code:
thumb1_._visible = false;
for (i = 1; i <= buttons.length - 1; i++){
duplicateMovieClip("thumb1_", "thumb1_" + i, i);
eval("thumb1_" + i)._y = thumb1_._y + i * 40;
nummer = i;
loadMovie("small/small00" + nummer + ".jpg", "thumb1_" + i + ".holder_th");
eval("_root.thumbs.scroll_thumbs.thumb1_" + i + ".targ") = i;
}
This last line was working before, I think I mistakenly typed something which I oversee everytime.

I need the last line to parse the number "i" of the thumbnail button to the root.
So I can use that "i" number to load some swf when pushing the button.
At this moment I'm not getting any further...
I'm sure it's something stupid i'm doing :-)

Cheers if you someone help.

bassie

View Replies !    View Related
Forcing Animation To Stop Looping?
I recently put up a movie on newgrounds.com and it loops because you are unable to put in any HTML code. On my personal website it doesn't loop and theres a "Replay?" button at the end. How can I force it to loop within the SWF without having to rely on HTML?

View Replies !    View Related
Stop Looping And Add Replay Button To An Animation
Ok this is my first real flash project.

I'm required to create a banner advertising a computer company. It has to be 10 seconds long. I'm doing fine with most of the project, BUT...

What I really wanna do is have the animation stop on the final frame, instead of loop. This may be easy but I cannot work out how to do it.

The second thing I'd love to get sorted is to create some sorta button or graphic that when clicked on, would replay the animation. I could be more to the point and just ask about how to create a replay button.

Can anyone sort me out?

I should maybe have posted this in the newbies forum, sorry

View Replies !    View Related
Looping Animation, I Thought I Told It To Stop.
I have made an animated button.
I wanted the animation to start when the mouse is over another object. But the animation starts by itself when the Movie is loaded. How can I turn this of.. It just keeps on repeting itself.

MVH Lassjus

View Replies !    View Related
AS3 Stop(); Doesn't Work
Hey, I just got Flash CS3. I'm trying to get my main timeline to stop in the begining, on button press to play and at the end stop again. In AS2, you would just put stop(); on the first keyframe and stop(); on the last key frame and program your buttons accordingly. The stop(); does not work!!!! It's driving me crazy. What am I missing? I've gone through the tutorials in Flash and they don't work either. Help!

Also, if you have MovieClip that contains an animation and you don't want the movie clip to be on a continuous loop how do you stop it from playing. In AS2, I would put a stop(); on the last keyframe of the movieclip's animation. This also does not work in AS3. Any help would be great!

Thanks!

View Replies !    View Related
Help Stop() Doesn't Work
I have been working in flash for years and this has never happened to me before. I am creating a calendar with a labeled area for each calendar, plus a labeled area for each month to load an external intro movie for the month.

There are just basic stop actions in the labeled areas and I cannot figure out why it wouldn't be working. Is there some bug in Flash 8 that I haven't been able to discover?

View Replies !    View Related
Stop(); In First Frame Doesn't Work. Why?
Hi!

I sometimes run in to this weird problem where my stop(); frame doesn't actually stop. I have a movieclip named NestingMc which I bring to the stage via actionscript. Inside my NestingMc I have a movieclip ChildMc. ChildMc has a timeline on it's own and on the first keyframe of that timeline I have written a simple stop(); command. But my ChildMc doesn't actually stop in the first frame it just plays to the next keyframe that has a stop(); command.

Anyone?

View Replies !    View Related
Play/stop Doesn't Work Properly With MC
hi there
please go to www.pasha.be
you can choose some loops at the right bottom... a LED is also playing when the loop plays, but if you push a loop one time (while the LED is playing) is stops again.... :O(
can somebody help me?
greetz
melvin

View Replies !    View Related
Why E-mail Action Doesn’t Work In .Gif
I make a movie and has a action goto e-mail on press en works fine in flash, but if i save it in Gif diesn't work; and i see gif animation on the web with e-mail links.

View Replies !    View Related
Why Doesn't My Action Script Work?
[size=3]Thiundefineds animation should be when I drag the poop into the toilet, the toilet should splash...


This is what the object that moves say when I double click the poop:

ActionScript Code:
on (press) {
    startDrag(this);
}
on (release) {
    stopDrag();
    if (this._droptarget == "/toilet") {
        _root.toilet.gotoAndStop(2);

    }
}

NOTE: the toilet is my object..
I put a keyframe onto each of my button sections in the poop


This is what the toilet says:


on the first frame when I double click it, it says
stop()



PLEASE reply and answer my question!!!!!!!
Very appricieated if helped...


Smat

View Replies !    View Related
Action On Button Doesn't Work HELP
Hi Guys,

For school we have to make a assignment in flash.. in this assignment i've made a button, thats not such a problem but the button must grows when i hit or release the button.

Now i've made the button and on go to the button timeline en on hit keyframe i made a Moviclip calls mc_btnhit there the button must grows up. Oke thats done but when i'm going to the main time line and add the following action on the button.


Code:
on(release) {
gotoAndPlay("mc_btnhit",1);
}
the flash doesn't give a error the code is actually right but when i'm testing the movie and i press on the button it won't respont and doesn't get bigger.. so my question is what i'm doing wrong?

i hope sombody can help me..

View Replies !    View Related
Button Animation Doesn't Work ?
Hello.
I made a button object with sound and animation on the over state. I then place that generic button in seperate movie clips, each with their own text, such as news, contact, etc.
For some reason when I place an instance of say the news button movie clip, attach an on release event like load movie, the animation and sound do not work. Any ideas. Remember, it is not a button, but a movie clip. I tried changing it to track as a button in the properties panel and the sound and animation works, but the actionscript does not work. Help please

View Replies !    View Related
Buttonsound Doesn't Work After Animation
Hello, I have a flashmovie, in which a button moves around.
The button plays a sound on hit, but if I use the stop-command to stop the movie, and then hit the button, the sound doesn't play anymore.
What Im I doing wrong?should I use another way to stop my movie? should add the sound in another way? (perhaps I could use an on(press){} action)

View Replies !    View Related
Animation Doesn't Work On Windows?
hi, i have a flash site with a preloader and intro at www.evolution-asia.com. i'm on osx panther and flash mx prof. 2004 with the 7.2 update. the intro of this site works fine on my computer, but for some reason on windows computers it apparently stops halfway. is it a operating system compatibility problem, or is it a browser thing? what can i do to solve this problem? hope someone can help, thanks

View Replies !    View Related
Is It Necessary To Put Stop() Action For A One Frame Animation?
Hi,

Is it necessary to put stop() action for a one frame animation? If I play the movie non-looping, won't it just stop at that first and only frame?

- boon

View Replies !    View Related
Claymation & Stop Action Animation
Hi-
Im new to the CS3 Master Collection and am interested in using the various programs to create Claymation and Stop Action Animation. Can anyone tell me where I might find information on these topics specifically in connection with Flash and Primiere?
Thanks!!!

View Replies !    View Related
Three Rows Of Text -- Last Action Doesn't Work
I have just three rows of text:
Welcome to:
Kinann & Associates
Engineering and Contracting, Inc.

I was able to add an effect to the first row of text, and the second row of text. But when I try adding an effect to the third row, nothing works.

I've tried ALL the effects, just for effect , but they still do not work when I play the entire scene.

Any suggestions?
PJ

View Replies !    View Related
Action On A Moving Button Doesn't Work?
Hello!

My On(release)-problem seems to lead my to another problem: I have a button, which is inside a movie-clip which is putted on the stage by an action-script. I tried several On-Events (release, press, rollOver) and it's always the same effect:

- When the movie (in which the button is) doesn't move the button, everything works fine. Every event is triggered like it should be.

- When the movies moves the button, the event is only triggered in (about) one of 10 or 20 times. The buttones changes the color like it should, but the rollover-event for example is not triggered. Why?

Is the .fla-File would help I could send it to you.

Martin

View Replies !    View Related
Animation Doesn't Work In Slide Presentation
I've created a flash slide presentation with animation on most of the slides but the problem is when I play the presentation it only runs the animation once. If I move to the next slide & go back it just takes me to the final frame in the animation without playing it.

Any ideas how I can get round this?
I want to set it up so that a slide's animation plays every time you view the slide, regardless if you've viewed it before.

Any suggestions most welcome.

Cheers.

View Replies !    View Related
Animation Doesn't Work In Slide Presentation
I've created a flash slide presentation with animation on most of the slides but the problem is when I play the presentation it only runs the animation once. If I move to the next slide & go back it just takes me to the final frame in the animation without playing it.

Any ideas how I can get round this?
I want to set it up so that a slide's animation plays every time you view the slide, regardless if you've viewed it before.

Any suggestions most welcome.

Cheers.

View Replies !    View Related
After Scripted Animation, Load Swf, Doesn't Work
Hi!
I have a movieclip (a white square) covering the stage. Once the stage is covered, I want to load a new swf. Somehow I cannot make this work. Please take a look at the script I am using:

PHP Code:



// Cover the stage from to to bottom.
vlak.onEnterFrame = function() {
    if (this._height<550) {
        this._height += this._height/snelheid;
    }
    // When covered, load swf
    if (vlak._height>549) {
        loadMovieNum("intro.swf", 1);
    }
}; 




Can anyone tell me what I am doing wrong?

Thanks!

View Replies !    View Related
Animation Doesn't Work In Slide Presentation
I've created a flash slide presentation with animation on most of the slides but the problem is when I play the presentation it only runs the animation once. If I move to the next slide & go back it just takes me to the final frame in the animation without playing it.

Any ideas how I can get round this?
I want to set it up so that a slide's animation plays every time you view the slide, regardless if you've viewed it before.

Any suggestions most welcome.

Cheers.

View Replies !    View Related
Action Script Doesn’t Work In Flash Player 7,
Hi,

I have the following code:


Code:
function loadPosts() {
xpos = 299;
ypos = -163;
ClearTopics();
for (i=Number(numLDup); i<=Number(numDup); i++) {
duplicateMovieClip(dummy, mc+i, i+10);
var topicName = "Topic"+i;
topicName = eval(topicName);
var topicReplys = "numReplys"+i;
topicReplys = eval(topicReplys);
var fileNameTemp = "File"+i;
fileNameTemp = eval(fileNameTemp);
var startedTemp = "topicCreated"+i;
startedTemp = eval(startedTemp);
var lastTemp = "lastModified"+i;
lastTemp = eval(lastTemp);
var startedByTemp = "topicStartedBy"+i;
startedByTemp = eval(startedByTemp);
setProperty(mc+i, _x, xpos);
setProperty(mc+i, _y, ypos);
setProperty(mc+i, _alpha, 100);
set(mc+i+".Topic", topicName);
set(mc+i+".numReplys", topicReplys);
set(mc+i+".File", fileNameTemp);
set(mc+i+".Created", startedTemp);
set(mc+i+".Last", lastTemp);
set(mc+i+".startedBy", startedByTemp);
ypos = ypos+18;
}
}
function ClearTopics() {
amount = 100;
k = 0;
while (amount>0) {
removeMovieClip(mc+k);
k = k+1;
amount = amount-1;
}
}
but is doesn’t work in flash player 7, can any one tell me why? and please help me to fix it?

cheers

View Replies !    View Related
GoToAndPlay Action Doesn't Work From Inside A Movieclip?
I have a button that is 2 levels under the main timeline inside of a movieclip and it will not accept a simple "onrelease gotoandplay" action. do i need to add something in the code to tell it to play on the root timeline?

Right now it just says:

on (release) {
gotoAndPlay("testimonials", 11);
}


and it's two levels under the root timeline.

View Replies !    View Related
Scroll Bar Doesn't Work Well With Button With Action Script
I tried to attach a scroll bar to the dynamic text field. If I just assign a number for a loop to print strings to the dynamic text filed directly, the scroll bar can be seen. However, if I add a button for text inputs then create a loop to print strings in the dynamic text field, the scroll bar is not visible and can't be scrolled. The dynamic text field is assigned with an instance name from the beginning. Can somebody help, please? Thank you so so much. The codes with the button function is below:

sum=0;
display="";


//button action
enterButton.onRelease= function()
{
display="";
for(i=0;i<input;i++)
{
sum=sum+i;
display= display +i +", ";
}

//Add the sum to the display
display= display +"
"+ "The sum of the above numbers is:"+sum;
}

View Replies !    View Related
[F8] Stop Animation, But Still Have Buttons Work?
I need to know how to stop the animation on my web page from looping, but not have the stop command affect the ability to use the buttons.

The web page:
http://www.dreamsthunder.com/hotlink/index.htm

The stop command hits after the flower-links finish blooming, but the same stop command also nullifies the ability to click on the flowers. While some of the stuff is running from movie clips, the animation on the flowers and title are in the main movie, and it would be too complicated and out of the question to make them all into movie clips... I'm hoping (and kind of assuming) there's an easier way to go about this?

Thanks much for any help~

View Replies !    View Related
Stop Animation, But Still Have Buttons Work?
Hello all~

I'm making a main page for my website in Flash 8, and I need to know how to stop the animation on my web page from looping, but not have the stop command affect the ability to use the buttons.

The web page:
http://www.dreamsthunder.com/hotlink/index.htm

The stop command hits after the flower-links finish blooming, but the same stop command also nullifies the ability to click on the flowers. While some of the stuff is running from movie clips, the animation on the flowers and title are in the main movie, and it would be too complicated and out of the question to make them all into movie clips... I'm hoping (and kind of assuming) there's an easier way to go about this?

Thanks much for any help~

View Replies !    View Related
Still Not Solved: Action On A Moving Button/text Doesn't Work?
Hello!
I have a button, which is inside a movie-clip which is putted on the stage by an action-script. I tried several On-Events (release, press, rollOver) and it's always the same effect:

- When the movie (in which the button is) doesn't move the button, everything works fine. Every event is triggered like it should be.

- When the movies moves the button, the event is only triggered in (about) one of 10 or 20 times. The buttones changes the color like it should, but the rollover-event for example is not triggered. Why?

Someone told me to change the button to a movie-clip, which results in the same effect: On(release) or On(rollover) is only trigged sometimes.

I saved the fla-file to http://www.thomatechik.de/button_test.fla. Any help is welcome!

Martho

View Replies !    View Related
When I Publish, The .swf Plays As A Movie, Action Scripting Doesn't Work
Using Flash MX, editing as existing .fla file that includes links/buttons created with action scripting.....

I can open and edit the .fla file with no problems.

But when I come to publish, the resulting .swf file only plays as a movie of my website, ie the buttons don't work thus you can't navigate the website properly.

What am I not doing?
How should I be saving / exporting / publishing so that the action scripting works?

View Replies !    View Related
When I Publish, The Files Appears As A Movie, Action Scripting Doesn't Work
(I'm sure it's a simple thing I'm not doing but...)

Using Flash MX, updating an existing .fla file that uses actionscripting...

I can open the .fla file fine, edit it fine, but when I come to publish it, the resulting .swf file plays as a movie, rather than clickable links.

What have I forgotten to do?
Or how should I be saving / exporting / out putting / publishing the .fla file?

View Replies !    View Related
How Do You Stop Flash Animation & Allow Menu Buttons To Work
A site I'm designing in Flash 8 opens with a Flash animation which is followed by a three-button menu. I tried actionscripting "stop ();" on the last frame of the animation and put an instance of a button on the same frame (different layer) with this code:

on (release) {
gotoAndPlay(280);
}

as I want the button to trigger a small animation of its own beginning in the next frame. However, I get this error message:

**Error** Scene=Scene 1, layer=Work button, frame=279:Line 1: Mouse events are permitted only for button instances
on (release) {

Total ActionScript Errors: 1 Reported Errors: 1

I don't understand this because the button is an instance I pulled in from the library which I want triggered by a click of the mouse.

Please tell me what I am doing wrong.

Thanks!

View Replies !    View Related
Multiple Movie Clips Keep Looping On Main Stage When I Have A "Stop" Action In MC?
I've created a movie clip that has eight frames with a "stop" via actionscript in the last frame. In my main movie I have placed 11 instances to come in one "after" the other by varying each instance to it's own layer (11 layers) and placing each instance in the appropriate frame.
Example: instance one in frame one - layer one, instance two on layer two - frame two, instance three on layer three - frame three.

Problem: When I publish the file and open up the .swf the first instance comes in and stops. All the other instances come in but they all keep looping except the first instance in layer one frame one. When I move all the instances into frame one at the beginning of their layers the published swf file plays all instances at once and then stops just like I want.

Question: Why is it that the instances keep looping in different frames and not when they are in the first frame of their prospective layers? I want the instances to start one after the other and not all at once and then I want them to stop. I placed a "stop" action at the end of the MC?

All instances have not had any of their properties altered and are movie clips on the main scene. There is no added actionscripts anywhere else. I have attached the fla file which is really small of what I am trying to accomplish. Thanks in advance for all your help.

View Replies !    View Related
Multiple Movie Clips Keep Looping On Main Stage When I Have A "Stop" Action In MC?
I've created a movie clip that has eight frames with a "stop" via actionscript in the last frame. In my main movie I have placed 11 instances to come in one "after" the other by varying each instance to it's own layer (11 layers) and placing each instance in the appropriate frame.
Example: instance one in frame one - layer one, instance two on layer two - frame two, instance three on layer three - frame three.

Problem: When I publish the file and open up the .swf the first instance comes in and stops. All the other instances come in but they all keep looping except the first instance in layer one frame one. When I move all the instances into frame one at the beginning of their layers the published swf file plays all instances at once and then stops just like I want.

Question: Why is it that the instances keep looping in different frames and not when they are in the first frame of their prospective layers? I want the instances to start one after the other and not all at once and then I want them to stop. I placed a "stop" action at the end of the MC?

All instances have not had any of their properties altered and are movie clips on the main scene. There is no added actionscripts anywhere else. I have attached the fla file which is really small of what I am trying to accomplish. Thanks in advance for all your help.

View Replies !    View Related
After LoadMovie ("image.jpg", Instance); Action OnRelease Doesn't Work
After I loaded a .jpg with loadMovie I want to attach a onRelease action on that movieclip but I can't make it work. If I make the loadMovie action inactive the onRelease action is working fine but the image will not load in the mc and vice versa.

Code:

Code:
// load the .jpg
loadMovie ("image.jpg", button_mc);

// add onRelease action on mc
button_mc.onRelease = function () {
trace ("test");
}
Thanx in advance for any help
Undersound

View Replies !    View Related
Simple "nextFrame" Action Doesn't Work HELP
I have a very disturbing problem:

I have a button in one layer.
I have a MC instance in another layer named "Start1".
The button have a simple action:
---------------------------------
on (release) {
_root.start1.nextFrame();
}
---------------------------------
From some reason - this action doesn't work.
* The MC have more then one instance on the stage, each on different layer, and each with different name.

I tried activating the same action from the button, on a new MC I have made that looks the same - it works. What can be the problem with this simple MC (4 frames, stop on each frame, the action should make it go to nextFrame on each release of the button) ??!

View Replies !    View Related
"Flash 8 Filter Animation" But In Cs3? Doesn't Work.....
K, so i'm getting into the whole action script thing, and i'm hooked. I know a bit about programming, not a complete idiot, but alot of the terms I don't really know (WTF is a handler????)

anyway, I really like the 'orb' effect in this tutorial, but i'd like to keep with the jones' and stick with cs3.

Typing out the code directly into an as3 flash movie doesn't seem to work, it keeps saying 'AS3 needs an addEventListener'

Now i've been all over the net for the past hour trying to figure out how to re-write this code, but the only thing I can figure out is that I would have to re-write the functions somehow.

A lil help?

Thanx!

Oh yea, 'FIRST POST!!"

View Replies !    View Related
Stop Actionscript Function At A Specific Frame (stop Looping)
I want to stop an effect at a specific frame but I dunno how.
Do I have to put something in the code?
I'm confused.
Or just tell me how to stop it from looping.
Edit:
Is it possible to attach this to a movie clip? Then i can stop it or use onEnterFrame and then escape();
I actually have no idea what I am talking about. /Edit

Here is one of the code I borrowed:

MovieClip.prototype.placeInSpace = function(id) {
var ratio = this.focaldistance / Math.sqrt(this[id].z * this[id].z);
this[id]._x = this[id].x * ratio;
this[id]._y = this[id].y * ratio;
this[id]._xscale = this[id]._yscale = 1000 / this[id].z;
}
MovieClip.prototype.randomPlace = function(id) {
var radius = this.rmin + (this.rmax - this.rmin) * Math.random();
var polar = 2 * Math.PI * Math.random();
this[id].x = radius * Math.cos(polar);
this[id].y = radius * Math.sin(polar);
this[id].z = this.zmin + (this.zmax - this.zmin) * Math.random();
}

Here's the other code cause I can use two in my movie:
function mover() {
// Move the particle over time
this._y += this.speed;
this._yscale += 10;
this.speed++;
if (this._y>500) {
this._y = 0;
this.speed = Math.random()*10;
this._yscale = 100;
}
}
function starField(x, y, n) {
// Generate a starfield of specified dimensions with n stars
for (var i = 0; i<n; i++) {
var star = this.createEmptyMovieClip("star"+i, i);
var dot = star.createEmptyMovieClip("dot", 0);
star._rotation = Math.random()*360;
star._x = x;
star._y = y;
dot.lineStyle(0, 0xFFFFFF, 100);
dot.moveTo(0, 10);
dot.lineTo(0, 15);
dot.onEnterFrame = mover;
dot.speed = Math.random()*10;
}
}
starField(275, 200, 100);

View Replies !    View Related
Looping Sound And Looping Animation Sync
I'm working on a navagation interface for a new site, and I'm running into a few issues.

1) when you click on a button, it activiates an MC. within that MC, the first frame is the initial "off" state, and clicking on a button triggers the rest of the clip to play, from frame 2. I have a sound that starts in frame 2, and I set up an animation of a VU meter that is supposed to be synced very closely to the music. In the last frame of the MC is an action, gotoandplay, that sends it back to frame 2. The idea here is that once the button is pressed, the music loops and the animation loops with it.

When I test the movie, do a publish preview, or view the swf file in the flash player, the animation seems to be synced to the music for the first few times it loops, but then the animation drifts ahead of the music, getting progressively further out of sync with each loop. The other real problem here, is that when viewing the swf in any web browser, the animation is immediately behind the music, and seems to be running much slower than it should.

you can see the swf here:

http://www.lsrdigital.com/flash/index.html

Does anyone have any ideas about how to get this to work the way I am trying to get it to?

the .fla file is here if you want to look at it as well:

http://www.lsrdigital.com/flash/LSR.fla

2) The other problem I'm having is that the stage is set to be 680 pixels wide, and the graphic that fills the background is 680 pixels wide, BUT Flash MX publishes the movie at only 679 pixels wide! You can see the line of white pixels on the right side of the movie here:

http://www.lsrdigital.com/flash/index.html

I've double checked the html file and the table cell holding the movie element is 680 pixels wide. You can also tell that Flash is cutting off the last column of pixels because the background image is visibly just missing the edge to the right of the screws.

Any ideas on that one?

View Replies !    View Related
How Can I Stop Flash From Looping And Stop On The Last Frame
I am having a problem with looping. I created a flash file and published it. I only want it to play through once and stop on the last frame. I can't get it to stop, it keeps looping through and playing the movie.

I have tried to add a layer that has some script in it with a start and a last tag on frame 1 and frame 310 there is 315 frames total.

the action script was
<code>
// this was in the first frame
ifFrameLoaded ("last") {
gotoAndPlay("start");
}

//this was in the second frame
gotoAndPlay(1);

//this was in the last frame 315
stop ();
</code>

your help is greatly appreciated.

skj

View Replies !    View Related
Drop Menu : Rollovers/GetURL In A Movie Don't Work...and The SWF Doesn't Work In FF
My links/rollovers don't work in Mozilla and the dropdown menu part don't work (the rollovers and the getURLs) in any browser.

What's wrong with this??? I think it's something simple.
I've already tried:

Code:
this._lockroot = true;
I also tried writing the AS as:

Code:
one.title.text = "The Text";
one.onRollOver = over;
one.onRollOut = out;
function over () {
this.gotoAndPlay(2);
}
function out () {
this.gotoAndPlay(11);
}
one.onRelease = function(){
getURL("http://www.thelink.com");
}
...didn't work...

I hope someone can help!

Download the: Source File


(Lately I've gotten no help off this site and it's been very depressing because this site people used to be very helpful...I hope someone can change my mind)

View Replies !    View Related
This._lockroot Doesn't Work (combobox Components Won't Work)
I have a preloader (preloader.swf) which loads a form (offerte.swf).

I've put the this._lockroot on the "application" timeline on the first frame of the "Flash form application" (offerte.swf).
But the combobox components still won't work.

I had it working before, but suddenly it seemed to stop! Now I can't get it get to work again.

Preview: www.blaak.nl/flash/

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