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




Slideshow Stop



Hello ..I am unexperienced in Flash so please bear with meI followed Kirupa's tutorial http://www.kirupa.com/developer/mx20...slideshow3.htm on how to create a slideshow XML .I am trying to inseert a button into the movie so that on pressing that button the slideshow stops.I tried to do this by adding:slide_show.onRelease = function() { slideshow().stop; }does that even make sense? How can one stop a function from executing itself?



KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 04-16-2006, 10:08 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

How Do I Get This Slideshow To Stop?
wondering if anyone knows how I can get the this slideshow to stop moving when you mouseout of the movie back onto the page. As it works now, it starts moving when you mouseover.

You can view thw swf file at http://www.woodrowphotography.com/beta_nav/

i've attached the flash file

thanks!

Stop Button For Xml Slideshow
Hi,

I recently added this xml flash slideshow to my site "http://www.kirupa.com/developer/mx2004/xml_slideshow.htm".

I was wondering if anyone knows how to add a "stop/play" button to this?

Thanks,

N4th4N

Slideshow Stop When MouseOut
Hi
I have a problem with my slideshow that you can see at this page:
http://www.x-itin.dk/firstversion/Slideshow.swf
When you move your mouse over the slideshow and remove the mouse from the slideshow it just keep running and doesn't stop when "mouseOut".
My code for the movement is this:

ActionScript Code:
//Fade from side to side
var obj1 = new Object();
AsBroadcaster.initialize(obj1);
panel.onRollOver = panelOver;
 
function panelOver() {
    this.onEnterFrame = scrollPanel;
    delete this.onRollOver;
}
 
var b = stroke.getBounds(_root);
 
function scrollPanel() {
    if(_xmouse<b.xMin || _xmouse>b.xMax || _ymouse<b.yMin || _ymouse>b.yMax) {
        this.onRollOver = panelOver;
        delete this.onEnterFrame;
    }
   
    if(panel._x >= 1.4) {
        panel._x = 1.4;
    }
   
    if(panel._x <= -410.5) {
        panel._x = -410.5;
    }
 
    var xdist = _xmouse - 168;
   
    panel._x += -xdist / 10;
}

Do I have to use a releaseOutside function or something like that?

Stop/play Button In Slideshow With Xml?
hi, is there a way to have a stop/pause and play button in a Flash slideshow using xml. Since there is only one frame in the .fla file, and all the content are loading externally from the xml, how could I pause/stop the slideshow? thanks.

Slideshow Using XML To Stop Looping And Fade Out At The End
Hi all,

I know a lot of XML slideshow questions and adaptations have been posted and I've searched but I can't seem to find the answer to my problem. I used the tutorial "Photo Slideshow Using XML and Flash and I've successfully implemented the slideshow to fade in and out, but I don't want the slideshow to loop - ie. to stop looping then stop at the last image and fade out to about 50% and then some text with a clippable link to pop up.

I've used the code from the above mentioned tutorial (http://www.kirupa.com/developer/mx20..._slideshow.htm) and deleted the preloader, next, and previous button AS. And I've modified the slideshow function to make the slideshow not loop by commenting out firstImage (as shown below) but I can't make it fade out. And I've implemented another function called fadeout but it fades out my entire stage. I would only like to fade out the last image and have some text pop up. Here's the AS:

function slideshow() {
myInterval = setInterval(pause_slideshow, delay);
function pause_slideshow() {
clearInterval(myInterval);
if (p == (total-1)) {
p = 0; //reset the counter p to 0
//firstImage();
fadeout();
} else {
nextImage();
}
}
}

function fadeout() {
this._alpha -= 50;
if (this._alpha<=0) {
this._alpha = 100;
}
}

Any help, direction is greatly appreciated! Thanks again!

Stop/Play Button For Xml Slideshow
Hi,

I recently added this xml flash slideshow to my site "http://www.kirupa.com/developer/mx2004/xml_slideshow.htm".

I was wondering if anyone knows how to add a "stop/play" button to this?

Thanks,

N4th4N

Stop/Play Button For Xml Slideshow
Hi,

I recently added this xml flash slideshow to my site "http://www.kirupa.com/developer/mx2004/xml_slideshow.htm".

I was wondering if anyone knows how to add a "stop/play" button to this?

Thanks,

N4th4N

How To Make Xml Flash Slideshow To Stop From Looping
How do you make the flash slideshow to stop from looping?

Jake

