A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: [F8] Can't figure out GetURL function with current menu layout.

  1. #1
    Junior Member
    Join Date
    Jul 2007
    Posts
    15

    [F8] Can't figure out GetURL function with current menu layout.

    Hey Guys,

    Attached is the FLA of a menu structure the designer before me left, for a client that is just now finishing thier site.

    Long story short, the client loves the way it works (like when you roll over a person, the others fade away etc.)

    My problem is I cannot seem to get the people to get a URL when clicked. Ive been told that you can use fake buttons within a movie clip, but have had no luck.

    Also I noticed in the original script, that the person wrote a function for rolling over and rolling out of each movie clip. Would it be easier to write a function for clicking or pressing the movie clip? If so how would I do this?

    Any help is greatly appreciated. Like I said here's the fla,

    http://www.poonpad.com/images/meetteam.fla

    maybe someone can tell me what I'm doing wrong.

  2. #2
    Developing For Dunkets mneil's Avatar
    Join Date
    Mar 2007
    Location
    Lincoln City
    Posts
    2,156
    I get an error when I try to test it. You could write a function for the getURL, it there already a function pertaining to a mouseClick; I didn't notice one? If you are only going to get the url when you click then I wouldn't do a function. As long as there is no previous onRelease running then you could use this.

    w7_mc6.onRelease = function(){//w7_mc6 pertains to one mc, his looked something like that, you have to do this with each mc if you plan to have it link to a different url
    getURL("http://www.myURL.html", "_self");
    }

    this goes on the main timeline. put this on the last frame containing actionscript, it just has a stop in it. Do this for each clip. If you want it to go to the same url for everyone then only write it one and replace the mc name with "this" minus the quotation marks.
    http://code.mneilsworld.com/
    Text Effects | Bubbles | Dynamic Resize
    4 weeks , 20 papers ... thats 2 dollars .....Caassshhh!

  3. #3
    Junior Member
    Join Date
    Jul 2007
    Posts
    15
    Could you do me a favor and put that code in the fla and send it to me? I'm trying it and no dice


    dave@nelsonandco.net

  4. #4
    Developing For Dunkets mneil's Avatar
    Join Date
    Mar 2007
    Location
    Lincoln City
    Posts
    2,156
    Your fla doesn't work for me but I made a blank one with just a movie clip and the code needed for the link. It works.
    Last edited by mneil; 08-22-2007 at 12:08 PM.
    http://code.mneilsworld.com/
    Text Effects | Bubbles | Dynamic Resize
    4 weeks , 20 papers ... thats 2 dollars .....Caassshhh!

  5. #5
    Junior Member
    Join Date
    Jul 2007
    Posts
    15
    You are awesome! Works like a charm!

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