dcsimg
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Problem with loadvariables "error opening URL"

  1. #1
    Junior Member
    Join Date
    Oct 2009
    Posts
    4

    Problem with loadvariables "error opening URL"

    Hi,

    This is my first time try to retrieve info from database with flash.

    So I tried to access my asp file with the following code:

    loadVariablesNum("data.asp", 0) or loadVariables("data.asp", this)

    Both gave me the same error "Error opening URL 'file:///C:/flashCode/data.asp'"

    All my files (fla, swf and data.asp) are located in the same folder (ie. C:/flashCode).

    Does anyone have any clue???? Do I have to enable some sort of permission on OS so that flash can open/access file?

    Thanks in advance.

  2. #2
    Junior Member
    Join Date
    Jul 2006
    Posts
    28
    Quote Originally Posted by csdhw View Post
    Hi,

    This is my first time try to retrieve info from database with flash.

    So I tried to access my asp file with the following code:

    loadVariablesNum("data.asp", 0) or loadVariables("data.asp", this)

    Both gave me the same error "Error opening URL 'file:///C:/flashCode/data.asp'"

    All my files (fla, swf and data.asp) are located in the same folder (ie. C:/flashCode).

    Does anyone have any clue???? Do I have to enable some sort of permission on OS so that flash can open/access file?

    Thanks in advance.
    Sorry but you cannot access dynamic server pages such as asp, php , jsp etc from your local folder like you access images. These pages need to be served from servers. like for asp use windows built in web server

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