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








Add Skin And Buttons (play, Stop, Etc) To Play A Swf File


Hello Forum,

Is there a way to use a skin/buttons just like the FLVPlayer that will give the same control to a movie clip (aka SWF file)?

I have a few swf files that are movie clips - not video. I would like to be able to load the movie clip, and be able to start, stop, pause, mute audio just like the FLVPlayer component does, but for a swf file.

I would like to have a "component" with the buttons, etc and be able to load the movie clip using the loadMovie method, and play the movie clip. I have a clip that starts playing after I load it, but would like to load it, and have it stopped, and then play the clip using buttons, etc.

I do not want to add buttons to each of my swf files, but have one movie clip with buttons, and load a swf into it.

Any tips will help,

thanks,

eholz1




Adobe > Flash General Discussion
Posted on: 07/09/2007 09:43:14 AM


View Complete Forum Thread with Replies

Sponsored Links:

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!

View Replies !    View Related
Stop And Play Buttons
i have a set of buttons that look similar to cd player buttons - back all, back one, play/stop, forward one, forward all.

when the user clicks the play button, i want the image to change to a stop button and the movie to stop. when the stop button is clicked, i want the movie to resume where it left off, and the button to turn back to a play button.

i've tried a couple ways and nothing works entirely right. can anyone help with suggestions?

thanks!

View Replies !    View Related
Play And Stop Buttons
I did post this on the sound forum but as yet, no reply...

When a sound is playing i need a Stop button showing, and when no sound is playing i need the Play button showing. How do you do this without having to switch between frames?

View Replies !    View Related
Stop And Play Buttons
Hello all,

I know this is probably a VERY newbie question, but I can't figure it out.

I have a stop and play buttons in a scene to stop all movies and sounds, and a play button to play (or continue to play) all movies and sounds.

When I apply a stop and stop all sound scripts to the stop button, it only stops the animation in the scene, it doesnt stop the movies in the scene. Same with the play button. Can someone please help

Thanks

View Replies !    View Related
Stop/play Buttons
Ok real simple question how do I make a stop/play button? I'm trying to make a flash movie that you can scroll from frame to frame..like stop motion really. just can't find a way to do it.

View Replies !    View Related
Play / Stop Buttons
Hey I wanna add some music to my site and I only want it to play once when you click play. My current code makes it play as many times as you click play, and my stop button is all bugged up.

will you type some code for this to work

only code for the play and stop buttons

View Replies !    View Related
Stop And Play Buttons
I'm trying to make buttons in my movie for stop, play, nextScene, and prevScene. Each scene has it's own audio. When I move from "scene 1" to "scene 2" the audio from "scene 1" keeps playing on top of "scene 2" and it's audio until it's done.
Is there a way to make a nextScene command that stops the current audio so it doesn't overlap that of the next scene? Thanks in advance!
MX 2004
AS 2

Here are my buttons
Play:
code: on(press) {
play();
}
Pause:
code: on(press) {
stop();
}
Previous Scene:
code: on(press) {
prevScene();
}
Next Scene:
code: on(press) {
nextScene();
}

View Replies !    View Related
STOP And PLAY Buttons
Don't know why I'm so stumped.

My swf contains series of still photos that zoom, fade, etc.

I want the user to be able to stop on individual photos at their "full bloom," so to speak (not during a tween or low alpha, etc).

I'm able to construct such a "movie clip" that stops at the key points in the photos.

However, I'm unable to get a second button (or movie clip) that resumes playing the timeline. In other words, it won't resume playing the tweens.

I'm certainly action script challenged.

Should the behaviors be movie clip or buttons?

Should I utilize "behavior" or "action script"?

Please advise. Perhaps there is a tutorial specific to this topic?

FYI -- if it helps to understand, the swf in question is posted at:

http://www.FloridaFitness.com/Andrew

Thank you,

Terry D

View Replies !    View Related
Stop And Play Buttons
Hi,

Ive got a stop and a play button both working. But what I really want is just the stop button displayed and when you click the button it changes to the play one.

How would this be done, please help.

