SWFLoader loded swf and relative path issue
hi,
before explaining problem, let me describe usecase.
i have dashboard flex application hosted on host1.
i have flex application acts plugin dashboard , hosted on host2.
i using proxy load plugin into dashboard using swfloader. proxy swfloader in dashboard thinks plugin is coming same host.
for plugin load specify swfloader source - source="proxy/host2webappdir/plugin.swf.
everything fine upto point. plugin.swf loads without issue.
now problem -
if plugin.swf made request - url path of requrest expected relative - i.e. if make request getindianstates.xml, i expecting request should resource @ "proxy/host2webappdir/getindianstates.xml". instead tries getindianstates.xml dashboard hosting directory on host1.
can issue resolved without making modification in source of plugin.swf.
thanks in advance,
prithveesingh zankat.
i don’t know if way fix without changing url plugin wants load. if plugin stores url in publicly accessible variable, might able access main swf , change it. better have plugin detect relative paths , make sure relative swf. swfloader component uses loaderutil class swfs loads, loads don’t use swfloader need similar fix ups.
More discussions in Flex (Read Only)
adobe
Comments
Post a Comment