|
List Info
Thread: parse xml with flash and javascript
|
|
| parse xml with flash and javascript |

|
2007-03-21 07:16:41 |
|
I am using the Flash Javascript integration kit found here: http://osflash.org/projects/flashjs I have the following javascript function:
------------------------------------------------------- <script type="text/javascript"> function getXMLSrc() { file_name = '<?xml version="1.0" ?><rsp status_code="0"
status_message="Success"><daily_counts><count date= "20050412T00:00:00">0</count></daily_counts></rsp>'; return file_name; }
</script> <script type="text/javascript"> var lcId = new Date().getTime(); var flashProxy = new FlashProxy(lcId, "/flash/timeline/sfw/ JavaScriptFlashGateway.swf");
var sample = new FlashTag("/flash/timeline/sfw/flashfile.swf, 1100, 130); sample.setFlashvars("lcId=" + lcId); sample.setFlashvars("flashSource=
http://www.measuremap.com/developer/ slider/&contentLicense=http://creativecommons.org/licenses/by/2.0/"); sample.write
(document); </script> Note: My flash component has no problem parsing an xml source document when I test in DEBUG mode, but problem when I have all this plugged into on the web server.
In my AS file: -------------------- import com.macromedia.javascript.JavaScriptProxy; var proxy:JavaScriptProxy = new JavaScriptProxy(_root.lcId, this); PROBLEM? file_name = proxy.call("getXMLSrc")
is returning null Again, this should be simple, right? I am just trying to dynamically pass in xml data to the flash component by making a call to a simple javascript fxn which contains the dynamic xml tree. Any help? Thanks.
|
| Re: parse xml with flash and javascript |

|
2007-03-21 07:23:55 |
|
Additionally, in my html file which contains the flash tag and javascript function (test.html), I am only including:
JavaScriptFlashGateway.js
I included the flash proxy: var flashProxy = new FlashProxy(lcId, "/flash/timeline/sfw/
JavaScriptFlashGateway.swf");
but do I need to add more into the class path? I guess I am not installing this right as per: http://osflash.org/projects/flashjs/documentation/installation
, but my flash component easily picks up the [code]sample.setFlashvars("lcId=" + lcId);[/code], so that must mean I have everything setup, or DO I?
On 3/21/07,
Sandeep Jangity < sjangity gmail.com">sjangity gmail.com> wrote:
I am using the Flash Javascript integration kit found here: http://osflash.org/projects/flashjs
I have the following javascript function:
------------------------------------------------------- <script type="text/javascript"> function getXMLSrc() { file_name = '<?xml version="1.0" ?><rsp status_code="0"
status_message="Success"><daily_counts><count date= "20050412T00:00:00">0</count></daily_counts></rsp>'; return file_name; }
</script> <script type="text/javascript"> var lcId = new Date().getTime(); var flashProxy = new FlashProxy(lcId, "/flash/timeline/sfw/ JavaScriptFlashGateway.swf
");
var sample = new FlashTag("/flash/timeline/sfw/flashfile.swf, 1100, 130); sample.setFlashvars("lcId=" + lcId); sample.setFlashvars("flashSource=
http://www.measuremap.com/developer/ slider/&contentLicense=http://creativecommons.org/licenses/by/2.0/
"); sample.write
(document); </script> Note: My flash component has no problem parsing an xml source document when I test in DEBUG mode, but problem when I have all this plugged into on the web server.
In my AS file: -------------------- import com.macromedia.javascript.JavaScriptProxy; var proxy:JavaScriptProxy = new JavaScriptProxy(_root.lcId, this); PROBLEM? file_name = proxy.call("getXMLSrc")
is returning null Again, this should be simple, right? I am just trying to dynamically pass in xml data to the flash component by making a call to a simple javascript fxn which contains the dynamic xml tree. Any help? Thanks.
|
| Re: parse xml with flash and javascript |

|
2007-03-21 07:32:06 |
|
Additionally 
I am testing on Firefox 2.0.0.3.
On 3/21/07, Sandeep Jangity < sjangity gmail.com">
sjangity gmail.com> wrote:Additionally, in my html file which contains the flash tag and javascript function (
test.html), I am only including:
JavaScriptFlashGateway.js
I included the flash proxy: var flashProxy = new FlashProxy(lcId, "/flash/timeline/sfw/
JavaScriptFlashGateway.swf");
but do I need to add more into the class path? I guess I am not installing this right as per:
http://osflash.org/projects/flashjs/documentation/installation
, but my flash component easily picks up the [code]sample.setFlashvars("lcId=" + lcId);[/code], so that must mean I have everything setup, or DO I?
On 3/21/07,
Sandeep Jangity < sjangity gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">sjangity gmail.com> wrote:
I am using the Flash Javascript integration kit found here: http://osflash.org/projects/flashjs
I have the following javascript function:
------------------------------------------------------- <script type="text/javascript"> function getXMLSrc() { file_name = '<?xml version="1.0" ?><rsp status_code="0"
status_message="Success"><daily_counts><count date= "20050412T00:00:00">0</count></daily_counts></rsp>'; return file_name; }
</script> <script type="text/javascript"> var lcId = new Date().getTime(); var flashProxy = new FlashProxy(lcId, "/flash/timeline/sfw/ JavaScriptFlashGateway.swf
");
var sample = new FlashTag("/flash/timeline/sfw/flashfile.swf, 1100, 130); sample.setFlashvars("lcId=" + lcId); sample.setFlashvars("flashSource=
http://www.measuremap.com/developer/ slider/&contentLicense=http://creativecommons.org/licenses/by/2.0/
"); sample.write
(document); </script> Note: My flash component has no problem parsing an xml source document when I test in DEBUG mode, but problem when I have all this plugged into on the web server.
In my AS file: -------------------- import com.macromedia.javascript.JavaScriptProxy; var proxy:JavaScriptProxy = new JavaScriptProxy(_root.lcId, this); PROBLEM? file_name = proxy.call("getXMLSrc")
is returning null Again, this should be simple, right? I am just trying to dynamically pass in xml data to the flash component by making a call to a simple javascript fxn which contains the dynamic xml tree. Any help? Thanks.
|
[1-3]
|
|
|
about | contact Other archives ( Real Estate discussion Medical topics )
|