Help modifying button action to open an external link

  • aravot
  • Born
  • Born
  • aravot
  • Posts: 2

Post 3+ Months Ago

I have this action for a button, what do I need to change to make it open an external link when the button is clicked and for the button stay selected/highlighted.

Code: [ Select ]
on(rollOver) {
    num=4;
    if(_root.link<>num){    
        gotoAndPlay("s1");
    }}


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


on(release) {
    num=4;    
    if(_root.link<>num and _root.animation==1) {
        _root.animation=0;
        _root.link_prev=_root.link;
        _parent["item" + _root.link].gotoAndPlay("s2");
        _root.link=num;
        _root.play();    
        
        _root.scroller.scroller.gotoAndStop(3);
_root.DY = stage.height+4
_root.DX = stage.width+4

    }
}
  1. on(rollOver) {
  2.     num=4;
  3.     if(_root.link<>num){    
  4.         gotoAndPlay("s1");
  5.     }}
  6. on(rollOut, releaseOutside) {
  7.     num=4;
  8.     if(_root.link<>num){
  9.             gotoAndPlay("s2");
  10.     }}
  11. on(release) {
  12.     num=4;    
  13.     if(_root.link<>num and _root.animation==1) {
  14.         _root.animation=0;
  15.         _root.link_prev=_root.link;
  16.         _parent["item" + _root.link].gotoAndPlay("s2");
  17.         _root.link=num;
  18.         _root.play();    
  19.         
  20.         _root.scroller.scroller.gotoAndStop(3);
  21. _root.DY = stage.height+4
  22. _root.DX = stage.width+4
  23.     }
  24. }


Thank you.
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • zhaojany
  • Student
  • Student
  • User avatar
  • Posts: 79

Post 3+ Months Ago

the "<>"should be "!="
  • aravot
  • Born
  • Born
  • aravot
  • Posts: 2

Post 3+ Months Ago

I am not familiar with flash after changing the above where do I have to write the external link?

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 11 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.