Load Data Across Domains in Flash
- Started
- Last post
- 9 Responses
- ********
Hello,
In a banner ad campaign, we would like to have a dynamic text field that would load a number. The number would change based on an inventory level.
Only problem is, I can't figure out how to get this data to the flash movie since flash wont allow a .txt file or xml file across different domains. I know people build flash rss readers etc, but do you have to have a crossdomain.xml file in place in order for things like that to work? Any help please?
- acescence0
you need an intremediary script on your server that retreives it and delivers to flash
- ********0
On my server or the server on which the banner is being hosted?
Also, what is the script you mean? Is there a link you could point to? I'm having a hard time finding anything on google or any of the traditional flash message boards.
- acescence0
the script has to be in the same domain as the flash... flash sends request to your script, script fetches data and parses it out to flash. i don't have an example specific to your needs, but this explains the concept:
- acescence0
livedocs.macromedia.co...
Mimio
(Jan 29 07, 10:38)well there you go
- Mimio0
Also, make sure that the affiliate software that serves your banner(s) allows this kind of connectivity in the first place. You might not be able to access the file system on the server or have bindings/dependencies like this.
- ********0
So essentially you must have a crossdomain.xml file at the root of the server in order for flash to pull data from a dynamic source.
Which totally sucks for a banner campaign, as this would mean asking potentially hundreds of publishers to add a cross domain allowance for this banner.
bummer. different creative I guess.
- undo_undo0
the cross domain file resides on the server where the data is being fetched from, not where the request originates, this means you can server the ads on hundreds of domains and fecth data from one as long as the crossdomain file lists those domains or allows any domain
- ********0
^^
Cool, got it. Only problem is, we don't work directly with the publishers, but rather with a 3rd party network. Like CJ or Performics.
So since they have all this fancy ad rotator scripting, I'm not sure if I need to allow the 3rd party website or all the individual publishers. I think its just going to be easier to modify the creative. But thank you to everyone!