A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: [RESOLVED] variable for URLRequest problem

  1. #1
    Senior Member sybershot's Avatar
    Join Date
    Nov 2007
    Posts
    164

    resolved [RESOLVED] variable for URLRequest problem

    I'm sorry I have not been around, I have been away from flash for a while.
    I been building myself a website, and that takes up all my spare time.

    I have a URLRequest problem with a new as3 flash project using flash cs5.

    monthtobe is a variable and the name of my folder
    datetobe is a variable and the name of a xml file within monthtobe folder


    The line of code below loads the xml perfectly while in flash cs5 with no errors, but when I try and open the swf by other means like inside a html page or flash player it does not load the xml. anyone have any suggestion or know of a solution?

    Code:
    myXMLLoader.load(new URLRequest ("/"+monthtobe+"/"+datetobe+".xml"));

  2. #2
    Senior Member sybershot's Avatar
    Join Date
    Nov 2007
    Posts
    164
    I figured a way to do what I wanted. I basically added both variables to a single variable named path, and used path within the url request.

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