A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: button script

  1. #1
    Member
    Join Date
    Jun 2006
    Posts
    55

    button script

    From the main swf, it loads an external "links" page. My links have rollover effects. I've found the location... so...

    in the following code, where would I place this string?

    _level0.holder

    Code:
    on (release) {
    getURL("http://www.vampireline.com", "_blank");
    }
    on (rollOver) {
             tellTarget ("/rollover") {
                       gotoAndPlay ("vampf2");
             }
    }
    on (rollOut) {
             tellTarget ("/rollover") {
                      gotoAndPlay ("vampf19");
             }
    }

  2. #2
    OOP is one letter from OOPS kortex's Avatar
    Join Date
    Aug 2005
    Location
    New Hope, PA
    Posts
    2,668
    What player version are you publishing for? This is AS 1.0 syntax.
    Jeremy Wischusen
    Flash - Flex - LAMP - Web Developer Purple Inc
    AS OOP FAQ-Best Practices Thread | Flashkit OOP Tutorials | Purple Inc (day job) | Blog


  3. #3
    Member
    Join Date
    Jun 2006
    Posts
    55
    i got flashmx2004 flash player whichever the most recent is i guess. I just got that script from a website that shows how to do rollover buttons. seems to work fine, all till i have this external movie (with the buttons) loaded into the main movie. says it can't find the /rollover

  4. #4
    OOP is one letter from OOPS kortex's Avatar
    Join Date
    Aug 2005
    Location
    New Hope, PA
    Posts
    2,668
    Try this:

    on (release) {
    getURL("http://www.vampireline.com", "_blank");
    }
    on (rollOver) {
    _root.rollover.gotoAndPlay ("vampf2");
    }
    on (rollOut) {
    _root.rollover.gotoAndPlay ("vampf19");
    }
    Jeremy Wischusen
    Flash - Flex - LAMP - Web Developer Purple Inc
    AS OOP FAQ-Best Practices Thread | Flashkit OOP Tutorials | Purple Inc (day job) | Blog


  5. #5
    Member
    Join Date
    Jun 2006
    Posts
    55
    edit: good gravy.... :S all I had to do was delete the / in front of the rollover... i don't know why the original script has that, but seems to work without it, and adds the function i was wanting thanks for your replies!
    Last edited by Izlude; 06-19-2006 at 03:29 PM.

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