I Need Some Expert Help To Stop The Attached Slideshow On Certain Mouse Position
Hi,

I have attached an example of a slideshow that I'm using to import in .swf's and I would like some help adapting it.

Firstly I would like to know how to stop the slideshow when the mouse enters certain co-ordinates, (x between 0 + 700 & y between 0 + 480). I want the current image to remain static and to display some information.
To stop the movie I'd prefer not to use a button but in someway to have it related to the mouse co-ordinates, as the information will be displayed by a button rollover inside the .swf's.

Secondly, do any of you know how I could randomise the importation of the .swf's.

Finally, instead of imbedding the information inside the .swf's, would it be possible to import text from an XML file into the slideshow movie so that if you stopped on image048.swf it would know to display the text, 'this image was used in, etc...'.

I would be very grateful if anyone could help me on these as I've spent lots of days trying to figure it out by myself with no success.

Thankyou,

Lenny.

// I got the original slideshow script from here //
http://www.actionscript-toolbox.com/..._slideshow.php

How To Stop Current Sound When Going From One Slide To Another In Flash Slideshow
Hi,

I am trying to find a solution to a problem with sound in flash slideshow I'm making.

It will have 31 slides, and almost all slides will have one or more sounds (narrations) in it...

When I play the slideshow and let it go all is good, but when I want to go to next slide before the current slide sound finishes, that sounds keeps on playing and the sound from the next slide also starts so they overlap, when I press space again and go to third slide it's sound starts as well and now three sounds overlap...

Please help me with this one, I need a quick solution. So I need all the sounds in the current slide to stop when moving on to the next slide.


Thank you very much.

Slideshow Controller: Stop And Play Button On A Keyframe.
Hi guys,
I've created a slideshow with motion tween between the images. I want to create a button (with the a.s) to stop the movie in the next keyframe, not in the middle of the motion tween.


I hope somebody can help me...!
thank you !!

How To Stop Current Sound When Going From One Slide To Another In Flash Slideshow
Hi,

I am trying to find a solution to a problem with sound in flash slideshow I'm making.
I am attaching what I have so far...


It will have 31 slides, and almost all slides will have one or more sounds (narrations) in it...

When I play the slideshow and let it go all is good, but when I want to go to next slide before the current slide sound finishes, that sounds keeps on playing and the sound from the next slide also starts so they overlap, when I press space again and go to third slide it's sound starts as well and now three sounds overlap...

Please help me with this one, I need a quick solution. So I need all the sounds in the current slide to stop when moving on to the next slide.


Thank you very much.

Photo Slideshow With XML - Image Gap On First Cylce Through Slideshow
Hello,

I am new to this site, and I went through the tutorial on this site, "Photo slideshow using XMl and Flash, " http://www.kirupa.com/developer/mx20..._slideshow.htm
but I encountered a problem where my images lag the first time they cycle through all the images in the XML file.

The first time the flash page loads and starts the slideshow, I don't want the gap between the transitioning of the images where the movie backgound shows. I think it has something to do with the images loading for the first time, so I tried to load each picture in a different movieclip with an alpha of 0 before the slideshows starts, but it didn't work and there is still the gap between the images the first time the pictures cycle through the slide show.

Please offer any advice on how to stop the image lag the first time the slideshow cycle through all the images in the XML file.

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);

[F8] Movie Plays > Stop > Reverse > Stop > Play
I am fairly new to involved action scripting. I have successfully scoured flashkit threads for years to get my answers but this one has been driving me crazy for the past couple days. I have tried numerous solutions but none of them do exactly what I am trying to do.

I am creating an online portfolio that I want to control with two buttons that will play forward on release and stop at every piece unless the user is pressing and holding down - I also would like the scrolling animation to play in reverse on press and stop at every piece unless press and hold which happens to be skateboards in this section. I am posting the .fla for this section. This is what I have been able to accomplish so far. I moved everything into the main timeline from a movie clip because I could not get that to work at all. Should I move it back to movie clip? I also want it to stop at the first board.

here is the code I was able to peice together that just plays continously without stops.

Empty movie clip on second frame.

PHP Code:




onClipEvent (enterFrame)
{
    if (_root.goBack)
    {
        _root.prevFrame();
    }
    else
    {
        _root.nextFrame();
    }
    _root.frameNo = "Frame : " + _root._currentFrame;
}







Forward button.

PHP Code:




on (press)
{
    _root.goBack = false;
}







Reverse Button.

