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

Similar Messages

  • Editing Buttons in an Old Flash Movie

    Hello,
    I am trying to edit a Flash movie that was created several years ago (probably around 2002-2004ish), using ActionScript 1. It's a library map that shows Library of Congress subjects when you hover over the stacks buttons. Here is a link to show what I am talking about: http://lib.skidmore.edu/includes/files/SubjectMaps/subjectmap.swf
    Click on the BY SHELF button to see the action I wish to edit.
    What I would like to do now is, instead of just the hover-over feature, I'd like to make each shelf button link to a Library of Congress search in our catalog when you click on it. However, when I try to edit the buttons, they won't appear in the ActionScript window, and I get the message "Current selection cannot have actions applied to it." I've read several forum and web questions regarding this, but I'm not using ActionScript 3, and I can't figure out how to open the button up and add code to it. Is this possible?
    I'd very much appreciate any help! :-)

    That is not a question, but I will try to explain the proper way to code a button.
    Select the button on the stage, then enter a name for it in the Properties panel where it says "<Instance name>"... one word, no spaces in it.  Let's say you name it "btn" (without quotes)
    The button is now ready to have code assigned to it.
    In the timeline create a layer that you will use for actionscript.  In the frame of that new layer that is the same frame number as the button, assign code to the button by selecting the frame in the actionscript layer and typing the following in the Actions panel...
    btn.onRelease = function(){
           trace("this button works");
    Once you have that working, replace the trace with whatever functionality you intend to code for the button.
    To get rid of any code that might be attached to the button that was already there, select the button on the stage while the actions panel is open and you should see any code attached to the button.  Attaching code to buttons is bad practice, so get rid of it and move it into the timeline in the timeline format.

  • Button Throughout Duration of Flash Movie

    I have imported a movie into my Flash timeline and would like to create a button that stays present (overlapping with the movie) throughout the entire duration of the movie so that the website viewer can click the button and be sent to a different page at any time during the movie. Furthermore, I am hoping too be able to put the movie on a loop so that when one goes to the site, they watch a movie on loop until they decide to click one (or perhaps more) button(s) that take them to new parts of the website. Any help creating a button that stays during the movie would be much appreciated. (Currently I have copied the button instance to every frame of the movie, which I realize is absurd, especially if I have to change the button in the future). Thanks.

    Hi,
    This is a forum for AFCS ( Adobe Flash Collaboration Services), Are you using AFCS for your applications ? If not, then I feel it's not the right place. You should look for Flash/Flex/Flash Player for your requirements.
    Hope this helps.
    Thanks
    Hironmay Basu

  • 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."

  • 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.

  • 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.

  • 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();
    }

  • How to set up one-button embed-hotlinking for Flash SWF?

    Hello,
    I'm publishing a webcomic in Flash.swf format and I'd like to make it as easy as possible for people to grab my comic and put it on their website. How can I set up one-button hot-linking that will automagically provide the code so that they can easily drop it into their website, similar to the way YouTube does with video?
    Thanks,
    Tom

    you can use the following.  the bolded lines require you to use appropriate values:
        <div id="flashContent">
                <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="yourswfwidth" height="yourswfheight" id="swfname" align="middle">
                    <param name="movie" value="http://www.yourdomain.com/path/swfname.swf" />
                    <param name="quality" value="high" />
                    <param name="bgcolor" value="#ffffff" />
                    <param name="play" value="true" />
                    <param name="loop" value="true" />
                    <param name="wmode" value="window" />
                    <param name="scale" value="showall" />
                    <param name="menu" value="true" />
                    <param name="devicefont" value="false" />
                    <param name="salign" value="" />
                    <param name="allowScriptAccess" value="sameDomain" />
                    <!--[if !IE]>-->
                   <object type="application/x-shockwave-flash" data="http://www.yourdomain.com/path/swfname.swf" width="yourswfwidth" height="yourswfheight">
                        <param name="movie" value="http://www.yourdomain.com/path/swfname.swf" />
                        <param name="quality" value="high" />
                        <param name="bgcolor" value="#ffffff" />
                        <param name="play" value="true" />
                        <param name="loop" value="true" />
                        <param name="wmode" value="window" />
                        <param name="scale" value="showall" />
                        <param name="menu" value="true" />
                        <param name="devicefont" value="false" />
                        <param name="salign" value="" />
                        <param name="allowScriptAccess" value="sameDomain" />
                    <!--<![endif]-->
                        <a href="http://www.adobe.com/go/getflash">
                            <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
                        </a>
                    <!--[if !IE]>-->
                    </object>
                    <!--<![endif]-->
                </object>
            </div>

  • Help with Radio Buttons & Combo Box for Flash Form that sends email

    I'm having a bit of a hard time with a Flash form that I'm working on.
    I've got the basic text fields working fine, but I'm not sure how to retrieve the values from the Radio Button and Menu List components.
    The PHP script pulls the values from the text fields with:
    $contact_name = $_POST['name'];
    $contact_email = $_POST['email'];
    $contact_subject = $_POST['subject'];
    but using
    $radioGroup = $_POST['radioGroup'];
    doesn't retrieve the selected radio button value.
    The radio buttons have a groupName of "radioGroup". The combo box component doesn't even show up in the HTML version, but does in the .swf.
    Can anyone point me in the correct direction to pull these values from these components and get them passed to the PHP form? The native .FLA and the php file are here for reference:
    http://dl.getdropbox.com/u/21984/flashform.zip
    My solution needs to be ActionScript 2.
    Thanks!

    again, you assign a variable.  the selected radiobutton's data and/or label isn't going to magically be sent to the php file.
    for example, if you have sendLV and receiveLV loadvars instances, you can use:
    sendLV.rbData=yourradiogroup.selection.data;
    sendLV.yourothervariables=yourothervariables;
    sendLV.sendAndLoad("yourphp.php",receiveLV,"POST");

  • "Download now" button not working for Flash Professional CS5.5 trial

    Hi,
    I was going to download the trial version of Flash Professional CS5.5 but when I got to the download page it wasn't downloading. The "Download now" button was there, but it was unclickable, when I clicked on it it didn't work, plus it was a little dimmer than I remember it was when I downloaded another trial. I'm also using the latest version of Google Chrome and I tried downloading it on IE and Firefox.
    So, is there any solution to this?
    Thanks in advance.

    Sorry :/
    link: http://www.adobe.com/cfusion/tdrc/index.cfm?product=flash
    The download button looks dimmer than usual and I can't click on it.

  • 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>

  • Kiosk mode for Flash movies?

    I know Flash usually optimizes projects to be as compact and
    web-friendly as possible. But I only deal with kiosk type projects
    that play from a local hard drive with a really beefy host systems
    (quad core, 4GB RAM, 500GB HD, Nvidia 8800). Is there a setting
    where I can tell my SWFs to eat up gobs of memory and CPU cycles to
    ensure the smoothest playback and performance?

    It is also advisable to turn off, somehow, using ActionScript
    the "video smoothing" feature of the Flash Plugin, since it may
    result in huge frame-dropping of the movie, during full-screen
    playback.
    The need to remove this feature is raised, if you use
    "hardware scaling". "Hardware scaling" works fast with "video
    smoothing" enabled and plays-back the video without frame-dropping.
    "Video smoothing" is the main reason why most of the Flash
    Video players cannot play-back smoothly HD content.
    Also make sure that the video plays-back in the original
    dimensions of the video and not scaled to any other dimensions (eg,
    don't scale a 4:3 video to 16:9 or to "fit to screen").
    Also, the resize factor of the video in full-screen mode
    should be an integer, absolutely dividable by 4:3 or 16:9 or
    whatever the original scale of the video is, so the video in
    full-screen is not stretched to a different scale factor (eg scaled
    to 4.1 : 3), even by 1-2 pixels. This will be like doing real-tme
    video editing and it also results in frame-dropping.
    I know this info from our company's Flash Developer, so this
    is as far as my knowledge goes; I am unable to provide any other
    accurate technical information or code you may use. I am also
    making it clear that this info may or may not be 100% accurate, as
    I am not proficient in Flash and I may have not understood right
    some info passed to me by our Developer. You may use this info to
    make your own research on the matter.

  • Best settings for Flash playback on Website

    Hello,
    1. Whats the Best Settings for Quality and Fast loading for Video playback of Flash Video??
    Website features a :30 Second TV Commercial, takes too long for website to load. any Tips to get it to load FAST but have GREAT Looking Video
    Quality.
    Thanks a lot
    Joe

    Best thing is to use the Adobe Media Encoder bundled with Flash CS4. Play with the settings until you get the optimum settings and the import the .flv to the stage. Then publish the movie "best".
    James.
    http://www.toshiedo.com.au

Maybe you are looking for

  • Crystal Reports, SAP B1 - connect OINV, OPCH (A/R Invoice, A/P Invoice)

    What I need to do is to connect the two SAP B1 v9.0 tables listed above (A/P Invoice OINV, and A/R Invoice OPCH) in a Crystal report WITHOUT SQL.  How do you connect these tables?  Purpose of report is for sales commissions.  Existing customer report

  • Xalan and NetWeaver

    Hi everybody We are trying to deploy our application to NetWeaver 2004. Since our application needs Xalan 2.6, our test failed. Is there any way to use a different (newer) version of Xalan in NW? If this is not possible, is there any NW version that

  • Reverse CO Document

    Hello, We have an error when trying to bill an order via DP91 and itu2019s caused by a CO document that was posted against the u2018WBS elementu2019 for that sale order, the originating FI/CO document was processed via one of our interfaces which err

  • Exception handling for NULL?

    During the code... throw new AppException("Customer details are missing"); An exception was thrown, showing there was an error. But how do we handle it?

  • Printer not printing across whole page

    My printer is only printing across half a page. Like from the left to the right the color and black fades out and doesn't print at all. I have cleaned it 4-5 times. Taken out and put back all toner cartriges. All color cartriges are brand new. Bought