Playback buttons for flash movie

Hello, im having some difficulty adding a play, pause and
stop button to a movie I imported into flash.
The movie was imported using the import wizard in flash 8. I
did not add a skin because when I tried adding it , the skin would
not show through once I imported the finished swf file in
Trainersoft. ONly the movie would come through. So, then I decided
to add my own playback buttons to the movie. I imported the movie
again using the import wizard, i did not select a skin. The movie
was imported fine into flash. I added a play, pause and stop
buttons as new symbols each in their own layer. I added the correct
action scripting to the buttons, i preview movie and the buttons
appear correctly but nothing happens when I click each of the
buttons, the movie keeps playing without reacting to me clicking on
either the pause or stop button, or the play button.
Here is thte scripting im using.
For Play: on (release) {
myButton.onrelease = function() {
trace("onrelease called");
on (release) {
play();
For Pause:
on (release) {
myButton.onrelease = function() {
trace("onrelease called");
on (release) {
stop();
For Stop
on (release) {
" Movie".gotoAndStop (1) ;
I would love to hear from someone to help me out. Thank
you!!

First, create your play button. Click on it, and open up the
Properties Panel (Shift + F3). Type in:
play_btn for the <Instance Name>.
Then, create a new Layer in your Flash file, called Actions.
Click on the first frame of the Actions layer, and open up the
Actions panel (F9).
Type in:
stop();
play_btn.onRelease = function(){
play();
}

Similar Messages

  • Back button & Replay button for Flash movie on website

    Three questions all related:
    1. I need to add a "Back"  and a "Replay" button to a Flash movie that plays full screen when the link is clicked on a website. I have created the two buttons and placed them on the stage. I've given them the names back_btn and play_btn. I've tried several scripts from postings on the Forum for the replay button but all of them come up with errors such as, "1119: Access of possibly undefined property onRelease through a reference with static type flash.display:SimpleButton" when I use this script:
    stop();
    play_btn.onRelease = function()
    play();
    I also tried this script:
    stop();
    play_btn.addEventListener(MouseEvent.CLICK, playMovie);
    function playMovie(event)
    play();
    It didn't report any errors, but it didn't work.
    2. I saw a posting that said one needs to name the movie clip and reference it in the script. Would this be the file name of the movie after it is exported? I am unclear on this.
    3. For the "Back" button, would I include the whole url to get the viewers back to the previous page or is there a shortcut way to get them back there?
    If you can help, please provide detailed script as I do not know Action script.
    Thank you,
    Marilyn

    Hi, Ned:
    I have a presentation completed that is already up  on a website and now I need the "Back" button and "Replay" button, so whether I'm ready or not, I have to find a solution. I know I'm missing some important step. I have Lynda.com and I can usually figure out what's wrong with the lessons on there, but this one has me stumped.
    I did try the code change you sent and I was unable to get the movie to replay. I'm attaching two screen shots so you'll see that I did have the button instance named properly and the Action Script correctly written. You can "Ctrl" "Scroll" to enlarge the images on your screen.
    Marilyn

  • HT204370 I cant fined the play button for a movie ive already rented... How do you restart a movie???

    I cant fined the play button for a movie ive already rented... How do you restart a movie???

    Once you rent it it will tell you when its 'ready to watch' and you can then hit play. You can also access it by going to the movies tab, and the poster image for the rented title will appear in the top left. You can also go to settings - general - itunes store - check for rentals.
    Note: a 6mbps connection is required for instant HD rentals. If you are much lower it may take some time before you can watch. Accessing other content during this time or turning off the device will flush the rental, requiring a reload.

  • How Do I Execute An exe or an msi Install file From a Button in Flash Movie

    Issue:
    I have a flash movie that runs as a standalone player on a
    Demo CD... I also have an install msi file(same as an exe) that
    when the user is done viewing the flash movie they can click on a
    menu button in the flash movie that executes the msi or exe located
    on the root of the CD which starts the install process.
    Question: What is the action script (FOR FLASH 8) that i
    apply to the button that will initiate or call the MSI or exe
    install file.
    Anyhelp would be great... even a link to an example... or
    anything... thanks
    Thanks in advance...

    fscommand("exec","myexe.exe");
    Should run the program myexe.exe inside a directory called
    fscommand
    which must be a subdirectory of whereever your projector is
    located.
    In windows:I know you can run .bat files with fscommand. But
    I'm not sure about msi files.
    You can often get around the limitations by having a .bat
    file that will a) show a cmd window briefly and b) do the thing
    that you couldn't do from flash.
    If running the msi doesn't work from flash directly you may
    want to try using a bat file...
    There's some information here.
    http://livedocs.adobe.com/flash/9.0/main/00001177.html#wp143348

  • Stop button on flash movie doens't stop it unconditionally

    Hello again to all ...
    Sorry but I need to ask you to go to
    http://www.importubos.com/
    There you can see this flash movie has a play and a stop
    buttons.
    Their associates action are respectively:
    on (release) {
    play();
    and
    on (release) {
    stop();
    Question is:
    Although they work well, when I stop the movie and go, for
    example from EMPRESA to CONTATOS (through site menu),
    the movie starts again playing.
    How to stop the movie so it stays stoped even when I go
    through different section of the site ?
    Lots of thanks
    Miguel Garcia

    You'd probably have to set a cookie and read it back (through
    javascript) on
    each new page. I think the animation is more than enough on
    the home page -
    I would make a static jpg of it for each of the interior
    pages if I were
    you. Then you don't have to worry about cookies and
    javascript. Just assume
    that they don't want to see it keep going, and going, and
    going... :-)
    "MiguelGarcia_Adober" <[email protected]>
    wrote in message
    news:gjqppr$d4k$[email protected]..
    > Hello again to all ...
    >
    > Sorry but I need to ask you to go to
    http://www.importubos.com/
    >
    > There you can see this flash movie has a play and a stop
    buttons.
    > Their associates action are respectively:
    >
    > on (release) {
    > play();
    > }
    >
    > and
    >
    > on (release) {
    > stop();
    > }
    >
    >
    > Question is:
    >
    > Although they work well, when I stop the movie and go,
    for example from
    > EMPRESA to CONTATOS (through site menu),
    >
    > the movie starts again playing.
    >
    > How to stop the movie so it stays stoped even when I go
    through different
    > section of the site ?
    >
    > Lots of thanks
    >
    > Miguel Garcia
    >

  • How to make a fullscreen button for Flash Catalyst?

    Hey everyone.  I really hope someone can help me with this.  How can I make a fullscreen button in Flash Professional that would make my Flash Catalyst project go fullscreen?

    I'm sorry I really don't know Flash Catalyst as much as I'd like to. Designing interfaces is left up to me, no designers at my agency use Catalyst. Though this is the Flash forum so that's as much as I can tell you. I didn't know Catalyst didn't support basic scripts (I thought I read that it did).
    Ultimately, for a very cheap price you can do something like go to http://www.lynda.com/ and buy a membership. Dirt cheap compared to what you get. They offer many courses on all this stuff and I'm sure your answer would lie in one of the (nicely broken up by subject) video training videos.
    Just searching for Catalyst brings up a bunch of courses:
    http://www.lynda.com/search?q=catalyst&x=0&y=0
    edit:
    For instance I watched the essential CS5.5 training and I saw in 2 minutes flat that when you click on a button you should have an "Interactions" panel that lets you do things. If they didn't put fullscreen as an interaction that's another thing but I'm just pointing out it's very easy to learn how to do all sorts of things in video training. If you do not want to purchase a membership there just find a video you think would have the info in it and I'll watch it and let you know if it told me how to do it, and how to do it.

  • Title for Flash movie (Swf file)

    Hi
    I want to add any title for my flash movie, As we can add any
    title in HTML page with "title tag".
    Usually the file name of flash file show as title like
    "abc.swf"
    but i want here another title like " Welcome to my xyz"
    anything else....
    Can anybody help me getting its solution....
    Alok

    Wishing to do the same thing, I've explored this with Macromedia. It appears to be a licensing problem for the Flash 5 engine. Macromedia wants a commitment of several thousand dollars (like close to 6 figures) to license the engine for an application. That's for a single applicaiton, and not a generic toolkit like JMF. I assume Sun found the same thing and balked, understandably.

  • Browser scrollbar for Flash movie?

    The webpage for my Flash movie does not have scrollbars. On
    most of the frames (I did each site page as a named frame in a
    single timeline) it doesn't matter, but there is one frame where
    the content stretches the full 900 px tall and you can not scroll
    down.
    I'm afraid I also have complicated things because the client
    said he wanted everything, the whole site, 10% bigger... so I set
    the movie width and height as 110% in the HTML. (Suggestions on
    this are appreciated, too!)
    I'm worried that if I somehow add scrollbars, it will want to
    add a horizontal scrollbar to the bottom too.
    I was wondering if I could add a Flash scrollbar (if it
    worked with scrolling mice, that would be bonus) just on that page,
    and have it appear exactly at the right edge of the browser window
    and smartly sense how tall to be. Would I have to load it as a
    separate movie? Any suggestions are ever so much appreciated!

    Nevermind... I found out his Flash Player was WIN 9,0,47,0
    while everyone else is WIN 9,0,124,0 . He upgraded & it is
    working.

  • Narration for Flash movie

    I am trying to record a narration for a Flash movie and I can't get it done with GB. I'm thinking this is because I'm a new Mac user. Any suggestions how I might do this. Flash can import audio files in AIFF, WAV and MP3.
    iMac & MacBook   Mac OS X (10.4.8)  

    If you delete or hide the PodCast track, what you "Share to iTUnes" will be an AIFF file.

  • Creating Hyperlink for Flash Movie

    Hi Guys
    I have just created a flash movie. I have inserted the flash
    into dreamweaver and when somebody clicks on the movie I want it to
    take them to a certain page. If possible could I send you the .fla
    file and you can send it back with it all linked up as I have been
    getting annoyed with this all morning.
    Thanks
    J - 17 from Brits

    ForensicBop,
    > I have just created a flash movie.
    Okay.
    > I have inserted the flash into dreamweaver and when
    > somebody clicks on the movie I want it to take them
    > to a certain page.
    Easy enough, once you know how to proceed. :)
    > If possible could I send you the .fla file and you can
    > send it back with it all linked up as I have been
    getting
    > annoyed with this all morning.
    It's possible, sure -- but that goes agains the grain (and
    benefit) of
    why these forums are here. A dozen other people may have a
    question similar
    to yours, and by participating in a public conversation about
    it -- and also
    working it through publicly -- you not only learn a knew
    skill, but
    onlookers can learn it as well.
    If you want the whole Flash movie to respond to a click, you
    can either
    create a so-called invisible button that matches the
    dimensions of the whole
    movie, then set that above all other layers, or you can code
    your movie to
    respond to mouse clicks globally.
    The invisible button approach usually seems easier to
    newcomers, but
    neither techniques is especially difficult. What version of
    the Flash
    Player are you publishing to? (Most importantly, what version
    of
    ActionScript?)
    David Stiller
    Adobe Community Expert
    Dev blog,
    http://www.quip.net/blog/
    "Luck is the residue of good design."

  • Export for flash-movie file conversion.

    I want to prepare files for the highest quality possible for conversion to flash-movie files. I recorded in HDV- edited in HDV- send to Color in HDV- and now my question is if I should send it to FCP from Color in 10 bit-uncompressed to keep the highest quality?
    Also at the end exporting from FCP- should I change my sequence settings? Again I need the very highest quality for later conversion to a flash-movie file, and was told that uncompressed is the way to go??
    Any thoughts on this?
    Thanks- Adam.

    "Keeping" the quality isn't really the issue-- if you're working in HDV, there's nothing to gain by going to Uncompressed, because you weren't working in Uncompressed in the first place. The exception to this is color grading and graphics: ideally, you would be working in a higher quality sequence such as ProRes (Uncompressed is probably overkill) in both FCP and Color.
    Of course, I can't honestly say that any of this will make a difference in a Flash movie-- Flash is for web delivery, and to bring it down to a bitrate suitable for the web, you'll likely lose anything you might have gained from this process.

  • Browser buttons for flash

    Is there a reliable way / workaround to get the browser buttons (meaning the back and forward arrows) to work on an all flash website (
    I have Dreamweaver CS4 if that helps)?
    I'd been directed to SWFAddress a few months ago, but I couldn't get that working even after digging around on the Asual site and elsewhere for instructions on how to integrate this deep linking feature.
    Thanks for any recommendations.

    Nevermind... I found out his Flash Player was WIN 9,0,47,0
    while everyone else is WIN 9,0,124,0 . He upgraded & it is
    working.

  • Radio Buttons for Flash PHP email.

    Hi.
    I need to add a sign-up form for services to a flash AS2 web site.
    I found a very simple example of a Flash/ PHP email form at Kirupa.
    It works fine, but I need to add some radio buttons.
    My web site will offer various services.
    Ideally I would like to be able for viewers to sign up for a service by clicking the appropriate right radio buttons
    F.ex;
    •   Service 1
    •   Service 2
    •   Service 3
    •   Service 4
    The email should reflect the choices made by listing the text on the selected services (radio buttons).
    Please download the FLA and the PHP file (at the bottom of the tutorial) here:
    http://www.kirupa.com/developer/actionscript/flash_php_email.htm
    I have uploaded a working version here:
    http://gggraphic.com/flash_mail/simple_flash_mail.php
    How do I add and script the radio buttons with both AS and the PHP to make it happen?
    Thank you on beforehand for your help
    ggaarde

    Hi Again
    Maybe check buttons would be a more natural option for this. You should be able to select more than one service.
    Thanks
    ggaarde

  • Single start/stop button for looping movie

    Dear Friends,
    I apologize if this has been addressed already in the forum, as I have had no luck searching here or the web in general for a solution.
    I currently have a 23-frame multilayered single-scene animation designed to loop continuously which I would like to add to my portfolio. As such, I am adding a Play button, which I would like to toggle to a Stop (or Pause) button. I currently have an instance of the Play button ("playButton") created.
    (You can find this at pineboxmovingco.com/gear_redux.swf)
    Besides imploring your assistance in providing the code, I must also ask if this requires (and best practice for) inserting an additional frame at the beginning for the ActionScript, as well as where/what layer to add an instance of the Stop button. I would like the movie to be stopped by default, presenting the Play button, toggling to the Stop button, and back to the Play button, each upon release.
    Thank you so much in advance!
    Michael T
    Phila, PA

    So, Ned, insert the stop(); command - with no other code - on each keyframe of the MC like so:
    Then, return to Scene 1 and select the MC, inserting the code:
    With an additional "stop" command in the first frame:
    I must be missing something as it is continues to loop. Any further assistance would be greatly appreciated...
    Michael
    (UPDATE: Replaced second image with AS reflecting replacement of XXX with "1".)
    Message was edited by: turnerator

  • Code for flash movie not working?

    ok, I have searched hi and low for this and found lots of great info from Wyodor on this forum but I just cannot get this to work! I have tried the code, replaced the paths and sizes relative, I have everything (swf flv) in the same directory on my server (not mobileme) but still nothing. All I see when I visit site is a grey box. What am I missing? It seems pretty straight forward. Please help! Thank you

    The URL appears in two places in the code. The most important one is after
    <embed src=
    Enter the URL to your flash file into the browser and it should play full screen on a page of its own if it is correct.
    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
    codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#ve rsion=6,0,40,0"
    width="640" height="480"
    id="MovieName">
    <param name="movie" 
    value="http://www.mywebsite.com/FlashFolder/FlashFile.swf" />
    <param name="quality" value="high" />
    <param name="bgcolor" value="#ffffff" />
    <embed src="http://www.mywebsite.com/FlashFolder/FlashFile.swf" quality="high" bgcolor="#ffffff"
    width="640" height="480"
    name="MovieName" align="" type="application/x-shockwave-flash"
    pluginspage="http://www.macromedia.com/go/getflashplayer">
    </embed>
    </object>

Maybe you are looking for