I’ve developed an Adobe Flex (v. 2) application. The application exists as a .swf file hosted on a web server. I have an html page hosted on a completely different web server (which is independent of the web server the .swf file is on).
My question is how am I able to call the .swf file (that lives on the separate web server) from within the html page and have the flex application embed in the html page? I've tried calling the url of the .swf file from within the html page.
Unfortunately I'm not getting an error message. My html page appears with nothing in it. I'm expecting to see my swf application embeded inside it.
here is an example of the code I'm using in my html page to call and embed the swf file.
AC_FL_RunContent(
"src", "http://www.url/swfName.swf",
"width", "580",
"height", "472",
"align", "middle",
"id", "swfName",
"quality", "high",
"bgcolor", "#869ca7",
"name", "swfName",
"flashvars",'historyUrl=history.htm%3F&lconid=' + lc_id + '',
"allowScriptAccess","sameDomain",
"type", "application/x-shockwave-flash",
"pluginspage", "http://www.adobe.com/go/getflashplayer"
);
Am i on the right track?