A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Single SWF with Multiple XML files

  1. #1
    Junior Member
    Join Date
    Oct 2007

    Single SWF with Multiple XML files


    I would like to have one swf file and multiple xml files by passing the variable from my HTML back into flash. I've tried many things and nothing seems to work. I always get an undefined error.

    My Flash code is:
    var passed:String = xmlFilename;
    data_xml.contentPath = xmlFilename;

    and my HTML code is:
    <embed src="file.swf&xmlfilename=news.xml"

    Thanks for your help.

  2. #2
    FK'n_dog a_modified_dog's Avatar
    Join Date
    Apr 2003
    first thing - use the same Uppercase in each variable -
    xmlfilename is not the same thing to Flash as xmlFilename

    second - upload to a server and test online, (appended vars fail silently off HD)

  3. #3
    Junior Member
    Join Date
    Oct 2007

    I changed xmlfilename to xmlFilename and tested it live on my server and still receive an Undefined error.

    Thanks for your help.

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