PHP Code:




on (press)
{
    _root.goBack = true;
}







I have only done basic stops; goToAndPLay, getURL and such I am a little out of my league here but I started the ball rolling and would like to make this work as I intended. Any help making this do anything close to what I am describing would be much appreciated

How To Make The Wings Of A Fly Stop When The Flash Movie Stop?
Hello,

I made a simple "Fly Flying" flash animation. The wings of the fly are moving up and down while the fly is flying from one location to the other. My problem is:

The wings of the fly are still moving up and down when the fly is landed on the ground. I tried to add a stop(); action script at the last frame. However the wings are still moving even the movie is stopped.

How can I make the wings stop moving when the flash movie is stop? Please download and take a look at my flash file (fly_flying.fla):

http://space.uwants.com/batch.download.php?aid=313219

Thanks and best regards

Alex

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

Cannot Stop Movie Clip - This.stop() Confusion
Hello,

In my pong game when someone scores a goal I want the ball to pause in the middle of the screen, wait xx seconds and then randomly move.


Code:
// Return to kick off position
this.stop();
this._y = 325;
this._x = 275;
a = 0;
var myInterval = setInterval(this, "wait", 30*1000);
This calls function wait that simply uses this.play(); to allow the ball to move again.(See below)


Code:
onClipEvent (load) {
this.wait = function() {
this.play();
clearInterval(myInterval);
};
}
However I cant EVER get the ball symbol to stop no matter what I do.

Ive included all the code attached to the clipevent for the ball below.
Im thinking it must be due to the nested loops or somethings, very very confused


Code:
onClipEvent (load) {
this.wait = function() {
this.play();
clearInterval(myInterval);
};
}
onClipEvent (enterFrame) {
//Kick Off, play whistle and select random direction from 4 diagonals
if (a == 0) {
_root.kickoffwhistle.start();
//Use variable to ensure random numbers are generated only once per game
var randNumber1:Number = Math.pow(-1, Math.floor(Math.random()*2));
//-1 ^1 or ^2 = 1 or -1
var randNumber2:Number = Math.pow(-1, Math.floor(Math.random()*2));
//move it on the y axis at -1 or 1 & //move it on the x axis at -1 or 1
this._y += this.randNumber1;
this._x += this.randNumber2;
++a;
//set a trigger to increment so only actioned once.
}
if (randNumber1>0) {
this._y += this.yspeed;
//move it on the y axis at the set speed
} else {
this._y -= this.yspeed;
//move it on the y axis at the set speed
}
if (randNumber2>0) {
this._x += this.xspeed;
//move it on the x axis at the set speed
} else {
this._x -= this.xspeed;
//move it on the x axis at the set speed
}
// Ball(this) collides with PL1 and ball travelling upwards then deflect off randomly {
if (this.hitTest(_root.P1footballman) && this.yspeed<0) {
// Define boundaries for collision detection
var pl1bounds:Object = _root.P1footballman.getpl1bounds(_root);
this._x = Math.round(Math.random()*(pl1bounds.xMax-pl1bounds.xMin))+pl1bounds.xMin;
//Revert direction of ball by using formula below
this.yspeed = this.yspeed*-1;
//Randomly play miss sound effect if ball in goal area
if (this._x>133 && this._x<450) {
var result = Math.round(Math.random()*2);
if (result == 0) {
_root.MissedGoal.start();
}
}
//play football kick & header sound
_root.footballkickorheader.start();
}
if (this.hitTest(_root.cpu) && this.yspeed>0) {
var cpubounds:Object = _root.P1footballman.getcpubounds(_root);
this._x = Math.round(Math.random()*(cpubounds.xMax-pl1bounds.xMin))+cpubounds.xMin;
this.yspeed = this.yspeed*-1;
if (this._x>133 && this._x<450) {
var result = Math.round(Math.random()*2);
if (result == 0) {
_root.MissedGoal.start();
}
}
//play football kick & header sound
_root.footballkickorheader.start();
}
//Roatation properties of the ball
i = getProperty(this, _rotation);
setProperty(this, _rotation, i+5);
//Rotate ball i degees per frame
_this.rotation = i;
//Player Scores routine
//If ball object is beyond defined CPU goal area
if (this._y<75 && this._x>133 && this._x<450) {
_root.goalcry.start();
_root.P1footballman.score++;
//add1 to the cpu score
_root.playertxt = 'PLY: '+_root.P1footballman.score;
//Play start whistle for KICKOFF
_root.kickoffwhistle.start();
//Return to kick off position
this._y = 315;
this._x = 275;
a = 0;
//Stop ball in correct position
this.stop();
//5 seconds then calls function "wait" to use this.play() to move ball
var myInterval = setInterval(this, "wait", 5*1000);
}
//CPU Scores routine
//If ball object is beyond defined Player goal area
if (this._y>470 && this._x>133 && this._x<450) {
_root.goalcry.start();
_root.cpu.score++;
//add1 to the cpu score
_root.cputxt = 'CPU: '+_root.cpu.score;
//Play start whistle for KICKOFF
_root.kickoffwhistle.start();
// Return to kick off position
this.stop();
this._y = 325;
this._x = 275;
a = 0;
var myInterval = setInterval(this, "wait", 30*1000);
}
if (this._x>620 || this._x<5) {
this.xspeed = this.xspeed*-1;
//if it hits an edge inverse the xspeed
_root.bounce.start();
//Play bounce side effect
}
if (this._y>470 || this._y<75) {
this.yspeed = this.yspeed*-1;
//if it hits the top or bottom of pitch inverse the yspeed
_root.bounce.start();
//Play bounce side effect
}
}

