flash help, get link to match page

Discussion in 'Graphics & Multimedia' started by jackdaniels187, Aug 3, 2010.

  1. #1
    Okay so I wrote the code right but Im missing something and I can't find the solution online.

    Basically I wrote a toolbar in flash and when your on the page you can't click on that page and there is a little grey bar over it so you know your on that page. Simple enough. It references the page name, i.e. "index.php" and then knows its on that page.

    Okay well if my links are html links like "index.html" it knows what page its on but if I switch it to "index.php" which all the pages are now php, it no longer recognizes them, it just puts the grey background on the first button which is the index, and all the other pages it the same. I go to contactus.php and it still thinks i'm on the index.

    Help?

    onClipEvent (load) {
    	num = 6;
    	link = "contactus.php";
    	this.hitArea = this.area;
    }
    on (rollOver) {
    	if (_root.link<>num) {
    		this.gotoAndPlay("s1");
    	}
    }
    on (releaseOutside, rollOut) {
    	if (_root.link<>num) {
    		this.gotoAndPlay("s2");
    	}
    }
    on (release) {
    	if (_root.link<>num) {
    		_root["item"+_root.link].gotoAndPlay("s2");
    		_root.link = num;
    		getURL(link);
    	}
    }
    
    Code (markup):
     
    jackdaniels187, Aug 3, 2010 IP
  2. enabled88

    enabled88 Peon

    Messages:
    24
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    gotoAndPlay(number) i never used "sNumber" before, maybe that is a glitch.

    furthermore, wtf language are you using? this is actionscript 1? try as3, will work like a charm.
     
    enabled88, Aug 3, 2010 IP