-
I am very enigmafied...
Here is a flash file from a template that I bought for a website. If you preview the swf (Ctrl + Enter), you can see that the blue buttons on the left (Home, Contact Us, Services, etc.) move when you rollover them.
The problem is, I can't figure out where to modify the Actionscript (I want to add a GetURL() function). If I add it anywhere on the button that looks obvious, the movement goes away when I rollover the button.
Can someone help me find the acitonscript that causes it to move (or the button instance). I feel really stupid for not being able to find it myself. I have a feeling it is going to be something obvious.
-
open up the FLA(Im at work so i cant DL it)
if you bought it they probably have all the code in one place
go where the code is kept and search for "onRollOver"
when you find it
right below it do
myBtn.onRelease = function(){getURL("http://my.URL.com")}
that should work
-
hey flashcat _ took a look at your file, from what I see, there is no AS controlling the buttons rollover effects, they are produced by tweening the symbols themselves.
layer 13 has the MC instance of effect1 which in turn has the MC instance of the various buttons in question --- on line shopping1, solution for you3, solution for business3, international1, shop by catalog 1.
each one of this instances contains a 4layered MC. layer1 contains the bottom instance with a bit of AS controlling the rollover effect.
on (rollOver) {
gotoAndPlay(2);
}
on (rollOut) {
gotoAndPlay(11);
}
//add this bit of AS to the above AS//
on (release) {
getURL("http://www.macromedia.com","_blank");
//where "_blank" variable controls how the link opens//
-
ps.
macromedia.com should be replaced with your desired url
-
Thanks a lot for your help.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|