How To Stop MC At Same Time As Sound Stop?
Hi and thanx for u trieing to help me.
I have used this code to play a sound from the library.

with (song_link) {
sound1 = new Sound(song_link);
sound1.attachSound("inga");
sound1.setVolume(100);
sound1.start(0, 0);
}

and when the sound stops i would like to stop a MC that loops.

if there is any way to have an if command in the MC that waits for a variable to be sended and then stops.

or to set some kind of countdown when u start to play the sound that tells the MC to stop.

i would be very glad if u could help me!

Stop Movie - Don't Stop Sound
Hello,
I'm making a intro for somebody's site. The intro plays a loop. At the last frame I made a stop script. But I want to the muis (a loop) to play on and on. So the music won't stop when the movie stops.
Can somebody help me?
Tnx & greetz, Big_Boss_Man

Stop Sounds When Stop Film
Hi. When I open my flash movie in the Flash Player (I have MX) and play it, it works fine. But if I make a breake (stop the playback), the film stops, but the sound still goes on. I have seen animations where sounds and the movie stop if I stop the film. How can I do it. Thx, leu

If I Stop The Sound I Want To Play It From Where Is Stop :)
hi all

i want a button if i cilck on it the sound will stop and another button if i click on it the sound will continue from where it is stoped is it possible in flash or not

and the sound where is the best place i place it ( movie clip - main frame - action ????


thanks

if any one can give me an open file to be clear or the code

How Can I Stop THIS Movie? This.stop() Does No Work?
I try to stop a small movieclip writing

onclipEvent(Enterframe){

if(_root.myvar==1){
this.stop();
//this._visible=false
}

}


It becomes invisible if I use the second line. But it does not stop if I use the first line.

What's the problem??

Thanks

Strange Bug....won't Stop At Stop Action
My movie isn't stopping when there is a stop action. I don't know if its a bug in my site or if its a bug with flash MX. Here is the file home.fla. The error occurs when you click on one of the buttons under the Profile heading. If you look at the Profile Scene you'll see I have stop actions placed at the end of each labeled section. For some reason the philosophy section keeps repeating itself and won't stop even though there is a stop action. Can some please take a look and let me know what I can to fix this. Thanks!!

Movie Won't Stop On Stop Command ?
Hello again. I have a movieclip following a motion guide. At the end of the guide, a window comes up with some text. On this frame, on it's own seperate layer, I have a stop command. What is suppossed to happen is after reading the text, you click on the window, it dissappears, and the movieclip follows another motion guide. For some reason though, when I output the FLA, it blows right past the stop command. I have tried making the stop command multiple frames, and I have double checked that there is no other command overriding the stop on that frame. I have no clue. Any ideas? Thanks,

(I would post the file, but it's so large it's killing my G5)

Movieclip Won't Stop On Stop Command?
Inside a movieclip (track) I have a ball on a motion path. At the end of the first motion path, a box comes up and the movie is suppossed to stop on it. For some reason, it keeps going right on to the next motion path. The stop is on it's own layer, and the weird thing is, there are two other stop commands on the same layer, at the beginning and the end of the movie, which both work. I have tried everything I know. Please help. Thanks,

-A

_root.stop Doesnt Really Stop
Hey guys,

I have a pretty complex game im working on..and when you win the game, it sends you to the 4th frame on the root timeline.

This shows the win message and such...however, it keeps automatically sending them from the 4th back to the 3rd frame. I have been searching thru the flash for hours to find something that is doing this, but there is nothing!

Is there a way to like override all other things and have a FULL stop?

I cleared the intervals (but none of them have anything to do with changing frames) but nothing works.

Any help would be amazing. Sorry I can't post the example, as its a HUGE complex flash file.

I pretty much am looking for something similar to _root.stop that actually stops EVERYTHING.

Thanks!

Goto And Stop Doesnt Stop?
hi there..
i have stupid problem again..
thats very basic and i dont knwo what the hell is wrong and its driving me crazy!
ok here it is.. im using

on (release) {
gotoAndStop("main");
}

it goes back to main labeled frame stops around 3 sec.. then plays the whole movie.. again! and again!
i changed it to frame number like

on (release) {
gotoAndStop(45);
}

still same! even there is a stop(); action on frame 45(main)
what is that?!
what am i doing wrong?

thanks..

Stop Scene Loop Without Stop();
I have an interactive flash application that I'm building, but it's gotten kinda large (~200k) because of one large png file. So, I want to build a preloader for it, but I seem to have some difficulty getting it to a) stop looping back to scene 1, or b) look good if I use stop();

