Simple Play Button Help

Hi, I'm really new to flash and I have just completed an animation.  I would like to add a play button at the beginning of the animation that plays the whole thing through.  My buttons name is playbutton_btn and all the animation starts on frame 2 (frame one is a blank frame in all layers but the actionscript on the button.)  here is the code I have so far (in the first frame of the animation.
stop();
playbutton_btn.addEventListener(MouseEvent.CLICK, playit);
function playit(event:MouseEvent):void {
    gotoAndPlay(2);
This is in the hope that it will stop when played and prompt the viewer with the play button screen and when clicked play the animation through to the finish.
I get the error:
1120: Access of undefined property playbutton_btn.
If anyone could give me a hand or point me in the right direction that would be great:).
Cheers.

Since the error you are getting isn't the error I would expect for what I am having you check anyways, I have a suspiscion that you need to go into your Flash Publish Settings and be sure to select AS3 as the actionscript version.  I suspect it is not currently so.

Similar Messages

  • Simple button help needed!

    I want to make a simple round button that glows when you
    mouse over it and depresses when you click it.
    Apparently to do this I need to use Filters to make the glow
    and bevels. But Filtersonly work on movie clips, buttons and text.
    So I make a circle and convert it into a button symbol
    (Btn1). Then I make another button symbol (Btn2) and use the first
    button symbol (Btn 1) on the Up Over and Down frames of Btn 2.
    Assorted Filters are applied to Btn 1 on the Up Over and Down
    frames to get the effects I want.
    I test the button (Btn2) using Enable Simple Buttons. It
    works perfectly - glows on mouse over and depresses on click. Then
    I try Test Movie -- and the button doesn't work!!!
    Not does it work when exported as a SWF file!!!
    I watched a tutorial video that came with my Flash Pro 8
    Hands-On-Training (HOT) book and he used pretty much the same
    technique -- except he only tested his button with Enable Simple
    Buttons. I'll bet my house his didn't work with Test Movie either!
    The stupid thing, is I was just able to achieve exactly what
    I wanted very quickly using LiveMotion 2!
    What is wrong here? Why is it so impossible to create a glow
    button in Flash? Why has it been easy in Live Motion for years?
    All help appreciated!
    Thanks
    craig

    I thought the nesting button situation might be the problem
    BUT there is no other way to apply Filters to Up, Down, etc. Also,
    a freaking tutorial book described that as a valid method, but
    obviously it ain't.
    I tried using movieclips as well but basically had the same
    problem.
    I mentioned LiveMotion 2 because that ancient program can do
    easily what Flash Pro 8 seems incapable of.
    What is the logic behind not allowing Filters to be applied
    to simple graphics? It's absurd!
    There's got to be a way...

  • Hello i have the Ipod 4th gen, and i just dowloaded a song and it just skips the song when i try to play it, its like it dosent even exist! i tried redownloading it with the Icloud button but i dont have it. It just says PLAY. please help!

    Hello i have the Ipod 4th gen, and i just dowloaded a song and it just skips the song when i try to play it, its like it dosent even exist! i tried redownloading it with the Icloud button but i dont have it. It just says PLAY. please help!

    - Reset the iOS device. Nothing will be lost       
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Unsync/delete all music and resync/redownload
    To delete all music go to Settings>General>Usage>Storage>Music>Tap edit in upper right and then tap the minus sign by All Music
    - Reset all settings      
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                                
    iOS: How to back up                                                                                     
    - Restore to factory settings/new iOS device.             

  • My buttons arent working and my screen is just black and its playing music, help me!!

    my buttons arent working and my screen is just black and its playing music, help me!!

    Hello yung_jvyden,
    So your iPhone is on or it wouldn't be playing music yet you can't seem to "wake it up" as the buttons aren't responding.
    There's a section in this article for buttons not responding.
    If your iPhone, iPad, or iPod touch doesn't respond or doesn't turn on - Apple Support
    If your device doesn't respond when you press buttons
    Your device might not return to the Home screen when you press the Home button, wake from sleep when you press the Sleep/Wake button, slide to unlock or power off, or it might appear frozen. Try these steps:
    Restart your device.
    If it still doesn't respond, or if it doesn't turn back on, reset your device.
    Note it links to 
    Restart or reset your iPhone, iPad, or iPod touch - Apple Support
    Thank you for using Apple Support Communities.
    Nubz

  • Is it possible to add audio with a simple play/pause button and also have a clickTag attached to the full stage?

    my client wants to add audio to their banner ad (which always has a full stage clickTAG set). I'm trying to figure out a way to just use a simple play/pause button and attach a toggle action to it. Problem is when the user clicks it's going to the clickTAG URL that's attached to the full stage. Is there any way around this?
    Please advise and thank you in advance.

    I have the same issue. It is pretty annoying but at least the audio remains within the motion project. It just isn't accessible it seems as an FCPX template. So what I'm doing is this:
    I still use the video within FCPX's generator section so that you can edit the parameters as you need to
    For the audio, open the project in motion then under Share, click 'Export Audio'. Select 'CAF' format and save to your hard disk
    I then import the audio file into an event I set up specifically for this purpose (per BenB's suggestion).
    When I need it, I then insert the generator from the generators section and then attach the audio file below the primary story line for the audio track
    It isn't pretty but it works.

  • Since yesterday, when I push the play button, that automatically  activates the pause putton. Result : I cannot watch nor listen anithing. Please help me ¡

    since yesterday, whwn I push the play button, that automatically activates the pause button. Please  help me¡

    The play button in which App?
    Have you tried restarting or resetting your iPad?
    Restart iPad: Press and hold the Sleep/Wake button until the red slider appears. Slide your finger across the slider to turn off iPad. To turn iPad back on, press and hold the Sleep/Wake until the Apple logo appears.
    Reset iPad: Press and hold the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears. Ignore the "Slide to power off".

  • QT movie play button doesn't work??? Help please...

    I'm using iweb08 and publishing with easy iweb publisher. One of the pages has a QT movie (720x 480) that ONLY plays the movie when I double click on it. It does not play when I hit the Play button >
    But when I upload a smaller version of the same QT at 320x240 it works fine without having to double click. Can it not handle the larger movie? I would had to upload the smaller size because it is too small. Please help and thanks to anyone who responds.

    What is the URL of your site so we can examine it first hand?
    OT

  • I inserted a HTML5 video in page, when I test it in a Browser, I see the poster image and controls, But when I click play button the video goes white, slider moves like its playing, but just white picture. There was no audio included in video. Please help

    I inserted a HTML5 video in page, when I test it in a Browser, I see the poster image and controls, But when I click play button the video goes white, slider moves like its playing, but just white picture. There was no audio included in video. Please help

    Without a link, it's anybody's guess.
    It could be a problem the video rendering itself.  Which software did you use?
    Did you export to the 3 file types -- MP4, OGG and WEBM to support all browsers?
    Does your web server support those 3 MIME file types?
    Nancy O.

  • Please help, 3D animation play button Java Script

    The U3D file embedded into the PDF contains 3 procedure animations
    I would like to add a play button for each procedure.
    But I do not see the Animation Objects in the model tree of the pdf and I do not know how to connect to these animations
    with JavaScript.
    I have tried with no luck:
    var _anim = scene.animations.getByIndex(0);
    scene.activateAnimation(_anim);
    _anim.currentTime = 0;
    runtime.play();
    Please show me how this is done with Java Script on a button.
    Thank you

    If you're controlling the 3D animation from a button on the PDF page you need to talk to the correct API.
    The easiest way to do it is to embed a function into the 3D annotation (using a .js text file) then call that function from your button.
    e.g. in the 3D script, use this:
    function playAnimation(i) {
    var _anim = scene.animations.getByIndex(i);
    scene.activateAnimation(_anim);
    _anim.currentTime = 0;
    runtime.play();
    Then on your button, use this:
    getAnnots3D(pageNum)[0].context3D.playAnimation(0);
    then the same for (1) and (2) on your other buttons.

  • When I try to access something with Adobe Flash, I have to click on the "f" which turns into a "play" button. I do not need to do this step in Safari. Help.

    Is there something blocking Adobe Flash which causes me to have to hit the play button every time I want to access a page using Flash?

    you can just go into the firefox addons manager and disable it or remove it there in case you no longer need it: [[Disable or remove Add-ons]]

  • I just downloaded Yosemite OS for mac and Premier pro play buttons don't work in the Program, Source and timeline and no audio HELP?

    Yosemite OS seem so not allow me to use premier pro. Specifically the play buttons don't work in the source, program and Timeline. Any one have this problem?

    Hey,
    I´ve got the same problem, that since i upgrade to Yosemite, my R3D Video Files are not longer supported, sometimes it works but most of time it says "not supported File format".. Hope Adobe will fix it.
    Play button works. Try installing the latest Java 8 update. This might fix some problems.

  • Using "back" button breaks sample "play" buttons

    In iTunes 10.2.2 Mac, the sample "play" buttons in the iTunes Store stop working if you hit the "back" button to return to previous pages (unless you force them to reload).
    Is there a simple way to submit a minor bug report like this, when I otherwise do not really need specific help or a response?

    It seems that in IE9 if you switch to compatibility mode, the problem goes away. Switch back it reappears.
    I have a website about to be released that has this problem throughout. Please let me know if there is a solution.
    Thanks,
    Dan

  • (CS3) Play Button vs. Enter Button on Remote Control

    Hello all-
    I'm hoping the answer to this is something so obvious I couldn't help but overlook it. However, after lots of searching I still can't figure it out. Any input would be great. Thanks!
    I have an Encore project with 1 menu, containing 1 button, pointing to 1 timeline. Very simple in nature. However, both in the virtual preview and on an authored disc, the remote control does not work as hoped. I find that I have to use the 'enter' button (usually between the up,down,left,right arrows) in order to play the track. The 'play' button does not work for some reason. I have the button set to auto activate so that it's selected upon the menu loading. But whether this is the case or not seems to have no bearing on the result.
    I unfortunately have to dumb it down as much as possible because some of the people seeing this won't think to hit 'enter'.
    Any help would be terrific. Thanks!
    Justin

    On menus, the Enter button is what is supposed to be pressed to activate a button. However, some players will also accept the Play button being pressed to activate the button. But not all players will activate a button when you press Play.
    For instance, I have a Sony that will accept Play to activate a button. But my Pioneer will not. And my Sony PS3 will not.

  • Pause/Play button on toolbar

    When running a captivate slide show, and using the pause/play
    button on the customisable toolbar, we have noticed that when
    clicked this button does not pause any audio that may be currently
    running on the slide, therefore making the facility partly
    nonsensical. Is this a feature of Captivate 3.0, or is it just me
    not embedding the sound in the correct place????
    Please help.

    Hi Kate,
    My instincts tell me that you are experiencing a change in
    focus, but I'll tell you what I mean, and you can decide if that
    may be the problem. Assuming you are publishing to SWF/HTM output
    ... when your movie starts, what is actually happening is, you are
    opening a HTML document, and the movie (the SWF document) is
    "called" (commanded to open) by that (HTM) document. Therefore,
    when it is first begun, the computer's "focus" is on the HTM, not
    the SWF contained in it.
    Keeping that in mind, the first time you click (an object in
    the movie itself), the Windows operating system must change the
    focus
    from the HTM document
    to the SWF movie, which accounts for the first "click". The
    second time you click, the SWF document makes the correct
    assumption that the "click" is meant to be interpreted as a command
    intended for the object in the SWF movie.
    This behavior may vary, depending on the browser being used,
    and perhaps even the operating system (I'm guessing here, because I
    don't know how Windows Vista might treat the action of clicking in
    a browser window as opposed to the way Windows XP handles the same
    command-action).
    Another possible cause might be the mouse itself, or its
    software. You can check this easily enough, by seeing if the
    failure to function always occurs on the same machine, and if it
    changes when you install a different pointing device. I know from
    personal experience that sometimes I have to click really firmly,
    and sometimes not. I use a battery powered optical mouse, and its
    behavior is subject to change as the batteries get older.
    I don't know if there is any help in my comments ... I
    certainly hope so. Let us know, because sometimes when one member
    "hits a wall" in offering solutions, another member "sees a light"
    and a difficut problem ends up having a simple solution.
    All the best,
    Larry

  • Function of the PLAY button versus the ENTER button

    Hello gang,
    I had a quick DVD / DVDSP related question that I've been trying to get a definitive answer for, and I've had great luck and some very helpful responses over in the Final Cut forum so I figured I'd give it a shot.
    Anyways, I'm editing some video and authoring a DVD for a group who intend to make an instructional DVD. It's divided into about five chapters and each one begins with some sort of voiceover and text/graphics. In the opening segment of the DVD, there is a voiceover that explains the way to navigate through the DVD and select chapters, etc. etc. The voiceover has already been written and recorded, but I have some concerns about the power they have designated for the "Play" button. Here is an excerpt:
    "We use the PLAY button in a couple of ways: to select and play an item that is currently highlighted in a list of items on the screen..."
    and also:
    "Almost all DVD remotes have a set of buttons that are arranged like a set of arrows (or triangles) pointing to the top, bottom, right and left of the remote control. These keys are used to move the selection pointer on menus presented on the screen. When an item is selected, it is highlighted to distinguish it from the other items in the list that are not selected. Once you have moved the selection point to the item you want, push the PLAY button to actually select and begin playback on that item."
    Now here is my concern– I was under the impression that the "Enter" button was typically used to select menu items, etc. I decided to test this on some commercial DVDs I had lying around, and it seems that the Play button does in fact work to select items. I had always assumed it was assigned just one specific role, for example playing the main title on a DVD.
    I looked it up in the DVDSP manual and this is all I found:
    "A button is selected when the viewer navigates to
    it. Only one button at a time can be in the selected state. The selected button becomes
    activated when the viewer presses the remote control’s Enter button. Depending on the
    button type, highlights or layers are used to indicate each button’s state."
    I couldn't find anything regarding the function of the Play button. I suppose my question is this: do these instructions sound okay? Are they universal? Can the Play button be used to select menu items on EVERY DVD player? I am only really stressing about this because this DVD is being targeted towards senior citizens, many of whom have extremely limited knowledge of DVD technology. I'd like to come up with the most universal, simple, and solid instructions for navigation through the DVD.
    Okay, thank you in advance. I appreciate any comments or advice you might be able to offer.
    PowerBook G4   Mac OS X (10.4.7)  

    Ah yes, Jake, but which UOP? Surely, you've seen me address this issue of there not being a Play UOP before?
    The project can be set up for Play to be Enter on a very high percentage of players, but it would be good with Christopher’s project to get the announcer to add "and Enter".
    The way it works is make sure that the "Still Off" user Op in DVD Studio Pro's Advanced Playback Controls is unchecked. DVD SP started making this default UOP denial in recent versions, which will mess up the Play remote key on a lot of players, including the Apple DVD player.
    And it would be good to take notes here Jake, since you do some Scenarist authoring. This Play remote key could bite you big time, if you're not careful (I've rescued two good authors who had trouble with what I'm about to describe; luckily, we caught it before it was submitted for replication).
    Still Off, which is what a lot of DVD player manufacturers map their play remote key if they don't directly map it to "Enter", when the DVD player is in infinite pause mode, i.e., the state a cell/program is in when displaying a still menu, causes the menu PGC to execute it's post command area (leave the PGCs still phase).
    A check of DVD SP's abstraction layer will show that navigation out of the post command area of all DVD SP's menu PGCs is determined by the current value of SPRM 8, the last selected/activated button. All of DVD SP's menu domain buttons are "LinkTail PGC" commands, so the effect of Operating Play is identical to activating a button with Enter, in the case of Still Off being the trigger.
    This can be verified by setting a button command in AfterEdit to jump somewhere directly which is different location than it was set in DVD SP. With the Still Off user op enabled, hit Play on the selected button and find that the original command in DVD SP will execute. But hit enter on the same button, and navigation will go to your test location. This is how it works on many players (you can check it out right in the Apple player).
    So it's good for spec based authors to use LinkTail PGC, which most do, on their menu button commands for still menus (in single PGCs), just in case users use Play instead of Enter in those players; or navigation can get pretty wacky! Or, if you don’t use LinkTail for the menus’ button commands, then it would be good to at least provide for code in the PGCs post command area to receive navigation in this case. But LinkTail has lots of other advantages, which is why it's used so much.
    With motion menus, Most players map the play remote key to "Enter", well, except the Apple DVD player. It turns the Play remote key to a Pause key during motion, so Christopher’s viewers would definitely be out of luck there.
    All that said, the play remote key should not be depended on as the primary for bullet-proof navigation, as you said.
    Take care,
    Trai

Maybe you are looking for

  • Does calling class methods from bean and JSP cause collision?

    Hi, Please look at the class below: public class X // no member variable public X() {} // pay attention to static keyword public static int getY() Think a bean (say BeanZ) that make calls to getY() method without initializing the class X (like this:

  • Wrong number of photos

    I have 1700 photos exactly in my iPhoto, but when I sync, it says that it's copying 1765. The Photos app says 1700, but the settings app says 1700. I deleted them all from the phone, and it said 0 photos in all places like normal. But when I synced a

  • Date in service - AP to FA Mass addition

    Hi In R12, when we ran the AP to FA Mass addition and querying mass addition in FA, system is showing new assets with date in service as the date on which Mass addition was run. Is that the intended functionality..? Can we change the date in service

  • Masking out images. Is there a better way

    Could someone help me out and maybe point me towards a better way to mask. png file is way too big. I have been using the mask layer option to create my own mask around a jpg image by drawing around it on the mask layer. There has to be a fetter and

  • IPod nano to Windows

    Hi, My computer was erased and all my music was wiped out with it. However my nano has all my music on it. I called and I got an email telling me how to solve this. The only problem is on these steps: Locate the iPod on the new computer: Mac OS X: On