How to write this flash Action script

Discussion in 'Programming' started by nvidura, Mar 29, 2007.

  1. #1
    Hi dp members,
    How can i write this in Flash Action script.

    // pseudo code
    
    if (working domain == "mydomain.com"){
         play();
    }else {
         gotoAndStop(500);
    }
    
    Code (markup):
    Taking time would be greatly appreciated.
     
    nvidura, Mar 29, 2007 IP
  2. giraph

    giraph Guest

    Messages:
    484
    Likes Received:
    27
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hope this helps =]

    
    if(_url == "http://location.to/your/flash/file.swf")
        play();
    else
        gotoAndStop(500);
    
    Code (markup):
     
    giraph, Mar 29, 2007 IP
  3. nvidura

    nvidura Well-Known Member

    Messages:
    1,780
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    150
    #3
    This is exactly what it want... thanks girap.
     
    nvidura, Mar 30, 2007 IP