-
1. Re: Using LoadVar() Problem in Action Script 3.0
kglad Feb 7, 2012 7:10 AM (in response to ramviswa123)var lod:URLLoader=new URLLoader();
lod.dataFormat=URLLoaderDataFormat.VARIABLES;
lod.addEventListener(Event.COMPLETE,dataF);
lod.load(new URLRequest(someurl));
function dataF(e:Event):void{
if(e.target.data.txt==10110111)
{
gotoAndPlay(2);
}
}
-
2. Re: Using LoadVar() Problem in Action Script 3.0
ramviswa123 Feb 7, 2012 10:08 PM (in response to kglad)I assign in someurl by using variable.
but it Show the
" The String passed to URLVariables.decode() must be a URL-encoded query string containing name/value pairs. "
Wat can I do now..
-
3. Re: Using LoadVar() Problem in Action Script 3.0
kglad Feb 8, 2012 6:31 AM (in response to ramviswa123)what's your text file look like?
-
4. Re: Using LoadVar() Problem in Action Script 3.0
ramviswa123 Feb 8, 2012 8:52 PM (in response to kglad)I thing, the Passed URL is a one DLL path.
And it have that Value for equal to 10110111 if it is Equal only load the SWF file....
-
5. Re: Using LoadVar() Problem in Action Script 3.0
kglad Feb 8, 2012 10:07 PM (in response to ramviswa123)i have no idea what you meant to say in that last message.
but if your loaded text file contains:
txt==10110111
the code will work.
-
6. Re: Using LoadVar() Problem in Action Script 3.0
ramviswa123 Feb 8, 2012 10:16 PM (in response to kglad)Actualy,
My Code was...
Accesspath="E:\Dll\library.dll"
var lod:URLLoader=new URLLoader();
lod.dataFormat=URLLoaderDataFormat.VARIABLES;
lod.addEventListener(Event.COMPLETE,dataF);
function dataF(e:Event,txt:String):void{
if(txt==10110111)
{
gotoAndPlay(2);
}
else
{
fscommand("quit");
}
}
lod.load(new URLRequest(Accesspath));
-
7. Re: Using LoadVar() Problem in Action Script 3.0
kglad Feb 9, 2012 7:45 AM (in response to ramviswa123)have you ever opened a .dll file with a text editor?


