Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Linking problems with my Flash Nav 1

Status
Not open for further replies.

theAntic

Technical User
Oct 7, 2003
26
US
I built his nav out of movie clips and assigned an OnClipEvent (mouseDown) function to the main mc on each rollover. That action seems to be linking just fine, except that each button pulls up the same page no matter that the OnClipEvents are different for each one..

Here's the SWF:
Here's the FLA:
Did I build it incorrectly? Is there an error with my code? I'd appreciate any help on figuring this out. Thanks!

-theAntic
 
Don't use onClipEvent(mouseDown){...
...But this kind of script...
Code:
on(rollOver) {
	this.gotoAndPlay(2);
	rollover_2.gotoAndPlay(10);
}

on(rollOut) {
	this.gotoAndPlay (10);
}

on(release){
	getURL("[URL unfurl="true"]http://www.google.com/",[/URL] "_blank");
}

Use the appropriate .php on each button (movie clip) and use the full url.
Code:
on(release){
	getURL("[URL unfurl="true"]http://www.ownyourownisp.com/new/images/need.php",[/URL] "_blank");
}

All one line, no linebreaks in the above.


Regards,

cubalibre2.gif
 
WOW. Thank you! That works perfectly!

So, are onClipEvents always inappropriate in that kind of situation? And should I include the full URL when referencing a page, or just in this instance?

Thanks again!

-theAntic
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top