We've built the following workaround - just for the protocol:

Whenever we need to run a windows executable out of our transparent
screenweaver app, we dynamically build a non-transparent window. Then
we run the executable out of the scope of this new window, which works
well so far.

var settings:Object = {...};
this.callback_window = function(success, windowID)
{
        if (success)
        {
                swApplication.call(windowID, "swSystem.shellExecute", ["open",
absolutePath, "", "", 5] );
                swApplication.call(windowID, "swWindow.close" );
        }
};
swApplication.createWindow( settings, this.callback_window, this);

We are still interested in a solution (even a workaround) for the
Registry problem.

Regards,
Matthias

2007/6/27, Matthias Dittgen <[EMAIL PROTECTED]>:
> Hello,
>
> I could delimitate the problem with shellExecute.
> We use one swf in one window here. When we make the window transparent
> (rounded borders, etc.) the desired application (e.g. "notepad" for
> testing) is executed twice.
> When we disable the transparent mode and use 'normal' borders and
> windows, notepad is executed once only!
> Perhaps this can help in debugging and solving our problem.
> Any ideas?
>
> Matthias
>
> 2007/6/27, Matthias Dittgen <[EMAIL PROTECTED]>:
> > Hello osflasher,
> > hello Edwin, hello Romain
> >
> > we are using Screenweaver 3 for our current CD Rom Application, which
> > works really well.
> > Now we have the following two problems, where every help would be 
> > appreciated:
> > Our workflow/tools:
> > * Flash8
> > * SW3 as Eclipse Plugin
> > * SW intrinsic AS2 classes (thanks Romain)
> >
> >
> > --> problem 1 (urgent): (swSystem.shellExecute)
> > We want to start different applications from our CD-Rom and/or
> > Harddisk after installing them. The command shellExecute leads to
> > execution of two instances of the programm. We tested with "notepad"
> > and two notepad instances were opened, but only the callback method is
> > called only once.
> > Example with FileZilla:
> > swSystem.shellExecute( "open",
> > "C:\\Programme\\FileZilla\\FileZilla.exe", "", "", 5 );
> >
> > I tried using ActiveScripting instead of swSystem.shellExecute, which
> > leads to even more problems. I also tried using callDLLMethod more
> > directly, which also opens FileZilla twice.
> > This problem has to be solved very urgent, otherwise we can't use
> > Screenweaver, I think.
> >
> >
> > --> problem 2: (swSystem.Registry.read())
> > I tested under Windows XP and the method just don't work for me. I
> > can't explain more in detail, because I can't think of something I
> > make wrong. Is it a problem, because I use Romains AS2 intrinsic
> > classes, which do not offer the HKEY_XYZ constants? I tried to use the
> > HEX_Values found in the 'old API' as well an "HKEY_XYZ" as String.
> > Example:
> > var node:String = "HKEY_CURRENT_USER";
> > var subkey:String = "Software\\Macromedia\\Flash 8\\Recent File List";
> > var value:String = "File1";
> > swSystem.Registry.read( node, subkey, value,
> > thisRef.registry_callback, thisRef );
> >
> >
> > Btw. is there (still) a seperate mailinglist for SW3?
> >
> > Thank you and best regards,
> > Matthias Dittgen
> >
> > --
> > [EMAIL PROTECTED]
> > [EMAIL PROTECTED]
> >
>

_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org

Reply via email to