for some reason, the folowing scene's moving elements look crappy if I use stop(); in it's first frame in order to stop it from going back.

I don't want scene 1 to continuously reappear, but stop messes with the moving elements in scene 2.

Any novel suggestions? Thanks in advance for even reading this.

Goto And Stop Doesnt Stop?
hi there..
i have stupid problem again..
thats very basic and i dont knwo what the hell is wrong and its driving me crazy!
ok here it is.. im using

on (release) {
gotoAndStop("main");
}

it goes back to main labeled frame stops around 3 sec.. then plays the whole movie.. again! and again!
i changed it to frame number like

on (release) {
gotoAndStop(45);
}

still same! even there is a stop(); action on frame 45(main)
what is that?!
what am i doing wrong?

thanks..

Making A Stop Button, Or Telling A Button To Stop A Streaming Video
Hello,

I've searched the forums and tried to find an answer to this question, but most of the posts go unanswered or are way beyond my understanding.

I'm using a form based application in Flash professional 8.

I have a .flv video of a movie trailer that I created from Quicktime. I intend to stream this video.

I also have a button called "Trailer". When I click on the "Trailer" button, I see the .flv video I created along with the play/pause control skin that I added in the import video wizard. I press the play/pause button, and the movie plays.

This is as I had expected it to be.

Now, when I want to go to something different, for example clicking a "Photos" button that displays a slideshow, the video continues to play.

Is there a way I can tell the "Photos" button to stop the streaming video?

I've searched the forums, and found a few answers, but I don't really understand them. I added them to the script of the "Photos" button anyways to see if they did anything, and every time the video still kept playing.

Here's what I've tried so far:
------------------------------------------
button.onPress = function (){
player_mc.clearVideo();
}

Where player_mc is the instance name.
-------------------------------------------
Adding a stop component, but this isn't really what I want. I'd like the "Photos" button to stop the movie without the user having to hit a separate stop button.
-------------------------------------------
.stop() and ._visible=false;

I don't really understand this.
-------------------------------------------
removeMovieClip("component_mc");
-------------------------------------------
instance.stop()

From what I understand this is only for adding to a keyframe to stop a movie that's looping, and not for what I would like to do. Is that correct?
-------------------------------------------

I would greatly appreciate any help, not only just for me, but for any other newbie who may run into this problem.

Thanks!

Timing Stop Go Stop Go
I want to create a portion of a page that is like a slide show with a few (10 or so) pictures that show for a few seconds, then disapear, and move on to the next, then loop. Is there a more efficient way to put a delay between the pictures other than adding like 100 frames for each one? I was looking at the setseconds and getsedonds ... would that work? and if so, how? by the way, I cannot lower my fps because I need quick animation else where.

Stop Sounds Causes Flv To Stop Too
Hey Hey!

Got a minor issue that I just can't seem to figure out. I've added piece of background music and created a simple piece of script to stop and start the music, should it irritate the user.

All works fine, however when I'm playing an flv (imported to stage and streamed) the stop function causes the flv to stop playing. It makes no sense to me.

