Coding Confusion: Links linking to wrong...links

Hi everyone,
I'm writing some code in Flash MX 2004 and everything works fine except for the last button (4DSystemsProducts). According to the coding if none of the drop down buttons work it should go to products.php, but for some reason it goes to 4DSystemsProducts.php. All of the other menus are coded the same way and work fine, if I take out that button it works fine, or if I take out button 7 and switch 4DSystems to button 7 everything works.
Here is the code to clear up this explanation.
[CODE]
function getActiveSub()
    if (_ymouse >= 38 && _ymouse < 58)
        return (activeButton.btnSub1);
    else if (_ymouse >= 58 && _ymouse < 78)
        return (activeButton.btnSub2);
    else if (_ymouse >= 78 && _ymouse < 98)
        return (activeButton.btnSub3);
    else if (_ymouse >= 98 && _ymouse < 118)
        return (activeButton.btnSub4);
    else if (_ymouse >= 118 && _ymouse < 138)
        return (activeButton.btnSub5);
    else if (_ymouse >= 138 && _ymouse < 158)
        return (activeButton.btnSub6);
    else if (_ymouse >= 158 && _ymouse < 178)
        return (activeButton.btnSub7);
    else if (_ymouse >= 178 && _ymouse < 198)
     return (activeButton.btnSub8);
    else
        return (null);
    } // end else if
} // End of the function
var activeButton;
var activeSub;
btnProducts.onRollOver = function ()
    btnProducts.gotoAndPlay("drop down");
    activeButton = btnProducts;
    activeSub = null;
btnProducts.onRollOut = btnProducts.onReleaseOutside = function ()
    btnProducts.gotoAndPlay("drop up");
    activeButton = null;
    if (activeSub != null)
        activeSub.gotoAndPlay("stoparrow");
    } // end if
    activeSub = null;
btnProducts.onRelease = function ()
    if (activeSub == btnProducts.btnSub1)
        getURL("products.php");
    else if (activeSub == btnProducts.btnSub2)
        getURL("newreleases.php");
    else if (activeSub == btnProducts.btnSub3)
        getURL("controlgrips.php");
    else if (activeSub == btnProducts.btnSub4)
        getURL("joysticks.php");
    else if (activeSub == btnProducts.btnSub5)
        getURL("controlboxes.php");
    else if (activeSub == btnProducts.btnSub6)
        getURL("electronics.php");
    else if (activeSub == btnProducts.btnSub7)
        getURL("accessories.php");
    else if (activeSub == btnProducts.btnSub8)
        getURL("4DSystemsProducts.php");
    else
        getURL("products.php");
    } // end else if
[/CODE]

That was just an exerpt.  I thought it would be all you need.  Here's the entire thing (attached).
EDIT.  Apparently I can't attach the fla, just the swf.  Hope it helps.

