Development Flash coding

Discussion in 'Software' started by bigsharn, 15 Mar 2010.

  1. bigsharn

    bigsharn Officially demotivated

    Joined:
    9 May 2008
    Posts:
    2,605
    Likes Received:
    83
    Yeah, anyway, I'm trying to make a website portfolio in Flash (It's a lot harder than I thought :()

    Anyway, I'm trying to make an external link on my page, and it REALLY doesn't like it, the code I've tried so far (all in the button itself)

    Code:
    btnDevi.onRelease = function(){
    	getURL("http://b-s-advertising.deviantart.com");
    }
    Code:
    	getURL("http://b-s-advertising.deviantart.com");
    Code:
    http://b-s-advertising.deviantart.com
    Code:
    "http://b-s-advertising.deviantart.com"
    And still no joy, not even a response, it says on all of the above that the syntax is wrong (Or I assume that's what it means
    Code:
    **Error** Symbol=btnDevi, layer=Layer 1, frame=1:Line 1: ')' or ',' expected
         getURL(http://bigsharn.deviantart.com);
    Little help anyone?
    I'm using Flash 8 and ActionScript 2 if it helps

    Thanks :)
     
  2. GoodBytes

    GoodBytes How many wifi's does it have?

    Joined:
    20 Jan 2007
    Posts:
    12,300
    Likes Received:
    710
    Code:
    btnDevi.onRelease = function(){
    	getURL("http://b-s-advertising.deviantart.com");
    }
    Works fine on my side.
    Make sure that 'btnDevi' exists on the same stage level as the button, and that it's applied on a layer and not onto an object.

    FLA File
     
  3. bigsharn

    bigsharn Officially demotivated

    Joined:
    9 May 2008
    Posts:
    2,605
    Likes Received:
    83
    Your .FLA won't work on my version of Flash fr some reason... I DID have it on the button, but now I've tried it on the layer instead and still no joy (I really do fail at this)

    I'll just give up and do the entire thing in HTML, Flash obviously hates me :p
     
  4. GoodBytes

    GoodBytes How many wifi's does it have?

    Joined:
    20 Jan 2007
    Posts:
    12,300
    Likes Received:
    710
    Sorry I gave it to you in Flash CS3 and not Flash 8.

    Here is the Flash 8 version:
    FLA File
     
    thehippoz and bigsharn like this.
  5. aLtikal

    aLtikal 1338-One step infront of the pro's

    Joined:
    7 May 2008
    Posts:
    943
    Likes Received:
    27
    aww that was kind of goodbytes, ha =)
     
  6. barndoor101

    barndoor101 Bring back the demote thread!

    Joined:
    25 Oct 2009
    Posts:
    1,694
    Likes Received:
    110
    might help to specify: getURL("http://b-s-advertising.deviantart.com", "_blank") to force it into a new window/tab
     
    thehippoz likes this.

Share This Page