Flash CS5 TLFTextFields and FlashVars Problem
i have found when use tlftextfield in flash cs5 no longer have access flashvars passed in html.
for example, when there tlftextfield on stage following document class doesn't find flashvars ...
(in example using arthropod view output -http://arthropod.stopp.se)
package
{
import flash.display.movieclip;
import flash.display.loaderinfo;
import com.carlcalderon.arthropod.debug;
public class traceflashvars extends movieclip
{
public function traceflashvars():void
{
debug.clear();
// trace out flashvars
debug.log("-- flashvars --------------------------------");
var keystr:string;
var valuestr:string;
var paramobj:object = loaderinfo(this.root.loaderinfo).parameters;
var numofflashvars:int = 0;
(keystr in paramobj) {
valuestr = string(paramobj[keystr]);
debug.log(keystr + ": " + valuestr);
numofflashvars++;
}
debug.log("---------------------------------------------");
if (numofflashvars == 0) {
debug.log("no flashvars found!");
} else {
debug.log(numofflashvars+" flashvars found.");
}
}
}
}
i've done googling , found blog post steven sacks related, more loading child swf , not flashvars.
http://www.stevensacks.net/2010/05/28/flash-cs5-tlf-engine-causes-errors-with-loaded-swfs/
please can me flashvars working again?
cheers,
adrian
More discussions in Text Layout Framework
adobe
Comments
Post a Comment