PDA

View Full Version : FlashVars problem



IanCremona
June 8th, 2009, 07:10 AM
Hello,

I am having trouble loading the "clickTag" flashvars

The error is:
Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL: file:///C|/Documents%20and%20Settings/Owner/Desktop/Knowledgebase/Flash/Marquee%20%28x2%29/As3%5Fdynamic%5Fxml%5Fnews%5Fticker%5Fsource/As3%5Fdynamic%5Fxml%5Fnews%5Fticker%5Fsource/[object URLLoader]
at cn.com.webstudio.text_eff::TextRoll/initXML()
at cn.com.webstudio.text_eff::TextRoll()
at casinoticker_fla::MainTimeline/frame1()




var paramList:Object = this.root.loaderInfo.parameters;



var _loader = new URLLoader();
_loader.addEventListener(Event.COMPLETE, openURL);

function openURL(evtObj:Event):void {
var request:URLRequest = new URLRequest(paramList["clickTag"]);
}



import cn.com.webstudio.text_eff.TextRoll;
var newsXML:String = "xml/news.xml";

var txt_roll = new TextRoll(490,24, _loader ,"style/style.css");




Can someone please help?

Thanks
Ian

flashdaddy
June 8th, 2009, 12:46 PM
Hey Ian,

I ran into a problem similar to this with FlashVars. Are you trying to access that website from your local box or from an actual server? Try setting it up on a development server if possible.

Another to try, set up a variable for your click tag something like:



var _click_tag = (paramList["clicktag"])


Then when you call your URLRequest do something like:


var request:URLRequest = new URLRequest(_click_tag);

That seemed to have done it for me, hopefully that helps you, or at least puts you in the right direction.