Some button-linking problems

Ok, so this is probably really elementary stuff that I'm about to question. I'm trying to make an interactive video player where you have a choice of 3 buttons and each button links to a different frame that has a video player embedded in it. Once on of the frames are brought up, I have a button to take you back to the main screen. However, after clicking back to the main screen, I'm running into the following output error:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at memorialsample_fla::MainTimeline/frame1()[memorialsample_fla.MainTimeline::frame1:4]
    at flash.display::MovieClip/gotoAndPlay()
    at memorialsample_fla::MainTimeline/gotoMain2()[memorialsample_fla.MainTimeline::frame2:11]
Once the above output error occurs, the buttons are no longer active and no longer work.
Here's a look at my code that I have going on:
Frame 1:
stop()
//Link to Frame 2
btn_MJ_Main.addEventListener(MouseEvent.CLICK, gotoMJ)
    function gotoMJ (e:MouseEvent){
        //btn_Beach_Main.removeEventListener(MouseEvent.CLICK, gotoBeach)
        //btn_MJ_Main.removeEventListener(MouseEvent.CLICK, gotoMJ)
        btn_Cloud_Main.removeEventListener(MouseEvent.CLICK, gotoCloud)
        gotoAndPlay(2)
//Link to Frame 3
btn_Beach_Main.addEventListener(MouseEvent.CLICK, gotoBeach)
    function gotoBeach (e:MouseEvent){
        btn_Beach_Main.removeEventListener(MouseEvent.CLICK, gotoBeach)
        //btn_MJ_Main.removeEventListener(MouseEvent.CLICK, gotoMJ)
        //btn_Cloud_Main.removeEventListener(MouseEvent.CLICK, gotoCloud)
        gotoAndPlay(3)
//Link to Frame 4
btn_Cloud_Main.addEventListener(MouseEvent.CLICK, gotoCloud)
    function gotoCloud (e:MouseEvent){
        //btn_Beach_Main.removeEventListener(MouseEvent.CLICK, gotoBeach)
        //btn_MJ_Main.removeEventListener(MouseEvent.CLICK, gotoMJ)
        btn_Cloud_Main.removeEventListener(MouseEvent.CLICK, gotoCloud)
        gotoAndPlay(4)
Frame 2:
stop()
//Linking back to Frame 1
btn_Return.addEventListener(MouseEvent.CLICK, gotoMain2)
    function gotoMain2 (e:MouseEvent){
        btn_Return.removeEventListener(MouseEvent.CLICK, gotoMain2)
            gotoAndPlay(1)
Frame 3:
stop()
//Linking back to Frame 1
btn_Return.addEventListener(MouseEvent.CLICK, gotoMain3)
    function gotoMain3 (e:MouseEvent){
        btn_Return.removeEventListener(MouseEvent.CLICK, gotoMain3)
            gotoAndPlay(1)
Frame 4:
stop()
//Linking back to Frame 1
btn_Return.addEventListener(MouseEvent.CLICK, gotoMain4)
    function gotoMain4 (e:MouseEvent){
        btn_Return.removeEventListener(MouseEvent.CLICK, gotoMain4)
            gotoAndPlay(5)
If you want to see the actual SWF for a better visual at what I'm doing, you can see it here:
http://www.denevi.com/services.html/memorial_tribute.html
Scroll down to the Flash object, it says "Memorial Tribute Samples"
Bonus question while I'm here:
I have the videos streaming, and am not sure how I could get the FLV videos to stop playing when I click the flash's "Return to Samples" button. Right now, the users would have to pause the video if they don't want it to play in the background as they go back to the first frame.
Any help would be appreciated!

Thanks for the response.
Actually, I came to the bottom of this and found that for some reason, Flash CS4's acting a little strange. I have another computer at my disposal with CS3 loaded on it. So I back-saved my project, loaded it in CS3, exported, and all of the buttons worked without any errors. So I'm not quite sure why my CS4 didn't like the code.
And thanks with the FLV stop code, I got that figured out and works. Thanks,
-Billy

Similar Messages

  • Button Link Problems .swf

    Hello. I am using Adobe Flash CS6. I am having trouble making 2 separate links for 2 buttons. I have been unsuccessful. I made 2 different buttons and thought i made 2 separate links. But, When both buttons are clicked, they link to the same page. I want them to go to separate pages.... Any suggestions? Here is a link to the file... Maybe someone could pin point the problem?

    I know this is probably terrible but...
    addEventListener(MouseEvent.CLICK,
    fl_ClickToGoToWebPage_4);
    function fl_ClickToGoToWebPage_4(event:MouseEvent):void
         navigateToURL(new
    URLRequest("http://www.k1llsquad.com"), "_blank");
    addEventListener(MouseEvent.CLICK,
    fl_ClickToGoToWebPage_5);
    function fl_ClickToGoToWebPage_5(event:MouseEvent):void
         navigateToURL(new
    URLRequest("http://www.k1llsquadmoh.enjin.com"), "_blank");

  • Why can't I get some buttons to work on websites? Need to enable something?

    Recently, I am not able to use certain portions of 3 websites that I used to be able to use. I can get to the pages, and some buttons/links work within pages, but when I try to click on some buttons on some pages, nothing happens at all. The computer is not frozen, I can do other things on the page. Example #1 - I was trying to access my photo albums at Snapfish.com but I cannot access my albums, or select albums to which I will download photos. #2. I was trying to create a gmail e-mail address. When I tried I had a message about enabling something. Didn't know what it meant or how to do that. Any ideas on what to adjust on my computer so that I can do what I used to be able to do?
    PowerBook G4 Titanium   Mac OS X (10.2.x)   768 MB Ram

    Which browser are you using? Do you have Enable Java checked in it's preferences? When you get a message it's a good idea to write down exactly what it says rather than dismiss it and wonder later what it said about something.

  • Hello My ipads Power button is not working properly when I press it once it shows option to turn off instead of locking and some other display problems like it suddenly lockes down or display disappears ...Please help. Thank You

    Hello My ipads Power button is not working properly when I press it once it shows option to turn off instead of locking and some other display problems like it suddenly lockes down or display disappears ...Please help. Thank You

    Thanks for that information!
    I'm sure I will be calling AppleCare, but the problem is, they charge for the phone calls don't they? Because I don't have money to be spending to be on the phone with a support service.
    In other things, it seemed like the only time my MacBook was working was when I had Snow Leopard without the 10.6.8 update download that was supposed to be done to prepare for OS X Lion.
    When I look at the information of my HD it says that I have 10.6.8 but that was the install that it claimed to have failed and caused me to restart resulting in all of the repeated problems.
    Also, because my computer is currently down, and I've lost all files how would that effect the use of my iPhone? Because if it doesn't get fixed by the time OS 5 is released, how would I be able to upgrade?!

  • Some buttons and links stopped to work

    Suddenly some buttons in webpages which I had been using every day, stopped to work today! There was no change in the system (mac os x 10.4.5) neither in the iBook and Safari. Anyone here already experienced this problem ?

    Have you managed to resolve this webs66? I had the exact same thing happen to me. On my mac, I have no way of accessing the Apple TV. There is no software on my machine and it is not being recognized by iTunes. When connected to my TV it simply shows a graphic that I need to connect it to iTunes. Is the only way to have it recognized by connecting a microUSB to USB? Will HDMI not work?

  • Problem with defaultCommand - buttons, links, etc not working

    Hi,
    I've used the defaultCommand attribute on a number of pages in an application, and have noticed a serious problem :
    After hitting enter, if no navigation occurs (i.e. only PPR), nothing on the page works anymore - no buttons, links, etc.
    Is this a known issue? If so, is there a way to fix this?
    Also, if an inputTextField has a f:validateLongRange tag, and the user enters an invalid value (i.e. text, or something out of range), when enter is pressed the entire page disappears, and I'm left with only the validator's error message. I know I could work around this by performing my own validation, but that is less than ideal.
    Any help would be greatly appreciated. Thanks
    Message was edited by:
    lturner

    Hi,
    it does reproduce and I filed a bug. The work around is not to use the "defaultCommand" property as it works when e.g clicking onto the button
    Frank

  • I using mozilla firefox so long times but it just get problem today because i can't type in english words but i can type in thai and some buttons is not english but it's other alphbets that i can't read and it's happening with yahoo and friendster and not

    I using mozilla firefox so long times but it just get problem today because i can't type in english words but i can type in thai and some buttons is not english but it's other alphbets that i can't read and it's happening with yahoo and friendster and not sure for other website
    == today ==
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)

    Same problem with the mouse, but with the mouse I can leave the cursor in place in the text field and move to the keyboard to type. As long as the cursor is in the field it stays editable.
    The problem with the pen is it's in my hand all of the time. I just flip it up under my thumb against my palm to type. So, as soon as I move the pen, the field goes away and I can't type in it. Hoping this is making sense.
    My tablet does have the touch function too, and I just found out I can use my finger to tap in the text field, then type. I guess that'll be my solution since I prefer not to leave a mouse set up on this iMac.
    I'm thinking now that this is just a problem with the pen itself, and nothing to do with iPhoto. So glad to have this figured out! I really like iPhoto '11! So much easier for me, a simple P&S gal, than Aperture 3. I use iPhoto Library Manager too and love it!
    Thanks so much! Debbie

  • Button Link Transitions with Audio?

    Ive got a question on what can be used as a Button Transition. I have a 10 sec. AV in PP2, that I want to use. In general, no problems. Ive Exported the Video to DV-AVI (silent), and it works beautifully. I only have to do a blend from the Menu for the head and then a still from the Timeline at the tail. No biggie. What I am having problems with is getting an SFX Audio file into the PP2 Sequence for this Transition. So far, I am having problems. I tried to make a Timeline for this AVI with an AC3 Audio, but Encore2 would not allow a link to it, via the Pickwhip. I tried to Import several variations of muxed files, but kept getting errors with the number of channels on Import. Then, I did a muxed MPEG file, and got my first big "Crash" of Encore2. When I linked to the M2v, I got something about Abbie Normal Condition. Wasnt he the founder of the Yippies back in the 60s, along with poet, Allen Ginsberg? The error (really An Abnormal Condition... Please try to Save... ) came up and I could not even exit from Encore2. Had to finally use TaskManager to kill the Process. This was a first for me after all of these years. Lesson - do not use the M2v as a Button Transition!
    Now, Im certain that there are possibilities that I have not tried, but before I beat what could be a dead horse, I wanted to find out one thing: can I even have Audio in a Button Transition?
    I have total control over my Asset, so I can engage in any workaround necessary. If anyone has any info (Help/Manual do not go deeply into specifics on Button Transitions, and even Jeffs Book, Focal Easy Guide... doesnt mention them, as I can find.), Id greatly appreciate it. Same for any ideas on using Audio for these. In my case, its a bit of an electronic whoosh with a long gong tone, and moves left to right and rear to front to rear (in the 5.1 version). I do not need to do 5.1, as stereo, panned left to right would work fine too.
    Appreciate the direction, thoughts and ideas,
    Hunt

    Jbowden,
    Thanks for the simple little test. I just linked my existing SFX AC3 to the Main Menu's Audio and it worked fine. The pan/fade of the 5.1 was intact and worked in Preview.
    I Exported the Button Transition test as a DV-AVI/PCM WAV from PP2, and Imported as a Timeline into Encore2. Tested and it played fine, but there was just the left-right pan, as expected. Linked my Button #1 to the AVI, as it would not link to the Timeline (as before), and went to Preview - "An Abnormal Condition... Save... " happened again. It is obviously not just the M2v, but the AVI, as well.
    Back to square one in my tests. I've been working with a preliminary, test Project in Encore. It was used to create a DVD set for client review of most other aspects of the Project. It contained 4 Dynamic Links to AE, which were rendered out, plus 2 Menus a short lead-in AVI and some other Assets. Without any Button Transitions, it previewed and burned perfectly.
    What I am going to do now is create a fresh Encore2 Project. Initially, it will only have the Play First AVI, the two Menus (Main & Scene Selection) and then I'll work with just the Button Transitions - all other Assets will not be included. I want to eliminate any other possible problem from the mix.
    One thing that occurred to me was that this Project was a very full DVD. Though the Transcode is Automatic, I wonder if I am now adding too much to an already Transcoded Project. Rather than clear all Caches, and Revert to the unTranscoded state in this Project, I'll build, instead, from scratch. If that works, I'll just do the Button Transitions for the Scene Select Menu (4 Buttons/Links) and test again. If it still goes well, I'll add in the Rendered AE files and probably not use DL this time. Then, I'll Transcode and test to see if it all holds up. This method will not tell us exactly where the problem lies, if it works at all, but then when I have time, I can go back and clean Caches and Revert the Assets for a final test.
    To date, the motion-only Button Transitions worked fine. It was only when I have tried (several different schemes) to add Audio, that I have encountered the problem.
    Should have the preliminary test this AM, as the Project is very simple and starting over is not a big deal.
    One side observation that I have made is that after I had to use TaskManager to end the Encore2 Process the other day, it now takes Encore2 a few minutes to even get the Splash Screen up. This is new behavior. I also cannot shift focus to/from Encore2 (with PP2 open), by clicking on the icon in the Taskbar. Even Rt-clicking and choosing Restore does not Maximize it. Only by going to TaskManager and clicking on the Application does it Maximize. As this was my first Encore2 "Crash," I am not sure what might be happening there. If I can get this Project done, I'll probably do a Repair Installation of Encore2, to see if the new behavior subsides.
    Thanks for the input. Will be back with followups.
    Hunt

  • Flash Button Links

    I hope someone can help me with this weird problem. I've been
    using Flash for button links for a while but for some reason
    lately, I've been having this strange problem. When you type in the
    url for the site, the Flash buttons will work as far as the roll
    overs and such, but the links do not work. Yet, if you click on an
    html link, it will take you to that page and from then on, the
    Flash buttons will work just fine. I can't understand why this
    would be happening. Basically, the Flash links work fine unless you
    type in the url. What's happening? Here is the link to what I'm
    talking about. Try typing in the url first. You will see that the
    Flash buttons don't take you to the linked webpage. Then try
    clicking on an html link, and then a Flash link from there. Thanks
    for the help!
    http://www.surecarehomehealth.com

    Okay, I've discovered that this only seems to happen if you
    type surecarehomehealth.com without the "
    http://www.". But why wouldn't it work with
    just typing "surecarehomehealth.com"?

  • TS3276 An email sent from my iMac has a button linked to a clip hosted on Vimeo. When received, the link functions on iMac and iPad, but opens a window of app icons on iPhone and iPod touch. Any ideas what's wrong?

    An email sent from my iMac has a button linked to a clip hosted on Vimeo. When received, the link functions on iMac and iPad, but opens a window of app icons on iPhone and iPod touch. Any ideas what's wrong?

    For anyone else reading this thread, it is worth knowing that sometimes an email is, or can be, corrupted thereby jamming the works. The solution above is good, but I just wanted to suggest another one.
    If the problem arises, go to an online mail access service, such as Mail2Web.com and login to you mail account there and delete the offending message.
    Problem solved.
    And George, as this is all entirely voluntary, whinging about no takers may not endear people to you. Besides which, a few minutes of searching on Google would have found you a number of solutions.

  • Button Link to Object Standard.

    Dear All.,
    Now I have a problem with button link to object stanbard (17 is Sale order object).
    I have to use button link and Editbox on the new form, then I set button link to this editbox and set LinkedObject=17 in screen painter. I have run this form i select Sale Order document Number on this Editbox and i click button link to sale order that show data following my selected.. but it can't not open sale order and alert message "You are not permitted to perform this action [Message 200-30]".. so how can i set permitted to perform this action. pls help me...
    Thanks,
    Sivhour.

    Hi Prasan,
    Authorizations are set in under the Administration  System Initialization  Authorization  General Authorization.
    Regards,
    Vítor Vieira

  • Can there be buttons/links on or in flash object?

    Hi, I have no idea how to ask this question properly. I am only designing this, not making it, so simple answers for me would be good, but also technical answers that I can pass on to the flash person.
    On my home page, I am going to have 3 images that switch out, each that need to have a "learn more >" link and a 1, 2, 3, and pause buttons.
    My question is whether or not these image buttons/links can be placed on or embedded in the flash object. I read this is not possible and that buttons or links have to be separate from flash. Ideally if I wanted to place a "go" button on top of my flash image, that would be great.
    However I have been told the only option is to make one side of this in photoshop where I have the buttons and then place that next to the flash image. My example of this would be the msn.com home page.
    If further descriptions are needed I can post an example.

    Your image hasn't loaded yet, so I'll describe what you should do.  Chances are you will only need one set of buttons to manage everything rather than creating a set for each image.
    If you want to convert each of these items into usable buttons, then select one of them, being sure that all its pieces are selected, then right click on it and select Convert to Symbol ( select it and in the toolbar choose Modify -> Convert to Symbol).
    In the interface that appears, select Button (you could also select MovieClip, but for now, select Button) and give it a name that relates to its functionality in some way, just so it is recognizable by its name in the library.  Click OK.
    Do that for all of the items you want to turn into buttons.  To make things easier to manage, you should place the buttons on their own layer in the timeline.
    If you are handing this over to someone who knows Flash, they should be able to deal with coding the buttons to function the way you want.

  • How to insert into 2 tables from the same page (with one button  link)

    Hi,
    I have the following 2 tables....
    Employees
    emp_id number not null
    name varchar2(30) not null
    email varchar2(50)
    hire_date date
    dept_id number
    PK = emp_id
    FK = dept_id
    Notes
    note_id number not null
    added_on date not null
    added_by varchar2(30) not null
    note varchar2(4000)
    emp_id number not null
    PK = note_id
    FK = emp_id
    I want to do an insert into both tables via the application and also via the same page (with one button link). I have made a form to add an employee with an add button - adding an employee is no problem.
    Now, on the same page, I have added a html text area in another region, where the user can write a note. But how do I get the note to insert into the Notes table when the user clicks the add button?
    In other words, when the user clicks 'add', the employee information should be inserted into the Employees table and the note should be inserted into the Notes table.
    How do I go about doing this?
    Thanks.

    Hi,
    These are my After Submit Processes...
    After Submit
    30     Process Row of NOTES     Automatic Row Processing (DML)     Unconditional
    30     Process Row of EMPLOYEES     Automatic Row Processing (DML)     Unconditional
    40     reset page     Clear Cache for all Items on Pages (PageID,PageID,PageID)     Unconditional
    40     reset page     Clear Cache for all Items on Pages (PageID,PageID,PageID)     Unconditional
    40     reset page     Clear Cache for all Items on Pages (PageID,PageID,PageID)     Unconditional
    40     reset page     Clear Cache for all Items on Pages (PageID,PageID,PageID)     Unconditional
    50     Insert into Tables     PL/SQL anonymous block     Conditional
    My pl/sql code is the same as posted earlier.
    Upon inserting data into the forms and clicking the add button, I get this error...
    ORA-06550: line 1, column 102: PL/SQL: ORA-00904: "NOTES": invalid identifier ORA-06550: line 1, column 7: PL/SQL: SQL Statement ignored
         Error      Unable to process row of table EMPLOYEES.
    Is there something wrong with the pl/sql code or is it something else?

  • Link checker does not seem to see some broken links-why?

    Hi,
    I have a problem with the link checker, it does not seem to report some broken links. Here is the context in which it happens.
    My site root folder contains (subset) :
    index.php
    Templates/child_userarea.dwt
    user-area/downloads.html
    (The file downloads.html is based on child_userarea.dwt.)
    In the template, I have <a href="../../index.php" title="Home page">Home</a>.
    In downloads.html, this link appears as <a href="file:///M|/Website/index.php" title="Home page">Home</a>.
    According to this post http://forums.adobe.com/message/934203#934203 by Murray, this is because Dreamweaver (CS4 in my case) thinks that index.php is outside the site root folder. I understand it thinks so because indeed ../../index.php points to the folder parent of the root folder. What I don't get is why doesn't the link checker report that ../../index.php does not exist? (And I'm sure it doesn't, there is no file called index.php outside the root folder.)
    Emilie

    That's the thing, it is correct! I have checked many times. Here is what is says:
    and M:\Website\CERC15\ does exist.
    For the time being, I have corrected the paths in the template, so for that particular file, it is now ok. However, I have no idea whether other paths are wrong since I am not sure any longer whether they are spotted by the link checker. I searched for other instances of file:///M|/Website and there is none left.
    I suspect this is just one more problem due to another problem non-identified so far (see e.g.http://forums.adobe.com/thread/506149?tstart=30). Since I renamed a big batch of files, I have had problems after problems: the templates disappearing (see that other post); I also lost all the files in 4 other folders (files for download linked to the pages through <a> tags); and Dreamweaver has become particularly slow (but this seems to have been fixed with erasing the cache and the personal preferences).
    I'd like to start from scratch again (and why not reinstall Dreamweaver), but I don't know how to recreate the site from zero without loosing anything (e.g. links to templates).

  • Some buttons on the right hand screen of my ipod are not working please help me!! what do i do, some buttons on the right hand screen of my ipod are not working please help me!! what do i do

    some buttons on the right hand of my ipod touch screen are not working? could somebody help me i have reset restored and everything has this happened to anyone else?

    If you restored to factory settings/new iPod and still have the problem that indicates a hardware problem.
    Make an appointment at the Genius Bar of an Apple store..
    Apple Retail Store - Genius Bar

Maybe you are looking for

  • HP Officejet Pro 8610 - Unable to print windows 8.1

    Hi , I've recently purchased HP Officejet Pro 8610 and unable to print from windows. I am running 64bit Windows 8.1 I can print from Web via email I can print using the HP AiO Remote app in windows. This doesnt have full functionality and is also inc

  • How do I reinstall system software on mac mini

    My nephew managed to delete the contents of the system folder on my mac mini. I attempted to reinstall by inserting the installation disk but I just get a flashing mac/folder/question mark on the screen.  I tried holding down the C key and restarting

  • Edit/delete text in Preview

    How do I edit/delete PDF text in Preview?  I can get the handles around the text, but can do nothing with the text.  Text is a note added within the original PDF (not at the  margin).

  • Itunes installation, uninstallation

    just downloaded the most recent version of itunes, but upon installation i get a box saying "the feature you are trying to use is unavailable. click ok to try again, or enter an alternate path to a folder containing the installation package "itunes.m

  • Problems wiht instanceManager.addInstance() and signature fields

    I have a subform that contains two signature fields which I have set to not lock any field during signing. This subform has the ability to appear in the PDF as may times as needed.  The problem is that as soon as I click the button to add an instance