Similar Messages

  • Can someone spot my coding or linking mistake, please?

    Hi there
    Forum looks different from my years-ago last visit, hope I'm putting this in the right place.
    Two problems.
    www.dulcimerassociationofalbany.com, from index to More Info Here (2015.html), under Nina Zanetti more... (zanetti.html).
    Her picture doesn't show up.  Since I'm using DW, I'm not, like, spelling anything wrong.
    If you go back a page and click under the other artists, their pic shows up.  I think I've got them both relative to document.  They are both in the same folder.
    I'm assuming this is something I am overlooking, but I can't see what.  (Happens to me sometimes!)
    Second problem, on each of those "more..." pages I have a bit of code to open their websites in a new small window.
    Doesn't work.
    This is exactly the same code I use successfully on another site.  (www.sonnyandperley.com/schedule.htm)
    Now what am I missing?
    TIA !
    denno

    This is the correct location of the image
    http://www.dulcimerassociationofalbany.com/Docs%202015/images/Nina%20Zanetti%20-%202015%20 %28cropped%20%231%29.jpg
    Your link code is
    http://www.dulcimerassociationofalbany.com/Docs%202015/images/Nina%20Zanetti%20-%202015%20 (cropped%20#1).jpg
    You're going to go crazy trying to debug when you use all those spaces in your file and folder names
    Use hyphens or underscores.
    As for the small window, I am guessing you forgot the script in the head section
    <script language="JavaScript" type="text/JavaScript">
    <!--
    function MM_openBrWindow(theURL,winName,features) { //v2.0
      window.open(theURL,winName,features);
    //-->
    </script>
    </HEAD>

  • Outlook clients periodically trying to connect to hard-coded autodiscover links ...

    Hello,
    We have an different internal and external domain names, e.g., company.local and company.com respectively. All our users have both @company.local and @company.com e-mail addresses but @company.com is the
    primary SMTP address. We have two AD sites, s1 and s2. Our SCP records appear to be fine and point to autodiscover-s1.company.local and autodiscover-s2.company.local and we have DNS entries for them.
    For various reasons, we use a first-time logon script with Redemption Profman to create the Outlook profile with a specific name. It works fine, the profile is created the first time the user logs on.
    However, if we scan the firewall logs, we see that *some* clients are periodically trying to connect to "autodiscover.company.com" as well as autodiscover-s1/s2.company.local and we can't understand why. We don't have DNS entries for "autodiscover.company.com".
    Strangely, the clients appear to work fine, the users don't complain about anything.
    Presumably, that comes from the right-hand side of the user's email address. Can anyone explain why Outlook is doing that for users on domain-joined PCs?
    We migrated from Exchange 2003; we have Exchange 2010 latest SP/RU and Outlook 2010 with latest patches too. The issue affects Outlook 2011 Mac users too.
    If we use the autodiscover instead of the logon script, it does create a working profile. The Test Configuration in Outlook doesn't show any problems either or mention autodiscover.company.com. This problem seems to happen when Outlook uses autodiscover
    to connect periodically and scan for changes (the "outlook layer" and "MAPI layer" in the documentation). Repairing or re-creating the profiles doesn't change anything.
    Thanks in advance for any suggestions,
    - Alan.

    This is the order of autodiscover search in outlook
    1. Try to access DC to get the autodiscover scp
    2. Local DNS to locate autodiscover.emaildomain.com
    3. Local XML
    4. SRV record
    If the user is not joined to domain or out of domain network outlook will search for 
    https://domain.com/autodiscover/autodiscover.xml 
    https://autodiscover.domain.com/autodiscover/autodiscover.xml
    May be you might have mentioned external DNS in your PCs or it may be logs of external user access
    MAS

  • Linking BW report outputs  with VC story board output

    Hi Everyone,
    I have a scenario where I have display list of report names in VC output screen and I have to link these texts with few BW report outputs.
    This can be achieved in WAD using HTML coding by linking the report's URL, how can we do the same in VC. My customer wants in such a way that the report has to open in a different window in VC.
    I checked even in SDN where I didnt find the exact answer.
    Can any one help me out to achieve task.
    Regards,
    Chan

    Dear Pradeep,
    I have checked the document which u have suggested me, it is really helpful. But still i need some specefic inputs.
    My client has already developed these dashboards in WAD but now they want everything in VC. Here no interference of WAD.
    Let me explain you what I exactly want ...
    In VC output screen I want to display the list of report names ( Hard coded ), when I click on these reports (I mean text eg: sales analysis), it has to take me to the sales analysis report output in a different window or may be in same window.
    Now displaying this text and linking it with the Query designer report output is my confusion. Can u guide me to achieve this. (Here, No interference of WAD)
    Regards,
    Chan

  • Link list help

    Hi, I am implementing a graph for my Java project and part of the coding requires link list for the edges.
    I wrote the code, but I just don't understand why it does not function the way like it is in C++.
    Bascilly, I have trouble adding data into a linklist
    My codes are as follows:
    public int insertLink(String fCity, String tCity, int distance)
         int location = find(fCity);
         if(location == -1)
              return -1;
         else
         insertNode(new Link(tCity,distance), location);
         return 0;     
    private void insertNode(Link node, int index)
              Link head = vertex[index].head;
              while(head != null)
                   head = head.next;
              head = node;
    This is to add stuff to the list, but for some reason, when i try to display the data, i keep getting null. somehow when
    head = node
    head = new Link(data, data);
    the head points to somwhere else, and not refer to the linklist vertex[index].head anymore...
    Here is my code to display my data:
    public void printVertex()
         for(int i = 0; i < vertex.length; i++)
              if(vertex[i] != null)
                   System.out.print(vertex[i]+" --");
                   Link node = vertex.head;
                   while(node != null)
              System.out.print(node.toCity+","+node.distance+"--");
                             node = node.next;
                   System.out.println();
    Am i doing something wrong so my linklist isn't implement correct?
    THank you.

    Hi, the "fix" for head.next != null didn't work
    private void insertNode(Link node, int index)
              Link head = vertex[index].head;
              while(head != null)
                   head = head.next;
              head = node;
              System.out.println(head.toCity+","+head.distance);
              System.out.println(vertex[index].head.toCity+","+vertex[index].head.distance);
         }basiclly. When i do System.out.println(head.toCity+","+head.distance);, it can display data
    but System.out.println(vertex[index].head.toCity+","+vertex[index].head.distance);
    it throow null's error.
    Btw, yes , i know Java have build in Link list, but unfortunately, my professor likes to reinvent the wheel and want us to do everything from scratch...
    So any other help will be useful, thank you.

  • Interactive Report Performance With Conditional Link

    Apex 3.2
    I have a interactive report.
    The underlying sql would return 127000 rows
    The sql is
    select
      lde.ods_system,
      lde.ldekey,
      msg.sendersystem, 
      msg.messagetype,
      msg.messageversion,
      msg.msgseqnumber,
      msg.alternatekey,
      msg.crudmarker,
      msg.clrbookdate,
      msg.clrbookresult,
      lower('udf_'||msg.messagetype) button,
      lde.ldekey||'.'||msg.alternatekey||'.'||msg.msgseqnumber udm_key
    from
      clr_esbmessageheader msg,
      clr_adm_systemmessage adm,
      udm_lde lde
    where
      adm.ldeid = lde.ldeid and
      msg.sendersystem = adm.system and
      msg.messagetype = adm.messagetype and
      msg.messageversion = adm.messageversion and
      msg.receiversystem = 'SCIPS'
    order by msg.clrbookdate desc
    This report only takes 1 second to display.
    I need to add a conditional link to another page, so I used
    case
    when lower('udf_'||msg.messagetype) = 'udf_distreceipt' then
    '<a class="type" href="' || apex_util.prepare_url('f?p='||:APP_ID||':52:'||:APP_SESSION||'::'||:DEBUG||':RIR'||':IR_MSG_KEY,P52_PG:'|| lde.ldekey||'.'|| msg.alternatekey ||'.'|| msg.msgseqnumber ||','|| 50, null, 'SESSION') || '"title="Go to udf_distreceipt Report">udf_distreceipt</a>'
    else 'no link' end table_link
    The sql seems to be ok, because the report accepted it, but selecting the new column and saving the report takes forever (over 2 mins)
    Now the report takes over 2 minutes to run and I still need to add more conditions.
    Have I coded the link incorrectly ?
    Gus

    Hi Gus,
    Are you wanting to put the link in the query for a specific reason?
    I had to do a similar thing in the past and just completed the column link section for the column.
    Why not just have the following in the query:
    case
    when lower('udf_'||msg.messagetype) = 'udf_distreceipt' then
    udf_distreceipt
    else null END table_link
    Then do the linking using column link section:
    You would specify your link text as #TABLE_LINK# which should then be conditionally displayed due to the case statement, then add in all the page item and values to pass across using a normal link column.
    Thanks
    Paul

  • Add or delete the summary links web part's[deployed as a VS solution] link using power shell

    hi,
     i am having a visual studio custom solution having page layouts implemented. In that solution i am having 1  summary links web part and in that i have hard coded few links and this is  deployed on ion dev and staging env.
    Now, the issue is : yesterday, customer came to me and asking me to change the links from http://abc to
    http://xyz/ in this summary links. can anyone pls throw some light,such that i can change this link using a power shell script. i know  if i go the VS solution and change the link and redeploy [ update-spsolution
    command] will work.
    but if the links are changing regularly , chnaging the vs solution and redeploying is not a good practice.
    if i elaborate li'l bit,  i am adding the screen shot : i need to get the summary link column's value and  need to update[ delete xisting one and  add new ones ]
    is there any way , i can change the links using power shell script?
    i tried the belwo power shells cript to get the page in the page layouts :
    $web = get-spweb
    "http://siteurl"
    $pubWeb = [Microsoft.SharePoint.Publishing.PublishingWeb]::GetPublishingWeb($web)
    $pagesListName = $pubWeb.PagesListName
    $defaultAspxFile = $pubWeb.GetPublishingPage("$pagesListName/mycustomhome.aspx")
    $summaryLinkFieldValue = New-Object
    Microsoft.SharePoint.Publishing.Fields.SummaryLinkFieldValue
    // here am getting the NULL VALUE
    can i get the  summary links field correctly and  delete / modify the same?
    help is appreciated!
    ##$groupLink = New-Object
    Microsoft.SharePoint.Publishing.SummaryLink("My group")
    #$groupLink.IsGroupHeader = $true $summaryLinkFieldValue.SummaryLinks.Add($groupLink)

    Hi Shabeaut,
    Could you tell us why do you want to add a link web part to the master page for all pages?
    I tested that Summary Links web part (and other types of web parts) added in the master page under Quick Launch couldn't be edited when I edit the pages inherited from v4.master page, it looks by design.
    Have you tried using the Quick Launch to add the link instead if you want to show links in all pages.
    Thanks
    Daniel Yang
    TechNet Community Support

  • Link to bookmark in a pdf from embedded flash

    I am using Acrobat 9, and have embedded a flash animation on page one of a pdf document as a "Table of Contents."  I am using a Carousel of images to represent the different segments of the document, and have created bookmarks that I would like to have the user go to when the image is is clicked upon. Creating an external link to a website, etc. works fine, but I cannot determine the code to place in the  <image link> so that when the user clicks on it, it goes to the appropriate bookmark inside of the pdf, or document page that corresponds to the subject represented by the image.  Any help available?

    Hi dannywg, the novapdf.com example doesn't work for me because it always generates the Open/Save/Cancel dialog.
    I don't know about embedded media; I didn't realize PDFs had that feature. But the links in the following PDF work both in the Firefox 19 PDF Viewer and the Adobe Acrobat plugin: http://www.jeffersonscher.com/gm/Google-Hit-Hider-by-Domain_About_v150.pdf
    '''Edit: Actually, I see a difference between the PDF Viewer and the Adobe Acrobat plugin.''' Adobe's plugin lets you click certain URLs that were not intentionally coded as links in the document (e.g., the URL in the footer). Firefox's PDF Viewer apparently does not have that feature (yet).
    '''Edit: I don't know whether this feature will be added.''' Firefox doesn't treat text URLs in web pages as links. Add-ons such as [https://addons.mozilla.org/en-us/firefox/addon/linkification/ Linkification] have been created to do that. No idea whether it works in the PDF Viewer.

  • Is it possible to play audio or link to audio in a PDF in a Firefox webpage? I can't get a handle on this. Perhaps someone has some idea?

    I tried using a form button that opens a weblink to MP3 or embedding a WAVE file. In each case the buttons are disabled in Firefox but works fine in Chrome.

    Hi dannywg, the novapdf.com example doesn't work for me because it always generates the Open/Save/Cancel dialog.
    I don't know about embedded media; I didn't realize PDFs had that feature. But the links in the following PDF work both in the Firefox 19 PDF Viewer and the Adobe Acrobat plugin: http://www.jeffersonscher.com/gm/Google-Hit-Hider-by-Domain_About_v150.pdf
    '''Edit: Actually, I see a difference between the PDF Viewer and the Adobe Acrobat plugin.''' Adobe's plugin lets you click certain URLs that were not intentionally coded as links in the document (e.g., the URL in the footer). Firefox's PDF Viewer apparently does not have that feature (yet).
    '''Edit: I don't know whether this feature will be added.''' Firefox doesn't treat text URLs in web pages as links. Add-ons such as [https://addons.mozilla.org/en-us/firefox/addon/linkification/ Linkification] have been created to do that. No idea whether it works in the PDF Viewer.

  • Flash nav inserting html links into div -example-

    I have made a flash navigation bar and I want it to link to
    the pages on the same page:
    http://www.cbsanswer.com/framecomeon.htm
    Of course I understand frames are outdated. I have read
    through CCS and read about SSI, but I cannot find how to open
    content into a Div. You can see what my objective is when you visit
    the website above.
    Two problems:
    1.) What is the codeing for linking a flash button to a
    corresponding div or frame? (I tried programing the MANUFACTURING
    link to open in the _Parent frame and than tried the name of the
    frame "mainFrame".)
    2.) Can I make sure that the entire navigation is viewable? I
    had to put this stupid scroll bar in.
    I appreciate any advice as I have already checked out every
    book on the subject and spent two days searching the internet.
    *Dan

    Hi,
    1) Your json file is not valid.
    You can copy and paste your datas here: http://jsonlint.com/
    Red commas must be deleted.
          "player": [
                "image": "images/player1.jpg",  //this is the URL I want to retrive
               "name": "player1",
                "image": "images/player2.jpg",
                "name": "player2", 
                "image": "images/player3.jpg",
                "name": "player3", 
                "image": "images/player4.jpg",
                "name": "player4",
    2)An example from http://docs.jquery.com/Ajax/jQuery.getJSON:
    3) compositionReady Tests.
    On compositionReady, i write:
    var profiles = {
                   "player": [
                        "image": "images/player1.jpg",
                        "name": "player1",
                         "image": "images/player2.jpg",
                         "name": "player2", 
                         "image": "images/player3.jpg",
                         "name": "player3", 
                         "image": "images/player4.jpg",
                         "name": "player4",
    console.log(profiles.player[1].image); // this line returns: "images/player2.jpg"
    Note: i deleted the first "[" and the last "]".

  • Linking 2 PDFs in the same web page

    I'm trying to find the coding to link 2 or more PDFs into one embeded Adobe Reader in a web page.  Click one and it loads in the embed reader below.  Click the other and it loads that one instead.  I'm sure it exists somewhere, but I haven't had any luck in finding it.  Any input?

    WM,
    The best you can do is place Text in your Sheets and/or their tables and other text containers, and then use the Find feature to locate and jump to them.
    It works quite well, in my opinion. Find will not search for Sheet and Table names, but if you use Cell A1 to contain the Sheet and/or Table name, Find will take you there in short order. If your Master Sheet has a cell displaying "Cow", you can select that cell, Command-C to copy, Command-F to raise the Filter panel, Command-V to place "Cow" in the search filed and use the arrow buttons to take you to each instance of Cow in the document, in turn.
    Jerry

  • Link facebook to skype in windows 8

    I bought a new laptop with skype installed in it. when I sign in I can not see any option where I can link facebook. does not matter if it is before login or after login. I tried every thing including visiting skype.com- login there and tried to change my account settings to recognise facebook as it does my live account. Some Body Please Look Into This. skype on win XP is better than this.

    bobipeavy wrote:
    is there any way to link skype and facebook on windows 8....i have fb linked to microsoft and skype linked to microsoft but i cant get fb and skype to link...nor can i sign n using fb or email...the only way i can sign in is microsoft....im confused
    Linking with Facebook is not supported on the “modern” version of Skype application for Windows 8. You can install the “normal” Skype desktop version, where all Skype features are still available.
    https://support.skype.com/en/faq/FA12162/how-do-i-get-the-desktop-version-of-skype-windows-8-or-abov...

  • DreamWeaver CS3 is linking local rather than at site level

    I am using Dreamweaver CS on a Mac running OX 10.5.7.
    No add ons.
    I have several pages that have an embedded MP3 (Insert -> Media -> Plugin) followed by a link that allows the visitor to open the MP3 in another window or download the MP3.
    The problem I am having is with the link for the embedded MP3. Dreamweaver has suddenly started coding the link locally. That is, the path it codes points to my local hard drive instead of the site root.  ALL other links on my site point to the site root, including the link to the same file that follows the embedded MP3. The embedded link is the only one that is not coding correctly.
    I've been going into the code view to copy and paste the second link over the fist link to fix it.
    This is what the code ends up looking like:
    <body>
    <p>
      <embed src="/Macbook HD/Users/stevemoody/Documents/First Alliance Website/sermons/2009_q3/2009-07-19_am.mp3" width="200" height="32"></embed>
    </p>
    <p><a href="/sermons/2009_q3/2009-07-19_am.mp3" target="_blank">Right-click or Option-clink to download</a></p>
    </body>
    </html>

    Save the MP3 file to a folder in your DW site.  Then try again.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.com/blogspot.com

  • Copy Apple Maps link

    I'm doing an iBook and want to link addresses in the text to open in Apple Maps on the iPad. How do I copy the Apple Maps link to paste into the Navigator?

    Thanks but I think this is a Maps issue - finding a way to copy a map's url or link would be useful for multiple applications, other than just iBooks Author.
    I have about 185 addresses to link into my iBook project, so the thought of coding each link is not a happy one!

  • How to link oracle with xml

    i want to know the coding to link oracle with xml.tq.

    You're going to need to expand a little on this question, since I'm not quite sure what you mean by "link". What kind of problem are you trying to solve, so we can help... Thanks.
    If you're just starting out with Oracle and XML, a book like Building Oracle XML Applications or the Oracle XML Handbook might be the right place to start, in addition to our own online documentation at http://download.oracle.com/otndoc/oracle9i/901_doc/index.htm

Maybe you are looking for

  • How can i find and replace xml tags?

    Hi, i am using xml in my workflow and want to be able to remove certain tags if they contain particular text. here is an example of my xml structure- <entry>     <name>DEFAULT</name>     <tel>DEFAULT</tel>     <address>DEFAULT</address> </entry> I am

  • Help! Can't export the movie I've edited :(

    There's no share menu button in my FCP X - also when i push the "export movie" button nothing happens, no pop up, nothing. When I try to publish it on You Tube, this message showed up "compressionkit error or domain error." What to do? I even ended u

  • Creat new files at the beginning of every hour

    I am trying to write a VI to store data in text file. To avoid a too large file, I want to store the data in different files. I want these files to be created at the beginning of every hour. How could I achieve this? Thanks in advance! Solved! Go to

  • Retained Earnings A/C (OB53)

    Hi, Can any one please let me know how the balance flow from P&L A/C to Retained Earnings A/C. Is there any Tcode to do this, as we do to transfer vendor & customer closing balance to the new accounting year (F.07). Please explain me the concept of m

  • How to make a query which gives sales tax as output

    can any body help me, I am making a report for sales tax i only want the amount of VAT & CST in the output of the query, as we are manufacturer so we charge both excise duty & Sales tax from customer, i only want the system to retrieve cst & vat amou