How do I make buttons within a movieclip play from a specific frame in scene 1?

Hi guys
I have a movie clip on the main timeline. This movieclip has buttons that I want to play different frames in scene 1.
At the moment, this is the code I'm using in scene 1.
learnclouds_mc.anna_btn.addEventListener(MouseEvent.CLICK, clickanna);
function clickanna(evtObj:MouseEvent){
gotoAndStop("annasstory", "Scene 1");
I'm getting the error below but have no idea what I should be doing.
TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at Work_Life_Flash_Stage_1_fla::MainTimeline/frame4()
    at flash.display::MovieClip/gotoAndStop()
    at Work_Life_Flash_Stage_1_fla::MainTimeline/golearnclouds()
i hope somebody can help me!

If you only have the one scene, you do not need to include the scene argument in the goto method call.
The 1009 error indicates that one of the objects being targeted by your code is out of scope.  This could mean that the object....
- is not in the display list
- doesn't have an instance name (or the instance name is mispelled)
- does not exist in the frame where that code is trying to talk to it
- is animated into place but is not assigned instance names in every keyframe for it
- is one of two or more consecutive keyframes of the same objects with no name assigned in the preceding frame(s).
If you go into your Publish Settings Flash section and select the option to Permit debugging, your error message should have a line number following the frame number which will help you isolate which object is involved.

Similar Messages

  • How can i make buttons in an article to go for other articles in Folios Builders for Ipad?

    I am trying to make buttons in an index, for goingo to other articles, but they never worked here. When a i put Go to Destination, and choose de Indd file, it does not work.
    Can i make a scrollable frame a button either? When i tryed, it did not work, not even the button, and the scrollable frame.
    Please, need some help here.

    WHat is navto? is navegate to...?   How can i do this?
    thanks a lot for your attenttiosn.
    Em 29 jan 2014 às 06:26, Bob Levine <[email protected]> escreveu:
    Re: How can i make buttons in an article to go for other articles in Folios Builders for Ipad?
    created by Bob Levine in Digital Publishing Suite - View the full discussion
    Go to destination is unsupported in DPS. You should be using go to url with a navto: command.
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/6064623#6064623
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/6064623#6064623
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/6064623#6064623. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Digital Publishing Suite at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • With acrobat 7, how do I make links (within the pdf) open in a new window-tab?

    With acrobat 7, how do I make links (within the pdf) open in a new window-tab?

    No love? From anyone?

  • HT1277 How do I make Mail remove junk/deleted messages from the server? The only option tht works for me now is the "Remove from server" button at Account Info Messages on server.

    How do I make Mail remove junk/deleted messages from the server? The only option tht works for me now is the "Remove from server" button at Account Info > Messages on server. What am I doing wrong?

    Mail > Preferences… > Accounts > Advanced > Remove copy from server after retrieving a message

  • I need to make button which made a spool from my oracle forms 2.1

    i need to make button which made a spool from my oracle forms 2.1
    how can i do that
    thanks alot

    Wow, you just said the same thing. First, when you say "Forms 2.1" do you mean "Developer 2.1", which included Forms 5.0? Regardless, are you aware that these Forms versions are about 15 or more years old?
    What you are trying to do is still unclear. Are you trying to output records to a text file formated to csv? If you need assistance, please provide some clarification as to what you are trying to accomplish.

  • HT4236 If I want to delete the photo library from my iPhone, how do I make sure I dont delete them from my desktop as well?

    If I want to delete the photo library from my iPhone, how do I make sure I dont delete them from my desktop as well?

    If you have copied them to your computer, then you will be OK.  Just deselect the photos when you sync.

  • How can I sync my ipod to the i tunes library in my computer? and how can I make sure each Cd I play automatically is saved onto the Ipod?

    How can I sync my ipod to the i tunes library in my computer? and how can I make sure each Cd I play is automatically saved onto the Ipod?
    My problem is that if I open I tunes, the Sync ipod option in the menue is grayed out, and so not available.
    This is starting to irritate me, so any help would be much appreciated.
    Thanks!

    I have the same problem. The Sync ipod option in the menue is grayed out, and so not available. HELP!

  • How to make Finder NOT to show files from a specific folder in "All My Files"?

    Hello!
    Can someone please advice how to make finder NOT to show files from a specific folder in "All My Files"? See the attach - I recently installed Civilization 5 from Steam and now I have a lot of unneeded files (*.log and *.ini) shown in  All My Files colder in Finder.
    I don't want to see them. Any advise?

    Using "All my Files" was very handy before all this rubbish popped up. =(

  • How do I move photos within a journal (ie from 1 page to another) in iPhoto

    How do I move photos within a journal (ie from 1 page to another) in iPhoto

    iPhoto is not very smart with multiple photos...
    I don't think you can move multiple photos and I suggest the following turnaround, using the "combine pages" option mentioned in my previous reply.
    Create a blank page that you move next to the page(s) where the photos you want to move are; 
    then move your pictures there one by one (use the new page as a temporary parking space),
    then merge this new page were you want to move the multiple pictures, using the "combine pages".
    This would save time if your journal has many pages, so you don't have to move each photo through multiple pages but just to the next/previous page.
    I just made this up but I tried it and it works!

  • My ipod nano 6 will only play one or two songs then I have to force the next song to play. It will start several songs before settling on one. This just started and I havent changed anything. How to I make it go back to playing songs continuously?

    My ipod nano 6 will only play one or two songs then I have to force the next song to play. It will then start several songs before settling on one. This just started and I havent changed anything. How to I make it go back to playing songs continuously?

    Then back it up and do a restore.  If that does not work and if you are still under warranty, call Apple tech support or take the iPod to your local Apple Store or an AASP.
    iPod Tutorials
    iPod Manuals
    iTunes & iPod Hints & Tips

  • HT4061 how can i make my iphone 4 work again from this activation lock thing?

    how can i make my iphone 4 work again from this activation lock thing?

    Can you provide more info.  iOS version?  Did you have iOS 7 BETA installed previously?  (if so, go to your developer account at developer.apple.com to fix things)
    Try this link...
    http://support.apple.com/kb/ts3424

  • How do I get my itunes songs to play from computer onto a playstation

    How do I get my itunes songs to play from my windows computer through the internet to my playstation PS3

    I'm not a windows person anymore but I've heard it said that you can point Windows Media Player at you iTunes library and you can set it up to serve up to the PS3.  Remember the the PS3 doesn't work with DRM encoded music.

  • How do I use a button within a movieclip to go to the root?

    Hi there, I am new to flash and AS3 and need some help
    getting my buttons to work.
    I made a script for the file that i am working with that has
    buttons located within 2 movieclips. I want that button to load and
    image into a UILoader (problemLoader_mc) that I placed on the stage
    on the main timeline (the timeline that contains WeekBar_mc). The
    problem is that I don't know how to get to the root of the file to
    start a new directory to tell my function to load the image i want.
    I have tried multiple approaches including:
    MovieClip(root).problemLoader_mc.source = problemArray[0]
    MovieClip(parent).problemLoader_mc.source = problemArray[0]
    root.problemLoader_mc.source = problemArray[0]
    parent.problemLoader_mc.source = problemArray[0]
    (root as MovieClip).problemLoader_mc.source = problemArray[0]
    If anyone can help me out with this, I would greatly
    appreciate it, I am banging my head against a wall at the moment.
    (Also, please excuse my vague descriptions, I am still learning the
    official terms.)
    Here is the code that I have written that pertains to this
    problem:

    I have a mental block for reasoning things out as far as
    assigning the listener to an object two mc's away from the main
    timeline while having the function in the main timeline, so I may
    play with that on my own for awhile. One thing you didn't do
    though, was to pay the same attention to the problemArray[0]
    assignment in that function, which I assume also lives in the root.
    But here's what I'd do for the moment.
    Take all that code except the array and plant it in the
    timeline where WEEK1btn lives, modifying it as follows....
    WEEK1_btn.addEventListener(MouseEvent.CLICK, pload1);
    function pload1(event:Event)
    MovieClip(this.parent.parent).problemLoader_mc.source =
    MovieClip(this.parent.parent).problemArray[0];
    I haven't utlized root myself yet, so I am not comfortable
    offering you a solution that attempts it.

  • Button within a movieclip

    Hi all,
    I am relatively new to Flash and am looking for help with a
    file I am working on.
    I have created a movieclip of an area which is placed so that
    only the outer right edge is on the stage. When the mouse hovers
    over the area, it moves onto the stage and reveals menu options. It
    works beautifully as an animation, and the menu options (which have
    over, down, and hit states) work when not part of this movieclip,
    but when I place instances of the buttons within the tweened
    movieclip, they no longer work.
    I have been scouring the web for answers and most people say
    that you cannot have a rollover within a rollover as the first
    rollover (in my case, the movieclip) is still active.
    I have seen this work with various files in flashden for
    example where the menu slides out from the side and then slides
    back in when you 'roll off' but while you are 'rolled on' you have
    access to menu options which all perform their own roll on/off
    movies.
    Hopefully there is a simple answer!
    Thanks in advance.
    J.

    I had to step out for awhile too.
    Well, I'll give you a jump start on the AS version of Tweens.
    Taking this approach will give you a better bit of sliding. With
    your gotoAndPlay(label), you'd end up having things probably still
    jumping around when it moves from the background to a button and
    vice-versa which would end up complicating the coding to avoid it.
    Below is a link to a small sample file I made for you that
    you can study/utilize... it was easier than trying to explain it in
    this forum. It shows you a better way of coding mouse interaction
    stuff as well (using on(...) attached to objects is bad practice...
    now outlawed in AS3).
    The way I did it has all of the code visible in the main
    timeline so you don't have to go digging and clicking on things to
    find code.
    The menu's background is a movieclip and the menu's button is
    a button. I only have one button, but the more the merrier as long
    as they all have their own code and instance names. Though for the
    rollOver you could assign them all as follows:
    btn1.onrollOver = btn2.onrollOver = btn3.onrollOver =
    function(){...}
    I forget during this edit (some hours later) if I have a
    rollOut for the button, but since/if the background surrounds it on
    all sides, you can probably eliminate it... only the background
    would need to have that aspect covered.
    There are two versions of the file linked below... a CS3
    version and a Flash 8 version.
    Sample Fla
    File - CS3
    Sample Fla
    File - Flash 8
    PS - my host's server is acting up today, so be
    patient.

  • How do I make sure my music will play when I burn a copy of a slide show?

    How do I make sure my music will be included when I burn a copy of a slide show.  I have made many many slide shows over the years with the music in perfect sync to the slides.  I recently updated my iMac to OS 7.  I did not want to do it because I heard it created issues with iPhoto. But because I had updated my iPhone and my iPad, and although I don't like OS 7 (the first time  I have not liked an upgrade)  I thought I could figure out how to solve problems/ differences.  Well, this has me stumped.  It plays perfectly on my iMac, but when I burned a copy to share with friends, the music did not burn or transfer.  Does anyone have any ideas why this does not work, and what I have to do to ensure that the music I selected and added to the slide show using the settings did not burn along with the iPhoto slide show?
    Mairzy

      I recently updated my iMac to OS 7
    What is really your MacOS X version? iOS 7 is the operating system for iPhone, iPad, iPod.
    But what versions are you using on your iMac? Have you upgraded to Mavericks, MacOS X 10.9.x and iPhoto 9.5.1, or are you using an earlier version?
    It plays perfectly on my iMac, but when I burned a copy to share with friends, the music did not burn or transfer.
    How did you export the slideshow and burn the DVD?
    To have the music play along with the slideshow, you need to export your Slideshow project as a video file - use the "Export" button below the Slideshow window and select a format.
    Check, if the exported video does play well and the audio is present.
    Then burn a video DVD using iDVD or Toast, or a similar program to burn video DVDs,  see:
      How to create a video-DVD? (Macs without iDVD): Apple Support Communities

Maybe you are looking for

  • Opens Webmail login page instead of sso login page after changing the webma

    Hi Gurus, I have setup notes webmail in portal which uses SSO. I login to portal and click the webmail link which opens the sso page for authentication(Cuz I have integrated the webmail to use SSO). I enter my username and password. Then it shows my

  • Menu bar no longer appears in full screen mode

    For some reason today my menu bar no longer shows up when I move the mouse to the top of the screen in any application.  I have tried restarting several times, opening and closing applications, taking apps in and out of full screen, ran disk utility.

  • Why is the free disk space incorrect?

    When i display info on the disk of my macbook air i get the following info showing that 395 Gbyte is available on a 250 Gbyte disk and none used. Obviously wrong. What can i do to correct this?

  • I-Mac G5 Video Adapter Question

    I have an I-Mac G5 17" and I am running Final Cut pro on it. I bought the video adapter so I can view the output on a television, but it only shows a mirror of my desktop. How do I make it only show the output which would be full screen of the video

  • Does anyone know what

    Does Anyone know what's Apple stand on LOGIC 8 issues. Have they acknowledge any bugs? are they working patches/fixes, do they have technical docs talking about the frezing, crashing, clicks and other issues? Logic 8 is my first LOGIC version and unf