A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: [F8] getURL (I am feeling dumb today)

  1. #1
    flashguy
    Join Date
    May 2005
    Location
    In the mountains
    Posts
    341

    [F8] getURL (I am feeling dumb today)

    Hi fellows,

    I am feeling dumb today, as I forgot how to use getURL properly...



    Well, I have made this simple AS menu that will run within a plain HTML page (just the menu is Flash).

    Ok, embedded in each button of the menu is the following code:

    Code:
    getURL(_root.Server+this._parent.pagetogo + "?selection=" + this._parent.myid,"_self");
    This code will generate something like: main.html?selection=0

    As I am developing it in a machine that have not Apache installed on it, so the var _root.Server is set to '' (empty).

    The case is that because that the getURL is not going. If I provide a destination beggining with http:// it goes, but I dont know why it cannot go local (current folder) and just load the html page that is there.

    I cant remember if I am forgetting to set something to make it work or if Flash wont go unless I install Apache onto my machine.



    Can you guys, please refresh my poor mind?

    Thanks!

    PS: I know that the parameter passed to HTML will do nothing, but these pages will be PHP later. But I am just in design time now (not thinking about too much functionality at this time) and everything I need for a while is that menu loads proper pages...
    Visit my business at http://www.ballooncreator.com - Software Tool For Party Balloons Online Design!

  2. #2
    Senior Member Kirill M.'s Avatar
    Join Date
    May 2002
    Location
    Toronto, Canada
    Posts
    711
    Try setting Server to something that begins with file:///

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