I think you're passing the vars to the html page, but not the swf. You can use flashvars or just append a querystring to the swf url and you should be able to trace them
Cheers Juan Pablo Califano. 2008/12/16 Ali Drongo <alidro...@googlemail.com> > Hi there, I'm passing a variable to my swf through a query string like > this: > > htp://www.mydomain.com/index.html?passedPage=180 > > I have my main AS2 class that is the root class and have tried to access > the variable like this: > > trace("====PASSPAGE SET:"+this["passedPage"]); > trace("====PASSPAGE SET:"+_level0.passedPage); > trace("====PASSPAGE SET:"+_root.passedPage); > > each of these traces returns undefined. > > I am compiling this SWF using MTASC which means I can't write the var as > passedPage as MTASC says this is an unknown variable. > > I have tried declaring passedPage as a public variable within the class > though I still can't access it. > > Any suggestions much appreciated. > > Thanks > Ali > > > _______________________________________________ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders