Why do you think you need to do this? What are you trying to do?
I am trying to pass the value of the variable to container application (it is an EXE developed in VC++). For this I will call the fscommand and pass the variable name as string. In the EXE application, I can use GetVariable API to get the data from swf variable and do some processing. Actually I want to implement the file writing and reading. As far as I know file writing is not possible in the swf side.
Expected code as follows.
fscommand( "writefile", str );
// args = "filename, " + variable path name of str
VC++ function (only logical flow, not a compilable code)
OnFSCommand( command, arguments )
if( command == "writefile" )
WriteFile( ..., GetVariable( str_var_pathname ));
file writing is possible with an air application.
with a typical html-embedded swf, you can use the sharedobject to save/retrieve data used by flash. and it's still not clear why you wouldn't know the variable names when writing your data.
Can we use sharedobject with AS2? I need to save data to a specific folder like C:\MyApp\Data. Is it possible with sharedobject?
For using GetVariable() (exported API available with flash OCX) in the VC++ side, I have to give the variable full path name. For example the variable can be inside a movieclip, then it is _level0.myMC_mc.myStr_str.
Can we use sharedobject with AS2?
I need to save data to a specific folder like C:\MyApp\Data. Is it possible with sharedobject?
Thank you for the information.
Then cannot use sharedobject.