Here's the code for the variable


Code:
var themeSound:Sound = new Sound();
themeSound.attachSound("soundtrack")
and the code for the On the button


Code:
on(release){
with(tracks){
gotoAndStop('on')
themeSound.start();
audiofx_state = 1;
}
}
and the code for the Off button


Code:
on(release){
with(tracks){
gotoAndStop('off')
themeSound.stop();
audiofx_state = 0;
}
}
The audiofx_state I'm using to deactivate the stop and start buttons as I have a small movie clip that changes text from on to off etc.

So as you can see, nothing complicated here. I've never tried to do this before and any help would be appreciated.

**EDIT**

I work fast and found a way around this problem, but I'd still like to know why the way above doesn't work.

To get around the problem I loaded the mp3 file for the background music from and external source rather than the library.


Code:
var themeSound:Sound = new Sound();
themeSound.loadSound("sounds/theme.mp3",true);
themeSound.setVolume(20);
themeSound.stop();

Code:
on(release){
if (audiofx_state == 0){
with(tracks){
gotoAndStop('on')
soundStarted = !soundStarted;
audiofx_state = 1;
}
themeSound.start();
}
}

Code:
on (release) {
if (audiofx_state == 1)
{
with (tracks)
{
gotoAndStop('off');
audiofx_state = 0;
}
themeSound.stop();
}
}

Help: Using Stop() Does Not Stop Movie
Hi,

I'm new to Flash, and have created a movie that I'd like to stop on a certain frame. I've used stop() before in another .fla which worked ok, but currently it doesn't seem to stop this movie at all.

I've created a layer for actionscript only, and through the first part of the movie I use some actionscript to pause the playback - this code is:


Code:
stop();

startTime = getTimer();

this.onEnterFrame = function () {
currentTime = getTimer();

if(currentTime-startTime > 2000) {
play();
}
}
This code works fine, and stops the playback then restarts after 2 seconds.

I placed a stop(); in the same action layer when I reach the main part of the movie, but when I test the movie or publish it, it goes past this point and then eventually loops.

Does the stop() call have to be done in any particular way?

Thanks in advance, especially if I'm asking a stupid question!

Swapping Buttons W/ AS...play To Stop/stop To Play
Hi,

I'm looking for how to swap buttons with actionscript. If my FLV is playing, display the stop button. If it's stopped, display the play button.

Here's my AS so far.


Actionscript Code:
var nc:NetConnection = new NetConnection();
nc.connect(null);
 
var ns:NetStream = new NetStream(nc);
 
theVideo.attachVideo(ns);
 
ns.play("intro.flv");
 
stopButton.onRelease = function(){
    ns.pause();
    _root.bulletlist.stop();
    isplaying = false;
}
playButton.onRelease = function() {
    ns.pause();
    _root.bulletlist.play();
    isplaying = true;
}
rewindButton.onRelease = function() {
    ns.seek(0);
    _root.bulletlist.gotoAndPlay(1);
    if(isplaying){
        ns.seek(0);
    }else{
        ns.seek(0);
        ns.pause();
    }
}

Could I get some pointers or a good link?

Thanks!

Slideshow
hey
I'm trying to make a slideShow that scrolls horizontally(the direction and speed would be vary depending on the mouse position)
The mouse controls for the slideshow work; and I'm able to control speed and direction of the MC. My problem is making the slideshow loop seamlessly... Instead of letting it scroll right off the stage, in either direction. I need the portion of the MC that is off stage at any giving time, to start again at the other end.
I thought of building a motion tween that would contain the complete animation, and then controlling the speed and direction by adjusting the "_currentFrame" of MC. But I'm convinced there's a better way to achieve the effect I'm looking for... I just don't know what it is!!

Any ideas?
Thanks,
J.M.Guitard

Slideshow
How do I make a slideshow of pictures. I have a bunch of pictures in which I want to create a slideshow. The slideshow will have pictures show up and then disappear taking up the entire size of the movie.
[Edited by cubedme on 12-08-2001 at 06:52 PM]

Slideshow
When going through this tutorial on how to make a slideshow, http://www.flashkit.com/tutorials/Dy...77/index.shtml , I found an error that I'd like to get help to fix.

You can see the error by first pressing the 'carshow' button, then the 'next' button so that 'car 1' is displayed, press the 'next' button again to see car nr 2. Then press the 'back' button, then you're at car nr. 1. Now here comes the error, when you press the next button again, you jump from 'car 1' to 'car 3'. Skipping the car in the middle.