View Replies !    View Related
Play/stop Buttons In Flashmx
Need some help putting stop and play buttons in flashmx. I am new to flash and am currently taking a class in it. I need to add stop and play buttons to my movie. I am not having any luck. Could someone please help. I only have 2 more days to turn in my assignment. Any help would be greatly appreciated.
Thanks

View Replies !    View Related
Stop Play Pause Buttons
Hi I want to change look of my stop play pause buttons.
I have tree instances of one mc with shadow.

If I clik on play
mcPlay.shadow._visible = 0
and that's ok.

If I click on pause I need to check which buttons was previously clicked.
I can set _visible to 1 for every others buttons but this is not elegeant way.
That can be very hard to accomplish if I have 20 buttons.
Can you give me some hint?
Is "Listeners" useful for that?

View Replies !    View Related
Help Getting Play/stop Buttons Working
If you go to http://valenciacc.edu/images/frontpage2/banner9.swf and mouseover the "Better place to start" box in the lower left hand corner it will popup. Then click the box to start the video, and play and stop buttons will show up. I can't get these play and stop buttons to work. Here are the source files I'm using: http://valenciacc.edu/images/frontpage2/banner9.fla and http://valenciacc.edu/images/frontpage2/flame.fla --- does anyone have an idea of how to get the buttons working?

View Replies !    View Related
How Do I Create Play And Stop Buttons?
i have made a banner for my website which has some mp3 playing in the background.

i want little 'play' and 'stop' buttons underneath it so that they play and stop the music in the banner.

they can be part of the banner but preferably not.

the music in the banner is the only music/sound effect on the page.

so, what do i do?

View Replies !    View Related
Sound Stop/play Buttons
Hi - I am trying to make a background loop which will play automatically when a page loads and to display a stop button which will stop the music when clicked.
I managed to do this much, however, when the stop button is clicked, I would like to display a play button which will start the music again when clicked. I could not figure out how to do this. I've read several tutorials, but some of them seem outdated and others did not seem to work.
Can anyone give me some advice or direct me to a tutorial which would explain how to do this correctly?
Here is the FLA so far: http://www.seniorspin.com/MyMusic.fla
Thanks, Elizabeth

View Replies !    View Related
Play And Stop Buttons With Music
hello. im a beginner with flash and i need a little help.
i want to create a small music player (that play only 1 song) which contains-
a Play button - button symbol
a Stop button - button symbol
a title (show what song is currently playing) - movie symbol
music - i guess movie symbol

the only problem i couldnt solve (the rest are working fine) is that the play and stop buttons arent working. the scripts i wrote for them are:

on(press){
a.play();
}

and

on(press){
a.stop();
}

respectively, while "a" is the instant name for the symbol which contains the song.

