Link to home
Start Free TrialLog in
Avatar of abonnell76
abonnell76

asked on

_root.link Help

I have the following _root.link assigned to the home button

on (rollOver) {
      if (_root.link<>1) {
            this.gotoAndPlay("s1");
      }
}
on (releaseOutside, rollOut) {
      if (_root.link<>1) {
            this.gotoAndPlay("s2");
      }
}
on (release) {
      if (_root.link<>1) {
            _root["item"+_root.link].gotoAndPlay("s2");
            _root.link = 1;
      }
}
on (release) {
      getURL("index.html");
}

When it loads index.html the home button doesn't slide out to let the user know that he's on the home button page.

History: I got this website from templatemonster.com and I needed to change the links around inside the aforementioned code. The home button used to be index-1.html, and it worked correctly.

I used the movie explorer to find another reference in the main timeline - it says the following.

_root["item"+_root.button].gotoAndPlay("s1");
_root.link=_root.button;

The answer I'm looking for will tell me how to be able to change the links correctly so that when that page loads the correct button slides out.
Here is a live example of the problem
http://vipowered.com/texasstone

This issue is urgent to me.

I can provide the FLA.
Avatar of Zeffer
Zeffer
Flag of New Zealand image

you have got a couple of other buttons behaving strangely..click portfolio and about slides out.. click about and home slides out
what version of flash are you using.. if it's MX I can have a look .. don't have 8

Z
Avatar of abonnell76
abonnell76

ASKER

correct. However, I just wanted to work on one. i can then take the answer for the one and apply it to the rest of them. unfortunately, This is in Flash 8.
If no one answers for this I have a "workaround". index.html will just redirect to index-1.html... I'd rather not be cheezy though.
Hi abonnell76 ,
can you upload your fla or send it by email? I'll take a look...

Best regards,
ivan_os
Sorry, I'm new. How do I go about finding your email address?
My profile :).
ivanos at ivanos.wz.cz
Ok, I resolved this myself and I hope it helps others that read this post.
when you insert the flash into a page it gives the following code in the flash parameters.

 <param name="movie" value="flash/header.swf?button=2">

Change the button number in the html  to correspond with the flash button/page... Works perfectly now.
how do I close this ticket?
click on support up the top.. and post a request..although closing it like that will lose the question and your solution to others in EE.. so maybe request closing and saving it as though asked and answered..

you could maybe also request that there is option like I am suggesting available.. for people to retrieve their points if they solve it themselves.. yet the question goes into the EE database.. thus available to others.

This actually happens quite frequently as people are not just sitting there expecting a magic solution.. but working on the problem themselves.


Z

ASKER CERTIFIED SOLUTION
Avatar of CetusMOD
CetusMOD
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial