A Flash Developer Resource Site

Results 1 to 17 of 17

Thread: Flash_button to open Access

  1. #1
    Senior Member
    Join Date
    May 2005
    Posts
    238

    Flash_button to open Access

    Hi,
    can a flash button be programmed to open_up access ?

    I have a button on stage and on click it will close the swf and open up a saved access , would that be possible ?

    thanks...

  2. #2
    Senior Member calmchess's Avatar
    Join Date
    Sep 2006
    Location
    Earth
    Posts
    2,588
    yeah as long as the .swf is compiled into a projector file.

  3. #3
    Senior Member
    Join Date
    May 2005
    Posts
    238
    ok, using fscommand("quit") closes the SWF,
    but how do I code the button so that it opens up a saved file in Access ?...
    is that possible ?

  4. #4
    Senior Member calmchess's Avatar
    Join Date
    Sep 2006
    Location
    Earth
    Posts
    2,588
    on (release) {
    fscommand ("exec", "someApplication.exe");
    }

  5. #5

  6. #6
    Senior Member
    Join Date
    May 2005
    Posts
    238
    ok, I've read about it at the help docs and just tried it, but it doesn't work !

    this is what I did,

    on (release) {
    fscommand("exec", "test.exe");
    }
    on (release) {
    fscommand("quit", "");
    }

    do I have to call the application by its extension or just its name ,
    I tried both but it don't seem to work somehow ????

    did I do it right ?

  7. #7
    Senior Member calmchess's Avatar
    Join Date
    Sep 2006
    Location
    Earth
    Posts
    2,588
    you have to give the full path to the application

  8. #8
    Senior Member
    Join Date
    May 2005
    Posts
    238
    I have the file in the same folder, I've also tried it by putting the file into a folder called fscommand, how do I give the full path ?
    can you show me an example or two please ?

  9. #9
    Senior Member calmchess's Avatar
    Join Date
    Sep 2006
    Location
    Earth
    Posts
    2,588
    oh yeah and if you are going to close it then......use setinterval to wait a few seconds before closeing the app that way exec has time to talk to windows

  10. #10
    Senior Member
    Join Date
    May 2005
    Posts
    238
    is it possible you can show me the button code for it ?
    I have the file in the same folder, I've also tried it by putting the file into a folder called fscommand, how do I give the full path ?
    can you show me an example or two please ?

  11. #11
    Senior Member
    Join Date
    May 2005
    Posts
    238
    if you were to open an Access file with the file name "test" (I pressume its "test.mdb")
    how can you code the flash button to execute that file , whether to close the swf or not ? that realy is what I'm asking to find out,

    on (release) {
    fscommand("exec", "test.exe");
    }

    or this

    on (release) {
    fscommand("exec", "test.mdb.exe");
    }


    didn't work. what's the correct way of coding it ?

    thanks.

  12. #12
    Senior Member calmchess's Avatar
    Join Date
    Sep 2006
    Location
    Earth
    Posts
    2,588
    i'm working on it /test.exe is supposed to work if everything is on the c: drive of your computer....but i haven't gotten it to work yet...but i'm intrested.../mydatabase/test.exe = c:\mydatabase\test.exe

  13. #13
    Senior Member
    Join Date
    May 2005
    Posts
    238
    please let me know when you find out how it works, I've tried a couple of things but with no success, I've read the documents at the link you gave me , but it only gives brief description of it, and not only it don't work with mdb but it doesn't even work with any application. thanks ..

  14. #14
    Senior Member calmchess's Avatar
    Join Date
    Sep 2006
    Location
    Earth
    Posts
    2,588
    Note: exec is not capable of opening a specific file with an application, just the application itself. One way to open files is to use exec to launch a Windows batch (BAT) file or Macintosh AppleScript file that then opens files in the desired application. A third-party tool that can open specific files on Windows without using batch files is available from ***********.

  15. #15
    Senior Member
    Join Date
    May 2005
    Posts
    238
    what ?????????????

  16. #16
    Senior Member calmchess's Avatar
    Join Date
    Sep 2006
    Location
    Earth
    Posts
    2,588
    i tell you what jack i work everything out for you tomorrow i have to get to bed right now.

  17. #17
    Senior Member
    Join Date
    May 2005
    Posts
    238
    hey Thanks for trying to help me out anyway, I realy appreciated, thanks for your time and effort.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center