So if anybody can see how this could be corrected, please respond.

Thanks,
day

Slideshow Help
Hey all, I've created a slide show and just need to know how I can pause the show on each main frame. Going in to add extra frames just isn't ideal. I need each main frame to pause for ~4 seconds before continuing on in the movie. Any suggestions?

Slideshow
Hi I'm making a slideshow and already found a tutorial but I have a some probs.
Prob1 -> I would like when I click on the picture that it makes a new window with a picture in it of course the slides aren't the same my pics are called slide_1.jpg to slide_5.jpg.
Prob 2 -> when I start the slide the first slide doesn't want to open :/ I have to click next.
Prob 3 -> When I press next it's loads the next pic, and if I press previous then the previous pic but when I press now on next again it loads not the picture after the previous one but the picture after when I pressed next for the first time :/.

example
Next -> Slide_2.jpg
Previous -> Slide_1.jpg
Again Next -> Slide_3.jpg and this has to be 2 :/.

I putted my files on a server here is the link
http://hm.bizzybyte.com/test

Grtz Insa

XML Slideshow
I have been trying to incorporate an XML slideshow into a site I am working on, like the one on Macromedia's site at here

I can get everything working except for the pictures themselves. When I try to use other pictures they won't show up in my movie, but if I use the pictures from the macromedia example, the function works just fine.

I've even tried changing the resolution in my pics to match the Macromedie examples and it still doesn't work. Is there something else I need to do to prep my JPEGS in order for them to work in this application?

Any help would be greatly appreciated

Slideshow
i'm having a problem with this picture slide show... can any1 help me... i don't kno if it's weather the actions script or something i'm doin wrong... please reply asap

here's the url for the files

slideshow.fla - 4.43meg

Help: Slideshow
I would like to develop a dynamic slideshow program, which the images and the description in the slideshow are retrieved from a database or a file. But I have no idea on how to do it. Does anyone can provide some example source code or sample or event teach me how to do it ... .

Thanks for ur help first

Slideshow
Hi, I'm creating a four page website and I thought of putting those four pages in a sequential order state so It would be like a slideshow. Is there a way to tell a button to go to the next page in slideshow form. Thank you for the help mate.

Slideshow Can't Go NEXT (XML)
I'm really new to XML, and I need to create a photo gallery. I found this cool one in the movies section and have modified it to my requirements.

I am able to escape from 'slideshow' mode to 'manual' mode, but in manual mode, I don't know how to go to the next photograph.

Can anyone take a look at the attached zip and help me please? It's not a complicated thing I think...

Thank u!

Slideshow?
I need to produce a "movie" of sorts. Basically, it's a slideshow of jpg images, but I wnat the images to appear seamlessly. What I mean, is I don't want a fade or anthing between the images. The images are of timed snapshots of weather maps.

I don't want anyone to write the code for me, I'm just looking for the best course of action to begin this. I'm relatively new to flash, and just need to know what the general technique (.as Syntax) I should look into using.

Any help is greatly appreciated.

Thank you in advance,

CFDaddy

Help W/ 3d SlideShow
I am looking for a tutorial or a book that will help create a 3d slideshow. very similar to a 3d scrolling menu buttons but instead of the menu using pictures. that way the pictures rotate on their own and stop when the mouse moves overthem and when clicked they goto the respected pages. just image thumbnails rotating in a circle automatically and that is what i want. thanks in advance

Slideshow Help
I have built a slideshow of my portfolio. It uses two arrows, one that goes forward and one that goes backwards through the portfolio. The problem occurs when you click continuously too fast on the arrows. The image that loads loops repeatedly. I have put a sample of my code below. Basically, when the arrow is clicked it passes a number through a variable to a function, the functions then loads the image and text. Can some one help.
To view the page use the link below and click on portfolio link http://www.cthrugraphix.com/htm_homepage.htm

Help With My Slideshow
Hi. I'm trying to get the flowing movie to work. I want to create a simple slideshow with pictures that the user can define by clicking on certain ones. In the attached file I'm simply trying to get the slideshow working because I'm pretty sure i can always add more pics.

All you have to do is click on the two images and then the black circle. I want the slideshow to start once you've hit the circle. The slideshow would have a simple fade in and fade out with each pic.

If someone could point out my problem thatd be great.

Thanks a lot

Copyright © 2005-08 www.BigResource.com, All rights reserved