ActiveDen

XML help... duplicating banner components without flash.

905 posts
  • Has been a member for 5-6 years
  • Bought between 100 and 499 items
  • United States
unchartedrealms says

Hi all, I am in need of a solution to allow a client to use my purchased banner rotator fie that pulls in images from xml multiple times on a website, and each instance should pull in different images.

The banner file gets embedded into a worpdress post via a swfobj embed pluggin. Usually when this happens the .swf pretends it is in the root directory of the wordpress website. meaning all the xml files need to be in the root directory too work i guess.. however

The problem I am having is in the actionscript file for the banner rotator it has a path to a xml file coded into it. And I need a bunch of version of that xml file that link to different images to make this work but they can not all me in the root directory because they all would have the same name unless the client had flash and could change the script the loads the xml to a different xml name..

I hope I am not making this to complicated. basically each instance of the banner rotator is a different product image and I cant for the life of me get my head around this issue. It seems that it all stems from swf files only working from the root directory or pretending they are in the root directory,

excuse my ignorance on the matter any help is greatly appreciated. thanks for any who have time to help

3 years ago
369 posts
  • Has been a member for 3-4 years
  • Bought between 1 and 9 items
  • New Zealand
Polaradine says

Have you considered using swfobject to work with flashvars? That way you can set a different flashvar for the xml in each banner instance and it’ll load the xml for each banner rotator properly :)

3 years ago
905 posts
  • Has been a member for 5-6 years
  • Bought between 100 and 499 items
  • United States
unchartedrealms says

thanks for the advice polaradine, I just did a tutorial on go to and learn that uses swfobject 2.0 to pass flash vars to a dynamic textfield in flash.. Could the swfobject part be skipped and pass a flashvar to the script just through xml.. I bet that would work.

3 years ago
369 posts
  • Has been a member for 3-4 years
  • Bought between 1 and 9 items
  • New Zealand
Polaradine says

Uhhh…So your problem is you have a swf file that looks for an xml file that I’m presuming is not a dynamic variable in the .fla. And your wanting to look at another xml to tell it what xml to load? Think for a moment…how is this going to work? All instances of the swf would look at the same xml and be told to load the same xml. This does’nt solve your problem.

Using flashvars should most deffinately solve your problem…if you just did a tutorial with it why are’nt you making use of it?

3 years ago
by
by
by
by
by