i think i figured out that the problem is that in the music symbol there is only 1 frame (which contains the song- i just went to frame #1 and dragged to the edit screen the song from the library).

please help me!!

View Replies !    View Related
Winamp Play/Stop Buttons
just wondering if it is possible to control the winamp/ media player controls in a flash movie, I.e Plat Stop next Previous

thanks for any help on this issue

View Replies !    View Related
I Need A Movie Clip To Play, Stop And Play Again In The Next Frame
I need a movie clip to play, stop and play again in the next frame. So pretty much i have to get the movie clip to play once and stop then when you go to the next frame it should play again once and stop again. What i have is a slide show type thing where you click on the next button to advance to the next frame and in each frame i have all the animations in their own movie clips.

-Thanks

View Replies !    View Related
A Few Buttons Each To Play A Track, How Does The Other Stop When I Press Another One
There 5 buttons on the stage each trigger MC which includes a track. Who do I make the other(s) stop when I press an other one?

THANKS

View Replies !    View Related
My Play, Stop, And Replay Buttons Won't Work At End Of Swf
I am converting avi/mpeg video clips to swf with our logo and player on them and have got it where it stops on the last frame, because it was looping before. The problem is that the stop, play, and replay buttons work throughout the clip, but once you get to the end they wont work. Any suggestions?


Thanks in advance,
Adam Crighton

View Replies !    View Related
Play/Stop Buttons Inside Movie
Hi,

I know I've seen a thread about it somewhere, but after searching 36 pages on Flash MX forum and more on the newbie forum, I give up.

I want to make a movie, and have the play/stop buttons (arrow/square) inside the movie.

How do I do that?

jbonham

View Replies !    View Related
Appying Script To Stop Play Buttons
Hello All,


How would I set up this scritpt for my sound files to stop and pause. Someone told me to set upa an array????

There are six files

stop
on (press) {
_root.stop();
if (pause!=true) {
playing=false;
paused=true;
stopped=false
myMusicPosition=_root.mySound1.position/1000;
_root.mySound1.stop("welcome_snd");
}
}




and play is



on (press) {
_root.play();
if (playing!=true) {
playing=true;
paused=false;
stopped=false
_root.mySound1.start(myMusicPosition,0);
}
_root.mySound1.onSoundComplete = function() {
}
}

View Replies !    View Related
Coding Stop/play/pause Buttons
Dunno why the pause concept is giving me such a hard time. I know I need a variable to hold sound.position but any help would be appreciated.

Sound object is "narration" and resides on the main timeline. Buttons are in a dynamically loaded mc (not that this makes any difference).

I have 2 separate "Back" and "Forward" buttons that, on release, load a new topic and thus load a new mp3 into the sound object. Problem I'm having is that my "marker" variable which gets set to a narration.position on release of the pause button is doing its job too well. When the next mp3 is loaded, hitting play begins the new mp3 at the previously paused position. Can't seem to clear out "marker" to save my life.

Thanks in advance...

View Replies !    View Related
Buttons To Play And Stop Movie Clips
hey i know this may be a very basic question, but how do you go about making a button ply and stop a movie clip you imported into flash.

I am doing a project for family guy at college, and am inserting various clips from the series

thanks

View Replies !    View Related
How To Make Play/pause And Stop Buttons?
hi, would someone please be able to post the actionscript for these three buttons? i would very much appreciate it :)

i was wonderin if there was a way to make a pause button, with ns. but one that when you press it then press it again it wont start. so that no matter how many times you press it the movie will stay paused (now like ns.pause when you click it pauses and when you click it again it starts, i ned a dedicated pause button)

