Flash / action script

Discussion in 'Software' started by Jodi, May 12, 2010.

  1. Jodi

    Jodi Private First Class

    have a web site template, have 4 links that go to other scenes (buttuon type links) i am trying to make those buttons link to html pages (urls) instead....I found the action script that does the rollover effect and links to another scene...but does anyone know how to make it so that it does the rollover effect but links to url instead?? here is the AS.... I think i have to put it on roll out or on release but not sure and not sure what to leave and what to take out
    I need it open a url _self that goes to an html page
    Thanks in advance!!


    onClipEvent(load) {
    num=2;
    }

    on(rollOver) {
    if(_root.link<>num) {
    this.gotoAndPlay("s1");
    }
    }

    on(rollOut, releaseOutside) {
    if(_root.link<>num) {
    this.gotoAndPlay("s2");
    }
    }


    on(release) {
    if(_root.link<>num and _root.animation==1) {
    this.gotoAndPlay("s3");
    _root.animation=0;
    _root.link_prev=_root.link;
    _parent["item" + _root.link].gotoAndPlay("s4");
    _root.link=num;
    _root.pages.page.play();

    }
    }
     
  2. PC-XT

    PC-XT Master Sergeant

    Try adding the following line to on(release) {
    getURL(url to html page goes here, "_self");
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds