A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Buttons invisible, but still clickable on closing.

  1. #1
    Junior Member
    Join Date
    Nov 2005
    Posts
    8

    Buttons invisible, but still clickable on closing.

    Hi everyone

    I have a 2 frame flash movie where the first has a group of names that are clickable hidden by actionscript. You need to click directors, then the names come up and then click the name to go to the 2nd frame of the move which brings in their information dynamically. This has a close button that takes you back to the first frame. My problem is that when going back to the first frame after closing the CV data, it still shows the area where those names were listed as clickable even though they aren't visible. My client wants that fixed and I'm not sure what to do, I'd appreciate any help.

    The code on frame 1 that I think is relative is below. The movie clip that houses the clickable name list is called bodBorderMC and it's loading the directors so I'm not sure if directors in the code works with that. Any help would be greatly appreciated.

    Code:
    stop();
    var varLink_id = String(root.loaderInfo.parameters.link_id);
    var strXMLpath:String;
    strXMLpath = "organisation.xml";
    //strXMLpath = "../Page/GetFlashData.php?FlashDataType=3&link_id="+varLink_id;
    var xmlLoader:URLLoader = new URLLoader();
    xmlLoader.addEventListener(Event.COMPLETE,loadChartData);
    xmlLoader.load(new URLRequest(strXMLpath));
    var totalDirectors:Number = 0;
    bodBorderMC.visible = false;
    function loadChartData(e:Event):void {
    	XML.ignoreWhitespace = true;
    	var chartXML:XML = new XML(e.target.data);
    	
    	txtExecutiveDirector.htmlText = "<a href=\"event:ed\">" + "<b>" + chartXML.ed.name.text() + "</b>" + "</a>";
    	txtFinance.htmlText = "<a href=\"event:finance\">" + "<b>" + chartXML.finance.name.text() + "</b>" + "</a>";
    	txtTraining.htmlText = "<a href=\"event:training\">" + "<b>" + chartXML.training.name.text() + "</b>" + "</a>";
    	txtResources.htmlText = "<a href=\"event:resources\">" + "<b>" + chartXML.resources.name.text() + "</b>" + "</a>";
    	txtSupport.htmlText = "<a href=\"event:support\">" + "<b>" + chartXML.support.name.text() + "</b>" + "</a>";
    	txtProjects.htmlText = "<a href=\"event:projects\">" + "<b>" + chartXML.projects.name.text() + "</b>" + "</a>";
    	txtCommunications.htmlText = "<a href=\"event:communications\">" + "<b>" + chartXML.communications.name.text() + "</b>" + "</a>";
    	addEventListener(TextEvent.LINK, callCVLoader);
    }
    /*
    function loadCV(cv:String):void {
        trace("Load CV: " + cv);
    	var xmlCVLoader:URLLoader = new URLLoader();
    	xmlCVLoader.addEventListener(Event.COMPLETE,loadCVData);
    	xmlCVLoader.load(new URLRequest(strXMLpath));
    }
    Last edited by lizzy1e; 07-11-2011 at 11:32 AM.

  2. #2
    Senior Member
    Join Date
    Jan 2010
    Location
    England
    Posts
    268
    i would suggest something like:
    bodBorderMC.enabled = false;
    let me know if that works or not. also i think this might be in the wrong thread. that dosent look like AS2 :P
    might be addicted to flash...
    _______________________________________

  3. #3
    Junior Member
    Join Date
    Nov 2005
    Posts
    8
    Thanks, that did the trick. Sorry for posting inthe wrong forum, I'm a big confused about life in general at the moment and somewhere in there is Flash. lol

  4. #4
    Senior Member
    Join Date
    Jan 2010
    Location
    England
    Posts
    268
    Your welcome
    and when your life turns to crap...flash is always there waiting for you...lol!
    might be addicted to flash...
    _______________________________________

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center