AS3 Question
AS3 Question
- Started
- Last post
- 4 Responses
- duckseason0
How I have it setup now is:
var filePath:String = "somexmlfile.xml";
loader.load(new URLRequest(filePath));When testing locally, with just that one file, everything was fine; however, this obviously wont work for what I ultimately need it to do, as the file name changes depending on which link gets clicked and then becomes "somexmlfile.xml?content=xxx" etc.
- rounce0
Is the structure of the XML files the same?
- Structure is the same throughout - its essentially 1 xml file that gets populated with data based on which item is clickedduckseason
- but the structure remains the sameduckseason
- fyoucher10
If I get what your saying, you're talking about a dynamic XML file name???
If so, you can use a variable for the XML file name in Flash and pass the file name in as a string via Flash Vars, either through the object/embed code or SWFObject code in the HTML page or via query string.
- Yes, dynamic file nameduckseason
- K. If the XML file name is being generated in Flash, just use regular old variables. If...fyoucher1
- the XML file name is being generated outside of Flash, change the name via Flash Vars...fyoucher1
- It's being generated outside of flash. I think i'm following what you're saying. i'll give it a shot.duckseason