A Flash Developer Resource Site

+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Junior Member
    Join Date
    Feb 2009
    Posts
    14

    [KM7-AS3]Urgent :) How to create a link to an external webpage?

    I added a button that is supposed to open a link to another website in a new window so I added the action: Go to url/get url
    I write the url, www.thenameoftheurl.com, but when I test the button I get an error message.

    The file c:\graphics\banner\www.thenameoftheurl.com Does not exist!

    Why does it look for a file in that directory? How do I tell it to just open up a new webpage?

  2. #2
    up to my .as in code Chris_Seahorn's Avatar
    Join Date
    Dec 2004
    Posts
    4,389
    The community has to get in the habit now of specifying what Koolmoves version they are using. Here is a good example of why...I'm not sure you can even open my source code below as it was saved with version 7.0.2. If we know the version you are using it helps us all decide how to help you best (either posting detailed instructions or source we know you can open). In any event...this source is version 7.0.2 and even though it's using older methods (AS1) I don't think it will open in version 6.X

    Try this attachment. A pic of the export settings is below

    Attached Files

  3. #3
    Junior Member
    Join Date
    Feb 2009
    Posts
    14
    Thanks a bunch! Thats was quick!

    It does still not seems to fix my noob problem.

    when I chose, Export as SWF and HTML
    is says in the bottom window:

    File that need to be uploaded to server by ftp:

    AC_RunActiveContent.js [for explanation, see Context Help -- upper, right icon ]
    html/htm file
    banner.swf [ftp as binary]
    www.linktoanotherwebsite.se

    I think its weird that it asks for the file www.linktoanotherwebsite.se, which is the
    url I put into the button action, get url.

    I solved it by making the button ask for a .html file. Created such a html file and made a redirect in it.
    However it does not feel like it should need to be done that way.

    I have only tested the files locally but do you really have to upload the files in order to make the external links works?

    This is the versions I´m using:

    Program Version 7.0.2
    Library Version 6.9.0

  4. #4
    up to my .as in code Chris_Seahorn's Avatar
    Join Date
    Dec 2004
    Posts
    4,389
    I believe Bob could better explain why it lists the url in that last window pane.

    It does on mine too:

    swfobject.js [for explanation, see Context Help -- upper, right icon ]
    spline.html
    spline.swf [ftp as binary]
    http://www.koolmoves.com


    Even so, all I would need to upload is:
    swfobject.js
    spline.swf
    spline.html


    to the same directory on my server and I would IGNORE the last line (http:/www.koolmoves.com).


    To prove I need no special redirect and that that last line is being output erroneously (for some reason) I have exported the files I just listed above (same as you are), uploaded all three to the same dir on server and here it is running (without need for redirect...view source and you will see the html was created with koolmoves):

    http://krazyaboutpizza.co.uk/examples/spline.html




    Again, I'm sure Bob can better explain what the GUI is listing and why. Thanks for pointing this out to me...I hadn't noticed till now

  5. #5

  6. #6
    Junior Member
    Join Date
    Feb 2009
    Posts
    14
    Thanks! Now it works.

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