I'm trying to get a 'front end' flash 5 app going but am having great difficulty achieving what I want. I hope that someone (or some-several) can come up with some solutions!
Reducing it to its simplest, the idea is that the app runs as a projector (it's all running on the local network/intranet) and there are a couple of buttons. One button starts a standard Windows app while the second one starts a Web app - both running in full screen mode. When the app selected is closed, the user should then be presented with the original Flash app.
The first button kicking off a Windows app was initially achieved using fscommand (exec) to run a batch file to establish the working directory and kick the program into action. This worked, although the DOS box which ran the command was lying around until the app was closed so I moved to using Flash Studio Pro which removed the need for the batch file.
The second button is proving to be more troublesome. Its function is to start an intranet web page running, full screen with no borders. Flash Studio Pro will let me run it in the projector window in the way that I want but I am unable to get it to close again. it can be started with the flashstudio.browserload command but in order to close it seems to need the flashstudio.browserclose command. The problem is that the web application has the control at this time and I can't find a way of telling the Flash app to close it.
I could kick it off with a simple bit of javascript which opens a new browser window but with this approach, again there's the 'spare' window lying around which ran the JavaScript.
One other constraint that I'm working with is that it's all got to be workable using just the mouse, i.e. no useful Alt+F4 to close windows ... and ideally it would be nice not to have to use Flash Studio at all.
Reducing it to its simplest, the idea is that the app runs as a projector (it's all running on the local network/intranet) and there are a couple of buttons. One button starts a standard Windows app while the second one starts a Web app - both running in full screen mode. When the app selected is closed, the user should then be presented with the original Flash app.
The first button kicking off a Windows app was initially achieved using fscommand (exec) to run a batch file to establish the working directory and kick the program into action. This worked, although the DOS box which ran the command was lying around until the app was closed so I moved to using Flash Studio Pro which removed the need for the batch file.
The second button is proving to be more troublesome. Its function is to start an intranet web page running, full screen with no borders. Flash Studio Pro will let me run it in the projector window in the way that I want but I am unable to get it to close again. it can be started with the flashstudio.browserload command but in order to close it seems to need the flashstudio.browserclose command. The problem is that the web application has the control at this time and I can't find a way of telling the Flash app to close it.
I could kick it off with a simple bit of javascript which opens a new browser window but with this approach, again there's the 'spare' window lying around which ran the JavaScript.
One other constraint that I'm working with is that it's all got to be workable using just the mouse, i.e. no useful Alt+F4 to close windows ... and ideally it would be nice not to have to use Flash Studio at all.