A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: I am very enigmafied...

  1. #1
    Senior Member
    Join Date
    Jun 2005
    Posts
    112

    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.

  2. #2
    Senior Member
    Join Date
    Apr 2006
    Posts
    1,059
    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

  3. #3
    Junior Member
    Join Date
    Jan 2003
    Location
    new york city
    Posts
    10
    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//
    kenishii

  4. #4
    Junior Member
    Join Date
    Jan 2003
    Location
    new york city
    Posts
    10
    ps.
    macromedia.com should be replaced with your desired url
    kenishii

  5. #5
    Senior Member
    Join Date
    Jun 2005
    Posts
    112
    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center