and how to make a play button? so that when its paused, the only thing to start it again is pressing the play button and that when itsplaying you can freely press the play button and nothing will happen? (again, ns.pause doen't work on the play button since if we have it there the play button is now able to pause the video)

also, how do i make a stop button? so i click it and it takes me to the start of the video and stops it from playing?

thx. phatmat.

View Replies !    View Related
Controlling Audio With 'play' 'stop' 'back' Buttons
I have loaded a audio swf file into a host, which when preloaded goes to the next frame, and the audio plays.
What i want to try and do, is control the audio with play, stop, pause and back buttons like a stereo so they work as they are called, controlling the audio file which has been pre-loaded into a movie called 'host'.

if any experts in this can help me, i will be much happy like innit..

lee

View Replies !    View Related
[MX04] Buttons To Stop & Play A Movie Clip
The stupidest question ever. Can someone please post the code to do this:

When a certain button is pressed I want a movie clip named "equalizer" to stop, and when another button is pressed it has to start again.

What do I write in those two buttons action panel?

Thanks and forgive me if you can.

View Replies !    View Related
Creating Stop/play Buttons That Include Sublayers
Hi

I have made a flash presentation that runs for about 3 minutes. As of now it runs in loops, with no interacting possible. I would, however, like to add a pause/stop button, and another one that plays the presentation from the same frame it was stopped.

The problem is that I have several scenes (not the worst problem), and also lots of layers which again have sublayers with animation on them. Some of the scenes and layers have up to ten independent animations.

When I add a script for stopping the presentation, the scene stops, but the sublayered animations continue to play, which of course messes up the presentation.

I am of the understanding that creating lots of sublayers with animation isn't the best solution, but the presentation is made, and doing it all over isn't worth the effort just to get a pause button.

Is there any way I can create a stop button that stops every animation on all layers and sublayers, and then play them again when I hit a play button?


Thanks for any help you can give me on this matter.
klobb

View Replies !    View Related
Newbie Question: Stop, Play, Rewind Buttons
hi all, i am doing the website for an architectural company (apexstudios incorporated: www.apexstudios.com). if you go to projects>single (or any of them for that matter) and click on a video you will see what i am doing.
the question i have is: how can i make buttons that i can stop (pause rather), play, and rewind (say 4 seconds per click). i know how to make buttons and i have an OK knowledge of AS...so any help would be real appreciated. thanks alot -stone

View Replies !    View Related
Newbie Question: Stop, Play, Rewind Buttons
hi all, i am doing the website for an architectural company (apexstudios incorporated: www.apexstudios.com). if you go to projects>single (or any of them for that matter) and click on a video you will see what i am doing.
the question i have is: how can i make buttons that i can stop (pause rather), play, and rewind (say 4 seconds per click). i know how to make buttons and i have an OK knowledge of AS...so any help would be real appreciated. thanks alot -stone

View Replies !    View Related
Create Play And Stop Buttons For Movie And Sound
Hey,
sorry if this has already been asked, I couldnt find it.
I have a movie I made and I want to give the user some control by creating play and stop buttons.
I made the buttons, however when i stop the movie it cuts the sound as well (which i want), BUT when i then push the play button, the movie plays but the sound stays off.

Is there a way to make the sound and movie play with a play button?

thanx in advance

View Replies !    View Related
How To Add Control (play Stop Volume) To Swf File?
Hello!

I use On2 FlixPro to convert AVI to SWF. Now I have my movie in Flash format but I don't know how to add Play Stop Volume buttons to my movie. Please help.

My FlixPro comes with Power Player but it creates the player in a separate file which I don't like. Is there any software will help you merge the player control to existing SWF file?

Thanks

View Replies !    View Related
Anyone Know How To Insert Player Control Buttons, Play Stop Pause Etc...
Hey guys,

i have a small series of movies that i made, i was wondering if i could get the code, or .fla file for an external player. Or just pretty much have stop, play, pause fast forward, and rewind buttons in the actual flash movie, if anyone has those answers i'd sell my soul to find out how i can get that to work, or any other helpfull info would be greatly appreciated.


Thanks a bunch

Eugene

View Replies !    View Related
How To Create Looped Sound Clip With Play/stop Buttons?
Hi everyone, basically, What I want to happen is when the flash file loads up on my page a small soundclip (.wav) starts playing, and it has to be looped so it plays exactly continuously and seamlessly; there can't be a 'gap' when it reaches the end and starts playing again.

I'd like to offer two controls: a stop button so people can stop it, and a play button so they can start it up again if they wish.

If that's too complicated then just the stop button would do.

When I've tried to do this myself the sound loads up again after the stop button has been pressed and the play button didn't work.

Im quite new to flash so a step by step guide would be of great help.

Thank you very much for your time and help.

View Replies !    View Related
Stop And Play Audio Buttons With Stream Sound Timeline
¿Is there a way to get a full funcion play and stop button if sound is not exported on first frame from library and is located on timeline?

Pepetex

View Replies !    View Related
Controlling A Loaded SWF File , Play , Stop , Rewind ...
Hey Guys ,

I am loading in a video into my movie clip which I converted to SWF with sorrenson squeeze & Want to know how to control the movie from my main timeline , basically I just want to stop and play , and possibly have a timeline , BUT I know that to do a timeline I would have to have the movie embedded ?

Any thoughts ? I have herd about using the 'tell-target' command , but I am not sure how to use it ...

basically my files are called "movie.swf" and my place holder is called "loader"

Any thoughts , links , something would be good.

Thanks
Chris

View Replies !    View Related
Doing A Flash Presentation With Audio And Would Like Tips On Pause-play-stop Buttons
yeah im doing a project for Nokia and it requires about 3 mins of spoken audio in it..

anyhow its quite straight forward..some bar graphs..text and speak.
But i havent really done a project like this before exactly so i basically need it to work so that you are able to stop or pause the speak at any given moment..then be able to play(continue from where you stopped and left off) and be able to skip back or fwd thru-out the speak.

I think i will split up the 3 mins of speak into several smaller bits instead of having 1 great long wav on timeline..might be best????

But does anyone have any good tutorials..or open FLAS for me to see how this could best be done..

Id be very greatful!!

Cheers!

Chris

View Replies !    View Related
Help Tips Needed Please For Using Audio With Play-pause-stop&fwd Buttons In Flash
doing a flash presentation with audio and would like tips on pause-play-stop buttons
yeah im doing a project for Nokia and it requires about 3 mins of spoken audio in it..

anyhow its quite straight forward..some bar graphs..text and speak.
But i havent really done a project like this before exactly so i basically need it to work so that you are able to stop or pause the speak at any given moment..then be able to play(continue from where you stopped and left off) and be able to skip back or fwd thru-out the speak.

I think i will split up the 3 mins of speak into several smaller bits instead of having 1 great long wav on timeline..might be best????

But does anyone have any good tutorials..or open FLAS for me to see how this could best be done..

Id be very greatful!!

Cheers!

Chris

View Replies !    View Related
Play/Stop Button For Text Flash File With Music
Just as the subject says, I wanted to know how to create a stop/play button on the files I create. I used Wildform FX and Links. Can any one help.............
www.lasvegashardcoreriders.com is the site.
[url=http://www.lasvegashardcoreriders.com]

View Replies !    View Related
Kayboard Input To Play And Stop An External Sound File?
Hey all,

I know how to play an axternal sound file, i currently am able to play and stop my sound file with buttons, but i would like to be able for the user to press the 'S' key on the keyboard (or any key if it makes it easier) and then the sound is turned off and on. Can anyone help me on this in AS3?

View Replies !    View Related
[fcs3] External Mp3s, Multiple Play Buttons,1 Stop Button With Fade Out - Please Help
Hey Guys,

I've been trying to set up an Soundboard as a personal project where I have about 30-40 buttons, which each are linked to an external mp3.

Currently I have it set up as 40 Separate Play and Stop Buttons using the code below. Now I'm not sure how to do this next part, but how can I modify this code, to have only 1 Stop Button for 40 Separate External Mp3 Files. (Please Don't Suggest stopAllsounds(); like someone did on another forum, that's not want I wanted)

I First Posted this on here on August 9th, and had no help, and I'm hoping that this time I can get some help for this.

On the Frame/Button:


Code:
Sound = new Sound(this);
theme.loadSound("song1.mp3");

on(release){
theme.stop();
theme.start(0,1);
}



On The Stop Button:

Code:
on(release){
this.onEnterFrame = function(){
so = _root.theme;
rate = 5;

newVolume = so.getVolume() - rate;
if(newVolume > 0) {
so.setVolume(newVolume);
} else {
so.setVolume(0)
so.stop();
so.setVolume(100);
this.onEnterFrame = null;
}
}
}

on(keyPress "<Space>"){
this.onEnterFrame = function(){

so = _root.theme;
rate = 5;

newVolume = so.getVolume() - rate;
if(newVolume > 0) {
so.setVolume(newVolume);
} else {
so.setVolume(0)
so.stop();
so.setVolume(100);
this.onEnterFrame = null;
}
}
}

View Replies !    View Related
How Do I Add Play/Pause/Rewind Buttons To A .swf File
I'm fairly new to flash and I built a flash movie (.fla) in flash 8.0 and then exported it as a .swf file and inserted into the following html:

http://www.dorsai-the-movie.com/flash.html

My question is, how do I add user controls for the movie? Like play, pause, skip to the beginning to this movie?

Please help!

Thank you!

View Replies !    View Related
Change The Skin Of Media Play Back Component
I've made a video play back (flash FLV) usng media play back components in flash mx 2004. Everything perfectly workng but i want to change the look and feel of the control buttons. I couldn't find any options for the same. Any idea. Is there any other video play back components available ...

thanks in adavnec

View Replies !    View Related
Change The Skin Of Media Play Back Component
I've made a video play back (flash FLV) usng media play back components in flash mx 2004. Everything perfectly workng but i want to change the look and feel of the control buttons. I couldn't find any options for the same. Any idea. Is there any other video play back components available ...

thanks in adavnec

View Replies !    View Related
Play New Flash File And Play Frame
Hi, i wish to on enter frame in flash document 1, to load and play frame 21 in flashfile 2.. is this posible?

ps. im quite newbee in flash :oops:

View Replies !    View Related
Playing Music Via "stop - Play - Reverse - Forward Buttons"
Hello everyone,

I am working on a media player, and have received help from a member on here with how to set it up to have files play via clicking on a button in the flash file.

The problem I am having now is that I need to have the "stop" - "play" - "reverse" - "forward" buttons all work for each file that is currently playing. There is 4 audio files that can be clicked and played, but I am stuck on how to get the stop/play/fwd/rev buttons to work for each file as they are playing in the media player.

Here is the actionscript for the file.


Code:
play_mc.onRelease = function(){
myMedia.setMedia("URL of the file", MP3)
}

my_media2_mc.onRelease = function(){
myMedia.setMedia("URL of the file", MP3)
}

my-media3_mc.onRelease = function(){
myMedia.setMedia("URL of the file", MP3)
}

mymedia_ap_mc.onRelease = function(){
myMedia.setMedia("URL of the file", MP3)
}
I am sorry if this is such a newbie question, but I am taking everything I learn and applying it to projects and hoping that I can soon be able to give advice to others on this board.

Thanks in advance to anyone who can give me some insight.

Thanks.
- Robert DeVore
Cre8tiv Vision co-CEO / Lead Designer

View Replies !    View Related
Fms Ns.play(file, -2) Vs Ns.play(stream, -2)
Hi,

I have a very strange problem.

I have created an application on fms. on the streams/_definst_/instance directory there is a sample flv file with name file.flv

If i have a client doing ns.play(file,-2) everything is fine. The file is delivered (streaming) nicely.

If i have the below:

Client::: ns.play(stream, -2);

Server-side: (Stream.get("stream")).play(file, -2);

The file is delivered, but it doesnt playback/flow properly. It seems like breaking(stacks) on some points and then continue.

Does anyone have any idea?

Thank you vrey much!

View Replies !    View Related
Stop, Then Play A MC, Then Play Again?
Hi... Im really new using Flash, so Im looking for help. Here´s the thing... I want to place a button on the first frame to go to the second frame, then on the second frame I have a Movie Clip, then I want this MC to play and when it finishes go to the 3rd frame of the main movie.

Even for me sounds easy, right?

What Im doing is placing a "Stop" at the first frame to allow the button to work, then a second "Stop" at the 2nd frame to allow the MC to play, and then at the 3rd frame a third "Stop" to read all the info. So im placing at the final frame in the MC the only code in actionscript that I thought I knew how to use... gotoAndPlay. So at the last frame of the MC I place
gotoAndStop("Scene 1", 3);

but it goes to the Frame 3 of the Movie Clip, and I want to go to the Frame 3 of the main movie.

I´ve already changed the name of the Scene and still don´t work.
Ok... I know this is probably lower than Flash 101, but I can´t do it.

Thanx to anyone who can answer this one without cracking jokes at my expense.

View Replies !    View Related
Buttons Just Play And Play And Play...
I'm a newbie and I'm having a problem with some flash movie-clip buttons. I've done as written in the Flash 8 Visual Quickstart Guide by Katherine Ulrich, but when I publish, the little critters just play and play...just looping the three states. Whassup? :

Also can I get a critique on my very first animation?
Thanks in advance,
Dave (click the link below)

Pierce Art and Design testfiles

View Replies !    View Related
Resume Play Than Restart Play On The Play Button.
I have this script that works but it keeps on starting from the start of the song, than resume from where I stopped it.

myMusic = new Sound();
myMusic.loadSound("audio/track.mp3", true)
stopbtn.onRelease = function()
{
trace("sound stopped");
myMusic.stop();
};

playbtn.onRelease = function()
{
trace("sound played");
myMusic.start();
};

How do I change this code to resume when pressing the play button than starting from the start of the song. I guess it be more like a pause button than a play button.

View Replies !    View Related
[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

View Replies !    View Related
Play And Stop
Hi all,

how do I make a movieclip play to a certain frame from a given frame (where the playhead is at the moment) and then stop (playing "backwards" should also be possible).

Thanks,
Stk

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