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");

Similar Messages

  • 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

  • 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

  • "SWF Only" Tools Link Problems in iOS

    Does Adobe DPS handle page links well for iPad? I tried using the tools under "SWF Only" and found link problems thoughout the app. I'm wondering if those tools in DPS should only be used for apps being published for Android devices.

    Also try our learning resources page: http://forums.adobe.com/thread/994742.
    Neil

  • Link between swf files.

    Hello. I need to find a way to link multiple .swf files, so I may have a menu and after clicking a button go from there  to any swf file and back. But i need something that works in AS 2 and 3 because my files are in both ActionScripts. It shouldn't be a problem, right? Ive been looking for and trying different things but i can't do it.
    Hope someone can help
    Thanks.

    Also I have this code that works in AS3 but only for one button, when I try to make another one flash marks error. I cant link another button with another file.
    var loadedSWF:Loader = null;
    * Loads an SWF and adds it to container once complete
    * @param file The URL to the SWF to load
    * @param container The container to add the SWF to
    function loadSWF(file:String, container:MovieClip=null):void
        if(container == null) container = MovieClip(root);
        // removes the previously loaded SWF
        if(loadedSWF != null)
            if(loadedSWF.parent) loadedSWF.parent.removeChild(loadedSWF);
        var req:URLRequest = new URLRequest(file);
        loadedSWF = new Loader();
        loadedSWF.load(req);
        addChild(loadedSWF);
    mybutton.addEventListener(MouseEvent.CLICK, _click);
    function _click(e:MouseEvent):void
        loadSWF("myfile1.swf");

  • Dreamweaver simpleviewer multiple galleries button links help

    I am trying to do this:
    http://www.airtightinteractive.com/simpleviewer/examples/multiple_galleries/gallery1/index .html
    and here is another good example
    http://www.designhousestudios.co.uk/sampleportfoliogallery/sampleportfolio.html
    on my page here:
    http://peachtree-designs.com/
    This seems to be the code that pertains to the different slideshows (this is from the example webpage of how I want it to be):
    <div id="header" >
    <a href = "../gallery1/index.html">Gallery 1</a> | <a href = "../gallery2/index.html">Gallery 2</a>
    </div>
    <div id="flashcontent">SimpleViewer requires JavaScript and the Flash Player. <a href="http://www.macromedia.com/go/getflashplayer/">Get Flash.</a></div>
    <script type="text/javascript">
    The "Simple" Viewer slideshow gives instructions on how to simply embed  and I have done that successfully, a link is here in case you want to check it out:
    http://www.airtightinteractive.com/simpleviewer/examples/embedded/
    I have this working fine but would like to embed several galleries. The instruction page of "simple"viewer says to create multiple galleries you just need to:
    " ...To create multiple SimpleViewer galleries, make a copy of the whole SimpleViewer gallery folder for each gallery. Create your individual galleries as normal. You can now create a menu page that links to the index.html page in each sub-folder. Here is an example that contains a menu to navigate between 2 SimpleViewer galleries."
    My confusion lies in what the heck a menu page is. I have ignored this all together and tried looking at the code from pages that give examples. especially the page that gives a download of html.
    But I don't understand how to link the buttons in Dreamweaver to create different slideshows. I've put the four slideshow folders (print, illustration, logo, design) into my main HTML page. I assume the solution is to put the code mentioned above in for each slideshow/gallery .. reference each gallery by my folders names but then somehow make the DW buttons link to those folders.
    I'll keep poking around at this and see if I can figure it out, but any input, advice or help would be SO very appreciated. If you would speak in laymans terms I'd appreciate it, I know flash well but am new to dreamweaver and not very good at codeing though I manage.
    Thanks so much in advance, sorry this is so long winded.
    sharon

    I'm actually still having a problem with the individual galleries linking to the swf. Here's an explination and I'm attaching a snapshot of the file folder structure and the html's:
    Thanks for responding :) I feel like I'm almost there, been struggling with this for a week.
    my site is here:
    http://peachtree-designs.com/web.html
    I am going with a different approach, instead of trying to link the graphics from within each gallery folder I am instead placing each gallery html outside the individual gallery folders in my root folder ... then trying to link the main html page to each html gallery file, and have each gallery file link/see the swf galleries within the folders.
    I have made separate gallery folders for each gallery, print, logo ect is in it's separate folder in the root folder of my website.
    In the main root folder I have the index.html *plus* I've put each galleries html file *outside* it's folder but directly in the root folder, so the main html webpage file can link (with the buttons) to each gallery html in the root folder.
    Problem is getting the galleries html's to connect/link to the swf gallery in each gallery folder (within the root folder) (I'd put the html's directly in it's gallery folder but then the graphics links break). "gallery not found" is what I get and I'm not sure how to do this. In the code of each gallery html is this:
      <td valign="top"><script type="text/javascript">
    var fo = new SWFObject("illustrations/viewer.swf", "viewer", "500", "500", "8", "#c5bdb2");
    fo.write("flashcontent");    
        </script></td>
    so the gallery html's in the root folder *should* be directed to each swf in it's gallery folder: illustrations/viewer.swf .. print/viewer.swf ... etc ... but it's not working.
    I'm going to try to just attach my whole site in case someone can take a look and tell me what's wrong. It's large but I'm desperate and it's hard to explain.

  • Button linking to PDF

    standard convention to link to a specific page of a PDF
    document is to do this:
    http://www.mydomain.com/myPDF.pdf#page=7
    i apply this to the 'open url/file' in the button properties
    "on success/user clicks button", but all that happens is the PDF
    opens to page 1. never to the appropriate page in the document.
    any ideas as to what could cause this?

    sorry -- i have a captivate output file (SWF) residing within
    a Captivateplayer, which resides on our LAN. in the SWF are a
    series of buttons that all link to unique pages within on PDF,
    which resides on our intranet.
    i fixed one problem. turns out somebody uploaded a recent
    edition of the PDF complete with a SPACE in the name. fixed that up
    and now i've got a little bit closer to fixing the issue.
    now, when clicking one of the buttons in the SWF, the PDF
    will open to the appropriate page. GREAT! but when i close the PDF
    (or extra browser session), and click a DIFFERENT button that links
    to a different page in the PDF, the same previous page opens...as
    if it's CACHED. thing is, to rule out this being an IE
    cache/history thing, i forced adobe to open the file itself and to
    not integrate with the internet explorer. ...and the same thing
    happened.
    what could cause this?

  • 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

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

  • Embedding Button symbol from swf

    Hi,
    I am embedding a Button Symbol into Flex from from a swf. The Button inside the swf has an up and over state. Now I embed the symbol into an image in Flex. The image is in one of my states.
    All works fine initially  in Flex as far as the up over state. Now the  The problem is when I go back to the base state and then back to the state with the embedded swf symbol.....it initializes still in the over state, until I mouse over then mouse out and now its in the Up state.   What could be the probelm here??
    thanks for taking time to look at this!
    -Mike
    // -- SWF EMBED ---
                [Embed(source="skins/ICD9_ReferenceCodes_v2_3_blue.swf", symbol="back_btn_button")]
                [Bindable]
                public var BadApple:Class;
    // -- SWF EMBED END --
    <mx:State name="search_code">
                <mx:RemoveChild target="{vbox1}"/>
                <mx:SetProperty target="{text1}" name="text" value="Code Search:"/>
                <mx:SetProperty target="{text1}" name="x" value="130"/>
                <mx:SetProperty target="{text1}" name="y" value="136"/>
                <mx:RemoveChild target="{image1}"/>
                <mx:AddChild position="lastChild">
                    <mx:Image  id="image_BackBtn1" x="11" y="74.95" source="{BadApple}"
                              click="OnClickNewSearch(event)"
                              />
                </mx:AddChild>
                <mx:SetProperty target="{image_BackBtn1}" name="y" value="74.95"/>
            </mx:State>

    Alex,
    I'm not  following  you, why do I need a button?.....can create Mouse over and out events like this?:
    var event:MouseEvent = new MouseEvent(MouseEventMouseEvent.MOUSE_OVER.);
    myImage.dispatchEvent(event);
    var even2t:MouseEvent = new MouseEvent(MouseEventMouseEvent.MOUSE_OUT.);
    myImage.dispatchEvent(event2);
    would this work?
    BTW any idea if this is a Bug or known issue that I'm experiencing?
    -Mike

  • Linking between SWF files

    I need to general advice while protyping my website. I'm
    creating separate somewhat large swf files for each page of my
    website. Therefore, each will need its own html file if I don't
    want it take 3 years to go between pages. I'm confused how to link
    between the each page using a button in flash. Is this an action
    script thing? My links will be static text buttons. Thanks.

    Thanks. I think I get it, but I want to be sure. I think I
    need to be a little clearer:
    One SWF file inserted as my entire index.html page. Right now
    I have a static text button in the SWF file home page that says
    "About Us". I'm designing a new page that will also be its own SWF
    file for "About Us". I have a new www.xxxxx.com/aboutus.html page
    that I plan to put the file in when finished. In the text button on
    the homepage, do I use AS3 URLRequest("
    http://www.xxxxxxx.com/aboutus.html")
    to navigate. Thanks.

  • How make a button open a .swf file in a new window?

    How do I make a button open a swf file in a seperate window
    new window (like if i opened to swf file seperately)
    Anyone know ?

    well you can publish the the other FLA, which would give you
    an HTML file, upload that and the SWF then link to the SWFs' HTML
    page.

  • Flash button link AS 3.0

    I have a flash button link using actionscript 3.0. The animation is a fade in of a logo. The problem is that the button is only a link during the animation, ie. when the logo has fully faded in it stops becoming a link. Here is the actionscript code i am using, does anyone know where i am wrong? Thank you so much.
    import flash.events.MouseEvent;
    myButton.addEventListener(
    MouseEvent.CLICK, myButtonFunction);
    function myButtonFunction(event:MouseEvent):void {
    var request:URLRequest = new URLRequest("http://flightswitch.com/home.html");
    navigateToURL(request, "_self");

    Hi,
    If the logo animation is completely fade then the link is not enabled?
    Is it?
    Disable the logo button after it fade.
    Saransoft

  • 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

Maybe you are looking for

  • Information on Requirements type in scheduling agreement

    Does anyone can give me infomation about 'requirements type' found in the procurement tab of the scheduling agreement?

  • LOV(af:selectOneChoice) with bind variable in af:table

    Hi All, I have a table where a column is defined as dropdown(af:selectOneChoice). The query for selectOneChoice has a bind variable which needs to be set as a value from the base view Object corresponding row. Suppose a table Employee EmpId EmpName E

  • Why can't i update Itunes on my mac?

    I have a new ipod nano7. its my 4th ipod. Suddenly Itunes tells me I need to update my software which I have tried to do but it just shows up on the desktop as Itunes11.1.5.dmg. When I click on that it has two things - Read before you install (which

  • Acrobat X Pro - Word 2010 to pdf files

    I just bought AcrobatX to create high quality pdf files from Word2010 files in WIndows 7. Unfortunately when I do create them from inside Word using the Acrobat tab, the program crashes! However, if I print the same files using  the  Adobe printer, t

  • CS6 Camera Raw Updated to 8.5....now photoshop saying 'file not found'

    So I updated my camera raw for my CR2 files. Now when I try to open my CR2 file it's saying that the 'Camera raw file cannot be found.' I'm extremely confused. I've tried clicking on the Camera Raw plug-in to see what version I have, but it's also gi